Support compiling without -loldnames on native Windows.
[gnulib.git] / ChangeLog
blob9b08d6f76e56da4d1dd6f4458d2174fffe88df54
1 2020-08-15  Bruno Haible  <bruno@clisp.org>
3         Support compiling without -loldnames on native Windows.
4         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
5         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
6         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
8         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
10         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
11         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
12         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
14         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
15         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
16         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
17         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
18         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
19         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
23         Likewise.
24         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
25         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
27         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
28         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
30         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
31         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
33         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
34         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
35         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
36         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
37         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
39         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
44         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
45         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
48         * m4/utimens.m4 (gl_UTIMENS): Likewise.
49         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
50         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
51         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
52         test for getcwd.
53         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
54         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
55         with GL_MDA_DEFINES.
56         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
57         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
58         prefixed symbol.
59         * lib/search.in.h (lfind, lsearch): Likewise.
60         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
61         Likewise.
62         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
63         * lib/string.in.h (memccpy, strdup): Likewise.
64         * lib/sys_stat.in.h (chmod, umask): Likewise.
65         * lib/time.in.h (tzset): Likewise.
66         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
67         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
68         read, rmdir, swab, unlink, write): Likewise.
69         * lib/utime.in.h (utime): Likewise.
70         * lib/wchar.in.h (wcsdup): Likewise.
71         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
72         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
73         rpl_-prefixed macro.
74         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
75         * lib/close.c (close_nothrow): On native Windows, use _close.
76         * lib/creat.c (orig_creat): On native Windows, use _creat.
77         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
78         * lib/dup2.c (dup2_nothrow): Use _dup2.
79         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
80         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
81         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
82         * lib/open.c (orig_open): On native Windows, use _open.
83         * lib/read.c (read_nothrow): Use _read.
84         * lib/rmdir.c: On native Windows, use _rmdir.
85         * lib/unlink.c: On native Windows, use _unlink.
86         * lib/write.c (write_nothrow): Use _write.
87         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
88         undefined symbol.
89         * lib/sys_socket.in.h (close): Likewise.
90         * lib/sys_time.in.h (close): Likewise.
91         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
93 2020-08-15  Bruno Haible  <bruno@clisp.org>
95         Fix "unknown pragma ignored" warnings with clang on native Windows.
96         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
97         * lib/cbrtf.c: Likewise.
98         * lib/ceil.c: Likewise.
99         * lib/floor.c: Likewise.
100         * lib/fma.c: Likewise.
101         * lib/fmod.c: Likewise.
102         * lib/rint.c: Likewise.
103         * lib/round.c: Likewise.
104         * lib/trunc.c: Likewise.
105         * tests/test-ceil2.c: Likewise.
106         * tests/test-ceilf2.c: Likewise.
107         * tests/test-floor2.c: Likewise.
108         * tests/test-floorf2.c: Likewise.
109         * tests/test-trunc2.c: Likewise.
110         * tests/test-truncf2.c: Likewise.
111         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
114 2020-08-15  Bruno Haible  <bruno@clisp.org>
116         Fix compilation errors in C++ mode with clang on native Windows.
117         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
118         non-glibc systems.
119         * lib/sched.in.h (sched_yield): Likewise.
121 2020-08-14  Bruno Haible  <bruno@clisp.org>
123         stdnoreturn: Work around problem with MSVC/clang.
124         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
125         system header after <stdnoreturn.h>.
126         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
128 2020-08-14  Bruno Haible  <bruno@clisp.org>
130         utime-h: Generate an utime.h file always.
131         * modules/utime-h (Makefile.am): Generate utime.h always.
132         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
133         GL_GENERATE_UTIME_H.
135 2020-08-14  Bruno Haible  <bruno@clisp.org>
137         mktime, mktime-internal: Remove obsolete code.
138         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
140 2020-08-14  Bruno Haible  <bruno@clisp.org>
142         getcwd: Remove obsolete code.
143         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
146 2020-08-14  Bruno Haible  <bruno@clisp.org>
148         tzset: Assume the function exists.
149         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
150         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
151         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
152         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
153         HAVE_TZSET.
154         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
155         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
157         nstrftime: Assume tzset exists.
158         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
159         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
160         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
162         mktime, mktime-internal: Assume tzset exists.
163         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
164         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
166 2020-08-14  Bruno Haible  <bruno@clisp.org>
168         strdup: Assume the function exists.
169         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
170         whether strdup exists.
171         * modules/strdup (Files): Remove lib/strdup.c.
172         (configure.ac): Don't compile strdup.c.
173         * modules/strdup-posix (Depends-on, configure.ac): Don't test
174         ac_cv_func_strdup.
175         * doc/posix-functions/strdup.texi: Update.
176         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
177         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
178         (Depends-on): Remove unistr/u8-strlen.
180 2020-08-13  Bruno Haible  <bruno@clisp.org>
182         sys_random: Work around an uClibc bug.
183         Reported by akater <nuclearspace@gmail.com>
184         via Stefan Kangas <stefan@marxist.se>
185         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
186         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
187         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
188         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
189         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
191 2020-08-12  Bruno Haible  <bruno@clisp.org>
193         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
194         Reported by Florian Weimer in
195         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
196         * lib/gen-uni-tables.c (output_predicate): Change the element type of
197         the level3 array to 'unsigned int'.
198         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
199         * lib/unictype/categ_*.h: Regenerated.
200         * lib/unictype/ctype_*.h: Regenerated.
201         * lib/unictype/pr_*.h: Regenerated.
202         * lib/unictype/sy_*.h: Regenerated.
203         * lib/unicase/cased.h: Regenerated.
204         * lib/unicase/ignorable.h: Regenerated.
206 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
208         stdint: port intptr_t to more-recent MinGW
209         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
210         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
211         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
212         Apparently those two macros were removed in mingwrt-3.22
213         dated 2016-07-14.
215 2020-08-12  Bruno Haible  <bruno@clisp.org>
217         thread-optim: Export function-like macros only.
218         Suggested by Paul Eggert.
219         * lib/thread-optim.h (gl_multithreaded): New macro.
220         (IF_MT_DECL, IF_MT): Remove macros.
221         * doc/multithread.texi (Multithreading Optimizations): Add a small
222         example.
223         * lib/fatal-signal.c: Update all uses.
224         * lib/clean-temp.c: Likewise.
225         * lib/localename.c: Likewise.
226         * modules/localename (Depends-on): Add stdbool.
228 2020-08-12  Bruno Haible  <bruno@clisp.org>
230         Revert autoupdate's revert.
231         * config/srclist.txt: Mark regex.h as needing sync with glibc.
233 2020-08-11  Bruno Haible  <bruno@clisp.org>
235         thread-optim: Fix a compiler warning.
236         * lib/thread-optim.h (IF_MT_DECL): Define differently.
238 2020-08-11  Bruno Haible  <bruno@clisp.org>
240         Use __restrict also on clang.
241         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
242         (__restrict_arr): On clang, define like on GCC.
243         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
244         (_Restrict_arr_): Use _Restrict_ also on clang.
245         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
246         (_Restrict_arr_): Use _Restrict_ also on clang.
248 2020-08-11  Bruno Haible  <bruno@clisp.org>
250         Use flexible array syntax also on clang.
251         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
252         define like for GCC 3.
254 2020-08-11  Bruno Haible  <bruno@clisp.org>
256         fcntl: On native Windows, use _setmode, not setmode.
257         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
258         * lib/binary-io.h: Update comment.
259         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
260         * tests/test-dup2.c: Likewise.
261         * tests/test-dup-safer.c: Likewise.
262         * tests/test-fcntl.c: Likewise.
264 2020-08-11  Bruno Haible  <bruno@clisp.org>
266         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
267         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
268         * lib/spawn-pipe.c (create_pipe): Likewise.
269         * tests/test-nonblocking-pipe-main.c (main): Likewise.
270         * tests/test-nonblocking-socket-main.c (main): Likewise.
271         * lib/wait-process.c: Update comment.
272         * doc/posix-functions/fork.texi: Update.
274 2020-08-11  Bruno Haible  <bruno@clisp.org>
276         asyncsafe-spin: Use GCC built-ins also on clang.
277         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
278         the newer GCC built-ins also on clang.
280 2020-08-11  Bruno Haible  <bruno@clisp.org>
282         Use expression statements also on clang.
283         * lib/cdefs.h (__extension__): Don't define to empty on clang.
284         * lib/obstack.h (__extension__): Likewise.
285         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
286         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
287         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
288         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
289         obstack_finish, obstack_free): Enable as optimized macros also on clang.
290         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
292 2020-08-10  Bruno Haible  <bruno@clisp.org>
294         Use many __attribute__s with clang.
295         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
296         on clang.
297         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
298         New macros.
299         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
300         on clang.
301         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
302         also on older clang versions.
303         (__attribute__): Don't define to empty on clang.
304         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
305         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
306         (__attribute_const__): Use __attribute__ __const__ also on clang.
307         (__attribute_used__): Use __attribute__ __used__ also on clang.
308         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
309         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
310         clang.
311         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
312         clang.
313         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
314         also on clang.
315         (__nonnull): Use __attribute__ __nonnull__ also on clang.
316         (__attribute_warn_unused_result__): Use __attribute__
317         __warn_unused_result__ also on clang.
318         (__always_inline): Use __attribute__ __always_inline__ also on clang.
319         (__attribute_artificial__): Use __attribute__ __artificial__ also on
320         clang >= 7.
321         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
322         clang versions.
323         (_Noreturn): Don't redefine on clang >= 3.5.
324         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
325         also on clang.
326         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
327         on clang.
328         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
329         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
330         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
331         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
332         also on clang.
333         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
334         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
335         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
336         also on clang.
337         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
338         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
339         __attribute__ __noreturn__ also on clang.
340         * lib/obstack.h (__attribute_noreturn__): Likewise.
341         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
342         clang.
343         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
344         always_inline also on clang.
345         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
346         clang.
348 2020-08-10  Bruno Haible  <bruno@clisp.org>
350         c-ldtoastr tests: Fix test failure.
351         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
352         is longer than 'double'.
354 2020-08-10  Bruno Haible  <bruno@clisp.org>
356         Revert autoupdate's revert.
357         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
359 2020-08-09  Bruno Haible  <bruno@clisp.org>
361         string: Fix build error in C++ mode with clang (regression from today).
362         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
363         parameters, one for GCC, one for clang.
364         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
365         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
366         as return type.
368 2020-08-09  Bruno Haible  <bruno@clisp.org>
370         ftruncate: Use _chsize, not chsize.
371         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
372         * lib/ftruncate.c: Test HAVE__CHSIZE.
373         (chsize_nothrow): Use _chsize, not chsize.
375 2020-08-09  Bruno Haible  <bruno@clisp.org>
377         Silence warnings from clang 10 with -Wimplicit-fallthrough.
378         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
379         clang >= 10.
380         * lib/fnmatch.c (FALLTHROUGH): Likewise.
381         * lib/fts.c (FALLTHROUGH): Likewise.
382         * tests/macros.h (FALLTHROUGH): Likewise.
383         * lib/regex_internal.h (FALLTHROUGH): Likewise.
384         * config/srclist.txt: Mark it as needing sync with glibc.
386 2020-08-09  Bruno Haible  <bruno@clisp.org>
388         stdbool tests: Enable the stricter tests also on clang.
389         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
390         (e): Enable the address-to-bool conversion test also on clang.
392 2020-08-09  Bruno Haible  <bruno@clisp.org>
394         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
395         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
397 2020-08-09  Bruno Haible  <bruno@clisp.org>
399         Use attribute __aligned__ with clang.
400         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
401         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
403 2020-08-09  Bruno Haible  <bruno@clisp.org>
405         Use __alignof__ with clang.
406         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
407         on clang.
408         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
409         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
410         clang.
411         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
412         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
413         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
414         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
416 2020-08-09  Bruno Haible  <bruno@clisp.org>
418         ignore-value: Simplify on clang.
419         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
420         workaround.
422 2020-08-09  Bruno Haible  <bruno@clisp.org>
424         Use __typeof__ with clang.
425         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
426         "clang -std=gnu99".
427         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
428         * tests/test-stdint.c (verify_same_types): Enable the check also on
429         clang.
431 2020-08-09  Bruno Haible  <bruno@clisp.org>
433         Add ability to emit user-defined warnings and errors with clang.
434         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
435         _GL_ATTRIBUTE_WARNING using an attribute for clang.
436         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
437         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
438         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
439         attribute for clang.
441 2020-08-09  Bruno Haible  <bruno@clisp.org>
443         intprops: Fix typo in comment.
444         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
446 2020-08-09  Bruno Haible  <bruno@clisp.org>
448         Use __builtin_signbit* with clang.
449         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
450         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
451         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
453         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
454         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
455         not REPLACE_SIGNBIT_USING_GCC.
457 2020-08-09  Bruno Haible  <bruno@clisp.org>
459         Use __builtin_isnan with clang.
460         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
461         not __builtin_isnanf. Also on clang.
462         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
463         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
464         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
465         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
466         built-in.
467         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
468         not __builtin_isnanl. Also on clang.
469         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
470         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
471         * lib/math.in.h (__has_builtin): Remove macro.
472         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
473         __builtin_isnanf. Also on clang.
474         (isnand, gl_isnan_d): With clang, use the GCC built-in.
475         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
476         __builtin_isnanl. Also on clang.
477         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
478         on clang.
480 2020-08-09  Bruno Haible  <bruno@clisp.org>
482         thread-optim: Fix logic error.
483         Reported by Paul Eggert.
484         * lib/thread-optim.h (IF_MT): Fix logic error.
486 2020-08-08  Bruno Haible  <bruno@clisp.org>
488         localename: Use module 'thread-optim'.
489         * lib/localename.c: Include thread-optim.h.
490         (struniq): Use IF_MT macro.
491         * modules/localename (Depends-on): Add thread-optim.
493         clean-temp: Use module 'thread-optim'.
494         * lib/clean-temp.c: Include thread-optim.h.
495         (register_temporary_file, unregister_temporary_file, create_temp_dir,
496         register_temp_file, unregister_temp_file, register_temp_subdir,
497         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
498         close_temp, fclose_variant_temp): Use IF_MT macro.
499         * modules/clean-temp (Depends-on): Add thread-optim.
501         fatal-signal: Use module 'thread-optim'.
502         * lib/fatal-signal.c: Include thread-optim.h.
503         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
504         macro.
505         * modules/fatal-signal (Depends-on): Add thread-optim.
507 2020-08-08  Bruno Haible  <bruno@clisp.org>
509         New module 'thread-optim'.
510         * lib/thread-optim.h: New file.
511         * modules/thread-optim: New file.
512         * doc/multithread.texi (Multithreading Optimizations): New section.
514 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
516         doc: more updates for glibc 2.32
517         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
518         * doc/posix-functions/fchmodat.texi: Update.
520 2020-08-07  Bruno Haible  <bruno@clisp.org>
522         doc: Update for glibc 2.32.
523         * doc/glibc-functions/__libc_single_threaded.texi: New file.
524         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
525         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
526         * doc/glibc-functions/sigabbrev_np.texi: New file.
527         * doc/glibc-functions/sigdescr_np.texi: New file.
528         * doc/glibc-functions/strerrordesc_np.texi: New file.
529         * doc/glibc-functions/strerrorname_np.texi: New file.
530         * doc/gnulib.texi: Include them.
531         (Glibc sys/single_threaded.h): New section.
532         * doc/pastposix-functions/h_errno.texi: Update.
533         * doc/posix-functions/*.texi: Likewise.
534         * doc/glibc-functions/*.texi: Likewise.
536 2020-08-07  Bruno Haible  <bruno@clisp.org>
538         alloca: No need to compile alloca.c with clang.
539         * lib/alloca.c: Skip all code with clang.
541         Use __builtin_alloca with clang.
542         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
544 2020-08-06  Bruno Haible  <bruno@clisp.org>
546         Use __builtin_assume with clang.
547         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
548         (assume): Use __builtin_assume when available.
550 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
552         libgmp: add <gmp/gmp.h> support
553         * m4/libgmp.m4 (gl_LIBGMP):
554         * modules/libgmp (configure.ac, Makefile.am):
555         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
556         ‘#include <gmp.h>’.
558 2020-08-06  Bruno Haible  <bruno@clisp.org>
560         Consider that clang defines __OPTIMIZE__ like GCC does.
561         * lib/streq.h: Define the inline functions also on clang.
562         * lib/c-strcaseeq.h: Likewise.
563         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
564         the GCC workaround to clang.
566 2020-08-06  Bruno Haible  <bruno@clisp.org>
568         safe-alloc: Remove unused code.
569         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
571 2020-08-06  Bruno Haible  <bruno@clisp.org>
573         Use __builtin_expect with clang everywhere.
574         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
575         also on clang.
577 2020-08-05  Bruno Haible  <bruno@clisp.org>
579         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
580         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
581         built-in also on clang.
582         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
583         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
585 2020-08-05  Bruno Haible  <bruno@clisp.org>
587         Use __builtin_clz{,l,ll} with clang, also on Windows.
588         * lib/integer_length.c: With clang, use the GCC built-in, not
589         <intrin.h>.
590         * lib/integer_length_l.c: Likewise.
591         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
592         also on clang.
593         * lib/vasnprintf.c (divide): Likewise.
595 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
597         Update srclist.txt as per recent glibc changes
598         * config/srclist.txt: Uncomment lines to reflect recent merges
599         from Gnulib to glibc.
601 2020-08-03  Bruno Haible  <bruno@clisp.org>
603         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
604         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
606 2020-08-03  Bruno Haible  <bruno@clisp.org>
608         integer_length_ll: Optimize for MSVC in 64-bit mode.
609         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
610         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
612 2020-08-03  Bruno Haible  <bruno@clisp.org>
614         integer_length_ll: Optimize for MSVC in 32-bit mode.
615         * lib/integer_length_l.c: Include <intrin.h>.
616         (integer_length): Define as inline function, like in
617         lib/integer_length.c.
619 2020-08-03  Bruno Haible  <bruno@clisp.org>
621         integer_length: Optimize for MSVC.
622         * lib/integer_length.c: Include <intrin.h>.
623         (integer_length): With MSVC, use the _BitScanReverse built-in.
625 2020-08-03  Bruno Haible  <bruno@clisp.org>
627         ffsll: Optimize for MSVC in 64-bit mode.
628         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
629         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
630         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
632 2020-08-03  Bruno Haible  <bruno@clisp.org>
634         ffsll: Optimize for MSVC in 32-bit mode.
635         * lib/ffsl.h: Include <intrin.h>.
636         (ffs): Define as inline function, like in lib/ffs.c.
638 2020-08-03  Bruno Haible  <bruno@clisp.org>
640         ffs: Optimize for MSVC.
641         * lib/ffs.c: Include <intrin.h>.
642         (ffs): With MSVC, use the _BitScanForward built-in.
644 2020-08-03  Bruno Haible  <bruno@clisp.org>
646         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
647         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
648         variable.
650 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
652         fopen: Avoid undesired interactions with glibc headers.
653         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
654         __need_FILE, as the latter does not work with glibc.
656 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
658         fcntl: document some F_SETLK errno variations
659         * doc/posix-functions/fcntl.texi (fcntl): Document
660         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
662 2020-08-02  Bruno Haible  <bruno@clisp.org>
664         oset: Add an 'iterator_atleast' operation.
665         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
666         extracted from gl_array_search_atleast.
667         (gl_array_search_atleast): Use it.
668         (gl_array_iterator_atleast): New function.
669         (gl_array_oset_implementation): Use it.
670         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
671         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
672         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
673         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
674         member.
675         (gl_oset_iterator_atleast): New function.
676         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
677         (gl_OSet::iterator): Add another auxiliary constructor.
678         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
679         New functions.
680         (main): Test also gl_oset_iterator_atleast.
681         * tests/test-avltree_oset.c (is_at_least): New function.
682         (main): Test also gl_oset_iterator_atleast.
683         * tests/test-rbtree_oset.c (is_at_least): New function.
684         (main): Test also gl_oset_iterator_atleast.
685         * tests/test-oset-c++.cc (is_at_most): New function.
686         (main): Test also gl_OSet::begin_atleast.
688 2020-08-02  Bruno Haible  <bruno@clisp.org>
690         oset-c++, omap-c++: Remove restriction for search_atleast method.
691         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
692         a different type than the element.
693         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
694         a different type than the key.
696 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
698         gnumakefile: say ‘$(MAKE)’ not ‘make’
699         * top/GNUmakefile (abort-due-to-no-makefile):
700         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
701         This change is backported from Autoconf.
703 2020-08-01  Bruno Haible  <bruno@clisp.org>
705         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
706         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
707         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
708         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
709         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
710         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
712 2020-08-01  Bruno Haible  <bruno@clisp.org>
714         libtextstyle-optional: Update tests.
715         * modules/libtextstyle-optional-tests (configure.ac): Invoke
716         gl_LIBTEXTSTYLE_OPTIONAL.
718 2020-08-01  Bruno Haible  <bruno@clisp.org>
720         parse-datetime: Fix wrong #line statements.
721         * modules/parse-datetime (Makefile.am): Correct #line statements also in
722         parse-datetime-gen.h.
724 2020-08-01  Bruno Haible  <bruno@clisp.org>
726         libtextstyle[-optional]: Allow requesting a minimum version.
727         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
728         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
729         gl_LIBTEXTSTYLE_SEARCH): New macros.
730         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
731         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
732         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
733         * modules/libtextstyle-optional (configure.ac): Don't invoke
734         gl_LIBTEXTSTYLE_OPTIONAL.
735         * NEWS: Mention the changes.
737 2020-07-31  Bruno Haible  <bruno@clisp.org>
739         _GL_CMP: Improve documentation.
740         Reported by Paul Eggert in
741         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
742         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
743         passed.
745 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
747         largefile: sync with Autoconf master
748         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
749         Avoid undefined behavior on platforms where off_t is 32 bits.
750         See: https://bugs.debian.org/742780
752         alloca: sync with Autoconf master
753         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
754         Do not define if Autoconf 2.70 or later, since Autoconf master
755         now matches us.
757 2020-07-30  Bruno Haible  <bruno@clisp.org>
759         unicodeio: Add comment.
760         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
761         different iconv behaviours.
763 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
765         Work around some Oracle Studio attribute bugs
766         These were discovered when building bleeding-edge Emacs with
767         Oracle Studio.
768         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
769         Port to Oracle Studio 12.6, which mishandles __attribute__
770         ((__cold__)) and __attribute__ ((__may_alias__)) even though
771         __has_attribute says they work.
773 2020-07-29  Bruno Haible  <bruno@clisp.org>
775         unicodeio: Fix wrong result on musl libc.
776         Reported by A. Wilcox <awilfox@adelielinux.org> in
777         <https://www.openwall.com/lists/musl/2020/07/29/2>.
778         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
779         on musl libc.
780         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
781         * modules/unicodeio (Files): Add m4/musl.m4.
783 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
785         fsusage, regex, stat-size: remove Cray support
786         As near as I can make out this is actually support for UNICOS/mp,
787         last released 2005, and Cray hasn’t supported that for years.
788         * config/srclist.txt: Comment out regex.h for now.
789         * lib/fsusage.c (get_fs_usage):
790         * lib/regex.h (re_comp, re_exec):
791         * lib/stat-size.h (ST_NBLOCKSIZE):
792         Don’t worry about _CRAY.
794 2020-07-29  Bruno Haible  <bruno@clisp.org>
796         parse-datetime: Fix compilation error with bison 3.7.
797         * modules/parse-datetime (Makefile.am): Create a generated header file
798         parse-datetime-gen.h in the source directory. Correct #include and
799         #line statements during preprocessing.
801 2020-07-28  Bruno Haible  <bruno@clisp.org>
803         fopen-gnu: Create files correctly (regression from 2020-05-24).
804         * lib/fopen.c (rpl_open): Pass a third argument to open().
806 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
808         xalloc-die: don’t depend on xalloc
809         This removes a circular dependency, as xalloc depends on xalloc-die.
810         * modules/xalloc-die (Files): Add lib/xalloc.h.
811         (Depends-on): Remove xalloc.
812         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
814         dfa-tests: port to MSVC
815         Problem reported by Gisle Vanem in:
816         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
817         Also, remove an unnecessary dependency on getprogname.
818         * modules/dfa-tests (Depends-on): Remove getprogname.
819         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
820         (exit_status): New static var.
821         (dfawarn): Set it instead of exiting.
822         Do not declare as _Noreturn, to pacify MSVC.
823         (main): Return exit_status.
825 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
827         argz: pacify MSVC
828         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
829         Problem reported by Gisle Vanem.
831         libgmp: remove dependency on havelib
832         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
833         use the more-traditional AC_SEARCH_LIBS approach.
834         This should work better with GNU Emacs configuration,
835         which uses pkg-config instead of a havelib-style approach.
836         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
837         * modules/libgmp (Depends-on): Remove havelib.
839         libgmp: remove HAVE_GMP, LIB_GMP
840         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
841         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
843 2020-07-26  Bruno Haible  <bruno@clisp.org>
845         inttypes: Remove support for AIX 4.
846         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
847         * m4/inttypes-pri.m4: Remove file.
848         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
849         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
850         * modules/inttypes-incomplete (Makefile.am): Don't substitute
851         PRI_MACROS_BROKEN.
852         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
854 2020-07-26  Bruno Haible  <bruno@clisp.org>
856         gettimeofday: Remove workaround for Mac OS X 10.0.
857         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
858         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
859         * lib/gettimeofday.c: Don't include localtime-buffer.h.
860         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
861         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
862         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
863         * modules/localtime-buffer: Remove file.
864         * lib/localtime-buffer.h: Remove file.
865         * lib/localtime-buffer.c: Remove file.
866         * m4/localtime-buffer.m4: Remove file.
867         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
869 2020-07-26  Bruno Haible  <bruno@clisp.org>
871         tzset: Remove workaround for Solaris 2.6.
872         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
873         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
874         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
875         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
876         * lib/localtime-buffer.c: Likewise.
877         * lib/localtime.c: Likewise.
878         * lib/tzset.c: Don't include localtime-buffer.h.
879         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
880         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
881         is 1.
882         * modules/tzset (Depends-on): Remove localtime-buffer.
884 2020-07-26  Bruno Haible  <bruno@clisp.org>
886         expl: Simplify autoconf test.
887         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
888         with small values..." test into the "checking whether expl works..."
889         test.
891 2020-07-26  Bruno Haible  <bruno@clisp.org>
893         alloca: Remove Cray-2 and Cray Y-MP support.
894         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
895         Enable also on Autoconf >= 2.69.
896         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
897         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
898         i00afunc): Remove.
900 2020-07-25  Bruno Haible  <bruno@clisp.org>
902         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
903         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
905 2020-07-25  Bruno Haible  <bruno@clisp.org>
907         sigprocmask: Small autoconf macro improvement.
908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
909         user to override the value of gl_cv_func_sigprocmask.
910         * m4/gnulib-common.m4 (gl_SILENT): New macro.
912 2020-07-25  Bruno Haible  <bruno@clisp.org>
914         Small autoconf macro improvements.
915         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
916         override the value of gl_cv_func_working_mktime.
917         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
918         compiler produces multi-arch binaries..." in the configure output.
919         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
920         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
922 2020-07-25  Bruno Haible  <bruno@clisp.org>
924         doc: Update for NetBSD 7.1, 8.0, 9.0.
925         * doc/*/*.texi: Update.
926         * m4/exp2l.m4: Update comments.
927         * m4/expl.m4: Likewise.
928         * m4/ilogb.m4: Likewise.
929         * m4/ilogbf.m4: Likewise.
930         * m4/log10l.m4: Likewise.
931         * m4/logl.m4: Likewise.
932         * m4/printf.m4: Likewise.
933         * m4/rintl.m4: Likewise.
934         * m4/wcwidth.m4: Likewise.
936 2020-07-24  Bruno Haible  <bruno@clisp.org>
938         doc: Update for Mac OS X 10.13.
939         * doc/*/*.texi: Update.
940         * m4/expm1l.m4: Update comments.
941         * m4/getgroups.m4: Likewise.
942         * m4/getlogin_r.m4: Likewise.
943         * m4/linkat.m4: Likewise.
944         * m4/printf.m4: Likewise.
946 2020-07-24  Bruno Haible  <bruno@clisp.org>
948         doc: Update for Cygwin 2.9.0.
949         * doc/*/*.texi: Update.
951 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
953         parse-datetime: modernize doc
954         * doc/parse-datetime.texi: Use more-current examples.
955         Don’t lead with 32-bit time_t, as it’s on its way out.
956         Capitalize “Epoch” to be consistent with POSIX.
958         timespec: remove dependence on ‘verify’
959         * lib/timespec.h: Do not include verify.h; no longer needed.
960         * modules/timespec (Depends-on): Remove ‘verify’.
962         Optimize a few more three-valued comparisons
963         * lib/timespec.h (timespec_cmp, timespec_sign):
964         * lib/utimecmp.c (utimecmpat):
965         Avoid conditional branches by using _GL_CMP.
967         Fix _GL_CMP parenthesization typo
968         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
970 2020-07-24  Bruno Haible  <bruno@clisp.org>
972         dfa: Revert breaking gawk.
973         Reported by Arnold Robbins <arnold@skeeve.com>.
974         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
976 2020-07-23  Bruno Haible  <bruno@clisp.org>
978         Optimize three-valued comparison between integers.
979         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
980         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
981         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
982         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
983         * lib/dfa.c (compare): Likewise.
984         * lib/fts.c (fts_compare_ino): Likewise.
985         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
986         * lib/mbscasecmp.c (mbscasecmp): Likewise.
987         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
988         * lib/memcasecmp.c (memcasecmp): Likewise.
989         * lib/memcmp2.c (memcmp2): Likewise.
990         * lib/savedir.c (direntry_cmp_inode): Likewise.
991         * lib/strcasecmp.c (strcasecmp): Likewise.
992         * lib/strncasecmp.c (strncasecmp): Likewise.
993         * lib/unistr/u-cmp2.h (FUNC): Likewise.
995 2020-07-23  Bruno Haible  <bruno@clisp.org>
997         lchmod: Use /proc on Cygwin.
998         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1000 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1002         fchmodat: Use /proc on Cygwin
1003         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1005 2020-07-21  Bruno Haible  <bruno@clisp.org>
1007         aligned-malloc: Optionally use aligned_alloc.
1008         * lib/aligned-malloc.h: Verify the alignment.
1009         (aligned_malloc): Use aligned_alloc as an alternative.
1010         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1011         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1012         'aligned-malloc' and 'pagealign_alloc'.
1014 2020-07-21  Bruno Haible  <bruno@clisp.org>
1016         aligned-malloc: Add tests.
1017         * tests/test-aligned-malloc.c: New file.
1018         * modules/aligned-malloc-tests: New file.
1020         aligned-malloc: New module.
1021         * lib/aligned-malloc.h: New file.
1022         * m4/malloc-align.m4: New file.
1023         * modules/aligned-malloc: New file.
1024         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1025         * doc/glibc-functions/memalign.texi: Likewise.
1027 2020-07-21  Bruno Haible  <bruno@clisp.org>
1029         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1030         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1031         sure PRIPTR_PREFIX is defined to "ll", not "l".
1033 2020-07-21  Bruno Haible  <bruno@clisp.org>
1035         printf-posix: Make an autoconf test more future-proof.
1036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1037         using uintptr_t.
1039 2020-07-20  Bruno Haible  <bruno@clisp.org>
1041         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1042         * modules/list (License): Change to LGPLv2+.
1043         * modules/array-list (License): Likewise.
1044         * modules/carray-list (License): Likewise.
1045         * modules/linked-list (License): Likewise.
1046         * modules/avltree-list (License): Likewise.
1047         * modules/rbtree-list (License): Likewise.
1048         * modules/oset (License): Likewise.
1049         * modules/array-oset (License): Likewise.
1050         * modules/avltree-oset (License): Likewise.
1051         * modules/rbtree-oset (License): Likewise.
1052         * modules/omap (License): Likewise.
1053         * modules/array-omap (License): Likewise.
1054         * modules/avltree-omap (License): Likewise.
1055         * modules/rbtree-omap (License): Likewise.
1057 2020-07-20  Bruno Haible  <bruno@clisp.org>
1059         oset: Add an 'update' operation.
1060         * lib/gl_array_oset.c (gl_array_update): New function.
1061         (gl_array_oset_implementation): Use it.
1062         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1063         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1064         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1065         extracted from gl_tree_nx_add_before.
1066         (gl_tree_nx_add_before): Invoke it.
1067         (gl_tree_add_node_after): New function, extracted from
1068         gl_tree_nx_add_after.
1069         (gl_tree_nx_add_after): Invoke it.
1070         (gl_tree_remove_node_no_free): New function, extracted from
1071         gl_tree_remove_node.
1072         (gl_tree_remove_node): Invoke it.
1073         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1074         extracted from gl_tree_nx_add_before.
1075         (gl_tree_nx_add_before): Invoke it.
1076         (gl_tree_add_node_after): New function, extracted from
1077         gl_tree_nx_add_after.
1078         (gl_tree_nx_add_after): Invoke it.
1079         (gl_tree_remove_node_no_free): New function, extracted from
1080         gl_tree_remove_node.
1081         (gl_tree_remove_node): Invoke it.
1082         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1083         from gl_tree_iterator_next.
1084         (gl_tree_iterator_next): Invoke it.
1085         (gl_tree_prev_node, gl_tree_update): New functions.
1086         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1087         (gl_avltree_oset_implementation): Use gl_tree_update.
1088         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1089         (gl_rbtree_oset_implementation): Use gl_tree_update.
1090         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1091         (gl_oset_update): New function.
1092         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1093         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1094         * modules/rbtree-oset (configure.ac): Likewise.
1095         * tests/test-oset-update.h: New file.
1096         * tests/test-array_oset.c: Include test-oset-update.h.
1097         (main): Invoke test_update.
1098         * tests/test-avltree_oset.c: Likewise.
1099         * tests/test-rbtree_oset.c: Likewise.
1100         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1101         * modules/avltree-oset-tests (Files): Likewise.
1102         * modules/rbtree-oset-tests (Files): Likewise.
1103         * tests/test-oset-c++.cc (action): New function.
1104         (main): Test the 'update' member function.
1106 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1108         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1109         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1110         shell if, so that the argument to AC_CHECK_HEADERS is
1111         a simple string that does not require shell evaluation.
1112         This fixes a warning generated by Autoconf 2.69b.
1114 2020-07-12  Bruno Haible  <bruno@clisp.org>
1116         libgmp: Avoid warning when --without-libgmp is used.
1117         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1118         GCC >= 8, not for GCC >= 4.6.
1120 2020-07-12  Bruno Haible  <bruno@clisp.org>
1122         libgmp: Link to the correct shared library.
1123         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1124         * modules/libgmp (Depends-on): Add havelib.
1125         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1126         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1128 2020-07-12  Bruno Haible  <bruno@clisp.org>
1130         libgmp tests: Add some safety checks.
1131         * modules/libgmp-tests (Depends-on): Add verify.
1132         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1133         (main): Verify that gmp.h and libgmp versions match.
1135 2020-07-10  Bruno Haible  <bruno@clisp.org>
1137         unicodeio: Fix wrong result on NetBSD.
1138         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1139         characters also on NetBSD.
1141 2020-07-09  Bruno Haible  <bruno@clisp.org>
1143         unicodeio: Fix wrong result on Solaris 11.
1144         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1145         via Akim Demaille <akim.demaille@gmail.com> in
1146         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1147         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1148         characters on Solaris.
1149         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1150         UTF-8 output or the specified fallback.
1152 2020-07-08  Bruno Haible  <bruno@clisp.org>
1154         unicodeio: Add tests.
1155         * tests/test-unicodeio.c: New file.
1156         * tests/test-unicodeio1.sh: New file.
1157         * tests/test-unicodeio2.sh: New file.
1158         * tests/test-unicodeio3.sh: New file.
1159         * modules/unicodeio-tests: New file.
1161 2020-07-08  Bruno Haible  <bruno@clisp.org>
1163         unicodeio: Document link requirements.
1164         * modules/unicodeio (Link): New section.
1166 2020-07-07  Bruno Haible  <bruno@clisp.org>
1168         doc: Remove support for some very old platforms.
1169         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1170         * doc/posix-functions/memcpy.texi: Likewise.
1171         * doc/posix-functions/memmove.texi: Likewise.
1172         * doc/posix-functions/memset.texi: Likewise.
1173         * doc/posix-functions/getcwd.texi: Likewise.
1175         memchr: Remove support for some very old platforms.
1176         * m4/memchr-obsolete.m4: Remove file.
1177         * modules/memchr-obsolete: Remove file.
1178         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1179         absent. Don't define HAVE_MEMCHR.
1180         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1181         * modules/memchr (Depends-on): Remove memchr-obsolete.
1182         (configure.ac): Assume HAVE_MEMCHR is 1.
1183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1184         HAVE_MEMCHR.
1185         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1186         * doc/posix-functions/memchr.texi: Don't mention module
1187         'memchr-obsolete'.
1188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1189         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1190         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1192         dup2: Remove support for some very old platforms.
1193         * m4/dup2-obsolete.m4: Remove file.
1194         * modules/dup2-obsolete: Remove file.
1195         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1196         Don't define HAVE_DUP2.
1197         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1198         * lib/dup2.c: Likewise.
1199         * modules/dup2 (Depends-on, configure.ac): Likewise.
1200         (Depends-on): Remove dup2-obsolete.
1201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1202         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1203         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1205 2020-07-07  Bruno Haible  <bruno@clisp.org>
1207         canonicalize: Trim module dependencies.
1208         * lib/hash-triple.h: Group declarations.
1209         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1210         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1211         (STREQ): Remove macro.
1212         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1213         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1214         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1215         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1216         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1217         hash-triple-simple.
1218         * modules/file-set (Depends-on): Likewise.
1220 2020-07-07  Bruno Haible  <bruno@clisp.org>
1222         Clarify dependencies to double-slash-root.
1223         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1224         (Depends-on): Add double-slash-root.
1225         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1226         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1228 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1230         libgmp: new module
1231         The idea is to let programs simply include <gmp.h>, and
1232         so long as they live within the mini-gmp subset they need
1233         not worry about whether the GMP libraries are installed.
1234         * MODULES.html.sh: Mention it.
1235         * config/srclist.txt: Mention files copied from GMP source.
1236         * config/srclistvars.sh (GMP): New var.
1237         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1238         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1239         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1241 2020-07-05  Bruno Haible  <bruno@clisp.org>
1243         mkancesdirs: Trim module dependencies.
1244         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1245         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1247 2020-07-05  Bruno Haible  <bruno@clisp.org>
1249         getprogname: Trim module dependencies.
1250         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1251         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1252         basename-lgpl.
1254 2020-07-05  Bruno Haible  <bruno@clisp.org>
1256         filenamecat-lgpl: Trim module dependencies.
1257         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1258         dirname.h.
1259         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1260         basename-lgpl, filename.
1262 2020-07-05  Bruno Haible  <bruno@clisp.org>
1264         backupfile, backup-rename: Trim module dependencies.
1265         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1266         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1267         basename-lgpl.
1268         * modules/backup-rename (Depends-on): Likewise.
1270 2020-07-05  Bruno Haible  <bruno@clisp.org>
1272         argp: Trim module dependencies.
1273         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1274         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1276 2020-07-05  Bruno Haible  <bruno@clisp.org>
1278         basename-lgpl: New module.
1279         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1280         lib/basename-lgpl.c.
1281         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1282         <stdbool.h>, filename.h.
1283         (last_component): Rename a local variable.
1284         * lib/dirname.h: Include basename-lgpl.h.
1285         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1286         (last_component, base_len): Remove declarations.
1287         * modules/basename-lgpl: New file.
1288         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1289         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1290         (Makefile.am): Don't compile basename-lgpl.c.
1291         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1292         not 'dirname'.
1294 2020-07-05  Bruno Haible  <bruno@clisp.org>
1296         dirname, dirname-lgpl: Simplify.
1297         * m4/dirname.m4: Remove file.
1298         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1299         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1300         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1302 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1304         tests: avoid shadowing warning
1305         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1307 2020-07-05  Bruno Haible  <bruno@clisp.org>
1309         supersede: Add tests.
1310         * tests/test-supersede.c: New file.
1311         * tests/test-supersede-open.h: New file.
1312         * tests/test-supersede-fopen.h: New file.
1313         * modules/supersede-tests: New file.
1315         supersede: New module.
1316         * lib/supersede.h: New file.
1317         * lib/supersede.c: New file.
1318         * m4/supersede.m4: New file.
1319         * modules/supersede: New file.
1321 2020-07-05  Bruno Haible  <bruno@clisp.org>
1323         Add some copyright headers.
1324         * lib/dev-ino.h: Add copyright header.
1325         * lib/di-set.h: Likewise.
1326         * lib/fchown-stub.c: Likewise.
1327         * lib/file-set.h: Likewise.
1328         * lib/hash-triple.h: Likewise.
1329         * lib/idcache.h: Likewise.
1330         * lib/ino-map.h: Likewise.
1331         * lib/mkancesdirs.h: Likewise.
1332         * lib/scratch_buffer.h: Likewise.
1333         * lib/se-context.in.h: Likewise.
1334         * lib/stdopen.h: Likewise.
1335         * lib/userspec.h: Likewise.
1337 2020-07-04  Bruno Haible  <bruno@clisp.org>
1339         getrandom: Relicense under LGPLv2+.
1340         Paul Eggert's approval is in
1341         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1342         * modules/getrandom (License): Change to LGPLv2+.
1344 2020-07-04  Bruno Haible  <bruno@clisp.org>
1346         getumask: Add tests.
1347         * tests/test-getumask.c: New file.
1348         * modules/getumask-tests: New file.
1350         getumask: New module.
1351         * lib/sys_stat.in.h (getumask): New declaration.
1352         * lib/getumask.c: New file.
1353         * m4/getumask.m4: New file.
1354         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1355         declared.
1356         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1357         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1358         HAVE_GETUMASK.
1359         * modules/getumask: New file.
1360         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1361         * doc/glibc-functions/getumask.texi: New file.
1362         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1364 2020-07-04  Bruno Haible  <bruno@clisp.org>
1366         clean-temp: Add support for temporary files with given mode.
1367         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1368         * lib/clean-temp.c (struct try_create_file_params): New type.
1369         (try_create_file): New function.
1370         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1371         gen_tempname.
1373 2020-07-04  Bruno Haible  <bruno@clisp.org>
1375         clean-temp: Document limitations.
1376         * lib/clean-temp.h: Document limitations.
1378 2020-07-04  Bruno Haible  <bruno@clisp.org>
1380         clean-temp: Add support for temporary files with unpredictable names.
1381         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1382         * lib/clean-temp.c: Include tempname.h.
1383         (gen_register_open_temp): New function.
1384         * modules/tempname (configure.ac): Define a module indicator.
1386 2020-07-04  Bruno Haible  <bruno@clisp.org>
1388         clean-temp: Add support for temporary files anywhere in the file system.
1389         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1390         cleanup_temporary_file): New declarations.
1391         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1392         variables.
1393         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1394         (dir_cleanup_list): Renamed from cleanup_list.
1395         (cleanup_action): Process the file_cleanup_list as well.
1396         (do_init_clean_temp): New function.
1397         (clean_temp_once): New variable.
1398         (init_clean_temp): New function.
1399         (create_temp_dir): Invoke it.
1400         (register_temporary_file, unregister_temporary_file,
1401         cleanup_temporary_file): New functions.
1402         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1403         argument.
1405 2020-07-04  Bruno Haible  <bruno@clisp.org>
1407         clean-temp: Improve comments.
1408         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1409         fwriteerror_temp, close_stream_temp): Clarify intended use.
1410         * lib/clean-temp.c: Likewise.
1412 2020-07-04  Bruno Haible  <bruno@clisp.org>
1414         clean-temp: Make multithread-safe, part 2.
1415         * lib/fatal-signal.h: Include <signal.h>.
1416         (get_fatal_signal_set): New declaration.
1417         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1418         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1419         (struct closeable_fd): New type.
1420         (fatal_signal_set): New variable.
1421         (init_fatal_signal_set): New function.
1422         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1423         (cleanup_action): Invoke asyncsafe_close instead of close.
1424         (create_temp_dir): Invoke init_fatal_signal_set.
1425         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1426         element.
1427         (unregister_fd): Remove function.
1428         (close_temp): Cleanup descriptors list on the fly. Invoke
1429         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1430         (fclose_variant_temp): New function.
1431         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1432         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1434 2020-07-04  Bruno Haible  <bruno@clisp.org>
1436         clean-temp: Make multithread-safe, part 1.
1437         * lib/clean-temp.c: Include glthread/lock.h.
1438         (cleanup_list_lock): New variable.
1439         (register_temp_file, unregister_temp_file, register_temp_subdir,
1440         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1441         (create_temp_dir): Likewise. Don't free the old array.
1442         (descriptors_lock): New variable.
1443         (register_fd, unregister_fd): Use it.
1444         * modules/clean-temp (Depends-on): Add lock.
1446 2020-07-04  Bruno Haible  <bruno@clisp.org>
1448         fatal-signal: Make multithread-safe.
1449         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1450         (do_init_fatal_signal_set): New function, extracted from
1451         init_fatal_signal_set.
1452         (fatal_signal_set_once): New variable.
1453         (init_fatal_signal_set): Use gl_once.
1455 2020-07-03  Bruno Haible  <bruno@clisp.org>
1457         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1458         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1459         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1460         <bcrypt.h>.
1462 2020-07-03  Bruno Haible  <bruno@clisp.org>
1464         dfa tests: Follow common file naming conventions.
1465         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1466         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1467         * tests/test-dfa-invalid-char-class.sh: Renamed from
1468         tests/dfa-invalid-char-class.sh. Update.
1469         * modules/dfa-tests (Files, Makefile.am): Update.
1471 2020-07-03  Bruno Haible  <bruno@clisp.org>
1473         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1474         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1475         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1477 2020-07-03  Bruno Haible  <bruno@clisp.org>
1479         asyncsafe-spin: Reduce code duplication.
1480         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1481         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1482         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1484 2020-07-03  Bruno Haible  <bruno@clisp.org>
1486         lchmod: Simplify after 2020-02-22 change.
1487         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1489 2020-07-03  Bruno Haible  <bruno@clisp.org>
1491         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1492         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1494 2020-07-03  Bruno Haible  <bruno@clisp.org>
1496         dfa: Make sure the compiler does not barf on 'inline'.
1497         * modules/dfa (configure.ac): Require AC_C_INLINE.
1499 2020-07-03  Bruno Haible  <bruno@clisp.org>
1501         bitset: Make sure the compiler does not barf on 'inline'.
1502         * modules/bitset (configure.ac): New section.
1504 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1506         manywarnings: improve port to GCC 10.1
1507         * build-aux/gcc-warning.spec: Also list warnings that are default
1508         or are enabled by already-given flags.  This lets us speed up
1509         checking for attributes, and makes the generated compilation
1510         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1511         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1512         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1513         to shell variables that may have long values.
1514         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1515         consequences of other flags, to speed up checking and
1516         shorten commands.
1518         tests: pacify gcc -fanalyzer on zerosize_ptr
1519         * tests/test-memcasecmp.c (main):
1520         * tests/test-memchr.c (main):
1521         * tests/test-memchr2.c (main):
1522         * tests/test-memcmp.c (main):
1523         * tests/test-memmem.c (main):
1524         * tests/test-memrchr.c (main):
1525         * tests/unistr/test-chr.h (main):
1526         * tests/unistr/test-cmp.h (test_cmp):
1527         Check whether zerosize_ptr returns NULL before using it.
1528         This pacifies GCC 10.1’s new fanalyzer option, and matches
1529         other uses of zerosize_ptr.
1531 2020-07-01  Bruno Haible  <bruno@clisp.org>
1533         asyncsafe-spin: Add tests.
1534         * tests/test-asyncsafe-spin1.c: New file.
1535         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1536         tests/test-pthread-spin.c.
1537         * modules/asyncsafe-spin-tests: New file.
1539 2020-07-01  Bruno Haible  <bruno@clisp.org>
1541         asyncsafe-spin: New module.
1542         * lib/asyncsafe-spin.h: New file.
1543         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1544         * modules/asyncsafe-spin: New file.
1546 2020-07-01  Bruno Haible  <bruno@clisp.org>
1548         windows-spin: Fix race condition on multiprocessor systems.
1549         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1551 2020-07-01  Bruno Haible  <bruno@clisp.org>
1553         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1554         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1555         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1556         an implementation based on other GCC built-ins.
1558 2020-07-01  Bruno Haible  <bruno@clisp.org>
1560         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1561         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1562         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1563         lock byte.
1565 2020-07-01  Bruno Haible  <bruno@clisp.org>
1567         pthread-spin: Add error checking.
1568         * lib/pthread-spin.c: Include <stdbool.h>.
1569         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1570         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1571         the unlocks.
1572         * modules/pthread-spin (Depends-on): Add stdbool.
1574 2020-07-01  Bruno Haible  <bruno@clisp.org>
1576         pthread-spin: Add tests.
1577         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1578         * modules/pthread-spin-tests: New file.
1580 2020-07-01  Bruno Haible  <bruno@clisp.org>
1582         tests: Reduce code duplication.
1583         * tests/atomic-int-posix.h: New file, extracted from
1584         tests/test-pthread-mutex.c.
1585         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1586         * tests/test-pthread-rwlock.c: Likewise.
1587         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1588         * modules/pthread-rwlock-tests (Files): Likewise.
1590 2020-07-01  Bruno Haible  <bruno@clisp.org>
1592         tests: Refactor.
1593         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1594         * tests/test-mtx.c: Include it. Remove the corresponding code.
1595         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1597 2020-07-01  Bruno Haible  <bruno@clisp.org>
1599         tests: Refactor.
1600         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1601         * tests/test-lock.c: Include it. Remove the corresponding code.
1602         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1604 2020-06-29  Bruno Haible  <bruno@clisp.org>
1606         sys_socket: Don't define socklen_t if it is already defined on mingw.
1607         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1608         <https://savannah.gnu.org/bugs/?57725>,
1609         by Rahul Das <bokul_4u@yahoo.com> in
1610         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1611         and by Eli Zaretskii <eliz@gnu.org> in
1612         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1613         * lib/sys_socket.in.h (socklen_t): Remove definition.
1615 2020-06-29  Bruno Haible  <bruno@clisp.org>
1617         alloca-opt: Fix warning on mingw.
1618         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1619         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1620         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1621         whether alloca is defined.
1623 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1625         getrandom: do not depend on ‘open’ on mingw
1626         Similarly for at-internal, getloadavg.  These modules do not call
1627         the ‘open’ function when they are compiled on mingw.  On mingw,
1628         this avoids having to compile open.c when building Emacs, which
1629         does its own thing with ‘open’.
1630         * modules/at-internal, modules/getloadavg, modules/getrandom:
1631         (Depends-on): Don’t depend on ‘open’ on mingw.
1632         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1633         * modules/getloadavg (Depends-on):
1634         Depend on intprops, open, stdbool, stdlib only if compiling
1635         getloadavg.c.
1637 2020-06-28  Bruno Haible  <bruno@clisp.org>
1639         doc: Add a note about sigprocmask vs. pthread_sigmask.
1640         * doc/posix-functions/sigprocmask.texi: Add note.
1642 2020-06-28  Bruno Haible  <bruno@clisp.org>
1644         getrandom: Fix compilation errors on older versions of mingw.
1645         Reported by Eli Zaretskii <eliz@gnu.org> in
1646         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1647         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1648         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1649         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1650         BCryptGenRandom ourselves.
1652 2020-06-28  Bruno Haible  <bruno@clisp.org>
1654         clean-temp: Fix wrong errno in error message.
1655         * lib/clean-temp.c (create_temp_dir): Save errno around
1656         unblock_fatal_signals call.
1658 2020-06-27  Bruno Haible  <bruno@clisp.org>
1660         fatal-signal: Make multithread-safe.
1661         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1663 2020-06-27  Bruno Haible  <bruno@clisp.org>
1665         clean-temp: Don't force deletion of temporary files on native Windows.
1666         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1667         argument.
1668         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1669         * NEWS: Mention the change.
1670         * lib/javacomp.c (write_temp_file): Update.
1672 2020-06-27  Bruno Haible  <bruno@clisp.org>
1674         fatal-signal: Make multithread-safe.
1675         * lib/fatal-signal.c: Include glthread/lock.h.
1676         (at_fatal_signal_lock): New variable.
1677         (at_fatal_signal): Use it.
1678         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1679         (block_fatal_signals, unblock_fatal_signals): Use them.
1680         * modules/fatal-signal (Depends-on): Add lock.
1682 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1684         getloadavg: don’t depend on fopen-gnu
1685         This is for Emacs, which does not need fopen-gnu for anything else,
1686         and which would need it only on a NetBSD platform where getloadavg
1687         does not work (does that even happen?).
1688         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1689         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1691         * tests/test-getloadavg.c (main): Fix typo.
1693 2020-06-27  Bruno Haible  <bruno@clisp.org>
1695         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1696         * modules/tempname (Link): New section.
1697         * modules/mkdtemp (Link): Likewise.
1698         * modules/clean-temp (Link): Likewise.
1699         * modules/mkstemp (Link): Likewise.
1700         * modules/stdlib-safer (Link): Likewise.
1701         * modules/mkstemps (Link): Likewise.
1702         * modules/mkostemp (Link): Likewise.
1703         * modules/mkostemps (Link): Likewise.
1704         * modules/tmpfile (Link): Likewise.
1705         * modules/tmpfile-safer (Link): Likewise.
1706         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1707         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1708         $(LIB_GETRANDOM).
1709         * NEWS: Mention the changes.
1711 2020-06-27  Bruno Haible  <bruno@clisp.org>
1713         fopen-gnu: Simplify code.
1714         * lib/fopen.c: Include <stdbool.h>.
1715         (rpl_fopen): Use a single variable open_flags instead of
1716         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1717         * modules/fopen (Depends-on): Add stdbool.
1719 2020-06-26  Bruno Haible  <bruno@clisp.org>
1721         canonicalize: Improve documentation.
1722         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
1723         return convention.
1725 2020-06-26  Bruno Haible  <bruno@clisp.org>
1727         xgetcwd: Improve documentation.
1728         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
1730 2020-06-26  Bruno Haible  <bruno@clisp.org>
1732         getcwd: Improve documentation.
1733         * lib/getcwd.c (__getcwd): Document the failure return convention.
1735 2020-06-26  Bruno Haible  <bruno@clisp.org>
1737         fchdir: Improve documentation.
1738         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
1739         convention.
1741 2020-06-26  Bruno Haible  <bruno@clisp.org>
1743         filenamecat-lgpl: Set errno upon failure.
1744         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
1745         return convention.
1746         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
1748 2020-06-26  Bruno Haible  <bruno@clisp.org>
1750         areadlink-with-size: Set errno upon failure.
1751         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
1752         fails.
1753         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
1755 2020-06-26  Bruno Haible  <bruno@clisp.org>
1757         copy-file: Shrink dependencies.
1758         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
1759         qcopy-acl.
1761 2020-06-26  Bruno Haible  <bruno@clisp.org>
1763         doc: Mention declaration fixes implemented by some modules.
1764         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
1765         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
1766         declaration appear in <unistd.h>.
1767         * doc/posix-functions/dup.texi: Likewise.
1768         * doc/posix-functions/dup2.texi: Likewise.
1769         * doc/posix-functions/gethostname.texi: Likewise.
1770         * doc/posix-functions/isatty.texi: Likewise.
1771         * doc/posix-functions/lseek.texi: Likewise.
1772         * doc/posix-functions/unlink.texi: Likewise.
1773         * doc/posix-functions/read.texi: Mention the module 'read'.
1774         * doc/posix-functions/write.texi: Mention the effects of the module
1775         'write'.
1777 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1779         c-dtoastr, c-ldtoastr: new modules
1780         These modules provide the same functionality as the modules
1781         dtoastr and ldtoastr except for the formatting taking place in the
1782         C locale.
1783         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
1784         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
1785         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
1786         defined.  Use c_snprintf and c_strtod/c_strtold instead of
1787         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
1788         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
1789         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
1790         modules/c-ldtoastr-tests: New files.
1791         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
1792         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
1794 2020-06-21  Bruno Haible  <bruno@clisp.org>
1796         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
1797         * lib/tzset.c: Include <stdlib.h>, <string.h>.
1799 2020-06-16  Bruno Haible  <bruno@clisp.org>
1801         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
1802         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
1804 2020-06-16  Bruno Haible  <bruno@clisp.org>
1806         thread, thrd: Avoid a compiler warning.
1807         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
1809 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
1811         windows-thread: Avoid a compiler warning.
1812         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
1813         void.
1814         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
1816 2020-06-15  Bruno Haible  <bruno@clisp.org>
1818         unictype/joininggroup-name: Fix warning on 64-bit mingw.
1819         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
1820         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
1821         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
1822         first.
1824 2020-06-06  Bruno Haible  <bruno@clisp.org>
1826         calloc-gnu tests: Avoid a test failure with clang.
1827         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
1828         'volatile', to defeat compiler optimizations.
1830 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1832         getloadavg: fix double-increment bug
1833         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
1834         Linux without glibc, Android, Cygwin.  This fixes a bug I
1835         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
1836         Problem and fix reported by Semen Verchenko in:
1837         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
1839         tempname: use getrandom, not getentropy
1840         This removes a dependency, as getentropy depends on getrandom.
1841         * lib/tempname.c: Include sys/random.h instead of unistd.h.
1842         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
1843         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
1845 2020-06-01  Bruno Haible  <bruno@clisp.org>
1847         doc: New chapter 'Multithreading'.
1848         * doc/multithread.texi: New file.
1849         * doc/gnulib.texi: Include it.
1851 2020-06-01  Bruno Haible  <bruno@clisp.org>
1853         doc: Move 'Running self-tests under valgrind' section.
1854         * doc/gnulib.texi (Build Infrastructure Modules): Include
1855         valgrind-tests.texi here...
1856         (Miscellaneous Notes): ... not here.
1858 2020-06-01  Bruno Haible  <bruno@clisp.org>
1860         doc: Move 'Visual Studio Compatibility' section.
1861         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
1862         here...
1863         (Build Infrastructure Modules): ... not here.
1865 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1867         doc: improve randomness discussion
1868         Inspired by comments from Jeffrey Walton in:
1869         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
1870         * doc/glibc-functions/getentropy.texi (getentropy):
1871         * doc/glibc-functions/getrandom.texi (getrandom):
1872         Improve discussion of problems with "random" data,
1873         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
1875 2020-06-01  Bruno Haible  <bruno@clisp.org>
1877         doc: Fix Texinfo syntax error.
1878         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
1880 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
1882         doc: Change '.' to '@.' where appropriate.
1883         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
1884         * doc/glibc-functions/fstatfs.texi: Likewise.
1885         * doc/glibc-functions/fts_children.texi: Likewise.
1886         * doc/glibc-functions/fts_read.texi: Likewise.
1887         * doc/glibc-functions/getdirentries.texi: Likewise.
1888         * doc/glibc-functions/mkostemp.texi: Likewise.
1889         * doc/glibc-functions/mkostemps.texi: Likewise.
1890         * doc/glibc-functions/mkstemps.texi: Likewise.
1891         * doc/glibc-functions/preadv.texi: Likewise.
1892         * doc/glibc-functions/pwritev.texi: Likewise.
1893         * doc/glibc-functions/sendfile.texi: Likewise.
1894         * doc/glibc-functions/statfs.texi: Likewise.
1895         * doc/gnulib-intro.texi: Likewise.
1896         * doc/gnulib-tool.texi: Likewise.
1897         * doc/intprops.texi: Likewise.
1898         * doc/lib-symbol-visibility.texi: Likewise.
1899         * doc/licenses-texi.texi: Likewise.
1900         * doc/pastposix-functions/bcmp.texi: Likewise.
1901         * doc/pastposix-functions/bcopy.texi: Likewise.
1902         * doc/pastposix-functions/bzero.texi: Likewise.
1903         * doc/pastposix-functions/ecvt.texi: Likewise.
1904         * doc/pastposix-functions/fcvt.texi: Likewise.
1905         * doc/pastposix-functions/ftime.texi: Likewise.
1906         * doc/pastposix-functions/gcvt.texi: Likewise.
1907         * doc/pastposix-functions/getwd.texi: Likewise.
1908         * doc/pastposix-functions/index.texi: Likewise.
1909         * doc/pastposix-functions/mktemp.texi: Likewise.
1910         * doc/pastposix-functions/rindex.texi: Likewise.
1911         * doc/pastposix-functions/wcswcs.texi: Likewise.
1912         * doc/posix-functions/aio_cancel.texi: Likewise.
1913         * doc/posix-functions/aio_error.texi: Likewise.
1914         * doc/posix-functions/aio_fsync.texi: Likewise.
1915         * doc/posix-functions/aio_read.texi: Likewise.
1916         * doc/posix-functions/aio_return.texi: Likewise.
1917         * doc/posix-functions/aio_suspend.texi: Likewise.
1918         * doc/posix-functions/aio_write.texi: Likewise.
1919         * doc/posix-functions/creat.texi: Likewise.
1920         * doc/posix-functions/ctime.texi: Likewise.
1921         * doc/posix-functions/daylight.texi: Likewise.
1922         * doc/posix-functions/fgetpos.texi: Likewise.
1923         * doc/posix-functions/fopen.texi: Likewise.
1924         * doc/posix-functions/freopen.texi: Likewise.
1925         * doc/posix-functions/fseeko.texi: Likewise.
1926         * doc/posix-functions/fsetpos.texi: Likewise.
1927         * doc/posix-functions/fstatat.texi: Likewise.
1928         * doc/posix-functions/fstatvfs.texi: Likewise.
1929         * doc/posix-functions/ftello.texi: Likewise.
1930         * doc/posix-functions/ftruncate.texi: Likewise.
1931         * doc/posix-functions/getrlimit.texi: Likewise.
1932         * doc/posix-functions/lio_listio.texi: Likewise.
1933         * doc/posix-functions/localtime.texi: Likewise.
1934         * doc/posix-functions/lseek.texi: Likewise.
1935         * doc/posix-functions/mkstemp.texi: Likewise.
1936         * doc/posix-functions/mktime.texi: Likewise.
1937         * doc/posix-functions/open.texi: Likewise.
1938         * doc/posix-functions/openat.texi: Likewise.
1939         * doc/posix-functions/opendir.texi: Likewise.
1940         * doc/posix-functions/pread.texi: Likewise.
1941         * doc/posix-functions/pwrite.texi: Likewise.
1942         * doc/posix-functions/readdir.texi: Likewise.
1943         * doc/posix-functions/readdir_r.texi: Likewise.
1944         * doc/posix-functions/scandir.texi: Likewise.
1945         * doc/posix-functions/seekdir.texi: Likewise.
1946         * doc/posix-functions/setrlimit.texi: Likewise.
1947         * doc/posix-functions/statvfs.texi: Likewise.
1948         * doc/posix-functions/strftime.texi: Likewise.
1949         * doc/posix-functions/telldir.texi: Likewise.
1950         * doc/posix-functions/timezone.texi: Likewise.
1951         * doc/posix-functions/tmpfile.texi: Likewise.
1952         * doc/posix-functions/truncate.texi: Likewise.
1953         * doc/posix-functions/tzname.texi: Likewise.
1954         * doc/posix-functions/wcsftime.texi: Likewise.
1955         * doc/windows-sockets.texi: Likewise.
1957 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1959         getrandom-tests: do not assume GRND_RANDOM yields short read
1960         * tests/test-getrandom.c (main): Omit assertion that
1961         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
1962         when b’s size is 100000.  This assertion fails with Linux kernel
1963         5.6.13, as that kernel ignores the GRND_RANDOM flag.
1964         The separate blocking pool is going away in the Linux kernel, and
1965         they’ve added a flag GRND_INSECURE instead; see:
1966         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
1967         The assertion was iffy anyway; what’s to prevent a kernel from
1968         lazily filling a large buffer with random bytes?
1970         read-file-test: pacify --enable-gcc-warnings
1971         * tests/test-read-file.c (test_read_file): Now static.
1973         tempname: merge from glibc and coreutils
1974         Also, merge in Gnulib’s more-recent methods of making it easier
1975         to share between Gnulib and glibc, and fix a few randomness
1976         glitches.
1977         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
1978         (__set_errno): Remove; libc-config.h does that for us.
1979         Do not include <sys/time.h>.
1980         (__secure_getenv) [_LIBC]: New macro.
1981         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
1982         (RANDOM_BITS): Rewrite.
1983         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
1984         (random_value): New typedef.
1985         (try_file, try_dir, try_nocreate): Move up.
1986         (gen_tempname_len, try_tempname_len): New functions.
1987         (gen_tempname_len): Use a constant array rather than a switch.
1988         (try_tempname_len): Don’t assume string length fits in int.
1989         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
1990         has enough entropy (it’s a bit short).
1991         (__gen_tempname): Rewrite in terms of gen_tempname_len.
1992         (__try_tempname): Rewrite in terms of try_tempname_len.
1993         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
1994         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
1995         Add getentropy, libc-config.
1997 2020-05-31  Bruno Haible  <bruno@clisp.org>
1999         getrandom, getentropy: Mention the crypto/gc-random module.
2000         Suggested by Simon Josefsson in
2001         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2002         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2003         crypto/gc-random module.
2004         * doc/glibc-functions/getentropy.texi: Likewise.
2006 2020-05-31  Bruno Haible  <bruno@clisp.org>
2008         getentropy: Enhance tests.
2009         * tests/test-getentropy.c (main): Add one more test.
2010         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2012 2020-05-31  Bruno Haible  <bruno@clisp.org>
2014         getentropy: Work around a macOS and Solaris problem.
2015         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2016         'getentropy' module.
2017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2018         UNISTD_H_HAVE_SYS_RANDOM_H.
2019         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2020         UNISTD_H_HAVE_SYS_RANDOM_H.
2021         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2022         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2023         problem. List more platforms.
2025 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2027         fnmatch: merge from glibc
2028         Also, merge in Gnulib’s more-recent methods of making it easier
2029         to share between Gnulib and glibc.
2030         * lib/fnmatch.c: Reorder includes to match glibc better.
2031         Include libc-config.h instead of config.h.
2032         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2033         Do not include "../locale/elem-hash.h" if _LIBC.
2034         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2035         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2036         Include intprops.h, since glibc has it now.
2037         (SIZE_MAX): Remove; use (size_t) -1 instead.
2038         Omit the "Comment out all this code" ifdef, since Gnulib
2039         has never really needed it.
2040         (STREQ): Remove; no longer used.
2041         (__libc_use_alloca, alloca, alloca_account): Define as
2042         needed if !_LIBC.
2043         (ISWCTYPE): Remove; all uses replaced by iswctype.
2044         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2045         (internal_function): Remove.  All uses removed.
2046         (STRUCT): New macro.
2047         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2048         (WMEMCMP): New macro.
2049         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2050         and <locale/weightwc.h>.
2051         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2052         __builtin_expect.  Check for integer overflow more
2053         systematically.  Account for alloca storage better when
2054         recursive.  Use strnlen instead of strlen for efficiency.
2055         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2056         (struct STRUCT): New type.
2057         (FCT, EXT): New ENDS and ALLOCA_USED args.
2058         All callers changed.
2059         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2060         Simplify by assuming WIDE_CHAR_SUPPORT.
2061         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2062         Cast cold to UCHAR to avoid signedness warning.
2063         (END): Check for invalid pattern.
2064         (EXT): Improve alloca/malloc checking (taken from glibc),
2065         and improve it some more by using intprops.h and checking
2066         for integer overflow and using bool for booleans.
2067         * lib/libc-config.h (compat_symbol): New macro.
2068         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2069         acceptable to non-GCC when a trailing semicolon is added.
2070         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2071         libc-config, strnlen.  Remove alloca.
2073 2020-05-31  Bruno Haible  <bruno@clisp.org>
2075         getrandom: Doc and test tweaks.
2076         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2077         it sets errno when failing.
2078         * tests/test-getrandom.c (main): Disable the high-quality check on those
2079         platforms on which it fails.
2080         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2081         Cygwin to the list of platforms that don't have the function. Add a note
2082         about the quality of the result.
2083         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2084         declaration; this is fixed by module 'getrandom'.
2086 2020-05-31  Bruno Haible  <bruno@clisp.org>
2088         getrandom: Add support for native Windows.
2089         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2090         <wincrypt.h>.
2091         (CRYPT_VERIFY_CONTEXT): New macro.
2092         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2093         'A'.
2094         (GetProcAddress): New macro.
2095         (BCryptGenRandomFuncType): New type.
2096         (BCryptGenRandomFunc, initialized): New variables.
2097         (initialize): New function.
2098         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2099         <wincrypt.h> API as fallback.
2100         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2101         * modules/getrandom (Link): New section.
2102         * modules/getentropy (Link): Likewise.
2103         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2104         $(LIB_GETRANDOM).
2105         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2106         $(LIB_GETRANDOM).
2107         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2108         against $(LIB_GETRANDOM).
2109         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2110         support.
2112 2020-05-31  Bruno Haible  <bruno@clisp.org>
2114         getrandom: Simplify the determination of the random number devices.
2115         Suggested by Paul Eggert in
2116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2117         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2118         macros.
2119         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2121 2020-05-31  Bruno Haible  <bruno@clisp.org>
2123         crypto/gc-random: Fix list of crypto devices for Solaris.
2124         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2126 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2128         list: fix GCC warnings
2129         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2130         (gl_tree_next_node, gl_tree_node_nx_set_value)
2131         (gl_tree_previous_node, gl_tree_next_node):
2132         Mark unused arguments.
2133         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2134         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2135         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2137         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2138         the same variable name in nested scopes.
2140 2020-05-31  Bruno Haible  <bruno@clisp.org>
2142         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2143         Reported by Akim Demaille in
2144         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2145         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2146         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2147         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2148         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2149         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2151 2020-05-30  Bruno Haible  <bruno@clisp.org>
2153         wmemchr: Relicense under LGPLv2+.
2154         * modules/wmemchr (License): Set to LGPLv2+.
2156 2020-05-30  Bruno Haible  <bruno@clisp.org>
2158         wmempcpy: New module.
2159         Reported by Paul Eggert in
2160         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2161         * lib/wchar.in.h (wmempcpy): New declaration.
2162         * lib/wmempcpy.c: New file.
2163         * m4/wmempcpy.m4: New file.
2164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2166         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2167         HAVE_WMEMPCPY.
2168         * modules/wmempcpy: New file.
2169         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2170         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2171         * modules/mempcpy (Description): Fix typo.
2173 2020-05-30  Bruno Haible  <bruno@clisp.org>
2175         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2176         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2178 2020-05-30  Bruno Haible  <bruno@clisp.org>
2180         sys_random: Work around macOS bug.
2181         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2182         <stdlib.h> before <sys/random.h>.
2183         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2184         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2185         first.
2186         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2188 2020-05-30  Bruno Haible  <bruno@clisp.org>
2190         getrandom: Override incompatible system function on Solaris 11.
2191         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2192         * lib/getrandom.c (getrandom): When the system has getrandom, just
2193         invoke it.
2194         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2195         system's getrandom function's prototype is not the expected one.
2196         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2197         REPLACE_GETRANDOM.
2198         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2199         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2200         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2201         EAGAIN.
2202         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2203         Solaris problem.
2205 2020-05-30  Bruno Haible  <bruno@clisp.org>
2207         sys_random: Add C++ tests.
2208         * tests/test-sys_random-c++.cc: New file.
2209         * modules/sys_random-c++-tests: New file.
2210         * modules/sys_random-tests (Depends-on): Depend on it.
2212         sys_random: Add tests.
2213         * tests/test-sys_random.c: New file.
2214         * modules/sys_random-tests: New file.
2216         sys_random: New module.
2217         * lib/sys_random.in.h: Use the common idioms for overridable header
2218         files.
2219         * m4/sys_random_h.m4: New file.
2220         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2221         * modules/sys_random: New file.
2222         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2223         (Depends-on): Add sys_random.
2224         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2225         gl_UNISTD_MODULE_INDICATOR.
2226         (Makefile.am): Don't generate sys/random.h here.
2227         * doc/glibc-headers/sys_random.texi: New file.
2228         * doc/gnulib.texi: Include it.
2230 2020-05-30  Bruno Haible  <bruno@clisp.org>
2232         unistd: Remove conflicting declaration of getrandom().
2233         * lib/unistd.in.h (getrandom): Remove declaration.
2234         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2235         declared.
2236         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2237         HAVE_GETRANDOM.
2238         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2239         HAVE_GETRANDOM.
2241 2020-05-30  Bruno Haible  <bruno@clisp.org>
2243         getrandom: Add tests.
2244         * tests/test-getrandom.c: New file.
2245         * modules/getrandom-tests: New file.
2247 2020-05-30  Bruno Haible  <bruno@clisp.org>
2249         crypto/gc-random: Fix link error on MSVC.
2250         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2251         * modules/crypto/gc-random (Link): New section.
2252         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2253         $(LIB_GC_RANDOM).
2255 2020-05-30  Bruno Haible  <bruno@clisp.org>
2257         Don't assume that UNICODE is not defined.
2258         Many Windows API functions are defined differently (redirecting to a
2259         function with suffix 'W') if the application defines the macro UNICODE
2260         than by default (redirecting to a function with suffix 'A').
2261         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2262         variant with suffix 'A'.
2263         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2264         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2265         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2266         * lib/getlogin.c (GetUserName): Likewise.
2267         * lib/getlogin_r.c (GetUserName): Likewise.
2268         * lib/gettimeofday.c (LoadLibrary): Likewise.
2269         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2270         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2271         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2272         * lib/mountlist.c (GetDriveType): Likewise.
2273         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2274         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2275         Likewise.
2276         * lib/physmem.c (GetModuleHandle): Likewise.
2277         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2278         PeekMessage, DispatchMessage): Likewise.
2279         * lib/progreloc.c (GetModuleFileName): Likewise.
2280         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2281         * lib/read.c (GetNamedPipeHandleState): Likewise.
2282         * lib/readdir.c (FindNextFile): Likewise.
2283         * lib/relocatable.c (GetModuleFileName): Likewise.
2284         * lib/rename.c (MoveFileEx): Likewise.
2285         * lib/rewinddir.c (FindFirstFile): Likewise.
2286         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2287         PeekMessage, DispatchMessage): Likewise.
2288         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2289         * lib/socket.c (WSASocket): Likewise.
2290         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2291         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2292         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2293         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2294         * lib/tmpdir.c (GetTempPath): Likewise.
2295         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2296         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2297         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2298         * lib/windows-cond.c (CreateEvent): Likewise.
2299         * lib/windows-rwlock.c (CreateEvent): Likewise.
2300         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2301         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2302         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2303         * lib/write.c (GetNamedPipeHandleState): Likewise.
2305 2020-05-30  Bruno Haible  <bruno@clisp.org>
2307         physmem: Fix compilation errors on MSVC.
2308         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2309         * modules/physmem (Depends-on): Add unistd.
2311 2020-05-29  Bruno Haible  <bruno@clisp.org>
2313         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2314         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2315         LDADD a second time, after the second occurrence of libtests.a.
2316         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2318 2020-05-29  Bruno Haible  <bruno@clisp.org>
2320         fnmatch: Rely on more gnulib modules.
2321         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2322         wmempcpy, mempcpy.
2323         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2324         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2325         HAVE_MEMPCPY are all 1.
2326         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2327         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2329 2020-05-29  Bruno Haible  <bruno@clisp.org>
2331         Avoid dynamic lookup of Windows API functions when possible.
2332         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2333         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2334         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2335         (use_win32_p): Define differently.
2336         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2337         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2338         for Windows XP or higher.
2340 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2342         read-file: disable buffering if RF_SENSITIVE is set
2343         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2344         Suggested by Glenn Strauss.
2345         (fread_file): Suggest calling setvbuf before calling this
2346         function.  Suggested by Bruno Haible.
2348 2020-05-29  Bruno Haible  <bruno@clisp.org>
2350         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2351         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2352         program.
2353         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2354         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2355         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2356         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2358 2020-05-29  Bruno Haible  <bruno@clisp.org>
2360         Fix compilation error on native Windows (regression from 2020-05-28).
2361         Reported by Daiki Ueno.
2362         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2363         macro when not using dynamic loading.
2364         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2365         QueryFullProcessImageNameFunc): Likewise.
2366         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2367         GetFinalPathNameByHandleFunc): Likewise.
2369 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2371         fopen-gnu-tests: fix "\x" escape usage
2372         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2374 2020-05-28  Bruno Haible  <bruno@clisp.org>
2376         Avoid dynamic loading of Windows API functions when possible.
2377         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2378         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2379         * lib/gettimeofday.c (GetProcAddress,
2380         GetSystemTimePreciseAsFileTimeFuncType,
2381         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2382         define in a build for Windows 8 or higher.
2383         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2384         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2385         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2386         in a build for Windows Vista or higher.
2387         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2388         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2389         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2391 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2393         explicit_bzero-tests: improve -Wmissing-declarations pacification
2394         * tests/test-explicit_bzero.c: Now noinline.
2395         Suggested by Bruno Haible in:
2396         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2398 2020-05-28  Bruno Haible  <bruno@clisp.org>
2400         Fix build errors due to read-file changes (regression from 2020-05-27).
2401         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2402         invocation.
2403         * tests/test-sameacls.c (main): Likewise.
2404         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2405         read_binary_file.
2406         * tests/test-pipe-filter-ii1.c (main): Likewise.
2408 2020-05-28  Bruno Haible  <bruno@clisp.org>
2410         fts: Make more robust in multithreaded applications.
2411         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2412         * modules/fts (Depends-on): Add 'open'.
2414 2020-05-28  Bruno Haible  <bruno@clisp.org>
2416         relocatable-prog: Make more robust in multithreaded applications.
2417         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2418         relocatable-prog-wrapper.
2419         (find_executable): Pass an O_CLOEXEC flag to open().
2420         * modules/relocatable-prog (Depends-on): Add 'open'.
2422 2020-05-28  Bruno Haible  <bruno@clisp.org>
2424         getloadavg: Make more robust in multithreaded applications.
2425         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2426         Simplify use of O_CLOEXEC.
2427         * modules/getloadavg (Depends-on): Add 'open'.
2429 2020-05-28  Bruno Haible  <bruno@clisp.org>
2431         vma-iter: Make more robust in multithreaded applications.
2432         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2433         open().
2434         * modules/vma-iter (Depends-on): Add 'open'.
2436 2020-05-28  Bruno Haible  <bruno@clisp.org>
2438         truncate: Make more robust in multithreaded applications.
2439         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2441 2020-05-28  Bruno Haible  <bruno@clisp.org>
2443         pagealign_alloc: Make more robust in multithreaded applications.
2444         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2445         open().
2446         * modules/pagealign_alloc (Depends-on): Add 'open'.
2448 2020-05-28  Bruno Haible  <bruno@clisp.org>
2450         openat: Make more robust in multithreaded applications.
2451         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2453 2020-05-28  Bruno Haible  <bruno@clisp.org>
2455         at-internal: Make more robust in multithreaded applications.
2456         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2457         open().
2459 2020-05-28  Bruno Haible  <bruno@clisp.org>
2461         mountlist: Make more robust in multithreaded applications.
2462         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2463         open().
2464         * modules/mountlist (Depends-on): Add 'open'.
2466 2020-05-28  Bruno Haible  <bruno@clisp.org>
2468         login_tty: Make more robust in multithreaded applications.
2469         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2470         * modules/login_tty (Depends-on): Add 'open'.
2472 2020-05-28  Bruno Haible  <bruno@clisp.org>
2474         javacomp: Make more robust in multithreaded applications.
2475         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2476         open().
2477         * modules/javacomp (Depends-on): Add 'open'.
2479 2020-05-28  Bruno Haible  <bruno@clisp.org>
2481         getprogname: Make more robust in multithreaded applications.
2482         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2483         * modules/getprogname (Depends-on): Add 'open'.
2485 2020-05-28  Bruno Haible  <bruno@clisp.org>
2487         get_progname_of: Make more robust in multithreaded applications.
2488         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2489         open().
2490         * modules/get_progname_of (Depends-on): Add 'open'.
2492 2020-05-28  Bruno Haible  <bruno@clisp.org>
2494         get_ppid_of: Make more robust in multithreaded applications.
2495         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2496         * modules/get_ppid_of (Depends-on): Add 'open'.
2498 2020-05-28  Bruno Haible  <bruno@clisp.org>
2500         get-rusage-as: Make more robust in multithreaded applications.
2501         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2502         flag to open().
2503         * modules/get-rusage-as (Depends-on): Add 'open'.
2505 2020-05-28  Bruno Haible  <bruno@clisp.org>
2507         crypto/gc: Make more robust in multithreaded applications.
2508         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2509         * modules/crypto/gc (Depends-on): Add 'open'.
2511 2020-05-28  Bruno Haible  <bruno@clisp.org>
2513         copy-file: Make more robust in multithreaded applications.
2514         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2515         open().
2517 2020-05-28  Bruno Haible  <bruno@clisp.org>
2519         chown: Make more robust in multithreaded applications.
2520         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2522 2020-05-28  Bruno Haible  <bruno@clisp.org>
2524         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2525         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2527 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2529         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2530         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2531         specified on Windows.
2532         * tests/test-fopen-gnu.c (DATA): New define.
2533         (main): Add test for reading binary files with an 'e' flag.
2535 2020-05-27  Bruno Haible  <bruno@clisp.org>
2537         Don't assume that UNICODE is not defined.
2538         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2539         differently if the application defines the macro UNICODE.
2540         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2541         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2542         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2543         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2544         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2546 2020-05-27  Bruno Haible  <bruno@clisp.org>
2548         Improve pattern for defining _WIN32_WINNT.
2549         Newer versions of the Windows API may not only add, but also remove API
2550         functions. Therefore, when the user is e.g. building for Windows 10, we
2551         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2552         use of APIs that were present in Windows 8 but removed in Windows 10.
2553         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2554         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2555         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2556         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2557         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2559 2020-05-27  Bruno Haible  <bruno@clisp.org>
2561         javacomp: Make more robust in multithreaded applications.
2562         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2563         * modules/javacomp (Depends-on): Add fopen-gnu.
2565 2020-05-27  Bruno Haible  <bruno@clisp.org>
2567         mountlist: Make more robust in multithreaded applications.
2568         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2569         to fopen.
2570         * modules/mountlist (Depends-on): Add fopen-gnu.
2572 2020-05-27  Bruno Haible  <bruno@clisp.org>
2574         sethostname: Make more robust in multithreaded applications.
2575         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2576         * modules/sethostname (Depends-on): Add fopen-gnu.
2578 2020-05-27  Bruno Haible  <bruno@clisp.org>
2580         readutmp: Make more robust in multithreaded applications.
2581         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2582         * modules/readutmp (Depends-on): Add fopen-gnu.
2584 2020-05-27  Bruno Haible  <bruno@clisp.org>
2586         getpass: Make more robust in multithreaded applications.
2587         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2588         * modules/getpass (Depends-on): Add fopen-gnu.
2590 2020-05-27  Bruno Haible  <bruno@clisp.org>
2592         getloadavg: Make more robust in multithreaded applications.
2593         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2594         * modules/getloadavg (Depends-on): Add fopen-gnu.
2596 2020-05-27  Bruno Haible  <bruno@clisp.org>
2598         exclude: Make more robust in multithreaded applications.
2599         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2600         * modules/exclude (Depends-on): Add fopen-gnu.
2602 2020-05-27  Bruno Haible  <bruno@clisp.org>
2604         bitset: Make more robust in multithreaded applications.
2605         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2606         'e' flag to fopen.
2607         * modules/bitset (Depends-on): Add fopen-gnu.
2609 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2611         read-file: add RF_SENSITIVE flag
2612         * lib/read-file.h (RF_SENSITIVE): New define.
2613         * lib/read-file.c (fread_file, read_file): Take into account of
2614         RF_SENSITIVE flag.
2615         * modules/read-file (Depends-on): Add explicit_bzero.
2616         This adds an alternative behavior of those functions to explicitly
2617         clear the internal memory block when it becomes unused.  This is
2618         useful for reading sensitive information from a file.
2620 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2622         read-file: add flags to modify reading behavior
2623         * lib/read-file.h (RF_BINARY): New define.
2624         (fread_file, read_file): Take FLAGS argument.
2625         (read_binary_file): Remove.
2626         * lib/read-file.c (internal_read_file): Merge into ...
2627         (read_file): ... here.
2628         * modules/read-file-tests (Files): Add "tests/macros.h".
2629         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2630         * NEWS: Mention this change.
2632 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2634         doc/gnulib-intro.texi: add missing "to" in sentence
2635         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2636         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2637         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2639 2020-05-26  Bruno Haible  <bruno@clisp.org>
2641         count-one-bits: Fix MSVC specific code.
2642         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2644         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2645         using GCC.
2646         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2647         (__popcnt64): In 32-bit mode, define as an inline function.
2648         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2650 2020-05-26  Bruno Haible  <bruno@clisp.org>
2652         argz: Avoid name clashes through argz.h.
2653         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2654         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2655         * lib/argz.h: Don't use __ prefixed identifiers.
2656         (const): Remove definition.
2657         (argz_next): Remove inline definitions.
2659 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2661         read-file: make use of fopen-gnu
2662         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2663         (read_binary_file): Likewise.
2664         * modules/read-file (Depends-on): Add fopen-gnu.
2666 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2668         getentropy, getrandom: new modules
2669         * MODULES.html.sh (func_all_modules):
2670         * lib/unistd.in.h (getentropy, getrandom):
2671         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2672         * modules/unistd (unistd.h):
2673         Add support for getentropy, getrandom.
2674         * doc/glibc-functions/getentropy.texi (getentropy):
2675         * doc/glibc-functions/getrandom.texi (getrandom):
2676         These are now fixed on some platforms.
2677         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2678         * m4/getentropy.m4, m4/getrandom.m4:
2679         * modules/getentropy, modules/getentropy-tests:
2680         * modules/getrandom, modules/getrandom-tests:
2681         * tests/test-getentropy.c, tests/test-getrandom.c:
2682         New files.
2684 2020-05-25  Bruno Haible  <bruno@clisp.org>
2686         Add missing C99 dependencies.
2687         Reported by Paul Smith <psmith@gnu.org> in
2688         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2689         * modules/assert (Depends-on): Add c99.
2690         * modules/filenamecat-lgpl (Depends-on): Likewise.
2691         * modules/libc-config (Depends-on): Likewise.
2692         * modules/mktime (Depends-on): Likewise.
2693         * modules/random_r (Depends-on): Likewise.
2694         * modules/regex (Depends-on): Likewise.
2695         * modules/scratch_buffer (Depends-on): Likewise.
2696         * modules/timespec-add (Depends-on): Likewise.
2697         * modules/timespec-sub (Depends-on): Likewise.
2698         * modules/verify (Depends-on): Likewise.
2700 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2702         explicit_bzero-tests: pacify -Wmissing-declarations
2703         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2704         Now static.
2706 2020-05-24  Bruno Haible  <bruno@clisp.org>
2708         fopen-gnu: Add tests.
2709         * tests/test-fopen-gnu.c: New file.
2710         * modules/fopen-gnu-tests: New file.
2712         fopen-gnu: New module.
2713         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2714         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2715         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2716         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2717         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2718         * modules/fopen-gnu: New file.
2719         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
2721 2020-05-24  Bruno Haible  <bruno@clisp.org>
2723         open, openat: Really support O_CLOEXEC.
2724         * lib/open.c (open): When have_cloexec is still undecided, do pass a
2725         O_CLOEXEC flag to orig_open.
2726         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
2727         pass a O_CLOEXEC flag to orig_openat.
2728         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
2729         * modules/open-tests (Depends-on): Add fcntl.
2730         * modules/openat-tests (Depends-on): Likewise.
2731         * modules/fcntl-safer-tests (Depends-on): Likewise.
2733 2020-05-24  Bruno Haible  <bruno@clisp.org>
2735         fopen: Fix the trailing slash workaround.
2736         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
2737         write access. Pass the right flags to open().
2738         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
2740 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2742         assure: new macro ‘affirm’
2743         * lib/assure.h: Include verify.h.
2744         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
2745         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
2746         and commentary by Bruno Haible in:
2747         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
2748         * modules/assure (Depends-on:): Add verify.
2750 2020-05-23  Bruno Haible  <bruno@clisp.org>
2752         calloc-gnu: Make test work in non-flat address spaces.
2753         Uses code by Paul Eggert.
2754         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
2755         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
2757 2020-05-23  Bruno Haible  <bruno@clisp.org>
2759         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
2760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
2761         AC_RUN_IFELSE invocations.
2763 2020-05-23  Bruno Haible  <bruno@clisp.org>
2765         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
2766         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
2767         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
2768         don't have it.
2769         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2770         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
2771         don't have it.
2772         * lib/isnanf-nolibm.h (__has_builtin): New macro.
2773         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2774         it.
2775         * lib/isnanl-nolibm.h (__has_builtin): New macro.
2776         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2777         it.
2778         * lib/math.in.h (__has_builtin): New macro.
2779         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2780         it.
2781         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2782         it.
2783         (isnan): Don't use the builtins on clang versions that don't have
2784         __builtin_isnanf and __builtin_isnanl.
2786 2020-05-23  Bruno Haible  <bruno@clisp.org>
2788         calloc-gnu: Avoid wrong configure results with clang.
2789         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
2790         'volatile', to defeat compiler optimizations.
2792 2020-05-23  Bruno Haible  <bruno@clisp.org>
2794         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
2795         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
2796         'long double' values by reference, with values taken from a statically
2797         allocated array.
2799 2020-05-23  Bruno Haible  <bruno@clisp.org>
2801         findprog-in: Ignore directories.
2802         Reported by Frederick Eaton via Dmitry Goncharov in
2803         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
2804         * lib/findprog-in.c (find_in_given_path): When the file found is a
2805         directory, set errno to EACCES and, during a PATH search, continue
2806         searching.
2807         * modules/findprog-in (Depends-on): Add sys_stat, stat.
2809 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2811         verify: document ‘assume’ better
2812         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
2814 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
2816         gendocs: Clarify licenses for templates.
2817         * doc/gendocs_template: Add a GNU All-Permissive license notice
2818         and bump Parent-Version.
2819         * doc/gendocs_template_min: Add a GNU All-Permissive license
2820         notice and copy the explanatory comment about the license notice
2821         at the bottom from gendocs_template.
2823 2020-05-21  Bruno Haible  <bruno@clisp.org>
2825         group-member: Relicense under LGPLv2+.
2826         Jim Meyering's approval is in
2827         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
2828         Paul Eggert's approval is in
2829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
2830         Eric Blake's approval is in
2831         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
2832         * modules/group-member (License): Change to LGPLv2+.
2834 2020-05-21  Bruno Haible  <bruno@clisp.org>
2836         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
2837         Reported by Tim Rühsen in
2838         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2839         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
2841 2020-05-21  Bruno Haible  <bruno@clisp.org>
2843         regex: Avoid wrong configure results with "clang -fsanitize=leak".
2844         Reported by Tim Rühsen in
2845         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2846         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
2847         before returning with status 0.
2849 2020-05-21  Bruno Haible  <bruno@clisp.org>
2851         glob: Avoid wrong configure results with "clang -fsanitize=leak".
2852         Reported by Tim Rühsen in
2853         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2854         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
2856 2020-05-21  Bruno Haible  <bruno@clisp.org>
2858         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
2859         Reported by Tim Rühsen in
2860         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2861         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
2862         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
2863         respectively.
2865 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
2867         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
2868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
2870 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2872         ftoastr: fix ifndef typo
2873         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
2875 2020-05-19  Bruno Haible  <bruno@clisp.org>
2877         havelib: Tweak documentation.
2878         * doc/havelib.texi (Searching for Libraries): Fix typo.
2880 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2882         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
2883         This was needed earlier because modules had to import the main script,
2884         but that is no longer true.  Rename the script so that it is
2885         consistent with all other scripts in gnulib and uses hyphens.
2886         * build-aux/vcs_to_changelog.py: Rename to...
2887         * build-aux/vcs-to-changelog.py: ... this.
2888         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
2889         * modules/vcs-to-changelog: Likewise.
2891 2020-05-17  Bruno Haible  <bruno@clisp.org>
2893         Clarify intended usage of the license file modules.
2894         Reported by Asher Gordon <AsDaGo@posteo.net> in
2895         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
2896         * doc/licenses-texi.texi (License Texinfo sources): Mention the
2897         GNU AGPL. Explain the intended usage of the modules.
2898         * modules/fdl (Notice): Discourage use as a module.
2899         * modules/fdl-1.3 (Notice): Likewise.
2901 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
2903         hash: add hash_xinsert
2904         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
2906 2020-05-16  Bruno Haible  <bruno@clisp.org>
2908         findprog-lgpl: Fix link error (existing since 2008-09-02).
2909         * modules/findprog-lgpl (Makefile.am): Arrange to compile
2910         findprog-lgpl.c, not findprog.c.
2911         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
2912         XNMALLOC.
2914 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
2916         c-stack: pacify -Wunused-result when DEBUG
2917         Problem reported by Marc Nieper-Wißkirchen in:
2918         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
2919         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2920         Explicitly ignore write failures.
2922 2020-05-13  Jim Meyering  <meyering@fb.com>
2924         announce-gen: improve a comment
2925         * build-aux/announce-gen: Improve comment.
2927 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
2929         xalloc: pacify -Wanalyzer-possible-null-argument
2930         Problem reported for GCC 10.1.0 by Bruno Haible in:
2931         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
2932         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
2933         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
2934         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
2936 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2938         careadlinkat: fix GCC 10 workaround
2939         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
2940         Massage the code so that it’s closer to what it was before
2941         the GCC 10.1.0 workaround was introduced.  This fixes
2942         a loop when !buffer and the bug workaround is in effect.
2943         Remove unnecessary casts.  Defend in a different way
2944         against (buffer && !buffer_size), by adding at least 1
2945         to buf_size each time through the loop.
2947 2020-05-10  Bruno Haible  <bruno@clisp.org>
2949         doc: Mark HP-UX as unsupported.
2950         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
2952 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2954         careadlinkat: limit GCC workaround
2955         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
2956         10.1.0 and later, since the workaround is pretty bad and the GCC
2957         bug should get fixed.
2959 2020-05-10  Bruno Haible  <bruno@clisp.org>
2961         havelib: Enhance documentation.
2962         * doc/havelib.texi (Searching for Libraries): Mention the bad
2963         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
2965 2020-05-10  Bruno Haible  <bruno@clisp.org>
2967         attribute: Clarify list of attributes.
2968         * lib/attribute.h: Reorder the list of attributes, and group them by
2969         purpose.
2971 2020-05-10  Bruno Haible  <bruno@clisp.org>
2973         string: Fix compilation error in C++ mode.
2974         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
2975         _GL_WARN_ON_USE.
2976         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
2977         instead of _GL_WARN_ON_USE.
2979 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
2981         announce-gen: add support for dist-lzip
2982         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
2984 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2986         manywarnings: port to GCC 10.1
2987         * build-aux/gcc-warning.spec:
2988         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
2989         Add GCC 10.1.0 warnings.
2991         careadlinkat: pacify -Wreturn-local-addr
2992         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
2993         Pacify gcc 10’s -Wreturn-local-addr option.
2994         Simplify some of the later code.
2996 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2998         attribute: remove ATTRIBUTE_DEPRECATED
2999         * lib/attribute.h: Improve recently-added comments, mostly
3000         by shortening them (use active voice, etc.).
3001         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3002         Problem reported by Bruno Haible in:
3003         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3005 2020-05-09  Bruno Haible  <bruno@clisp.org>
3007         attribute: Add comments.
3008         * lib/attribute.h: Document each macro.
3010 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3012         bitset: use the attribute module
3013         * modules/bitset: Depend on 'attribute'.
3014         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3015         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3016         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3017         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3019 2020-05-09  Bruno Haible  <bruno@clisp.org>
3021         c-stack: Fix warning when DEBUG is enabled.
3022         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3023         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3024         * lib/c-stack.c: Include <stdio.h>.
3026 2020-05-09  Bruno Haible  <bruno@clisp.org>
3028         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3029         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3030         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3031         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3032         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3033         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3034         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3035         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3036         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3037         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3038         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3039         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3040         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3042 2020-05-09  Bruno Haible  <bruno@clisp.org>
3044         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3045         Reported by Akim Demaille in
3046         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3047         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3048         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3049         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3051 2020-05-09  Bruno Haible  <bruno@clisp.org>
3053         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3054         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3055         that usually comes from m4/gnulib-common.m4.
3056         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3058 2020-05-09  Bruno Haible  <bruno@clisp.org>
3060         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3061         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3062         that usually comes from m4/gnulib-common.m4.
3063         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3064         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3065         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3067 2020-05-09  Bruno Haible  <bruno@clisp.org>
3069         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3070         * lib/uchar.in.h (char16_t): Define as macro if
3071         GNULIB_OVERRIDES_CHAR16_T.
3072         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3073         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3074         (gl_UCHAR_H): Invoke them.
3075         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3076         GNULIB_OVERRIDES_CHAR32_T.
3077         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3078         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3079         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3080         GNULIB_OVERRIDES_CHAR32_T.
3082 2020-05-09  Bruno Haible  <bruno@clisp.org>
3084         Macro tweaks.
3085         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3086         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3088 2020-05-08  Bruno Haible  <bruno@clisp.org>
3090         c32rtomb: Avoid compilation failure on Haiku.
3091         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3092         inline definitions.
3093         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3095 2020-05-08  Bruno Haible  <bruno@clisp.org>
3097         mbrtoc32: Avoid compilation failure on Haiku.
3098         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3099         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3100         AC_CHECK_FUNCS_ONCE.
3101         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3103 2020-05-08  Bruno Haible  <bruno@clisp.org>
3105         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3106         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3108 2020-05-08  Bruno Haible  <bruno@clisp.org>
3110         list: Update documentation.
3111         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3112         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3113         * doc/containers.texi (Container data types): Document the new list
3114         operations and their complexity.
3116 2020-05-08  Bruno Haible  <bruno@clisp.org>
3118         ignore-value tests: Use module 'attribute'.
3119         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3120         * tests/test-ignore-value.c: Include attribute.h.
3121         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3122         * modules/ignore-value-tests (Depends-on): Add attribute.
3124 2020-05-08  Bruno Haible  <bruno@clisp.org>
3126         uniname/uniname: Use module 'attribute'.
3127         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3128         * lib/uniname/uninames.h: Regenerated.
3129         * lib/uniname/uniname.c: Include attribute.h.
3130         * modules/uniname/uniname (Depends-on): Add attribute.
3132 2020-05-08  Bruno Haible  <bruno@clisp.org>
3134         c32rtomb: Use module 'attribute'.
3135         * lib/c32rtomb.c: Include attribute.h.
3136         (FALLTHROUGH): Remove macro.
3137         * modules/c32rtomb (Depends-on): Add attribute.
3139 2020-05-08  Bruno Haible  <bruno@clisp.org>
3141         xsize: Use module 'attribute'.
3142         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3143         * modules/xsize (Depends-on): Add attribute.
3145 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3147         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3149         * lib/attribute.h: Minor style fixes.
3151         Fix version-etc glitch on OpenIndiana
3152         Problem reported by Mats Erik Andersson in:
3153         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3154         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3155         that now clashes with gnulib-common.h.  All uses changed.
3157 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3159         attribute: new module
3160         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3161         * MODULES.html.sh: Add attribute.
3162         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3163         * doc/gnulib.texi (Particular Modules): Add Attributes.
3164         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3165         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3166         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3167         * lib/vasnprintf.c:
3168         Include attribute.h, and let it define FALLTHROUGH.
3169         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3170         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3171         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3172         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3173         This is a copy since Gawk doesn’t use Gnulib.
3174         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3175         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3176         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3177         Keep the existing FALLTHROUGH definition since Glibc might use it,
3178         and it does no harm to Gnulib’s FALLTHROUGH.
3179         * lib/fts_.h, lib/inttostr.h:
3180         (__GNUC_PREREQ): Remove; no longer needed.
3181         (__attribute_warn_unused_result__): Remove.  All uses
3182         replaced by _GL_ATTRIBUTE_NODISCARD.
3183         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3184         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3185         __attribute__ ((__warn_unused_result__)), for forward
3186         compatibility to C2X.
3187         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3188         _GL_ATTRIBUTE_NODISCARD.
3189         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3190         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3191         replaced by gl_COMMON_BODY’s implementation, which has a
3192         slightly different signature.
3193         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3194         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3195         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3196         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3197         No doubt all uses should be replaced, at some point.
3198         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3199         (_Noreturn): Use it.
3200         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3201         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3202         (_GL_ATTRIBUTE_COLD)
3203         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3204         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3205         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3206         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3207         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3208         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3209         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3210         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3211         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3212         (_GL_ATTRIBUTE_SENTINEL): New macros.
3213         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3214         * modules/fnmatch, modules/freopen-safer, modules/fts:
3215         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3216         * modules/quotearg, modules/savewd:
3217         * modules/unistdio/u16-u16-vasnprintf:
3218         * modules/unistdio/u16-vasnprintf:
3219         * modules/unistdio/u32-u32-vasnprintf:
3220         * modules/unistdio/u32-vasnprintf:
3221         * modules/unistdio/u8-u8-vasnprintf:
3222         * modules/unistdio/u8-vasnprintf:
3223         * modules/unistdio/ulc-vasnprintf:
3224         * modules/unistr/u8-uctomb, modules/vasnprintf:
3225         (Depends-on:): Add attribute module.
3227 2020-05-03  Bruno Haible  <bruno@clisp.org>
3229         bison: Fix today's commit.
3230         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3232 2020-05-03  Bruno Haible  <bruno@clisp.org>
3234         list-c++: Add get_first, get_last, set_first, set_last operations.
3235         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3236         set_first, set_last.
3237         * lib/gl_list.h: Tweak comments.
3239 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3241         bison: rely on bison's %require to check a version requirement
3242         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3243         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3244         enough of not.
3245         So far it is the only know Yacc tool that supports '%require'.
3246         Other yaccs will actually even choke on seeing the -o option after the
3247         input file name.
3248         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3250 2020-05-02  Bruno Haible  <bruno@clisp.org>
3252         list: Add get_first, get_last, set_first, set_last operations.
3253         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3254         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3255         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3257 2020-05-02  Bruno Haible  <bruno@clisp.org>
3259         list: Remove redundant code for remove_first and remove_last operations.
3260         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3261         remove_first, remove_last.
3262         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3263         * lib/gl_array_list.c: Revert last change.
3264         * lib/gl_carray_list.c: Likewise.
3265         * lib/gl_anylinked_list2.h: Likewise.
3266         * lib/gl_linked_list.c: Likewise.
3267         * lib/gl_linkedhash_list.c: Likewise.
3268         * lib/gl_anytree_list2.h: Likewise.
3269         * lib/gl_avltree_list.c: Likewise.
3270         * lib/gl_avltreehash_list.c: Likewise.
3271         * lib/gl_rbtree_list.c: Likewise.
3272         * lib/gl_rbtreehash_list.c: Likewise.
3273         * lib/gl_sublist.c: Likewise.
3275 2020-05-02  Bruno Haible  <bruno@clisp.org>
3277         bison-i18n: Add support for cross-compilation.
3278         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3279         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3280         via Akim Demaille <akim@lrde.epita.fr>.
3281         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3282         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3283         Don't use bison's --print-localedir option when cross-compiling.
3284         Also, fix an error message and a comment.
3286 2020-05-01  Bruno Haible  <bruno@clisp.org>
3288         list: Add remove_first and remove_last operations.
3289         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3290         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3291         * lib/gl_list.h (struct gl_list_implementation): Add fields
3292         remove_first, remove_last.
3293         (gl_list_remove_first, gl_list_remove_last): New functions.
3294         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3295         functions, based on gl_array_remove_at.
3296         (gl_array_list_implementation): Implement the new operations.
3297         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3298         New functions, based on gl_carray_remove_at.
3299         (gl_carray_list_implementation): Implement the new operations.
3300         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3301         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3302         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3303         new operations.
3304         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3305         Likewise.
3306         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3307         New functions, based on gl_tree_remove_at.
3308         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3309         new operations.
3310         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3311         Likewise.
3312         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3313         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3314         Likewise.
3315         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3316         New functions, based on gl_sublist_remove_at.
3317         (gl_sublist_list_implementation): Implement the new operations.
3318         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3319         remove_last.
3320         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3321         gl_list_remove_last.
3322         * tests/test-avltree_list.c (main): Likewise.
3323         * tests/test-avltreehash_list.c (main): Likewise.
3324         * tests/test-carray_list.c (main): Likewise.
3325         * tests/test-linked_list.c (main): Likewise.
3326         * tests/test-linkedhash_list.c (main): Likewise.
3327         * tests/test-rbtree_list.c (main): Likewise.
3328         * tests/test-rbtreehash_list.c (main): Likewise.
3330 2020-05-01  Bruno Haible  <bruno@clisp.org>
3332         parse-datetime: Fix a build failure with an older bison version.
3333         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3334         parse-datetime.tab.c if a suitable version of bison was not found.
3336 2020-05-01  Bruno Haible  <bruno@clisp.org>
3338         bison: New module.
3339         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3340         m4/parse-datetime.m4.
3341         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3342         * modules/bison: New file.
3343         * modules/parse-datetime (Files): Remove m4/bison.m4.
3344         (Depends-on): Add bison.
3346 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3348         Update users.txt.
3349         * users.txt: Add poke.
3351 2020-04-28  Bruno Haible  <bruno@clisp.org>
3353         posix_spawn_file_actions_addfchdir tests: Enhance test.
3354         * tests/test-posix_spawn5.c: Include findprog.h.
3355         (test): New function, extracted from main.
3356         (main): Invoke it. Also, invoke it with a program name such as
3357         "bin/pwd".
3358         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3359         findprog.
3361 2020-04-28  Bruno Haible  <bruno@clisp.org>
3363         posix_spawn_file_actions_addchdir tests: Enhance test.
3364         * tests/test-posix_spawn4.c: Include findprog.h.
3365         (test): New function, extracted from main.
3366         (main): Invoke it. Also, invoke it with a program name such as
3367         "bin/pwd".
3368         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3369         findprog.
3371 2020-04-28  Bruno Haible  <bruno@clisp.org>
3373         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3374         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3375         access elements of the wrong union member.
3377 2020-04-27  Bruno Haible  <bruno@clisp.org>
3379         getdate: Remove deprecated module.
3380         * modules/getdate: Remove file.
3381         * doc/getdate.texi: Remove file.
3382         * lib/getdate.h: Remove file.
3383         * NEWS: Mention the removal.
3385 2020-04-27  Bruno Haible  <bruno@clisp.org>
3387         realloc: Remove deprecated module.
3388         * modules/realloc: Remove file.
3389         * NEWS: Mention the removal.
3391 2020-04-27  Bruno Haible  <bruno@clisp.org>
3393         calloc: Remove deprecated module.
3394         * modules/calloc: Remove file.
3395         * NEWS: Mention the removal.
3397 2020-04-27  Bruno Haible  <bruno@clisp.org>
3399         malloc: Remove deprecated module.
3400         * modules/malloc: Remove file.
3401         * NEWS: Mention the removal.
3403 2020-04-27  Bruno Haible  <bruno@clisp.org>
3405         fnmatch-posix: Remove deprecated module.
3406         * modules/fnmatch-posix: Remove file.
3407         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3408         * NEWS: Mention the removal.
3410 2020-04-27  Bruno Haible  <bruno@clisp.org>
3412         pipe: Remove deprecated module.
3413         * modules/pipe: Remove file.
3414         * lib/pipe.h: Remove file.
3415         * NEWS: Mention the removal.
3417 2020-04-27  Bruno Haible  <bruno@clisp.org>
3419         getopt: Remove deprecated module.
3420         * modules/getopt: Remove file.
3421         * NEWS: Mention the removal.
3423 2020-04-27  Bruno Haible  <bruno@clisp.org>
3425         remove-dest-slash: Remove deprecated module.
3426         * modules/rename-dest-slash: Remove file.
3427         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3428         Update.
3429         * NEWS: Mention the removal.
3431 2020-04-27  Bruno Haible  <bruno@clisp.org>
3433         unictype/bidicategory-*: Remove deprecated modules.
3434         * modules/unictype/bidicategory-all: Remove file.
3435         * modules/unictype/bidicategory-byname: Remove file.
3436         * modules/unictype/bidicategory-name: Remove file.
3437         * modules/unictype/bidicategory-of: Remove file.
3438         * modules/unictype/bidicategory-test: Remove file.
3439         * MODULES.html.sh (Unicode string functions): Update.
3440         * NEWS: Mention the removals.
3442 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3444         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3445         From a suggestion by Askar Safin in:
3446         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3447         * lib/fts.c (fts_build): If file types are known, optimize
3448         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3449         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3450         non-directories.
3452 2020-04-19  Bruno Haible  <bruno@clisp.org>
3454         vasnprintf: Add support for printing wide characters using escapes.
3455         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3456         (wctomb_fallback): New function.
3457         (local_wctomb): New function.
3458         (local_wcrtomb): New function or macro.
3459         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3460         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3461         %lc.
3463 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3465         fts: remove NOSTAT_LEAF_OPTIMIZATION
3466         It caused ‘find’ and ‘du’ to dump core, and it was useful
3467         only for obsolescent Linux filesystems anyway.  Problem reported in:
3468         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3469         Quite possibly there is still a serious underlying fts bug with
3470         tight-loop-check and mutating file systems, but if so this patch
3471         should cause the bug to be triggered less often.
3472         * lib/fts.c (enum leaf_optimization): Remove
3473         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3474         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3475         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3476         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3477         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3478         Remove.  All uses removed.
3480 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3482         explicit_bzero: Improve code style.
3483         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3485 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3487         explicit_bzero: On native Windows, use SecureZeroMemory().
3488         * lib/explicit_bzero.c: Include <windows.h>.
3489         (explicit_bzero): On native Windows, use SecureZeroMemory.
3491 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3493         explicit_bzero: Use memset_s() when available.
3494         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3495         (explicit_bzero): Use memset_s when available.
3496         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3498 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3500         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3501         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3502         free() that overwrite the memory with canaries.
3504 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3506         bootstrap: recommend git submodule update --init
3507         Reported by Bruno Haible.
3508         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3509         * build-aux/bootstrap: recommand "git submodule update --init"
3510         rather than "git submodule init".
3512 2020-04-12  Bruno Haible  <bruno@clisp.org>
3514         explicit_bzero: Add tests.
3515         * tests/test-explicit_bzero.c: New file.
3516         * modules/explicit_bzero-tests: New file.
3518 2020-04-11  Bruno Haible  <bruno@clisp.org>
3520         explicit_bzero: Relicense under LGPLv2+.
3521         Approved by Paul Eggert.
3522         * modules/explicit_bzero (License): Change to LGPLv2+.
3524 2020-04-10  Bruno Haible  <bruno@clisp.org>
3526         findprog, relocatable-prog: Ignore directories during PATH search.
3527         Reported by Frederick Eaton via Dmitry Goncharov in
3528         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3530         * lib/findprog.c (find_in_path): When the file found in a PATH element
3531         is a directory, continue searching.
3532         * modules/findprog (Depends-on): Add sys_stat, stat.
3533         * modules/findprog-lgpl (Depends-on): Likewise.
3535         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3536         element is a directory, continue searching.
3537         * lib/relocwrapper.c: Update comments.
3538         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3539         (configure.ac-early): New section.
3541 2020-04-10  Bruno Haible  <bruno@clisp.org>
3543         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3544         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3545         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3546         * MODULES.html.sh: In a git-less tarball, use the date of the first
3547         ChangeLog entry.
3549 2020-04-04  Bruno Haible  <bruno@clisp.org>
3551         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3552         * m4/gettext.m4: Fix comments regarding the gettext library.
3553         * m4/intl-thread-locale.m4: Likewise.
3554         * m4/intlmacosx.m4: Likewise.
3555         * m4/lcmessage.m4: Likewise.
3556         * m4/nls.m4: Likewise.
3557         * m4/po.m4: Likewise.
3558         * m4/progtest.m4: Likewise.
3560 2020-04-04  Jim Meyering  <meyering@fb.com>
3562         maint: remove a stray inter-word space in a 6x-repeated comment
3563         Induce the changes by running this:
3564           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3565         * build-aux/announce-gen: Change "by  perl" to "by perl".
3566         * build-aux/gitlog-to-changelog: Likewise.
3567         * build-aux/prefix-gnulib-mk: Likewise.
3568         * build-aux/update-copyright: Likewise.
3569         * build-aux/useless-if-before-free: Likewise.
3570         * tests/test-update-copyright.sh: Likewise.
3572 2020-03-28  Bruno Haible  <bruno@clisp.org>
3574         Use module 'filename' instead of module 'dosname'.
3576         * lib/at-func.c: Include filename.h instead of dosname.h.
3577         * lib/unlinkat.c: Likewise.
3578         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3579         * modules/areadlinkat-with-size (Depends-on): Likewise.
3580         * modules/faccessat (Depends-on): Likewise.
3581         * modules/fchmodat (Depends-on): Likewise.
3582         * modules/fchownat (Depends-on): Likewise.
3583         * modules/fstatat (Depends-on): Likewise.
3584         * modules/mkdirat (Depends-on): Likewise.
3585         * modules/mkfifoat (Depends-on): Likewise.
3586         * modules/readlinkat (Depends-on): Likewise.
3587         * modules/selinux-at (Depends-on): Likewise.
3588         * modules/symlinkat (Depends-on): Likewise.
3589         * modules/unlinkat (Depends-on): Likewise.
3590         * modules/utimensat (Depends-on): Likewise.
3592         * lib/at-func2.c: Include filename.h instead of dosname.h.
3593         * modules/linkat (Depends-on): Add filename. Remove dosname.
3594         * modules/renameatu (Depends-on): Likewise.
3596         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3597         * lib/canonicalize-lgpl.c: Likewise.
3598         * modules/canonicalize (Depends-on): Add filename.
3599         * modules/canonicalize-lgpl (Depends-on): Likewise.
3601         * lib/dirname.h: Include filename.h instead of dosname.h.
3602         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3604         * lib/fchdir.c: Include filename.h instead of dosname.h.
3605         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3607         * lib/openat.c: Include filename.h instead of dosname.h.
3608         * modules/openat (Depends-on): Add filename. Remove dosname.
3610         * lib/rmdir.c: Include filename.h instead of dosname.h.
3611         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3613         * lib/savewd.c: Include filename.h instead of dosname.h.
3614         * modules/savewd (Depends-on): Add filename. Remove dosname.
3616         * lib/unlink.c: Include filename.h instead of dosname.h.
3617         * modules/unlink (Depends-on): Add filename. Remove dosname.
3619         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3620         * lib/relocwrapper.c: Update comments.
3622         * modules/lstat (Depends-on): Remove dosname.
3624 2020-03-28  Bruno Haible  <bruno@clisp.org>
3626         dosname: Redirect to 'filename'.
3627         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3628         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3629         * lib/dosname.h: Remove all definitions. Just include filename.h.
3630         * modules/dosname (Status, Notice): Mark as deprecated.
3631         (Depends-on): Add 'filename'.
3633 2020-03-28  Bruno Haible  <bruno@clisp.org>
3635         dosname: Change IS_RELATIVE_FILE_NAME.
3636         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3637         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3638         * NEWS: Mention the change.
3640 2020-03-28  Bruno Haible  <bruno@clisp.org>
3642         filename: Copy some definitions from module 'dosname'.
3643         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3644         (HAS_DEVICE): Document macro.
3645         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3646         (IS_ABSOLUTE_FILE_NAME): Consider
3647         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3648         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3649         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3650         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3651         IS_PATH_WITH_DIR.
3652         (DllMain): Update.
3653         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3654         IS_PATH_WITH_DIR.
3655         (find_executable): Update.
3656         * NEWS: Document the deprecations.
3658 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3660         getopt-posix: port __GETOPT_PREFIX to macOS
3661         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3662         Define to work around a problem with asm on macOS (Bug#40205).
3664 2020-03-22  Bruno Haible  <bruno@clisp.org>
3666         MODULES.html.sh: Add support for reproducible builds.
3667         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3668         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3669         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3670         current date.
3672 2020-03-22  Bruno Haible  <bruno@clisp.org>
3674         Several modules: Depend on stat.
3675         * modules/acl-permissions (Depends-on): Add stat.
3676         * modules/canonicalize (Depends-on): Likewise.
3677         * modules/file-has-acl (Depends-on): Likewise.
3678         * modules/fstat (Depends-on): Likewise.
3679         * modules/fstatat (Depends-on): Likewise.
3680         * modules/glob (Depends-on): Likewise.
3681         * modules/javacomp (Depends-on): Likewise.
3682         * modules/linkat (Depends-on): Likewise.
3683         * modules/mkdir (Depends-on): Likewise.
3684         * modules/pt_chown (Depends-on): Likewise.
3685         * modules/ptsname_r (Depends-on): Likewise.
3686         * modules/readlinkat (Depends-on): Likewise.
3687         * modules/rename (Depends-on): Likewise.
3688         * modules/renameatu (Depends-on): Likewise.
3689         * modules/tmpdir (Depends-on): Likewise.
3690         * modules/utimens (Depends-on): Likewise.
3691         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3692         * modules/same (Depends-on): Remove stat.
3694 2020-03-22  Bruno Haible  <bruno@clisp.org>
3696         acl-permissions: Improve autoconf macro.
3697         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3698         more reliably.
3700 2020-03-22  Bruno Haible  <bruno@clisp.org>
3702         file-has-acl: Fix module description.
3703         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3704         (Depends-on): Depend on acl-permissions unconditionally.
3706 2020-03-21  Bruno Haible  <bruno@clisp.org>
3708         unlink: Ensure errno also on native Windows.
3709         * modules/unlink (Depends-on): Add malloc-posix.
3711 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3713         unlink: fix malloc errno typo
3714         Problem reported by Tim Rühsen in:
3715         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3716         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3718 2020-03-16  Bruno Haible  <bruno@clisp.org>
3720         *printf-posix: Fix m4 error (regression from 2020-03-08).
3721         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
3722         brackets in AC_COMPILE_IFELSE invocation.
3724 2020-03-08  Bruno Haible  <bruno@clisp.org>
3726         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
3727         * modules/crypto/af_alg (Depends-on): Add fstat.
3728         * modules/renameatu (Depends-on): Likewise.
3729         * modules/same (Depends-on): Likewise.
3730         * modules/term-style-control (Depends-on): Likewise.
3732 2020-03-08  Bruno Haible  <bruno@clisp.org>
3734         *printf-posix: Document why it's overridden on some glibc systems.
3735         Reported by Adrian Bunk <bunk@stusta.de> in
3736         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
3737         * doc/posix-functions/*printf.texi: Document the problem with the %n
3738         directive on some glibc systems.
3739         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
3740         the cross-compilation guesses accordingly.
3742 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3744         open, openat: port to (O_RDWR | O_RDONLY) != 0
3745         Potential portability problem reported by Dan Gohman in:
3746         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
3747         * lib/open.c (open):
3748         * lib/openat.c (rpl_openat):
3749         Don’t assume O_RDONLY is disjoint from O_RDWR.
3751 2020-03-07  Bruno Haible  <bruno@clisp.org>
3753         openat: Fix theoretically possible issue on GNU/Hurd.
3754         Reported by Dan Gohman <sunfish@mozilla.com> in
3755         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
3756         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
3757         ignore the bits that are also set in O_RDONLY.
3759 2020-02-24  Bruno Haible  <bruno@clisp.org>
3761         getloadavg: Don't use /usr/local when cross-compiling on AIX.
3762         Reported by Jens Rehsack <sno@netbsd.org> in
3763         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
3764         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
3765         cross-compiling.
3767 2020-02-24  Bruno Haible  <bruno@clisp.org>
3769         fcntl: Add witness of gnulib override.
3770         Reported by Jens Rehsack <sno@netbsd.org> in
3771         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
3772         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
3773         macros.
3775 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
3777         Update users.txt.
3778         * users.txt: Add datamash, time.
3780 2020-02-23  Bruno Haible  <bruno@clisp.org>
3782         uni*/base: Use 'restrict'.
3783         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
3784         from lib/regex.h.
3785         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
3786         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
3787         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
3788         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
3789         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
3790         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
3791         '_UC_RESTRICT'.
3792         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
3793         u32_conv_to_encoding): Use '_UC_RESTRICT'.
3794         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
3795         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
3796         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3797         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3798         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
3799         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
3800         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
3801         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
3802         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
3803         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
3804         '_UC_RESTRICT'.
3805         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
3806         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
3807         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
3808         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
3809         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
3810         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
3811         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
3812         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
3814 2020-02-23  Bruno Haible  <bruno@clisp.org>
3816         glob, spawn: Use improved '_Restrict_' definition.
3817         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
3818         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
3820 2020-02-23  Bruno Haible  <bruno@clisp.org>
3822         crypto/gc: Use 'restrict'.
3823         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
3824         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
3826         crypto/hmac-*: Use 'restrict'.
3827         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
3828         'restrict'.
3829         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
3830         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
3831         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
3832         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
3834         crypto/sm3: Use 'restrict'.
3835         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
3836         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
3838         crypto/*-buffer: Use 'restrict'.
3839         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
3840         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
3842         crypto/sha512-buffer: Use 'restrict'.
3843         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
3844         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
3845         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
3847         crypto/sha256-buffer: Use 'restrict'.
3848         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
3849         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
3850         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
3852         crypto/sha1-buffer: Use 'restrict'.
3853         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
3854         'restrict'.
3855         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
3857         crypto/md5-buffer: Use 'restrict'.
3858         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
3859         'restrict'.
3860         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
3862         crypto/md4: Use 'restrict'.
3863         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
3864         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
3866         crypto/md2: Use 'restrict'.
3867         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
3868         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
3870         crypto/rijndael: Use 'restrict'.
3871         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
3872         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
3873         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
3875         crypto/arctwo: Use 'restrict'.
3876         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
3877         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
3879         crypto/arcfour: Use 'restrict'.
3880         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
3881         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
3883         careadlinkat: Use 'restrict'.
3884         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
3885         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
3886         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
3888         regex-quote: Use 'restrict'.
3889         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
3890         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
3892         system-quote: Use 'restrict'.
3893         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
3894         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
3896         sh-quote: Use 'restrict'.
3897         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
3898         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
3900         quotearg: Use 'restrict'.
3901         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
3902         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
3904         parse-datetime: Use 'restrict'.
3905         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
3906         'restrict'.
3907         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
3909         nstrftime: Use 'restrict'.
3910         * lib/strftime.h (nstrftime): Use 'restrict'.
3911         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
3913         mbstok_r: Use 'restrict'.
3914         * lib/string.in.h (mbstok_r): Use 'restrict'.
3916         xmemcoll: Use 'restrict'.
3917         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
3918         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
3920         memcoll: Use 'restrict'.
3921         * lib/memcoll.h (memcoll): Use 'restrict'.
3922         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
3924         vasnprintf: Use 'restrict'.
3925         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
3926         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
3928         c-vasnprintf: Use 'restrict'.
3929         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
3930         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
3932         c-vsnprintf: Use 'restrict'.
3933         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
3934         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
3936         c-snprintf: Use 'restrict'.
3937         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
3938         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
3940         astrxfrm: Use 'restrict'.
3941         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
3942         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
3944         amemxfrm: Use 'restrict'.
3945         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
3946         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
3948 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
3950         fchmodat, lchmod: simplify
3951         It appears that we may have overengineered lchmod and fchmodat,
3952         in that the code was prepared for some hypothetical platforms but
3953         was so complicated that it was hard to understand.  I attempted to
3954         improve the situation by simplifying the code when this
3955         simplification should not hurt on real platforms; we can re-add
3956         complexity later to port to platforms I didn’t know about.
3957         * lib/fchmodat.c (fchmodat):
3958         * lib/lchmod.c (lchmod):
3959         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
3960         around the /proc code that needs it.
3961         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
3962         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
3963         Do not include <config.h> twice.
3964         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
3965         lchmod on any known hosts.
3966         (lchmod): Do not defer to fchmodat, so that the lchmod module
3967         need not depend on the fchmodat module (which is a circular
3968         dependency).  Do not use openat, since ‘open’ suffices.
3969         Coalesce calls to lchmod/chmod.
3970         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
3971         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
3972         * modules/lchmod (Depends-on, configure.ac):
3973         * modules/sys_stat (Depends-on):
3974         Do not worry about replacing lchmod, since that shouldn’t happen.
3975         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
3976         Do not worry about whether lchmod works on non-symlinks,
3977         since every known lchmod works on non-symlinks.
3978         * modules/lchmod (Depends-on):
3979         Remove circular dependency on fchmodat.
3981 2020-02-22  Bruno Haible  <bruno@clisp.org>
3983         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
3984         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
3985         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
3987 2020-02-22  Bruno Haible  <bruno@clisp.org>
3989         Use 'restrict' in all POSIX function declarations.
3990         * lib/iconv.in.h (iconv): Use 'restrict'.
3991         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
3992         * lib/monetary.in.h (strfmon_l): Likewise.
3993         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
3994         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
3995         pthread_mutex_timedlock, pthread_rwlock_init,
3996         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
3997         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
3998         * lib/search.in.h (tdelete): Likewise.
3999         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4000         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4001         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4002         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4003         Likewise.
4004         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4005         strtoull): Likewise.
4006         * lib/string.in.h (strncat): Likewise.
4007         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4008         recvfrom): Likewise.
4009         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4010         * lib/time.in.h (strftime): Likewise.
4011         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4012         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4013         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4014         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4015         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4016         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4017         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4018         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4019         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4020         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4021         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4022         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4024         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4025         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4026         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4027         other *_h.m4 files.
4028         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4030 2020-02-22  Bruno Haible  <bruno@clisp.org>
4032         Update NEWS.
4033         * NEWS: Mention the last change.
4035 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4037         chmodat, chownat: new modules
4038         These are split from fchmodat, fchownat.  GNU Emacs needs the
4039         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4040         lchmodat.  Split the latter two into a new module chmodat.
4041         Similarly for fchownat.  This the same basic idea for why statat
4042         was split from fstatat on 2013-01-23.
4043         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4044         Rename from FCHMODAT_INLINE.  All uses changed.
4045         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4046         Rename from FCHOWNAT_INLINE.  All uses changed.
4047         * lib/openat.h:
4048         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4049         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4050         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4051         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4052         (configure.ac): Remove fchmodat module indicator.
4053         (Makefile.am): Omit chmodat.c.
4054         (Maintainer): Add self.
4055         * modules/fchownat: Similarly, but for chown.
4056         * tests/test-fchownat.c (BASE): Don't define if already defined.
4057         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4059 2020-02-22  Bruno Haible  <bruno@clisp.org>
4061         users.txt: Add groff.
4062         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4063         * users.txt: Add groff.
4065 2020-02-22  Bruno Haible  <bruno@clisp.org>
4067         gnulib-tool: Ensure copied files are writable.
4068         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4069         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4070         * gnulib-tool (func_ensure_writable): New function.
4071         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4072         func_create_testdir, copy-file): Invoke it after copying a file.
4074 2020-02-22  Bruno Haible  <bruno@clisp.org>
4076         users.txt: Update.
4077         * users.txt: Update URLs to projects that have moved or switched to git.
4078         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4079         over the summary view. Add gawk.
4081 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4083         largefile: remove _DARWIN_USE_64_BIT_INODE
4084         It’s not needed in currently-supported macOS versions, and was
4085         problematic anyway in MacOS X 10.5 which was the only version that
4086         could use it.  Problem reported by Peter Eisentraut in:
4087         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4088         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4089         Don’t define _DARWIN_USE_64_BIT_INODE.
4090         This syncs with Autoconf master.
4092         Add ‘extern "C"’ to count-one-bits.h etc.
4093         This ports these .h files to C++.
4094         Problem reported by Simon Marchi in:
4095         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4096         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4097         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4099 2020-02-19  Bruno Haible  <bruno@clisp.org>
4101         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4102         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4103         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4104         * lib/array-mergesort.h: Accept an optional macro definition
4105         STATIC_FROMTO.
4106         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4108 2020-02-16  Bruno Haible  <bruno@clisp.org>
4110         fchmodat: Make more future-proof.
4111         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4112         NEED_FCHMODAT_NONSYMLINK_FIX.
4113         (gl_PREREQ_FCHMODAT): New macro.
4114         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4115         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4116         without lchmod function.
4117         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4119 2020-02-16  Bruno Haible  <bruno@clisp.org>
4121         lchmod: Make more future-proof.
4122         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4123         (gl_PREREQ_LCHMOD): New macro.
4124         * lib/lchmod.c (orig_lchmod): New function.
4125         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4126         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4127         function.
4128         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4130         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4131         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4133 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4135         xnanosleep: prefer pause, and get remaining time
4136         Problem reported by Vladimir Panteleev in:
4137         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4138         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4139         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4140         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4141         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4142         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4144 2020-02-16  Bruno Haible  <bruno@clisp.org>
4146         lchmod: Improve cross-compilation guess.
4147         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4148         cross-compiling, guess depending on the platform.
4150 2020-02-16  Bruno Haible  <bruno@clisp.org>
4152         fstrcmp: Add API to clean up resources.
4153         Reported by Akim Demaille <akim@lrde.epita.fr> in
4154         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4155         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4156         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4158 2020-02-14  Bruno Haible  <bruno@clisp.org>
4160         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4161         Reported by Christian Biesinger in
4162         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4163         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4164         corresponding module is not enabled.
4165         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4166         prototype if the corresponding module is not enabled.
4168 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4170         fchmodat, lchmod: port to buggy Linux filesystems
4171         Problem reported by Florian Weimer in:
4172         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4173         * lib/fchmodat.c (fchmodat):
4174         * lib/lchmod.c (lchmod):
4175         Don’t assume that chmod on the O_PATH-opened fd will do
4176         the right thing on a symbolic link.
4177         * lib/fchmodat.c (fchmodat):
4178         Don’t attempt to special-case
4179         any flag value other than AT_SYMLINK_NOFOLLOW.
4181 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4183         lchmod: pacify Coverity CID 1491216
4184         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4185         not complain about unreachable code at the ‘struct stat st;’
4186         declaration.
4188 2020-02-10  Bruno Haible  <bruno@clisp.org>
4190         copysignf: Fix link error on HP-UX with cc.
4191         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4192         HP-UX, set COPYSIGNF_LIBM to -lm.
4194 2020-02-10  Bruno Haible  <bruno@clisp.org>
4196         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4197         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4198         with $(LIB_SEMAPHORE).
4199         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4200         with $(LIB_SEMAPHORE).
4202 2020-02-10  Bruno Haible  <bruno@clisp.org>
4204         ptsname_r-tests: Avoid unused function warning.
4205         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4207 2020-02-08  Bruno Haible  <bruno@clisp.org>
4209         lchmod: Add tests.
4210         * tests/test-lchmod.c: New file.
4211         * modules/lchmod-tests: New file.
4213 2020-02-08  Bruno Haible  <bruno@clisp.org>
4215         lchmod: Ensure declaration on HP-UX.
4216         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4217         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4219 2020-02-08  Bruno Haible  <bruno@clisp.org>
4221         fchmodat: Strengthen tests.
4222         * tests/test-fchmodat.c (BASE): New macro.
4223         (main): Use it, to avoid conflicts with other unit tests. Verify that
4224         fchmodat changed the file permission bits.
4226 2020-02-08  Bruno Haible  <bruno@clisp.org>
4228         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4229         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4230         '#undef __need_system_sys_stat_h'.
4232 2020-02-08  Bruno Haible  <bruno@clisp.org>
4234         fchmodat: Improve cross-compilation guesses.
4235         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4236         cross-compiling, guess depending on the platform.
4237         * doc/posix-functions/fchmodat.texi: Clarify.
4239 2020-02-08  Bruno Haible  <bruno@clisp.org>
4241         Fix compilation errors in a testdir created with --with-c++-tests.
4242         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4243         since it does not work any more with g++ >= 4.4.
4245 2020-02-08  Bruno Haible  <bruno@clisp.org>
4247         doc: Update for glibc 2.31.
4248         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4249         * doc/gnulib.texi: Include it.
4250         * doc/pastposix-functions/h_errno.texi: Update.
4251         * doc/posix-functions/*.texi: Likewise.
4253 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4255         mountlist: consider smb3 file systems as remote
4256         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4257         "smb3" as remote.
4259 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4261         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4262         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4263         they act like chmod on non-symlinks.
4264         * NEWS:
4265         * doc/glibc-functions/lchmod.texi (lchmod):
4266         * doc/posix-functions/fchmodat.texi (fchmodat):
4267         Mention this.
4268         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4269         config.h, and undef it after including sys/stat.h the first time.
4270         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4271         sys/stat.h a second time after defining orig_fchmodat.
4272         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4273         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4274         * lib/lchmod.c: New file.
4275         * lib/sys_stat.in.h (fchmodat, lchmod):
4276         Support replacing these functions.
4277         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4278         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4279         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4280         Test that lchmod works on non-symlinks.
4281         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4282         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4283         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4284         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4285         * modules/lchmod (Files): Add lib/lchmod.c.
4286         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4287         (configure.ac): Compile lchmod.c if needed.
4288         (lib_SOURCES): Add lchmod.c.
4289         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4290         and REPLACE_LCHMOD.
4291         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4292         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4294 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4296         mountlist: Consider AFS filesystems as remote
4297         df --local relies on the ME_REMOTE macro to determine if a given
4298         mount entry should be considered "local".  There is special logic
4299         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4300         kernel's kafs module or AuriStorFS is treated as a local mount.
4301         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4302         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4304 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4306         Port _Noreturn to older Clang
4307         Problem reported by Jeffery Walton in:
4308         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4309         * lib/_Noreturn.h (_Noreturn):
4310         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4311         Assume _Noreturn works in Clang 3.5 and later.
4312         It is documented to work in Clang 3.5:
4313         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4314         and is not documented in Clang 3.4:
4315         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4316         Apple sets __clang_version__ to a different value, so use
4317         __apple_build_version__ there.  See:
4318         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4320 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4322         test-canonicalize: avoid unused function warning
4323         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4324         with the same guard as that used to protect usage of the null_ptr
4325         function, so that one doesn't get a -Wunused warning.
4326         * tests/test-canonicalize-lgpl.c: Likewise.
4328 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4330         libc-config: port to Apple’s Clang variant
4331         * lib/libc-config.h (__glibc_clang_prereq):
4332         Port to Apple’s Clang variant, which uses a different
4333         numbering scheme for __clang_major__.
4335 2020-02-02  Bruno Haible  <bruno@clisp.org>
4337         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4338         * doc/containers.texi: Document these new modules.
4340 2020-02-02  Bruno Haible  <bruno@clisp.org>
4342         omap-c++: Add tests.
4343         * tests/test-omap-c++.cc: New file.
4344         * modules/omap-c++-tests: New file.
4346         omap-c++: New module.
4347         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4348         * modules/omap-c++: New file.
4350 2020-02-02  Bruno Haible  <bruno@clisp.org>
4352         map-c++: Add tests.
4353         * tests/test-map-c++.cc: New file.
4354         * modules/map-c++-tests: New file.
4356         map-c++: New module.
4357         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4358         * modules/map-c++: New file.
4360 2020-02-02  Bruno Haible  <bruno@clisp.org>
4362         oset-c++: Add tests.
4363         * tests/test-oset-c++.cc: New file.
4364         * modules/oset-c++-tests: New file.
4366         oset-c++: New module.
4367         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4368         * modules/oset-c++: New file.
4370 2020-02-02  Bruno Haible  <bruno@clisp.org>
4372         set-c++: Add tests.
4373         * tests/test-set-c++.cc: New file.
4374         * modules/set-c++-tests: New file.
4376         set-c++: New module.
4377         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4378         * modules/set-c++: New file.
4380 2020-02-02  Bruno Haible  <bruno@clisp.org>
4382         list-c++: Add tests.
4383         * tests/test-list-c++.cc: New file.
4384         * modules/list-c++-tests: New file.
4386         list-c++: New module.
4387         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4388         * modules/list-c++: New file.
4390 2020-02-02  Bruno Haible  <bruno@clisp.org>
4392         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4393         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4394         '_Noreturn'.
4395         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4397 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4399         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4400         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4401           error: argument 2 value '18446744073709551615'
4402           exceeds maximum object size 9223372036854775807
4403           [-Werror=alloc-size-larger-than=]
4404         The details of this restriction are discussed at:
4405         https://stackoverflow.com/q/42574890/4421
4406         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4408 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4410         sysctl.h: avoid including on glibc
4411         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4412         * lib/physmem.c: Likewise.
4414 2020-02-02  Bruno Haible  <bruno@clisp.org>
4416         list, set, oset, map, omap: Avoid imperative voice in documentation.
4417         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4418         in the specification of functions.
4419         * lib/gl_set.h: Likewise.
4420         * lib/gl_oset.h: Likewise.
4421         * lib/gl_map.h: Likewise.
4422         * lib/gl_omap.h: Likewise.
4423         * lib/gl_*.h: Likewise.
4425 2020-02-01  Bruno Haible  <bruno@clisp.org>
4427         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4428         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4429         does.
4431 2020-01-29  Bruno Haible  <bruno@clisp.org>
4433         array-map, hash-map, linkedhash-map: Fix module description.
4434         * modules/array-map (Description): Fix description.
4435         * modules/hash-map (Description): Likewise.
4436         * modules/linkedhash-map (Description): Likewise.
4438 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4440         dfa: do not depend on isblank
4441         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4442         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4443         * modules/dfa (Depends-on): Remove isblank.
4444         * modules/isblank: Add a module indicator, for lib/dfa.c.
4446         dfa: do not assume 64-bit int
4447         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4448         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4449         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4450         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4451         Fall back to 32-bit words.
4452         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4453         of 4 64-bit args.  All uses changed.
4455 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4457         regex: remove limits-h dependency
4458         * modules/regex (Depends-on): Remove limits-h, since the
4459         code no longer depends on ULONG_WIDTH already being defined.
4461         regex: port to non-GCC pre-IEC-60559
4462         Problem reported by Arnold Robbins in:
4463         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4464         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4466 2020-01-25  Bruno Haible  <bruno@clisp.org>
4468         c32isxdigit: Add tests.
4469         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4470         * tests/test-c32isxdigit.sh: New file.
4471         * modules/c32isxdigit-tests: New file.
4473         c32isxdigit: New module.
4474         * lib/c32isxdigit.c: New file.
4475         * modules/c32isxdigit: New file.
4476         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4478 2020-01-25  Bruno Haible  <bruno@clisp.org>
4480         c32isupper: Add tests.
4481         * tests/test-c32isupper.c: New file.
4482         * tests/test-c32isupper.sh: New file.
4483         * modules/c32isupper-tests: New file.
4485         c32isupper: New module.
4486         * lib/c32isupper.c: New file.
4487         * modules/c32isupper: New file.
4488         * doc/posix-functions/iswupper.texi: Mention the new module.
4490 2020-01-25  Bruno Haible  <bruno@clisp.org>
4492         c32isspace: Add tests.
4493         * tests/test-c32isspace.c: New file.
4494         * tests/test-c32isspace.sh: New file.
4495         * modules/c32isspace-tests: New file.
4497         c32isspace: New module.
4498         * lib/c32isspace.c: New file.
4499         * modules/c32isspace: New file.
4500         * doc/posix-functions/iswspace.texi: Mention the new module.
4502 2020-01-25  Bruno Haible  <bruno@clisp.org>
4504         c32ispunct: Add tests.
4505         * tests/test-c32ispunct.c: New file.
4506         * tests/test-c32ispunct.sh: New file.
4507         * modules/c32ispunct-tests: New file.
4509         c32ispunct: New module.
4510         * lib/c32ispunct.c: New file.
4511         * modules/c32ispunct: New file.
4512         * doc/posix-functions/iswpunct.texi: Mention the new module.
4514 2020-01-25  Bruno Haible  <bruno@clisp.org>
4516         c32isprint: Add tests.
4517         * tests/test-c32isprint.c: New file.
4518         * tests/test-c32isprint.sh: New file.
4519         * modules/c32isprint-tests: New file.
4521         c32isprint: New module.
4522         * lib/c32isprint.c: New file.
4523         * modules/c32isprint: New file.
4524         * doc/posix-functions/iswprint.texi: Mention the new module.
4526 2020-01-25  Bruno Haible  <bruno@clisp.org>
4528         c32islower: Add tests.
4529         * tests/test-c32islower.c: New file.
4530         * tests/test-c32islower.sh: New file.
4531         * modules/c32islower-tests: New file.
4533         c32islower: New module.
4534         * lib/c32islower.c: New file.
4535         * modules/c32islower: New file.
4536         * doc/posix-functions/iswlower.texi: Mention the new module.
4538 2020-01-25  Bruno Haible  <bruno@clisp.org>
4540         c32isgraph: Add tests.
4541         * tests/test-c32isgraph.c: New file.
4542         * tests/test-c32isgraph.sh: New file.
4543         * modules/c32isgraph-tests: New file.
4545         c32isgraph: New module.
4546         * lib/c32isgraph.c: New file.
4547         * modules/c32isgraph: New file.
4548         * doc/posix-functions/iswgraph.texi: Mention the new module.
4550 2020-01-25  Bruno Haible  <bruno@clisp.org>
4552         c32isdigit: Add tests.
4553         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4554         * tests/test-c32isdigit.sh: New file.
4555         * modules/c32isdigit-tests: New file.
4557         c32isdigit: New module.
4558         * lib/c32isdigit.c: New file.
4559         * modules/c32isdigit: New file.
4560         * doc/posix-functions/iswdigit.texi: Mention the new module.
4562 2020-01-25  Bruno Haible  <bruno@clisp.org>
4564         c32iscntrl: Add tests.
4565         * tests/test-c32iscntrl.c: New file.
4566         * tests/test-c32iscntrl.sh: New file.
4567         * modules/c32iscntrl-tests: New file.
4569         c32iscntrl: New module.
4570         * lib/c32iscntrl.c: New file.
4571         * modules/c32iscntrl: New file.
4572         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4574 2020-01-25  Bruno Haible  <bruno@clisp.org>
4576         c32isblank: Add tests.
4577         * tests/test-c32isblank.c: New file.
4578         * tests/test-c32isblank.sh: New file.
4579         * modules/c32isblank-tests: New file.
4581         c32isblank: New module.
4582         * lib/c32isblank.c: New file.
4583         * modules/c32isblank: New file.
4584         * doc/posix-functions/iswblank.texi: Mention the new module.
4586 2020-01-25  Bruno Haible  <bruno@clisp.org>
4588         c32isalpha: Add tests.
4589         * tests/test-c32isalpha.c: New file.
4590         * tests/test-c32isalpha.sh: New file.
4591         * modules/c32isalpha-tests: New file.
4593         c32isalpha: New module.
4594         * lib/c32isalpha.c: New file.
4595         * modules/c32isalpha: New file.
4596         * doc/posix-functions/iswalpha.texi: Mention the new module.
4598 2020-01-25  Bruno Haible  <bruno@clisp.org>
4600         c32isalnum: Add tests.
4601         * tests/test-c32isalnum.c: New file.
4602         * tests/test-c32isalnum.sh: New file.
4603         * modules/c32isalnum-tests: New file.
4605         c32isalnum: New module.
4606         * lib/c32isalnum.c: New file.
4607         * lib/c32is-impl.h: New file.
4608         * modules/c32isalnum: New file.
4609         * doc/posix-functions/iswalnum.texi: Mention the new module.
4611 2020-01-25  Bruno Haible  <bruno@clisp.org>
4613         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4614         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4615         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4616         c32isupper, c32isxdigit): New declarations.
4617         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4618         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4619         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4620         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4621         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4622         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4623         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4624         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4625         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4626         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4627         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4628         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4629         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4631 2020-01-25  Bruno Haible  <bruno@clisp.org>
4633         mbchar, wctype: Use the corrected iswxdigit function.
4634         * modules/mbchar (Depends-on): Add iswxdigit.
4635         * modules/wctype (Depends-on): Likewise.
4637         iswxdigit: Add tests.
4638         * tests/test-iswxdigit.c: New file.
4639         * tests/test-iswxdigit.sh: New file.
4640         * modules/iswxdigit-tests: New file.
4642         iswxdigit: New module.
4643         * m4/iswxdigit.m4: New file.
4644         * lib/wctype.in.h (iswxdigit): Potentially override.
4645         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4646         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4647         * lib/iswxdigit.c: New file.
4648         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4649         REPLACE_ISWXDIGIT.
4650         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4651         REPLACE_ISWXDIGIT.
4652         * modules/iswxdigit: New file.
4653         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4655 2020-01-25  Bruno Haible  <bruno@clisp.org>
4657         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4658         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4659         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4660         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4661         off_t on mingw, invoke _lseeki64 instead of lseek.
4663 2020-01-25  Bruno Haible  <bruno@clisp.org>
4665         iswdigit tests: Avoid test failure on Cygwin.
4666         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4667         byte sequence, return 0.
4669         iswdigit: Fix test failure on native Windows.
4670         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4672         mbchar, wctype: Use the corrected iswdigit function.
4673         * modules/mbchar (Depends-on): Add iswdigit.
4674         * modules/wctype (Depends-on): Likewise.
4676         iswdigit: Add tests.
4677         * tests/test-iswdigit.c: New file.
4678         * tests/test-iswdigit.sh: New file.
4679         * modules/iswdigit-tests: New file.
4681         iswdigit: New module.
4682         * m4/iswdigit.m4: New file.
4683         * lib/wctype.in.h (iswdigit): Potentially override.
4684         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4685         * lib/iswdigit.c: New file.
4686         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4687         REPLACE_ISWDIGIT.
4688         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4689         REPLACE_ISWDIGIT.
4690         * modules/iswdigit: New file.
4691         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4693 2020-01-25  Bruno Haible  <bruno@clisp.org>
4695         hard-locale tests: Make it easy to reuse the musl test.
4696         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4697         * modules/hard-locale-tests (Files): Add it.
4698         (configure.ac): Invoke gl_MUSL_LIBC.
4700 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4702         regex: port to Gawk on nonstandard platforms
4703         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4704         This is useful for Gawk, which does not use the Gnulib stdlib-h
4705         module.  Problem reported by Arnold Robbins in:
4706         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4708 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4710         regex: fix bug with >=16 subexpressions
4711         * lib/regex_internal.h (struct re_backref_cache_entry):
4712         Use bitset_word_t as the type of eps_reachable_subexps_map,
4713         instead of unsigned short int.  This fixes a bug I introduced
4714         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4715         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4716         Remove unused member 'unused'.
4718         regex: simplify definition of BITSET_WORD_BITS
4719         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
4720         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
4721         * lib/regex_internal.h (BITSET_WORD_BITS):
4722         * modules/regex (Depends-on): Add limits-h.
4723         Simplify now that we can use ULONG_WIDTH.
4725 2020-01-20  Bruno Haible  <bruno@clisp.org>
4727         mbrtoc32: Add note about FreeBSD 12.
4728         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
4729         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
4730         affected.
4732 2020-01-20  Bruno Haible  <bruno@clisp.org>
4734         unistr/u8-uctomb: Fix warning.
4735         Reported by Andreas Schwab <schwab@suse.de> in
4736         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
4737         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
4738         (u8_uctomb): Add FALLTHROUGH markers.
4740 2020-01-20  Bruno Haible  <bruno@clisp.org>
4742         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
4743         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
4744         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
4745         (glthread_once): Use it.
4747 2020-01-19  Bruno Haible  <bruno@clisp.org>
4749         threadlib: Disable use of weak symbols on FreeBSD 11.
4750         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4751         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
4752         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
4753         against a bug in FreeBSD 11.
4755 2020-01-19  Bruno Haible  <bruno@clisp.org>
4757         iconv_open: Improve z/OS support.
4758         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
4759         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
4760         Remove mapping for EUC-TW.
4762 2020-01-18  Bruno Haible  <bruno@clisp.org>
4764         Rename ~~gnulib.m4 to zzgnulib.m4.
4765         Suggested by Paul Eggert.
4766         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
4767         * gnulib-tool (func_get_filelist): Update.
4768         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4770 2020-01-18  Bruno Haible  <bruno@clisp.org>
4772         doc: Update license notices.
4773         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
4774         reference to a section or to a "file as part of this distribution".
4776 2020-01-18  Bruno Haible  <bruno@clisp.org>
4778         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
4779         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4780         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
4781         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
4782         AC_EGREP_CPP.
4784 2020-01-18  Bruno Haible  <bruno@clisp.org>
4786         Ensure Automake does not drop ~~gnulib.m4.
4787         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
4788         * m4/gnulib-common.m4 (gl_COMMON): Require it.
4790 2020-01-18  Bruno Haible  <bruno@clisp.org>
4792         Fix major regression from 2020-01-10.
4793         Reported by Paul Eggert in
4794         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
4795         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
4796         Don't AC_REQUIRE anything.
4797         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
4798         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
4799         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
4800         use ac_compile instead.
4801         (AC_CHECK_DECL): Remove override.
4802         * m4/~~gnulib.m4: New file.
4803         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
4804         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4806 2020-01-17  Bruno Haible  <bruno@clisp.org>
4807             Paul Eggert  <eggert@cs.ucla.edu>
4809         glob: Fix use-after-free bug.
4810         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4811         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
4812         * lib/glob.c (__glob): Delay freeing dirname until after the use of
4813         end_name.
4815 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4817         vcs-to-changelog: Fix parsing of fndecl without args.
4818         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
4819         for empty arguments.
4821 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4823         vcs-to-changelog: Add documentation.
4824         * doc/vcs-to-changelog.texi: New file.
4825         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
4826         section.
4828 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4830         vcs-to-changelog: Allow loading of custom quirks file.
4831         * build-aux/vcs_to_changelog.py: New commandline option -q.
4833 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4835         vcs-to-changelog: Fix formatting of ChangeLog output.
4836         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
4837         output.
4839 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4841         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
4842         Reported in
4843         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
4844         * build-aux/vcstocl/frontend_c.py: Remove shebang.
4846 2020-01-15  Simon Josefsson  <simon@josefsson.org>
4848         crypto/gc-pbkdf2: New module.
4849         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
4850         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
4851         * lib/gc-pbkdf2.c: New file.
4852         * lib/gc-pbkdf2-sha1.c: Use new interface.
4853         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
4854         * modules/crypto/gc-pbkdf2: New file.
4855         * modules/crypto/gc-pbkdf2-tests: New file.
4856         * tests/test-gc-pbkdf2.c: New file.
4858 2020-01-12  Bruno Haible  <bruno@clisp.org>
4860         c32stombs: Add tests.
4861         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
4862         * tests/test-c32stombs-1.sh: New file, based on
4863         tests/test-c32srtombs-1.sh.
4864         * tests/test-c32stombs-2.sh: New file, based on
4865         tests/test-c32srtombs-2.sh.
4866         * tests/test-c32stombs-3.sh: New file, based on
4867         tests/test-c32srtombs-3.sh.
4868         * tests/test-c32stombs-4.sh: New file, based on
4869         tests/test-c32srtombs-4.sh.
4870         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
4872         c32stombs: New module.
4873         * lib/uchar.in.h (c32stombs): New declaration.
4874         * lib/c32stombs.c: New file.
4875         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
4876         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
4877         * modules/c32stombs: New file.
4878         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
4879         * doc/posix-functions/wcstombs.texi: Mention the new module.
4881 2020-01-11  Jim Meyering  <meyering@fb.com>
4883         perl: require the "warnings" module
4884         * m4/perl.m4: Also "use warnings", so we reject the perl found
4885         on at least one IRIX 6.5 system. Reported by Bruno Haible in
4886         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
4888 2020-01-10  Bruno Haible  <bruno@clisp.org>
4890         Fix major regression from 2020-01-04.
4891         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
4893         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
4894         AC_DEFUN_ONCE.
4895         (AC_CHECK_DECL): Invoke, not require, it.
4897 2020-01-10  Bruno Haible  <bruno@clisp.org>
4899         c32snrtombs: Add tests.
4900         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
4901         * tests/test-c32snrtombs-1.sh: New file, based on
4902         tests/test-wcsnrtombs1.sh.
4903         * tests/test-c32snrtombs-2.sh: New file, based on
4904         tests/test-wcsnrtombs2.sh.
4905         * tests/test-c32snrtombs-3.sh: New file, based on
4906         tests/test-wcsnrtombs3.sh.
4907         * tests/test-c32snrtombs-4.sh: New file, based on
4908         tests/test-wcsnrtombs4.sh.
4909         * modules/c32snrtombs-tests: New file, based on
4910         modules/wcsnrtombs-tests.
4912         c32snrtombs: New module.
4913         * lib/uchar.in.h (c32snrtombs): New declaration.
4914         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
4915         INTERNAL_STATE, WCRTOMB.
4916         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
4917         * lib/c32snrtombs.c: New file.
4918         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
4919         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
4920         * modules/c32snrtombs: New file.
4921         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
4922         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
4924 2020-01-09  Bruno Haible  <bruno@clisp.org>
4926         c32srtombs: Add tests.
4927         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
4928         * tests/test-c32srtombs-1.sh: New file, based on
4929         tests/test-wcsrtombs1.sh.
4930         * tests/test-c32srtombs-2.sh: New file, based on
4931         tests/test-wcsrtombs2.sh.
4932         * tests/test-c32srtombs-3.sh: New file, based on
4933         tests/test-wcsrtombs3.sh.
4934         * tests/test-c32srtombs-4.sh: New file, based on
4935         tests/test-wcsrtombs4.sh.
4936         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
4938         c32srtombs: New module.
4939         * lib/uchar.in.h (c32srtombs): New declaration.
4940         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
4941         INTERNAL_STATE, WCRTOMB.
4942         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
4943         * lib/c32srtombs.c: New file.
4944         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
4945         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
4946         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
4947         * modules/c32srtombs: New file.
4948         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
4949         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
4951 2020-01-08  Bruno Haible  <bruno@clisp.org>
4953         c32tob: Make consistent with mbrtoc32.
4954         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
4955         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
4956         use c32rtomb, not wctob.
4957         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
4958         (Depends-on): Add c32rtomb.
4959         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
4961 2020-01-08  Bruno Haible  <bruno@clisp.org>
4963         c32rtomb: Add tests.
4964         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
4965         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
4966         * tests/test-c32rtomb-w32.c: New file, based on
4967         tests/test-wcrtomb-w32.c.
4968         * tests/test-c32rtomb-w32-1.sh: New file, based on
4969         tests/test-wcrtomb-w32-1.sh.
4970         * tests/test-c32rtomb-w32-2.sh: New file, based on
4971         tests/test-wcrtomb-w32-2.sh.
4972         * tests/test-c32rtomb-w32-3.sh: New file, based on
4973         tests/test-wcrtomb-w32-3.sh.
4974         * tests/test-c32rtomb-w32-4.sh: New file, based on
4975         tests/test-wcrtomb-w32-4.sh.
4976         * tests/test-c32rtomb-w32-5.sh: New file, based on
4977         tests/test-wcrtomb-w32-5.sh.
4978         * tests/test-c32rtomb-w32-6.sh: New file, based on
4979         tests/test-wcrtomb-w32-6.sh.
4980         * tests/test-c32rtomb-w32-7.sh: New file, based on
4981         tests/test-wcrtomb-w32-7.sh.
4982         * modules/c32rtomb-tests: New file.
4984         c32rtomb: New module.
4985         * lib/uchar.in.h (c32rtomb): New declaration.
4986         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
4987         * m4/c32rtomb.m4: New file.
4988         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
4989         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
4990         REPLACE_C32RTOMB.
4991         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
4992         HAVE_C32RTOMB, REPLACE_C32RTOMB.
4993         * modules/c32rtomb: New file.
4994         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
4995         * doc/posix-functions/c32rtomb.texi: Document the new module.
4996         * doc/posix-functions/wcrtomb.texi: Mention the new module.
4998 2020-01-08  Bruno Haible  <bruno@clisp.org>
5000         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5001         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5002         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5003         but is not working.
5004         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5005         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5006         differ, use the system's mbrtoc32, adding workarounds.
5007         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5008         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5009         Windows problem.
5010         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5011         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5012         use mbrtoc32, not btowc.
5013         * modules/btoc32 (Depends-on): Add mbrtoc32.
5014         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5015         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5016         * modules/mbsrtoc32s (Depends-on): Update conditions.
5017         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5018         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5019         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5020         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5021         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5023 2020-01-07  Bruno Haible  <bruno@clisp.org>
5025         wcrtomb: Make multithread-safe, except possibly on IRIX.
5026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5027         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5028         WCRTOMB_RETVAL_BUG.
5029         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5030         wctomb only on IRIX.
5032 2020-01-05  Jim Meyering  <meyering@fb.com>
5034         tests: skip thread-using tests when threading is disabled
5035         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5036         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5037         of those, so they are skipped in this case.
5038         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5039         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5040         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5042 2020-01-05  Bruno Haible  <bruno@clisp.org>
5044         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5045         Reported by Jim Meyering in
5046         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5047         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5048         (GNULIB_defined_ptsname_r): New macro.
5049         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5050         (main): Disable the NULL argument test if canonicalize_file_name does
5051         not come from gnulib.
5052         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5053         (main): Disable the NULL argument test if canonicalize_file_name does
5054         not come from gnulib.
5055         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5056         (test_errors): Disable the NULL argument test if ptsname_r does not come
5057         from gnulib.
5059 2020-01-04  Jim Meyering  <meyering@fb.com>
5061         update-copyright: reenable its always-skipped test
5062         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5063         on 2019-06-15. Without those, an internal preliminary test would
5064         fail, causing this test always to be skipped.
5065         Verify that the test is now run and passes via this:
5066           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5068 2020-01-05  Bruno Haible  <bruno@clisp.org>
5070         mbstoc32s: Add tests.
5071         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5072         * tests/test-mbstoc32s-1.sh: New file, based on
5073         tests/test-mbsrtoc32s-1.sh.
5074         * tests/test-mbstoc32s-2.sh: New file, based on
5075         tests/test-mbsrtoc32s-2.sh.
5076         * tests/test-mbstoc32s-3.sh: New file, based on
5077         tests/test-mbsrtoc32s-3.sh.
5078         * tests/test-mbstoc32s-4.sh: New file, based on
5079         tests/test-mbsrtoc32s-4.sh.
5080         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5082         mbstoc32s: New module.
5083         * lib/uchar.in.h (mbstoc32s): New declaration.
5084         * lib/mbstoc32s.c: New file.
5085         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5086         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5087         * modules/mbstoc32s: New file.
5088         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5089         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5091 2020-01-05  Bruno Haible  <bruno@clisp.org>
5093         Tweak recently added tests.
5094         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5095         * tests/test-mbsrtoc32s.c: Likewise.
5096         * tests/test-mbsnrtoc32s.c: Likewise.
5098 2020-01-04  Bruno Haible  <bruno@clisp.org>
5100         mbsnrtoc32s: Add tests.
5101         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5102         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5103         tests/test-mbsnrtowcs1.sh.
5104         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5105         tests/test-mbsnrtowcs2.sh.
5106         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5107         tests/test-mbsnrtowcs3.sh.
5108         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5109         tests/test-mbsnrtowcs4.sh.
5110         * modules/mbsnrtoc32s-tests: New file, based on
5111         modules/mbsnrtowcs-tests.
5113         mbsnrtoc32s: New module.
5114         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5115         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5116         INTERNAL_STATE, MBRTOWC.
5117         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5118         * lib/mbsnrtoc32s.c: New file.
5119         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5120         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5121         * modules/mbsnrtoc32s: New file.
5122         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5123         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5125 2020-01-04  Bruno Haible  <bruno@clisp.org>
5127         mbsrtoc32s tests: Enhance test.
5128         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5129         test strings for UTF-8 and GB18030.
5131 2020-01-04  Bruno Haible  <bruno@clisp.org>
5133         mbsrtoc32s: Fix bug.
5134         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5135         that SMALL_WCHAR_T is defined.
5137 2020-01-04  Bruno Haible  <bruno@clisp.org>
5139         mbsrtoc32s: Add tests.
5140         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5141         * tests/test-mbsrtoc32s-1.sh: New file, based on
5142         tests/test-mbsrtowcs1.sh.
5143         * tests/test-mbsrtoc32s-2.sh: New file, based on
5144         tests/test-mbsrtowcs2.sh.
5145         * tests/test-mbsrtoc32s-3.sh: New file, based on
5146         tests/test-mbsrtowcs3.sh.
5147         * tests/test-mbsrtoc32s-4.sh: New file, based on
5148         tests/test-mbsrtowcs4.sh.
5149         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5151         mbsrtoc32s: New module.
5152         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5153         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5154         INTERNAL_STATE, MBRTOWC.
5155         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5156         * lib/mbsrtoc32s.c: New file.
5157         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5158         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5159         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5160         * modules/mbsrtoc32s: New file.
5161         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5162         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5164 2020-01-04  Bruno Haible  <bruno@clisp.org>
5166         mbrtowc, mbrtoc32: Tighten dependendies.
5167         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5168         REPLACE_MBSTATE_T is 1.
5169         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5170         REPLACE_MBSTATE_T is 0.
5171         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5172         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5173         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5174         REPLACE_MBSTATE_T is 0.
5176 2020-01-04  Bruno Haible  <bruno@clisp.org>
5178         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5179         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5180         * modules/uchar (Files): Add stdint.m4.
5181         (Makefile.am): Substitute SMALL_WCHAR_T.
5182         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5184 2020-01-04  Bruno Haible  <bruno@clisp.org>
5186         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5187         Reported by Martin Storsjö <martin@martin.st> in
5188         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5189         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5190         New macros.
5191         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5193 2020-01-04  Bruno Haible  <bruno@clisp.org>
5195         btoc32: Add tests.
5196         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5197         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5198         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5199         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5201         btoc32: New module.
5202         * lib/uchar.in.h (btoc32): New declaration.
5203         * lib/btoc32.c: New file.
5204         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5205         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5206         * modules/btoc32: New file.
5207         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5208         * doc/posix-functions/btowc.texi: Mention the new module.
5210 2020-01-03  Bruno Haible  <bruno@clisp.org>
5212         uchar tests: Avoid compilation error with HP cc.
5213         * tests/test-uchar.c: Disable a test when HP cc is in use.
5215 2020-01-03  Bruno Haible  <bruno@clisp.org>
5217         mbrtoc32: Add tests.
5218         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5219         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5220         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5221         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5222         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5223         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5224         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5225         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5226         tests/test-mbrtowc-w32-1.sh.
5227         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5228         tests/test-mbrtowc-w32-2.sh.
5229         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5230         tests/test-mbrtowc-w32-3.sh.
5231         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5232         tests/test-mbrtowc-w32-4.sh.
5233         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5234         tests/test-mbrtowc-w32-5.sh.
5235         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5236         tests/test-mbrtowc-w32-6.sh.
5237         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5238         tests/test-mbrtowc-w32-7.sh.
5239         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5241         mbrtoc32: New module.
5242         * lib/uchar.in.h (mbrtoc32): New declaration.
5243         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5244         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5245         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5246         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5247         REPLACE_MBRTOC32.
5248         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5249         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5250         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5251         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5252         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5253         $(LIB_MBRTOWC).
5254         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5255         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5257 2020-01-03  Bruno Haible  <bruno@clisp.org>
5259         mbrtowc: Refactor to share code with mbrtoc32.
5260         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5261         * lib/mbrtowc-impl-utf8.h: Likewise.
5262         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5263         mbrtowc-impl.h.
5264         * modules/mbrtowc (Files): Add the new files.
5266 2020-01-03  Jim Meyering  <meyering@fb.com>
5268         doc: fix time.texi wording
5269         * doc/posix-headers/time.texi (time.h): Typo.
5271 2020-01-03  Bruno Haible  <bruno@clisp.org>
5273         mbrtowc: Refactor locale charset dispatching.
5274         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5275         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5276         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5277         localcharset.h, streq.h.
5278         (enc_t): Remove type.
5279         (locale_enc): Remove function.
5280         (cached_locale_enc): Remove variable.
5281         (locale_enc_cached): Remove function.
5282         (mbrtowc): Invoke locale_encoding_classification.
5283         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5284         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5285         lc-charset-dispatch.c.
5286         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5288 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5290         doc: mention 32-bit time_t issue
5291         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5292         * doc/posix-headers/time.texi (time.h): Mention 2038.
5294 2020-01-03  Bruno Haible  <bruno@clisp.org>
5296         mbrtowc: Ensure the mbtowc_lock is unique.
5297         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5298         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5299         lib/setlocale_null.c.
5300         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5301         glthread/lock.h. Include mbtowc-lock.h.
5302         (mbtowc_lock): Remove declaration.
5303         (mbrtowc): Use mbtowc_with_lock.
5304         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5305         threads.h. Set LIB_MBRTOWC.
5306         (gl_PREREQ_MBTOWC_LOCK): New macro.
5307         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5308         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5309         (Depends-on): Remove lock.
5310         (configure.ac): Arrange to compile mbtowc-lock.c.
5311         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5312         * modules/acl (Link): Likewise.
5313         * modules/argmatch (Link): Likewise.
5314         * modules/backup-rename (Link): Likewise.
5315         * modules/backupfile (Link): Likewise.
5316         * modules/closein (Link): Likewise.
5317         * modules/closeout (Link): Likewise.
5318         * modules/copy-file (Link): Likewise.
5319         * modules/csharpcomp (Link): Likewise.
5320         * modules/csharpexec (Link): Likewise.
5321         * modules/dfa (Link): Likewise.
5322         * modules/exclude (Link): Likewise.
5323         * modules/fnmatch (Link): Likewise.
5324         * modules/fnmatch-gnu (Link): Likewise.
5325         * modules/fnmatch-posix (Link): Likewise.
5326         * modules/glob (Link): Likewise.
5327         * modules/human (Link): Likewise.
5328         * modules/javacomp (Link): Likewise.
5329         * modules/javaexec (Link): Likewise.
5330         * modules/javaversion (Link): Likewise.
5331         * modules/mbfile (Link): Likewise.
5332         * modules/mbiter (Link): Likewise.
5333         * modules/mbmemcasecmp (Link): Likewise.
5334         * modules/mbmemcasecoll (Link): Likewise.
5335         * modules/mbrlen (Link): Likewise.
5336         * modules/mbscasecmp (Link): Likewise.
5337         * modules/mbscasestr (Link): Likewise.
5338         * modules/mbschr (Link): Likewise.
5339         * modules/mbscspn (Link): Likewise.
5340         * modules/mbsinit (Link): Likewise.
5341         * modules/mbslen (Link): Likewise.
5342         * modules/mbsncasecmp (Link): Likewise.
5343         * modules/mbsnlen (Link): Likewise.
5344         * modules/mbsnrtowcs (Link): Likewise.
5345         * modules/mbspbrk (Link): Likewise.
5346         * modules/mbspcasecmp (Link): Likewise.
5347         * modules/mbsrchr (Link): Likewise.
5348         * modules/mbsrtowcs (Link): Likewise.
5349         * modules/mbssep (Link): Likewise.
5350         * modules/mbsspn (Link): Likewise.
5351         * modules/mbsstr (Link): Likewise.
5352         * modules/mbstok_r (Link): Likewise.
5353         * modules/mbswidth (Link): Likewise.
5354         * modules/mbuiter (Link): Likewise.
5355         * modules/mkdir-p (Link): Likewise.
5356         * modules/propername (Link): Likewise.
5357         * modules/quote (Link): Likewise.
5358         * modules/quotearg (Link): Likewise.
5359         * modules/quotearg-simple (Link): Likewise.
5360         * modules/regex-quote (Link): Likewise.
5361         * modules/rpmatch (Link): Likewise.
5362         * modules/sh-quote (Link): Likewise.
5363         * modules/system-quote (Link): Likewise.
5364         * modules/trim (Link): Likewise.
5365         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5366         * modules/unistdio/ulc-fprintf (Link): Likewise.
5367         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5368         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5369         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5370         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5371         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5372         * modules/xfreopen (Link): Likewise.
5373         * modules/xmemcoll (Link): Likewise.
5374         * modules/yesno (Link): Likewise.
5375         * modules/regex (Link): Add $(LIB_MBRTOWC).
5376         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5377         instead of $(LIBTHREAD).
5378         * modules/argmatch-tests (Makefile.am): Likewise.
5379         * modules/closein-tests (Makefile.am): Likewise.
5380         * modules/copy-file-tests (Makefile.am): Likewise.
5381         * modules/dfa-tests (Makefile.am): Likewise.
5382         * modules/fnmatch-tests (Makefile.am): Likewise.
5383         * modules/glob-tests (Makefile.am): Likewise.
5384         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5385         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5386         * modules/mbrtowc-tests (Makefile.am): Likewise.
5387         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5388         * modules/mbscasestr-tests (Makefile.am): Likewise.
5389         * modules/mbschr-tests (Makefile.am): Likewise.
5390         * modules/mbscspn-tests (Makefile.am): Likewise.
5391         * modules/mbsinit-tests (Makefile.am): Likewise.
5392         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5393         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5394         * modules/mbspbrk-tests (Makefile.am): Likewise.
5395         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5396         * modules/mbsrchr-tests (Makefile.am): Likewise.
5397         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5398         * modules/mbsspn-tests (Makefile.am): Likewise.
5399         * modules/mbsstr-tests (Makefile.am): Likewise.
5400         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5401         * modules/quotearg-tests (Makefile.am): Likewise.
5402         * modules/readtokens-tests (Makefile.am): Likewise.
5403         * modules/sh-quote-tests (Makefile.am): Likewise.
5404         * modules/system-quote-tests (Makefile.am): Likewise.
5405         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5406         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5407         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5408         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5409         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5410         * modules/yesno-tests (Makefile.am): Likewise.
5411         * modules/exclude-tests (Makefile.am): Link the programs with
5412         $(LIB_MBRTOWC).
5413         * modules/regex-tests (Makefile.am): Likewise.
5414         * modules/regex-quote-tests (Makefile.am): Likewise.
5416 2020-01-03  Bruno Haible  <bruno@clisp.org>
5418         getopt-posix: Fix compilation failure in testdirs.
5419         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5420         when the gnulib module 'getopt-posix' is enabled.
5421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5422         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5423         module indicator.
5424         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5426 2020-01-03  Bruno Haible  <bruno@clisp.org>
5428         doc: Mention the 64-bit inode number problem.
5429         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5430         64-bit inode number problem.
5431         * doc/posix-functions/stat.texi: Mention that this module fixes the
5432         64-bit inode number problem.
5433         * doc/posix-functions/lstat.texi: Likewise.
5434         * doc/posix-functions/fstat.texi: Likewise.
5435         * doc/posix-functions/readdir.texi: Add more details.
5436         * doc/posix-functions/readdir_r.texi: Likewise.
5438 2020-01-02  Bruno Haible  <bruno@clisp.org>
5440         wcrtomb: Add more tests.
5441         * tests/test-wcrtomb-w32.c: Include localcharset.h.
5442         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5443         locale_charset() returns the expected value; otherwise, skip the test.
5444         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
5445         * tests/test-wcrtomb-w32-7.sh: Likewise.
5446         * modules/wcrtomb-tests (Files): Add these files.
5447         (Depends-on): Add localcharset.
5448         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5450 2020-01-02  Bruno Haible  <bruno@clisp.org>
5452         mbrtowc: Add more tests.
5453         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5454         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5455         locale_charset() returns the expected value; otherwise, skip the test.
5456         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5457         * tests/test-mbrtowc-w32-7.sh: Likewise.
5458         * modules/mbrtowc-tests (Files): Add these files.
5459         (Depends-on): Add localcharset.
5460         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5462 2020-01-02  Bruno Haible  <bruno@clisp.org>
5464         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5465         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5466         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5467         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5468         MBRTOWC_STORES_INCOMPLETE_BUG.
5469         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5471 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5473         doc: mention glibc bug 24269
5474         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5475         Reformat slightly so that it looks nicer in the Grep manual.
5477 2020-01-02  Bruno Haible  <bruno@clisp.org>
5479         mbrtowc: Don't replace mbstate_t on MSVC.
5480         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5481         a missing mbsinit function on native Windows.
5482         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5483         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5484         MSVC bug.
5485         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5487 2020-01-02  Bruno Haible  <bruno@clisp.org>
5489         setlocale-null: Avoid crashing the MSVC linker.
5490         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5491         MSVC.
5493 2020-01-02  Bruno Haible  <bruno@clisp.org>
5495         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5496         * modules/wchar (Depends-on): Add inttypes-incomplete.
5497         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5498         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5499         of strtoimax.
5501 2020-01-02  Bruno Haible  <bruno@clisp.org>
5503         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5504         * lib/mbrtowc.c: Include <stdint.h>.
5505         * modules/mbrtowc (Depends-on): Add stdint.
5507 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5509         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5510         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5511         which will auto enable use of openssl, only for >= version 3,
5512         which is newly licensed under the Apache Software License.
5514 2020-01-01  Bruno Haible  <bruno@clisp.org>
5516         mbrtowc: Include function name in macro names.
5517         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5518         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5519         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5520         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5521         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5522         C_LOCALE_MAYBE_EILSEQ.
5524 2020-01-01  Bruno Haible  <bruno@clisp.org>
5526         c32tob: New module.
5527         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5528         (c32tob): New declaration.
5529         * lib/c32tob.c: New file.
5530         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5531         macros.
5532         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5533         * modules/uchar (Depends-on): Add snippet/c++defs.
5534         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5535         uchar.h.
5536         * modules/c32tob: New file.
5537         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5538         defined.
5539         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5540         c32tob.
5541         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5542         * doc/posix-functions/wctob.texi: Mention the new module.
5544 2020-01-01  Bruno Haible  <bruno@clisp.org>
5546         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5547         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5548         $(LIB_SETLOCALE).
5550 2020-01-01  Bruno Haible  <bruno@clisp.org>
5552         hard-locale tests: Fix a conflict with the C++ tests.
5553         * modules/hard-locale-tests (Makefile.am): Build a program named
5554         'current-locale', not 'locale'.
5556 2020-01-01  Bruno Haible  <bruno@clisp.org>
5558         doc: Update documentation about wchar_t.
5559         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5560         wchar_t type.
5562 2020-01-01  Bruno Haible  <bruno@clisp.org>
5564         mbrtowc tests: Fix typos.
5565         * tests/test-mbrtowc.c (main): Fix typo.
5566         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5568 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5570         maint: update copyright notices
5571         Before doing the following changes done by hand, I also ran ‘make
5572         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5573         to do most of the copyright years automatically.  A few upstream
5574         sources are still in 2019 but these should eventually be changed
5575         automatically too.
5576         * build-aux/declared.sh (func_version):
5577         * build-aux/libtool-next-version (func_version):
5578         * build-aux/run-test (func_version):
5579         Update these notices by hand.  Put just the last year
5580         in output of programs, as per GNU coding standards.
5582 2019-12-31  Bruno Haible  <bruno@clisp.org>
5584         uchar: Add C++ tests.
5585         * tests/test-uchar-c++.cc: New file.
5586         * tests/test-uchar-c++2.cc: New file.
5587         * modules/uchar-c++-tests: New file.
5589         uchar: Add tests.
5590         * tests/test-uchar.c: New file.
5591         * modules/uchar-tests: New file.
5593         uchar: New module.
5594         * lib/uchar.in.h: New file.
5595         * m4/uchar.m4: New file.
5596         * modules/uchar: New file.
5597         * doc/posix-headers/uchar.texi: Mention the new module.
5599 2019-12-30  Jim Meyering  <meyering@fb.com>
5601         localeinfo: ->simple would be wrong for LC_ALL=C
5602         That would lead to using unnecessary and expensive code paths in dfa.c.
5603         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5604         error that would have made grep many times slower in the C locale.
5605         With this change, and a file created like this:
5606           yes 00 | head -10000000 > in
5607         Running grep as follows becomes more than 40 times faster:
5608           LC_ALL=C grep -Fw 0 in
5610 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5612         doc: document trouble with back-references
5613         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5615 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5617         doc: use “back-reference” for \1 etc.
5618         * doc/regex.texi: Consistently spell “back-reference” with
5619         a hyphen, since that’s how POSIX does it.
5621 2019-12-26  Jim Meyering  <meyering@fb.com>
5623         test-framework-sh: tighten an internal grep regexp
5624         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5625         that helps test for a working printf.
5627 2019-12-26  Bruno Haible  <bruno@clisp.org>
5629         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5630         Reported by Paul Eggert in
5631         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5632         Simplification by Jim Meyering.
5633         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5634         octal escape sequence in a UTF-8 locale.
5636 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5638         mbrtowc: port better to narrow-wchar_t platforms
5639         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5640         wchar_t is too narrow to represent all the Unicode characters,
5641         consider a byte sequence for an out-of-wchar_t-range character to
5642         be an encoding error.  This fixes grep’s surrogate-pair test
5643         failure on AIX 7.2.
5645 2019-12-24  Bruno Haible  <bruno@clisp.org>
5647         localcharset: Avoid referencing rpl_setlocale on native Windows.
5648         * lib/localcharset.c (setlocale): Undefine.
5650 2019-12-24  Bruno Haible  <bruno@clisp.org>
5652         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5653         * m4/semaphore.m4: New file.
5654         * modules/lock-tests (Files): Add it.
5655         (configure.ac): Require gl_SEMAPHORE.
5656         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5658 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5660         strptime: fix typo in previous patch
5661         Problem and fix reported by Bruno Haible in:
5662         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5663         * lib/strptime.c (day_of_the_week): Fix paren bug.
5665 2019-12-24  Bruno Haible  <bruno@clisp.org>
5667         setlocale-null: Make it easy to rely on the lock in another library.
5668         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5669         defined.
5671 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5673         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5674         Performanced analyzed by Bruno Haible in:
5675         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5676         * config/srclist.txt: Do not sync mktime.c for now.
5677         * lib/mktime.c (shr, ydhms_diff):
5678         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5679         * lib/strptime.c (day_of_the_week):
5680         * lib/xtime.h (xtime_sec):
5681         Redo with neither ‘%’ nor conditional branches.
5683 2019-12-23  Bruno Haible  <bruno@clisp.org>
5685         setlocale-null: Export the lock function also on non-Windows platforms.
5686         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5687         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5688         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5689         * modules/setlocale-null (configure.ac): Invoke it.
5690         (Files): Add m4/visibility.m4.
5692 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5694         gethrxtime: fix rounding bug with negative args
5695         Problem reported by Bruno Haible in:
5696         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5697         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5698         with negative rounding.  Common platforms can compute / and % with
5699         a single instruction, so the simplified code should be shorter and
5700         faster on these platforms anyway.
5702 2019-12-22  Bruno Haible  <bruno@clisp.org>
5704         gethrxtime: remove incorrect overflow detection
5705         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5706         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5707         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5708         cannot now see the need for anyway (even in cases where it works),
5709         as the patch is helpful only when the signs of S and NS disagree,
5710         and all callers pass nonnegative values for S and NS.
5712 2019-12-22  Bruno Haible  <bruno@clisp.org>
5714         setlocale-null: Add standalone include file.
5715         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5716         * lib/locale.in.h: Include setlocale_null.h.
5717         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5718         setlocale_null): Remove declarations.
5719         * lib/setlocale_null.c: Include setlocale_null.h.
5720         * lib/localename.c: Likewise.
5721         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
5722         (Depends-on): Add snippet/arg-nonnull.
5723         (Include): Allow either "setlocale_null.h" or <locale.h>.
5725 2019-12-22  Bruno Haible  <bruno@clisp.org>
5727         strfmon_l: Fix test failures on FreeBSD and Cygwin.
5728         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
5729         AC_RUN_IFELSE test.
5730         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
5731         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
5732         problem.
5734 2019-12-22  Bruno Haible  <bruno@clisp.org>
5736         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
5737         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
5738         unconditional AC_LIBOBJ.
5739         * modules/selinux-at: Likewise.
5740         * modules/xmemdup0: Likewise.
5741         * modules/xstrtoll: Likewise.
5743 2019-12-22  Bruno Haible  <bruno@clisp.org>
5745         longlong: Mark module obsolete.
5746         * modules/longlong (Status, Notice): New sections.
5748         stdint: Assume that the compiler supports 'long long'.
5749         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
5750         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
5751         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5752         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
5753         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5754         * modules/stdint (Files): Remove longlong.m4.
5755         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
5756         HAVE_UNSIGNED_LONG_LONG_INT.
5758         inttypes-incomplete: Assume that the compiler supports 'long long'.
5759         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5760         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
5761         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5762         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
5763         HAVE_LONG_LONG_INT to be 1.
5764         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5765         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
5767         malloca: Assume that the compiler supports 'long long'.
5768         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
5769         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
5770         * modules/malloca (Files): Remove longlong.m4.
5771         * modules/relocatable-prog-wrapper (Files): Likewise.
5773         atoll: Assume that the compiler supports 'long long'.
5774         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
5775         * modules/atoll (Files): Remove longlong.m4.
5777         strtoll: Assume that the compiler supports 'long long'.
5778         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
5779         * modules/strtoll (Files): Remove longlong.m4.
5781         strtoull: Assume that the compiler supports 'long long'.
5782         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
5783         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5784         * modules/strtoull (Files): Remove longlong.m4.
5786         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
5787         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
5788         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5789         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
5790         AC_TYPE_LONG_LONG_INT.
5791         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
5792         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5793         * modules/strtoimax (Files): Remove longlong.m4.
5794         * modules/strtoumax (Files): Likewise.
5796         xstrtoll: Assume that the compiler supports 'long long'.
5797         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
5798         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
5800         vasnprintf: Assume that the compiler supports 'long long'.
5801         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
5802         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
5803         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5804         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
5805         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
5806         require AC_TYPE_LONG_LONG_INT.
5807         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5808         gl_PREREQ_VASNPRINTF): Likewise.
5809         * modules/vasnprintf (Files): Remove longlong.m4.
5810         * modules/c-vasnprintf (Files): Likewise.
5811         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5812         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5813         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5814         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5815         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5816         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5817         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5819         gethrxtime: Assume that the compiler supports 'long long'.
5820         * lib/xtime.h (xtime_t): Define to 'long long int' always.
5821         (XTIME_PRECISION): Define to 1000000000 always.
5822         (xtime_make, xtime_sec): Optimize accordingly.
5823         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
5824         * modules/gethrxtime (Files): Remove longlong.m4.
5826         integer_length*: Assume that the compiler supports 'long long'.
5827         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
5828         * modules/integer_length (Files): Remove longlong.m4.
5829         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5830         * modules/integer_length_l (Files): Remove longlong.m4.
5831         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5832         * modules/integer_length_ll (Files): Remove longlong.m4.
5833         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5835         count-one-bits: Assume that the compiler supports 'long long'.
5836         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
5837         * m4/count-one-bits.m4: Remove file.
5838         * modules/count-one-bits (Files): Remove it.
5839         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
5840         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
5841         unconditionally.
5843         count-trailing-zeros: Assume that the compiler supports 'long long'.
5844         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
5845         unconditionally.
5846         * m4/count-trailing-zeros.m4: Remove file.
5847         * modules/count-trailing-zeros (Files): Remove it.
5848         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
5849         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
5850         unconditionally.
5852         count-leading-zeros: Assume that the compiler supports 'long long'.
5853         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
5854         unconditionally.
5855         * m4/count-leading-zeros.m4: Remove file.
5856         * modules/count-leading-zeros (Files): Remove it.
5857         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
5858         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
5859         unconditionally.
5861 2019-12-22  Bruno Haible  <bruno@clisp.org>
5863         localcharset: Update support for OpenBSD.
5864         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
5866 2019-12-21  Bruno Haible  <bruno@clisp.org>
5868         pthread_sigmask: Avoid test failure on NetBSD 8.0.
5869         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
5870         NetBSD.
5871         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
5873 2019-12-21  Bruno Haible  <bruno@clisp.org>
5875         threadlib: Improve code structure.
5876         * m4/threadlib.m4: Reorder macros. Add comments.
5878 2019-12-21  Bruno Haible  <bruno@clisp.org>
5880         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
5881         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
5882         here from m4/threads.m4).
5883         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
5884         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
5885         (gl_STDTHREADLIB): New macro.
5886         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
5887         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
5889 2019-12-21  Bruno Haible  <bruno@clisp.org>
5891         sched_yield: Don't depend on threadlib and yield.
5892         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
5893         LIB_SCHED_YIELD.
5894         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
5895         m4/yield.m4).
5896         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
5897         gl_THREADLIB and gl_YIELD.
5898         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
5899         based on $(LIB_SCHED_YIELD).
5900         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
5901         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5902         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
5903         (Depends-on): Remove threadlib.
5904         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5905         * modules/threads-h (Files): Remove m4/yield.m4.
5906         * modules/pthread-cond-tests (Makefile.am): Link the programs against
5907         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
5908         * modules/pthread-mutex-tests (Makefile.am): Likewise.
5909         * modules/pthread-once-tests (Makefile.am): Likewise.
5910         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
5911         * modules/pthread-tss-tests (Makefile.am): Likewise.
5913 2019-12-21  Bruno Haible  <bruno@clisp.org>
5915         threads-h: Don't depend on threadlib.
5916         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
5917         not gl_THREADLIB_EARLY.
5919 2019-12-21  Bruno Haible  <bruno@clisp.org>
5921         nl_langinfo tests: Fix link error (regression from 2019-12-18).
5922         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
5923         with $(LIB_SETLOCALE).
5925 2019-12-21  Bruno Haible  <bruno@clisp.org>
5927         threadlib: Remove unused dependency (left over from 2019-07-06).
5928         * modules/threadlib (Depends-on): Remove havelib.
5930 2019-12-21  Bruno Haible  <bruno@clisp.org>
5932         New convention for multithread-safety tests.
5933         * tests/test-setlocale_null-mt-one.c: Renamed from
5934         tests/test-setlocale_null-one.c.
5935         * tests/test-setlocale_null-mt-all.c: Renamed from
5936         tests/test-setlocale_null-all.c.
5937         * modules/setlocale-null-tests (Files, Makefile.am): Update.
5939 2019-12-21  Bruno Haible  <bruno@clisp.org>
5941         quotearg tests: Fix conflict with hard-locale tests.
5942         * tests/testlocale: Renamed from tests/locale.
5943         * modules/quotearg-tests (Files): Update.
5944         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
5946 2019-12-21  Bruno Haible  <bruno@clisp.org>
5948         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
5949         Reported by Daniel Richard G. in
5950         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
5951         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
5952         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
5953         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
5954         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
5955         alternative to PTHREAD_RWLOCK_INITIALIZER.
5956         * lib/glthread/lock.c: Likewise.
5958 2019-12-21  Bruno Haible  <bruno@clisp.org>
5960         memcmp tests: Work around the clang bug.
5961         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
5962         the clang optimization.
5964 2019-12-20  Bruno Haible  <bruno@clisp.org>
5966         localcharset: Add support for z/OS encoding names.
5967         * lib/localcharset.h: Mention which encodings are used as locale
5968         encodings on z/OS.
5970 2019-12-20  Bruno Haible  <bruno@clisp.org>
5972         iconv_open: Add support for z/OS encoding names.
5973         Reported by Daniel Richard G. in
5974         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
5975         * lib/iconv_open-zos.gperf: New file.
5976         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
5977         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
5978         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
5979         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
5980         * doc/posix-functions/iconv_open.texi: Mention z/OS.
5982 2019-12-20  Bruno Haible  <bruno@clisp.org>
5984         doc: Document the problem of the per-thread locale functions on z/OS.
5985         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
5986         * doc/posix-functions/newlocale.texi: Likewise.
5987         * doc/posix-functions/duplocale.texi: Likewise.
5988         * doc/posix-functions/freelocale.texi: Likewise.
5990 2019-12-20  Bruno Haible  <bruno@clisp.org>
5992         localename, gettext: Fix host_os value for z/OS.
5993         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
5994         cross-configuration code.
5996 2019-12-19  Jim Meyering  <meyering@fb.com>
5998         nstrftime: avoid a shadowing warning
5999         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6000         to avoid shadowing an "i" declared hundreds of lines above.
6002 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6004         dfa: struct dfamust now uses flexible array
6005         * lib/dfa.c: Include flexmember.h.
6006         (dfamust, dfamustfree): Adjust to struct dfamust change.
6007         This saves a call to malloc+free.
6008         * lib/dfa.h (struct dfamust): Make the final member a
6009         flexible array member.
6010         * modules/dfa (Depends-on): Add flexmember.
6012         dfa: fast->small for array elements
6013         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6014         since this type is used in arrays.  This change is more for
6015         documentation than for any practical effect, since the two types
6016         are the same on all known platforms.
6018 2019-12-19  Bruno Haible  <bruno@clisp.org>
6020         iconv tests: Test canonicalized, not system-dependent, encoding names.
6021         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6022         * modules/iconv-tests (Depends-on): Add iconv_open.
6024 2019-12-18  Bruno Haible  <bruno@clisp.org>
6026         localename: Fix test failure on AIX 7.2.
6027         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6028         locales on AIX.
6029         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6030         locales on AIX.
6032 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6034         Improve port of AC_C_RESTRICT to Oracle C++
6035         Problem reported by Christian Biesinger in:
6036         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6037         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6038         Oracle Developer Studio C++ 12.5 or later.
6040 2019-12-18  Bruno Haible  <bruno@clisp.org>
6042         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6043         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6045 2019-12-18  Bruno Haible  <bruno@clisp.org>
6047         localename: Ensure multithread-safety in future changes.
6048         * lib/localename.c (setlocale): Reference the system's setlocale().
6049         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6050         (gl_locale_name_posix): Likewise.
6051         * modules/localename (Depends-on): Add setlocale-null.
6053 2019-12-18  Bruno Haible  <bruno@clisp.org>
6055         setlocale-null: Make API more useful.
6056         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6057         callers changed.
6058         (setlocale_null): New declaration.
6059         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6060         extracted from setlocale_null_unlocked.
6061         (setlocale_null_unlocked): Invoke it.
6062         (setlocale_null_r): Renamed from setlocale_null.
6063         (setlocale_null): New function, extracted from setlocale_mtsafe in
6064         setlocale.c.
6065         * lib/setlocale.c: Don't include <errno.h>.
6066         (setlocale_mtsafe): Invoke setlocale_null.
6067         * lib/setlocale-lock.c: Update comments.
6068         * doc/posix-functions/setlocale.texi: Mention both functions.
6070 2019-12-18  Bruno Haible  <bruno@clisp.org>
6072         localename: Optimize code for native Windows.
6073         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6074         category (not allowed here).
6076 2019-12-18  Bruno Haible  <bruno@clisp.org>
6078         setlocale: Make calls with NULL argument multithread-safe.
6079         * lib/setlocale.c: Include <errno.h>.
6080         (setlocale_mtsafe): New function.
6081         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6082         (setlocale_improved): Renamed from rpl_setlocale.
6083         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6084         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6085         LIB_SETLOCALE.
6086         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6087         (Link): New section.
6088         * tests/locale.c: Undefine setlocale.
6089         * tests/test-setlocale_null-one.c: Likewise.
6090         * tests/test-setlocale_null-all.c: Likewise.
6091         * modules/setlocale-tests (Makefile.am): Link the test programs with
6092         $(LIB_SETLOCALE).
6093         * modules/astrxfrm-tests (Makefile.am): Likewise.
6094         * modules/btowc-tests (Makefile.am): Likewise.
6095         * modules/c-ctype-tests (Makefile.am): Likewise.
6096         * modules/c-snprintf-tests (Makefile.am): Likewise.
6097         * modules/c-strcase-tests (Makefile.am): Likewise.
6098         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6099         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6100         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6101         * modules/dfa-tests (Makefile.am): Likewise.
6102         * modules/duplocale-tests (Makefile.am): Likewise.
6103         * modules/hard-locale-tests (Makefile.am): Likewise.
6104         * modules/localcharset-tests (Makefile.am): Likewise.
6105         * modules/localename-tests (Makefile.am): Likewise.
6106         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6107         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6108         * modules/mbrtowc-tests (Makefile.am): Likewise.
6109         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6110         * modules/mbscasestr-tests (Makefile.am): Likewise.
6111         * modules/mbschr-tests (Makefile.am): Likewise.
6112         * modules/mbscspn-tests (Makefile.am): Likewise.
6113         * modules/mbsinit-tests (Makefile.am): Likewise.
6114         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6115         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6116         * modules/mbspbrk-tests (Makefile.am): Likewise.
6117         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6118         * modules/mbsrchr-tests (Makefile.am): Likewise.
6119         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6120         * modules/mbsspn-tests (Makefile.am): Likewise.
6121         * modules/mbsstr-tests (Makefile.am): Likewise.
6122         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6123         * modules/quotearg-tests (Makefile.am): Likewise.
6124         * modules/regex-tests (Makefile.am): Likewise.
6125         * modules/strfmon_l-tests (Makefile.am): Likewise.
6126         * modules/strtod-tests (Makefile.am): Likewise.
6127         * modules/strtold-tests (Makefile.am): Likewise.
6128         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6129         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6130         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6131         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6132         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6133         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6134         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6135         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6136         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6137         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6138         * modules/wcrtomb-tests (Makefile.am): Likewise.
6139         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6140         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6141         * modules/wcwidth-tests (Makefile.am): Likewise.
6142         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6143         safety fix is also available in module 'setlocale'.
6145 2019-12-18  Bruno Haible  <bruno@clisp.org>
6147         hard-locale: Make multithread-safe.
6148         * lib/hard-locale.h (hard_locale): Move documentation to here.
6149         * lib/hard-locale.c: Don't include <stdlib.h>.
6150         (GLIBC_VERSION): Remove macro.
6151         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6152         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6153         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6154         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6155         (Link): New section.
6156         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6157         $(LIB_HARD_LOCALE).
6159 2019-12-18  Bruno Haible  <bruno@clisp.org>
6161         hard-locale: Avoid test failure on Haiku.
6162         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6164 2019-12-18  Bruno Haible  <bruno@clisp.org>
6166         setlocale-null: Handle NULL result from setlocale.
6167         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6168         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6169         from setlocale or _wsetlocale.
6171 2019-12-18  Bruno Haible  <bruno@clisp.org>
6173         hard-locale: Add test.
6174         * tests/test-hard-locale.c: New file.
6175         * tests/locale.c: New file.
6176         * modules/hard-locale-tests: New file.
6178 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6180         dfa: do not match invalid UTF-8
6181         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6182         from 5 to 9 tokens; this is needed due to the changes to
6183         add_utf8_anychar.
6184         (charclass_index): 2nd arg is now pointer-to-const.
6185         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6186         instead of allowing overlong encodings or surrogate halves.
6188         dfa: simplify charclass by assuming C99
6189         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6190         (charclass_word): Now always uint_fast64_t.
6191         (CHARCLASS_PAIR): Remove.
6192         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6194         fts: tune via calloc
6195         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6197         dfa: tune via xzalloc
6198         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6200 2019-12-17  Bruno Haible  <bruno@clisp.org>
6202         localcharset: Fix multithread-safety bug on Windows and OS/2.
6203         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6204         invalid.
6205         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6206         assemble the result.
6208 2019-12-17  Bruno Haible  <bruno@clisp.org>
6210         localcharset: Optimize code for native Windows.
6211         * lib/localcharset.c (locale_charset): Don't bother calling
6212         setlocale (LC_ALL, NULL) since we're not interested in its result.
6214 2019-12-17  Bruno Haible  <bruno@clisp.org>
6216         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6217         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6218         setlocale.
6219         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6220         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6221         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6223 2019-12-17  Bruno Haible  <bruno@clisp.org>
6225         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6226         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6227         stack-allocated buffer to assemble each result and different static
6228         buffers to return it.
6229         * tests/test-nl_langinfo-mt.c: New file.
6230         * modules/nl_langinfo-tests (Files): Add it.
6231         (Depends-on): Add thread, nanosleep.
6232         (Makefile.am): Build test-nl_langinfo-mt test.
6234 2019-12-17  Bruno Haible  <bruno@clisp.org>
6236         langinfo: Document more details.
6237         * doc/posix-headers/langinfo.texi: List platform details.
6238         * doc/posix-functions/nl_langinfo.texi: Likewise.
6240 2019-12-17  Bruno Haible  <bruno@clisp.org>
6242         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6243         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6244         and Martin Storsjö <martin@martin.st>
6245         in <https://savannah.gnu.org/bugs/?57406>.
6246         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6247         mingw.
6249 2019-12-17  Bruno Haible  <bruno@clisp.org>
6251         glob: Avoid warning on mingw.
6252         Reported by Christian Biesinger <cbiesinger@google.com> in
6253         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6254         * lib/glob.c (__stat64): Undefine first.
6256 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6258         xalloc: tune xzalloc for fresh allocations
6259         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6260         because when the memory is freshly allocated from the OS via sbrk
6261         or mmap, calloc can avoid doing the memset.
6263         dfa: new function dfacopysyntax
6264         * lib/dfa.c (struct dfa): Move syntax member later so
6265         that dfacopysyntax can easily clear earlier members.
6266         (dfacopysyntax): New function, used by Gawk.
6268 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6270         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6271         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6272         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6273         if not already defined.
6275         dfa: remove one dependency on MB_CUR_MAX
6276         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6278         dfa: remove struct lexer_state.cur_mb_len
6279         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6280         as it’s not needed and the code is simpler without it.
6281         All uses removed.
6283 2019-12-16  Bruno Haible  <bruno@clisp.org>
6285         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6286         Reported by Arnold Robbins <arnold@skeeve.com>.
6287         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6288         copied from lib/glthread/lock.h.
6289         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6290         (setlocale_null_with_lock): If pthread_in_use() is false, use
6291         setlocale_null_unlocked directly.
6292         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6293         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6294         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6295         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6296         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6297         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6299 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6301         dfa: make dfasyntax thread-safe
6302         Problem reported by Bruno Haible in:
6303         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6304         * lib/dfa.c: Do not include locale.h.
6305         (struct dfa): Remove simple_locale member.
6306         All uses replaced by localeinfo.simple.
6307         (using_simple_locale): Remove; now present (with some
6308         changes) in localeinfo.c.
6309         (dfasyntax): No need to initialize removed member.
6311         localeinfo: record whether locale is simple
6312         * lib/localeinfo.c (using_simple_locale): New function,
6313         copied here from lib/dfa.c but with a change: it uses
6314         strcoll for its heuristic, instead of using setlocale.
6315         This lets it be thread-safe.
6316         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6318 2019-12-15  Bruno Haible  <bruno@clisp.org>
6320         duplocale: Fix multithread-safety bug on AIX.
6321         * lib/duplocale.c: Don't include <stdlib.h>.
6322         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6323         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6324         Set LIB_DUPLOCALE.
6325         * modules/duplocale (Depends-on): Add setlocale-null.
6326         (Link): New section.
6327         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6328         $(LIB_DUPLOCALE).
6330 2019-12-15  Bruno Haible  <bruno@clisp.org>
6332         setlocale-null: Add tests.
6333         * tests/test-setlocale_null.c: New file.
6334         * tests/test-setlocale_null-one.c: New file.
6335         * tests/test-setlocale_null-all.c: New file.
6336         * modules/setlocale-null-tests: New file.
6338         setlocale-null: New module.
6339         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6340         setlocale_null): New declarations.
6341         * lib/setlocale_null.c: New file.
6342         * lib/setlocale-lock.c: New file.
6343         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6344         * m4/setlocale_null.m4: New file.
6345         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6346         GNULIB_SETLOCALE_NULL.
6347         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6348         * modules/setlocale-null: New file.
6349         * doc/posix-functions/setlocale.texi: Mention the new module.
6351 2019-12-15  Bruno Haible  <bruno@clisp.org>
6353         lock tests: Skip test when no multithreading is enabled.
6354         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6356 2019-12-14  Bruno Haible  <bruno@clisp.org>
6358         locale, duplocale, localename: Fix last patch.
6359         Reported by Daniel Richard G. in
6360         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6361         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6362         Don't define if locale_t does not exist.
6364 2019-12-13  Bruno Haible  <bruno@clisp.org>
6366         locale, duplocale, localename: Fix errors if locale_t does not exist.
6367         Reported by Daniel Richard G. in
6368         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6369         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6370         macros.
6371         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6372         HAVE_NEWLOCALE.
6373         * tests/test-localename.c: Likewise.
6374         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6375         HAVE_DUPLOCALE.
6376         * tests/test-locale-c++.cc: Likewise.
6378 2019-12-13  Bruno Haible  <bruno@clisp.org>
6380         wcstok: Fix test failure on HP-UX.
6381         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6382         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6384 2019-12-12  Bruno Haible  <bruno@clisp.org>
6386         strtod, strtold tests: Avoid test failure on AIX 7.2.
6387         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6388         '.' both are radix characters.
6389         * tests/test-strtold1.c (main): Likewise.
6391 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6393         dfa: prefer ptrdiff_t for API, too
6394         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6395         but do this only for internal use for now.
6396         * NEWS: Mention the API change.
6397         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6398         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6399         values known to be nonnegative.
6400         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6401         Prefer idx_t or ptrdiff_t to size_t for API.
6402         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6403         Prefer ptrdiff_t to size_t for API.
6405         stdalign: port to xlclang 16.01
6406         Problem reportd by Bruno Haible in:
6407         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6408         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6409         ((__aligned__ (...))) with xlclang, as a top-level
6410         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6411         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6413 2019-12-12  Bruno Haible  <bruno@clisp.org>
6415         duplocale: Fix test failure on AIX 7.2 with xlclang.
6416         * lib/duplocale.c: Include <stdlib.h>.
6417         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6418         value.
6420 2019-12-12  Bruno Haible  <bruno@clisp.org>
6422         stddef: Document the AIX xlc issue.
6423         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6425 2019-12-12  Bruno Haible  <bruno@clisp.org>
6427         duplocale: Don't attempt to override if locale_t does not exist.
6428         Reported by Daniel Richard G. in
6429         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6430         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6431         HAVE_DUPLOCALE to 0.
6433 2019-12-12  Bruno Haible  <bruno@clisp.org>
6435         wcwidth: Avoid test failure on AIX 7.2.
6436         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6437         negative.
6438         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6440 2019-12-12  Bruno Haible  <bruno@clisp.org>
6442         ilogbl: Work around Cygwin bug.
6443         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6444         correct.
6445         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6447 2019-12-12  Bruno Haible  <bruno@clisp.org>
6449         strtold: Work around Cygwin bug.
6450         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6451         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6452         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6453         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6454         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6456 2019-12-12  Bruno Haible  <bruno@clisp.org>
6458         strtold: Fix autoconf test.
6459         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6461 2019-12-11  Bruno Haible  <bruno@clisp.org>
6463         fsync tests: Skip test that is known to fail.
6464         * doc/posix-functions/fsync.texi: Update list of platforms.
6465         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6466         that is known to fail on AIX and Cygwin.
6468 2019-12-11  Bruno Haible  <bruno@clisp.org>
6470         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6472         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6473         HAVE_GETADDRINFO as a C macro.
6474         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6475         declare as replacement functions.
6476         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6477         define as no-op overrides.
6478         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6479         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6480         * modules/getaddrinfo (Depends-on, configure.ac): Test
6481         REPLACE_GETADDRINFO.
6482         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6483         problem.
6484         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6485         convention problems.
6487 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6489         dfa: prefer signed integers for internals
6490         Signed integers can be checked more easily for integer overflow.
6491         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6492         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6493         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6494         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6495         (replace, state_index, epsclosure, charclass_context)
6496         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6497         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6498         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6499         (comsubs, inboth, allocmust):
6500         Prefer a signed to an unsigned integer when calculating indexes,
6501         unless the integer is part of the external API (a bigger deal,
6502         and to be done later).
6504         dfa: fix index overflow
6505         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6506         very large regular expressions.
6508         dfa: update commentary for previous change
6509         * NEWS: Mention the change.
6510         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6512 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6514         dfa: separate parse and compile phase
6515         ‘dfamust’ must be called after parsing and before tokens are
6516         reordered, but both are executed in the compilation phase.
6517         Token reordering was introduced in Gnulib commit
6518         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6519         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6520         * lib/dfa.c (dfaparse): Change it to global function.
6521         (dfacomp): If first argument is NULL, skip parse.
6522         * lib/dfa.h: (dfaparse): Add a prototype.
6524 2019-12-11  Bruno Haible  <bruno@clisp.org>
6526         unistd tests: Fix link error on MSVC.
6527         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6528         $(LIB_GETLOGIN).
6530 2019-12-11  Bruno Haible  <bruno@clisp.org>
6532         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6533         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6534         and POSIX substitutes are supported in C++ mode.
6535         * NEWS: Likewise.
6537 2019-12-11  Bruno Haible  <bruno@clisp.org>
6539         stddef: Fix compilation error in C++ mode on MSVC.
6540         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6541         instead, include <cstddef>.
6543 2019-12-11  Bruno Haible  <bruno@clisp.org>
6545         unistd: Fix compilation error in C++ mode on MSVC.
6546         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6547         does not have <unistd.h>.
6549 2019-12-11  Bruno Haible  <bruno@clisp.org>
6551         locale: Fix compilation error in C++ mode on MSVC.
6552         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6553         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6554         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6555         int_n_sep_by_space): Define as macros on MSVC.
6557 2019-12-11  Bruno Haible  <bruno@clisp.org>
6559         wchar: Fix compilation error in C++ mode on MSVC.
6560         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6562 2019-12-11  Bruno Haible  <bruno@clisp.org>
6564         pthread-thread: Fix compilation error in C++ mode on MSVC.
6565         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6566         _GL_CXXALIAS_RPL invocation.
6568 2019-12-08  Bruno Haible  <bruno@clisp.org>
6570         Fix compilation errors in C++ mode on Haiku.
6571         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6572         non-glibc systems.
6573         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6574         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6575         posix_spawnattr_setschedparam): Likewise.
6576         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6577         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6578         * lib/unistd.in.h (usleep): Likewise.
6580 2019-12-08  Bruno Haible  <bruno@clisp.org>
6582         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6583         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6584         * modules/fseeko (configure.ac-early): Require it instead of
6585         AC_FUNC_FSEEKO.
6586         * modules/ftello (configure.ac-early): Likewise.
6587         * modules/fflush (configure.ac-early): Likewise.
6589 2019-12-08  Bruno Haible  <bruno@clisp.org>
6591         Fix compilation error in C++ mode on HP-UX 11.
6592         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6593         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6595 2019-12-08  Bruno Haible  <bruno@clisp.org>
6597         Fix compilation errors on HP-UX 11/ia64.
6598         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6599         _GL_FUNCDECL_SYS.
6601 2019-12-08  Bruno Haible  <bruno@clisp.org>
6603         Fix compilation error in C++ mode on OpenBSD.
6604         * lib/signal.in.h (signal): Declare on OpenBSD.
6606 2019-12-08  Bruno Haible  <bruno@clisp.org>
6608         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6609         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6610         instead of #error.
6612 2019-12-08  Bruno Haible  <bruno@clisp.org>
6614         Fix compilation errors in C++ mode on FreeBSD.
6615         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6616         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6617         * lib/threads.in.h (thrd_exit): Likewise.
6618         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6620 2019-12-08  Bruno Haible  <bruno@clisp.org>
6622         Fix compilation errors in C++ mode on macOS and FreeBSD.
6623         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6624         or FreeBSD with clang, use the approach without C preprocessor macro.
6626 2019-12-07  Bruno Haible  <bruno@clisp.org>
6628         Fix compilation errors in C++ mode on AIX with xlclang++.
6629         Reported by Christian Biesinger <cbiesinger@google.com> in
6630         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6631         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6633 2019-12-07  Bruno Haible  <bruno@clisp.org>
6635         Document compilation error in C++ mode on NetBSD 8.0.
6636         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6638 2019-12-07  Bruno Haible  <bruno@clisp.org>
6640         Fix compilation errors in C++ mode on Solaris 10.
6641         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6642         to non-empty on Solaris with a non-GCC compiler.
6643         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6645 2019-12-07  Bruno Haible  <bruno@clisp.org>
6647         Reword NEWS entry.
6648         * NEWS: Reword the latest NEWS entry.
6650 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6652         Move xstrtol_fatal to a new xstrtol-error module.
6653         * lib/xstrtol.h: Stop including <getopt.h>.
6654         (xstrtol_fatal): Move ...
6655         * lib/xstrtol-error.h: ... here.  New file.
6656         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6657         * tests/test-xstrtol.c: Likewise.
6658         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6659         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6660         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6661         * modules/xstrtol-error: New file.
6662         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6663         * MODULES.html.sh: Add xstrtol-error.
6664         * NEWS: Document the change.
6666 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6668         nstrftime: better width support for %N, %z
6669         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6670         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6671         a new WIDTH parameter.
6672         (add, add1, cpy): Use these macros.
6673         (width_add): Do not treat digits == 0 as a special case,
6674         do not pad if padding is ‘-’, and do not use a negative width.
6675         (__strftime_internal): Redo formatting of nanoseconds and numeric
6676         timezones to avoid buffer misuse in unusual cases, and so that
6677         widths make more sense.  Add support for widths greater than 9 to
6678         the %N format; they are zero filled on the right.
6679         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6681 2019-12-05  Bruno Haible  <bruno@clisp.org>
6683         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6684         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6685         set REPLACE_ISFINITE to 1.
6686         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6687         REPLACE_ISINF to 1.
6688         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6689         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6690         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6691         * lib/threads.in.h (call_once): Likewise.
6692         * lib/iconv.in.h (iconv): Likewise.
6694 2019-12-05  Bruno Haible  <bruno@clisp.org>
6696         wchar: Add more C++ tests.
6697         Reported by Christian Biesinger <cbiesinger@google.com> in
6698         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6699         * tests/test-wchar-c++3.cc: New file.
6700         * modules/wchar-c++-tests (Files): Add it.
6701         (Makefile.am): Compile it.
6703 2019-12-05  Bruno Haible  <bruno@clisp.org>
6705         Add more C++ tests.
6707         assert-h: Add C++ tests.
6708         * tests/test-assert-h-c++.cc: New file.
6709         * tests/test-assert-h-c++2.cc: New file.
6710         * modules/assert-h-c++-tests: New file.
6711         * modules/assert-h-tests: New file.
6713         ctype: Add C++ tests.
6714         * tests/test-ctype-c++.cc: New file.
6715         * tests/test-ctype-c++2.cc: New file.
6716         * modules/ctype-c++-tests: New file.
6717         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6719         errno: Add C++ tests.
6720         * tests/test-errno-c++.cc: New file.
6721         * tests/test-errno-c++2.cc: New file.
6722         * modules/errno-c++-tests: New file.
6723         * modules/errno-tests (Depends-on): Add errno-c++-tests.
6725         float: Add C++ tests.
6726         * tests/test-float-c++.cc: New file.
6727         * tests/test-float-c++2.cc: New file.
6728         * modules/float-c++-tests: New file.
6729         * modules/float-tests (Depends-on): Add float-c++-tests.
6731         inttypes: Add more C++ tests.
6732         * tests/test-inttypes-c++2.cc: New file.
6733         * modules/inttypes-c++-tests (Files): Add it.
6734         (Makefile.am): Compile it.
6736         limits-h: Add C++ tests.
6737         * tests/test-limits-h-c++.cc: New file.
6738         * tests/test-limits-h-c++2.cc: New file.
6739         * modules/limits-h-c++-tests: New file.
6740         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
6742         stdarg: Add C++ tests.
6743         * tests/test-stdarg-c++.cc: New file.
6744         * tests/test-stdarg-c++2.cc: New file.
6745         * modules/stdarg-c++-tests: New file.
6746         * modules/stdarg-tests: New file.
6748         stdbool: Add C++ tests.
6749         * tests/test-stdbool-c++.cc: New file.
6750         * tests/test-stdbool-c++2.cc: New file.
6751         * modules/stdbool-c++-tests: New file.
6752         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
6754         stddef: Add C++ tests.
6755         * tests/test-stddef-c++.cc: New file.
6756         * tests/test-stddef-c++2.cc: New file.
6757         * modules/stddef-c++-tests: New file.
6758         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
6760         stdint: Add C++ tests.
6761         * tests/test-stdint-c++.cc: New file.
6762         * tests/test-stdint-c++2.cc: New file.
6763         * modules/stdint-c++-tests: New file.
6764         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
6766         wchar: Add more C++ tests.
6767         * tests/test-wchar-c++2.cc: New file.
6768         * modules/wchar-c++-tests (Files): Add it.
6769         (Makefile.am): Compile it.
6771         wctype-h: Add more C++ tests.
6772         * tests/test-wctype-h-c++2.cc: New file.
6773         * modules/wctype-h-c++-tests (Files): Add it.
6774         (Makefile.am): Compile it.
6776 2019-12-04  Bruno Haible  <bruno@clisp.org>
6778         Fix compilation errors in C++ mode with xlclang++ on AIX.
6779         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
6780         C++ mode on AIX.
6781         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
6782         without C preprocessor macro.
6783         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
6784         _GL_CXXALIAS_SYS.
6785         * lib/threads.in.h (thrd_exit): Likewise.
6787 2019-12-04  Bruno Haible  <bruno@clisp.org>
6789         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
6790         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
6791         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
6793 2019-12-04  Bruno Haible  <bruno@clisp.org>
6795         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
6796         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
6797         _GL_CXXALIASWARN invocation on non-glibc systems.
6798         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
6799         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
6800         iswctype, towlower, towupper): Likewise.
6802 2019-12-03  Bruno Haible  <bruno@clisp.org>
6804         Avoid hassles caused by [[noreturn]] in C++.
6805         Reported by Christian Biesinger <cbiesinger@google.com> in
6806         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
6807         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
6808         * lib/_Noreturn.h: Likewise.
6810 2019-12-02  Bruno Haible  <bruno@clisp.org>
6812         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
6813         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
6814         LIBMULTITHREAD.
6815         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
6816         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
6817         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
6818         gl_THREADLIB.
6819         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
6821 2019-12-02  Bruno Haible  <bruno@clisp.org>
6823         Fix some more link errors with --enable-threads=isoc.
6824         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
6825         * modules/pthread-rwlock (Depends-on): Likewise.
6827 2019-12-02  Bruno Haible  <bruno@clisp.org>
6829         Fix link errors with --enable-threads=posix on AIX.
6830         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
6831         program with $(LIBTHREAD).
6832         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
6833         program with $(LIBTHREAD).
6835 2019-12-02  Bruno Haible  <bruno@clisp.org>
6837         Fix link errors with --enable-threads=posix on AIX.
6838         * modules/mbrtowc (Link): New section.
6839         * modules/acl (Link): Likewise.
6840         * modules/argmatch (Link): Likewise.
6841         * modules/backup-rename (Link): Likewise.
6842         * modules/backupfile (Link): Likewise.
6843         * modules/closein (Link): Likewise.
6844         * modules/closeout (Link): Likewise.
6845         * modules/copy-file (Link): Likewise.
6846         * modules/csharpcomp (Link): Likewise.
6847         * modules/csharpexec (Link): Likewise.
6848         * modules/dfa (Link): Likewise.
6849         * modules/exclude (Link): Likewise.
6850         * modules/fnmatch (Link): Likewise.
6851         * modules/fnmatch-gnu (Link): Likewise.
6852         * modules/fnmatch-posix (Link): Likewise.
6853         * modules/glob (Link): Likewise.
6854         * modules/human (Link): Likewise.
6855         * modules/javacomp (Link): Likewise.
6856         * modules/javaexec (Link): Likewise.
6857         * modules/javaversion (Link): Likewise.
6858         * modules/mbfile (Link): Likewise.
6859         * modules/mbiter (Link): Likewise.
6860         * modules/mbmemcasecmp (Link): Likewise.
6861         * modules/mbmemcasecoll (Link): Likewise.
6862         * modules/mbrlen (Link): Likewise.
6863         * modules/mbscasecmp (Link): Likewise.
6864         * modules/mbscasestr (Link): Likewise.
6865         * modules/mbschr (Link): Likewise.
6866         * modules/mbscspn (Link): Likewise.
6867         * modules/mbsinit (Link): Likewise.
6868         * modules/mbslen (Link): Likewise.
6869         * modules/mbsncasecmp (Link): Likewise.
6870         * modules/mbsnlen (Link): Likewise.
6871         * modules/mbsnrtowcs (Link): Likewise.
6872         * modules/mbspbrk (Link): Likewise.
6873         * modules/mbspcasecmp (Link): Likewise.
6874         * modules/mbsrchr (Link): Likewise.
6875         * modules/mbsrtowcs (Link): Likewise.
6876         * modules/mbssep (Link): Likewise.
6877         * modules/mbsspn (Link): Likewise.
6878         * modules/mbsstr (Link): Likewise.
6879         * modules/mbstok_r (Link): Likewise.
6880         * modules/mbswidth (Link): Likewise.
6881         * modules/mbuiter (Link): Likewise.
6882         * modules/mkdir-p (Link): Likewise.
6883         * modules/propername (Link): Likewise.
6884         * modules/quote (Link): Likewise.
6885         * modules/quotearg (Link): Likewise.
6886         * modules/quotearg-simple (Link): Likewise.
6887         * modules/regex-quote (Link): Likewise.
6888         * modules/rpmatch (Link): Likewise.
6889         * modules/sh-quote (Link): Likewise.
6890         * modules/system-quote (Link): Likewise.
6891         * modules/trim (Link): Likewise.
6892         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6893         * modules/unistdio/ulc-fprintf (Link): Likewise.
6894         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6895         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6896         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6897         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6898         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6899         * modules/xfreopen (Link): Likewise.
6900         * modules/xmemcoll (Link): Likewise.
6901         * modules/yesno (Link): Likewise.
6902         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
6903         * modules/argmatch-tests (Makefile.am): Likewise.
6904         * modules/closein-tests (Makefile.am): Likewise.
6905         * modules/copy-file-tests (Makefile.am): Likewise.
6906         * modules/dfa-tests (Makefile.am): Likewise.
6907         * modules/fnmatch-tests (Makefile.am): Likewise.
6908         * modules/glob-tests (Makefile.am): Likewise.
6909         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6910         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6911         * modules/mbrtowc-tests (Makefile.am): Likewise.
6912         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6913         * modules/mbscasestr-tests (Makefile.am): Likewise.
6914         * modules/mbschr-tests (Makefile.am): Likewise.
6915         * modules/mbscspn-tests (Makefile.am): Likewise.
6916         * modules/mbsinit-tests (Makefile.am): Likewise.
6917         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6918         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6919         * modules/mbspbrk-tests (Makefile.am): Likewise.
6920         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6921         * modules/mbsrchr-tests (Makefile.am): Likewise.
6922         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6923         * modules/mbsspn-tests (Makefile.am): Likewise.
6924         * modules/mbsstr-tests (Makefile.am): Likewise.
6925         * modules/quotearg-tests (Makefile.am): Likewise.
6926         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6927         * modules/readtokens-tests (Makefile.am): Likewise.
6928         * modules/regex-quote-tests (Makefile.am): Likewise.
6929         * modules/sh-quote-tests (Makefile.am): Likewise.
6930         * modules/system-quote-tests (Makefile.am): Likewise.
6931         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6932         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6933         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6934         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6935         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6936         * modules/yesno-tests (Makefile.am): Likewise.
6938 2019-12-02  Bruno Haible  <bruno@clisp.org>
6940         Simplify link sections.
6941         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
6942         * modules/lock (Link): Likewise.
6943         * modules/cond (Link): Likewise.
6944         * modules/tls (Link): Likewise.
6945         * modules/yield (Link): Likewise.
6946         * modules/regex (Link): Likewise.
6947         * modules/localename (Link): Likewise.
6948         * modules/unicase/locale-language (Link): Likewise.
6949         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
6951 2019-12-02  Bruno Haible  <bruno@clisp.org>
6953         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
6954         * tests/test-thread_self.c (main): Disable test on AIX.
6956 2019-12-01  Bruno Haible  <bruno@clisp.org>
6958         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
6959         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
6960         gl_THREADLIB_EARLY_BODY.
6961         (gl_THREADLIB_EARLY_BODY): Invoke it.
6962         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
6963         (gl_THREADLIB_BODY): Invoke it.
6964         (gl_PTHREADLIB): New macro.
6965         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
6966         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
6967         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
6968         * modules/pthread-h (Files): Add threadlib.m4.
6969         (Depends-on): Remove threadlib.
6970         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
6971         and _THREAD_SAFE here.
6972         (Link): Use LIBPTHREAD, not LIBTHREAD.
6973         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
6974         LIBMULTITHREAD.
6975         * modules/pthread-once (Link): Likewise.
6976         * modules/pthread-mutex (Link): Likewise.
6977         * modules/pthread-rwlock (Link): Likewise.
6978         * modules/pthread-cond (Link): Likewise.
6979         * modules/pthread-tss (Link): Likewise.
6980         * modules/pthread-spin (Link): Likewise.
6981         * modules/pthread (Link): Likewise.
6982         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
6983         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
6984         * modules/pthread-once-tests (test_pthread_once1_LDADD,
6985         test_pthread_once2_LDADD): Likewise.
6986         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
6987         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
6988         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
6989         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
6991 2019-12-01  Bruno Haible  <bruno@clisp.org>
6993         cond: State linking requirements.
6994         * modules/cond (Link): New section.
6996 2019-12-01  Bruno Haible  <bruno@clisp.org>
6998         threadlib: Remove unnecessary file (left over from 2019-07-06).
6999         * modules/threadlib (Files): Remove config.rpath.
7001 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7003         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7004         Reported by Dagobert Michelsen <dam@opencsw.org> in
7005         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7006         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7007         list of strings instead of one string.
7008         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7009         * pygnulib/GLImport.py (execute): Likewise.
7011 2019-11-27  Bruno Haible  <bruno@clisp.org>
7013         openpty, forkpty: Fix build error on Solaris 11.4.
7014         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7015         also in <termios.h>.
7016         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7017         of the function also in <termios.h>.
7018         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7019         * doc/glibc-functions/forkpty.texi: Likewise.
7021 2019-11-27  Bruno Haible  <bruno@clisp.org>
7023         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7024         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7025         --enable-threads=isoc and --enable-threads=isoc+posix.
7026         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7027         When both the ISO C and the POSIX threads API are available, choose
7028         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7029         --enable-threads=isoc+posix was specified. When only the ISO C threads
7030         API is available and --enable-threads=iso was specified, choose
7031         USE_ISOC_THREADS.
7032         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7033         USE_ISOC_AND_POSIX_THREADS.
7034         * lib/glthread/lock.c: Likewise.
7035         * lib/glthread/cond.h: Likewise.
7036         * lib/glthread/cond.c: Likewise.
7037         * lib/glthread/tls.h: Likewise.
7038         * lib/glthread/tls.c: Likewise.
7039         * lib/glthread/yield.h: Likewise.
7040         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7041         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7042         * lib/glthread/thread.c: Likewise.
7043         * lib/glthread/threadlib.c: Likewise.
7044         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7045         USE_ISOC_AND_POSIX_THREADS.
7046         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7047         USE_ISOC_AND_POSIX_THREADS.
7048         * tests/test-tls.c: Likewise.
7049         * tests/test-thread_create.c (main): Likewise.
7050         * tests/test-pthread-cond.c: Likewise.
7051         * tests/test-pthread-mutex.c: Likewise.
7052         * tests/test-pthread-once2.c: Likewise.
7053         * tests/test-pthread-rwlock.c: Likewise.
7054         * tests/test-pthread-tss.c: Likewise.
7055         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7056         USE_POSIX_THREADS.
7058 2019-11-24  Bruno Haible  <bruno@clisp.org>
7060         mbrtowc: Modernize autoconf test.
7061         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7062         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7063         try a UTF-8 locale.
7064         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7066 2019-11-24  Bruno Haible  <bruno@clisp.org>
7068         Fix errors in C++ mode on mingw.
7069         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7070         instead of _GL_CXXALIAS_SYS.
7071         * lib/signal.in.h (pthread_sigmask): Likewise.
7072         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7073         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7074         Likewise.
7075         * lib/wchar.in.h (btowc): Likewise.
7077 2019-11-24  Bruno Haible  <bruno@clisp.org>
7079         sys_time: Fix errors in C++ mode on mingw.
7080         * lib/sys_time.in.h (timeval): Restore the redirection
7081         '#define timeval rpl_timeval', for when the symbol timeval is being used
7082         outside the 'gnulib' namespace.
7083         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7084         'struct timeval'.
7086 2019-11-24  Bruno Haible  <bruno@clisp.org>
7088         iswctype: Fix errors in C++ mode on mingw.
7089         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7090         is 1.
7091         * lib/iswctype.c (iswctype): Add another implementation, for the
7092         GNULIB_defined_wint_t case.
7093         * modules/iswctype (configure.ac): Compile iswctype.c also if
7094         GNULIB_OVERRIDES_WINT_T is 1.
7096 2019-11-24  Bruno Haible  <bruno@clisp.org>
7098         windows-timedmutex: Fix errors in C++ mode on mingw.
7099         * lib/windows-timedmutex.h: Add closing brace.
7101 2019-11-24  Bruno Haible  <bruno@clisp.org>
7103         Fix errors in C++ mode on Cygwin.
7104         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7105         _GL_CXXALIAS_SYS.
7107 2019-11-24  Bruno Haible  <bruno@clisp.org>
7109         time_r: Fix for mingw (regression from 2019-11-16).
7110         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7111         AC_LINK_IFELSE test only if the function does not appear to exist.
7113 2019-11-24  Bruno Haible  <bruno@clisp.org>
7115         wcstok: Add tests.
7116         * tests/test-wcstok.c: New file.
7117         * modules/wcstok-tests: New file.
7119 2019-11-24  Bruno Haible  <bruno@clisp.org>
7121         wcstok: Work around wrong signature on native Windows.
7122         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7123         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7124         REPLACE_WCSTOK.
7125         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7126         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7127         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7128         * doc/posix-functions/wcstok.texi: Mention the problem.
7130 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7132         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7133         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7134         remove workaround for GCC bug 91450 as the bug should be fixed
7135         there too.
7137 2019-11-21  Bruno Haible  <bruno@clisp.org>
7139         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7140         Reported by Christian Biesinger <cbiesinger@google.com> in
7141         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7142         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7143         non-glibc systems.
7144         * lib/locale.in.h (localeconv, setlocale): Likewise.
7145         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7146         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7147         rint, round, trunc): Likewise.
7148         * lib/monetary.in.h (strfmon_l): Likewise.
7149         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7150         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7151         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7152         pthread_spin_destroy): Likewise.
7153         * lib/signal.in.h (raise, signal): Likewise.
7154         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7155         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7156         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7157         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7158         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7159         Likewise.
7160         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7161         Likewise.
7162         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7163         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7164         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7165         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7166         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7167         wcsftime): Likewise.
7168         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7170 2019-11-21  Bruno Haible  <bruno@clisp.org>
7172         Fix various errors in _GL_CXXALIAS_SYS invocations.
7173         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7174         _GL_CXXALIAS_SYS.
7175         * lib/pthread.in.h (pthread_mutexattr_gettype,
7176         pthread_mutexattr_getrobust): Likewise.
7177         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7178         * lib/sys_socket.in.h (recv, send): Likewise.
7179         * lib/unistd.in.h (getdtablesize): Likewise.
7180         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7181         'struct timeval'.
7183 2019-11-21  Bruno Haible  <bruno@clisp.org>
7185         math tests: Update after 2019-08-28 change.
7186         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7187         return type of 'bool', not 'int'.
7189 2019-11-21  Bruno Haible  <bruno@clisp.org>
7191         pthread-spin: Fix errors in C++ mode.
7192         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7193         functions as nonexistent when <pthread.h> exists but does not define
7194         the pthread_spinlock_t type.
7196 2019-11-21  Bruno Haible  <bruno@clisp.org>
7198         pthread-mutex: Fix errors in C++ mode.
7199         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7200         pthread_mutexattr_getrobust exists. If not, define
7201         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7202         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7203         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7204         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7205         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7206         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7207         definition.
7209 2019-11-19  Bruno Haible  <bruno@clisp.org>
7211         threads-h tests: Fix typo.
7212         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7214 2019-11-19  Bruno Haible  <bruno@clisp.org>
7216         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7217         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7218         to 'const pthread_attr_t *'.
7219         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7220         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7222 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7224         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7225         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7226         work around GCC bug 91450 as the bug should be fixed there.
7228 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7230         glob: get closer to glibc glob.c
7231         Omit differences from glibc when the differences don’t matter.
7232         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7233         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7234         (glob_lstat): New function.
7235         (glob_in_dir): Use it.
7236         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7237         Use changed.
7239 2019-11-18  Bruno Haible  <bruno@clisp.org>
7241         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7242         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7243         UINTPTR_MAX): Consider _WIN64.
7244         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7245         a pointer.
7247 2019-11-18  Bruno Haible  <bruno@clisp.org>
7249         stdint: Fix value of WINT_MAX when we override wint_t.
7250         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7251         when GNULIB_OVERRIDES_WINT_T is 1.
7253 2019-11-18  Bruno Haible  <bruno@clisp.org>
7255         vcs-to-changelog: New module.
7256         * modules/vcs-to-changelog: New file.
7257         * MODULES.html.sh (func_all_modules): Add it.
7259 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7261         vcs-to-changelog: New script to generate ChangeLog-like output.
7262         Discussion:
7263         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7264         * build-aux/vcs_to_changelog.py: New file.
7265         * build-aux/vcstocl/frontend_c.py: New file.
7266         * build-aux/vcstocl/misc_util.py: New file.
7267         * build-aux/vcstocl/vcs_git.py: New file.
7269 2019-11-18  Bruno Haible  <bruno@clisp.org>
7271         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7272         Reported by Keith Marshall <keith@users.osdn.me> in
7273         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7274         and <https://osdn.net/projects/mingw/ticket/39677>.
7275         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7276         already been defined by mingw's <crtdefs.h>.
7278 2019-11-18  Bruno Haible  <bruno@clisp.org>
7280         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7281         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7282         conditionally enabled.
7284 2019-11-18  Bruno Haible  <bruno@clisp.org>
7286         gc: Mirror libgcrypt.m4 from libgcrypt.
7287         * config/srclistvars.sh (LIBGCRYPT): New variable.
7288         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7290 2019-11-17  Bruno Haible  <bruno@clisp.org>
7292         locale, localename: Improve z/OS support.
7293         Reported by Daniel Richard G. in
7294         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7295         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7296         gl_LOCALE_H.
7297         (gl_LOCALE_H): Require it.
7298         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7299         defined, don't even check for newlocale, duplocale, freelocale.
7300         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7301         locale_t is not defined.
7303 2019-11-17  Bruno Haible  <bruno@clisp.org>
7305         havelib: Make libdirstems processing more flexible.
7306         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7307         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7308         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7309         patch from 2017-02-19).
7310         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7311         libdirs, even when the first one exists as a directory.
7313 2019-11-17  Bruno Haible  <bruno@clisp.org>
7315         havelib: Match the bitness when searching for libraries.
7316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7317         acl_is_expected_elfclass.
7318         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7319         file exists, in ELF, also test whether it has the ELF class that
7320         corresponds to the host's bitness.
7322 2019-11-17  Bruno Haible  <bruno@clisp.org>
7324         host-cpu-c-abi: Add support for unknown CPUs.
7325         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7326         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7327         32-bit or 64-bit.
7329 2019-11-17  Bruno Haible  <bruno@clisp.org>
7331         havelib: Remove redundant code.
7332         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7333         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7335 2019-11-17  Bruno Haible  <bruno@clisp.org>
7337         havelib: Fix a bug in dependency processing.
7338         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7339         of .la files, don't overwrite the value of additional_libdir for the
7340         next rounds.
7342 2019-11-16  Bruno Haible  <bruno@clisp.org>
7344         wctype-h: When overriding wint_t, override also the related functions.
7345         Reported by Christian Biesinger <cbiesinger@google.com> in
7346         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7347         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7348         REPLACE_ISWCNTRL to 1.
7349         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7350         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7351         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7352         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7353         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7354         on mingw.
7355         * doc/posix-headers/wctype.texi: Likewise.
7357 2019-11-16  Bruno Haible  <bruno@clisp.org>
7359         time_r: Fix for mingw.
7360         Reported by Christian Biesinger <cbiesinger@google.com> in
7361         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7362         * lib/time.in.h: On mingw, include <unistd.h>.
7363         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7364         <time.h>. Test for localtime_r in a way that works when it is defined
7365         as an inline function.
7367 2019-11-13  Bruno Haible  <bruno@clisp.org>
7369         havelib: Revert last change.
7370         * build-aux/config.rpath: Revert last change. We can add msys2 support
7371         when it has been added to libtool.m4 upstream.
7373 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7375         config: add msys support
7376         Requested by Arnold Robbins in:
7377         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7378         He also requested a change to config.guess, which I’ll forward
7379         upstream.
7380         * build-aux/ar-lib (func_file_conv):
7381         * build-aux/compile (func_file_conv):
7382         * build-aux/config.rpath (wl, with_gnu_ld)
7383         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7384         Treat msys like cygwin.
7386 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7388         regex: now back in sync with glibc
7389         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7390         regexec.c got merged into glibc and are now copies again.
7392 2019-10-27  Bruno Haible  <bruno@clisp.org>
7394         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7395         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7396         statement.
7397         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7398         32-bit CPUs.
7400 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7402         timespec-add, timespec-sub: simplify
7403         * lib/timespec-add.c (timespec_add):
7404         * lib/timespec-sub.c (timespec_sub):
7405         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7406         work on unsigned integers.
7408 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7410         nstrftime: speed up integer overflow checking
7411         * lib/nstrftime.c: Include intprops.h.
7412         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7413         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7414         instead of doing it by hand.
7415         * modules/nstrftime (Depends-on): Add intprops.
7417         Port better to GCC under macOS
7418         Work around macOS header that has ‘#define __has_builtin(x) 0’
7419         when compiled by GCC.  Apple really, really doesn’t want you to
7420         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7421         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7422         The fix is to not trust __has_builtin when being compiled by
7423         recent-enough GCC.
7424         * lib/intprops.h (__has_builtin)
7425         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7426         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7427         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7428         Remove.  All uses removed.
7429         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7430         directly, if defined and if not newer GCC.
7431         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7432         New macro, that use __has_builtin directly, if defined and if
7433         not newer GCC.
7434         (assume): Use them.
7436 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7438         maintainer-makefile: update rule for argmatch.
7439         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7441 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7443         bitset: let freeing functions accept NULL.
7444         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7445         given NULL.
7446         * lib/bitset.h: Document that.
7447         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7449 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7451         inttypes: use more-robust test for int range
7452         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7453         Problem reported by Dagobert Michelsen in:
7454         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7455         * lib/inttypes.in.h: Rely only on limits.h when checking
7456         int range.
7458 2019-10-15  Bruno Haible  <bruno@clisp.org>
7460         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7461         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7462         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7463         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7464         term_ostream_set_hyperlink): New functions.
7465         (term_styled_ostream_get_hyperlink_ref,
7466         term_styled_ostream_get_hyperlink_id,
7467         term_styled_ostream_set_hyperlink): New function aliases.
7469 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7471         update-copyright: use en dashes in .texi ranges
7472         * build-aux/update-copyright: Match year ranges like "1998--2019",
7473         which are used in the Autoconf manual.  Also, update ranges in
7474         .tex, .texi, and .texinfo files to use en dashes instead of
7475         hyphens.
7477 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7479         * config/srclist.txt: Remove posix/regex_internal.c for now.
7481 2019-10-13  Bruno Haible  <bruno@clisp.org>
7483         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7484         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7485         contents to the empty string.
7487 2019-10-12  Bruno Haible  <bruno@clisp.org>
7489         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7490         * tests/test-intprops.c (main): Disable two more tests when using
7491         HP-UX cc.
7493 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7495         Simplify and regularize regex use of ‘assert’
7496         Also, tell GCC about the asserts even when compiling without
7497         debugging, to give it further optimization opportunities.
7498         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7499         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7500         (parse_expression, parse_bracket_exp):
7501         * lib/regex_internal.c (build_wcs_buffer)
7502         (build_wcs_upper_buffer, re_string_reconstruct)
7503         (re_string_context_at):
7504         * lib/regexec.c (re_search_stub, re_copy_regs)
7505         (re_search_internal, prune_impossible_nodes, check_matching)
7506         (check_halt_state_context, set_regs, sift_states_backward)
7507         (build_sifted_states, transit_state_mb, transit_state_bkref)
7508         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7509         (match_ctx_add_subtop):
7510         Use it instead of plain ‘assert’.
7512 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7514         regex: omit debug assignment when not debugging
7515         * lib/regexec.c (re_search_internal) [!DEBUG]:
7516         Remove unnecessary assignment.
7518         regex: tell compiler there’s at most 256 arcs out
7519         Partly this is to help the reader (and maybe help GCC);
7520         partly this is to pacify Coverity.
7521         * lib/regex_internal.h: Include verify.h.
7522         * lib/regexec.c (group_nodes_into_DFAstates):
7523         Tell the compiler that ndests cannot exceed SBC_MAX.
7524         * modules/regex (Depends-on): Add ‘verify’.
7526         regex: simplify by assuming C99
7527         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7528         temporarily.
7529         * lib/regex_internal.h (lock_define, re_match_context_t):
7530         Simplify by assuming C99 macros and const.
7531         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7532         initializers.  Remove unnecessary assignment, as mctx is now
7533         safely initialized earlier.
7535         regex: avoid copying of uninitialized storage
7536         * config/srclist.txt: Comment out regcomp.c temporarily.
7537         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7538         Initialize even when not checking for lint, as the behavior is
7539         arguably undefined otherwise and Coverity warns about it.
7541 2019-10-06  Bruno Haible  <bruno@clisp.org>
7543         access tests: Fix test failure when run as root.
7544         * tests/test-access.c: Include root-uid.h.
7545         (geteuid): Define fallback.
7546         (main): Don't expect that writing to a read-only file would fail when
7547         running as root. Also, remove the created files at the end.
7548         * modules/access-tests (Depends-on): Add root-uid.
7549         (configure.ac): Test whether geteuid exists.
7551 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7553         users.txt: add GNU nano
7554         Nano has been making use of gnulib since March 2017, version 2.8.0.
7556 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7558         bootstrap: simplify debugging of wget failures
7559         Problem reported by Tim Rühsen in:
7560         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7561         * build-aux/bootstrap (po_download_command_format):
7562         Invoke wget with -nv instead of -q, to make debugging easier.
7564 2019-09-29  Bruno Haible  <bruno@clisp.org>
7566         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7567         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7568         'const' attribute.
7570 2019-09-29  Bruno Haible  <bruno@clisp.org>
7572         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7573         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7575 2019-09-28  Bruno Haible  <bruno@clisp.org>
7577         Update comments that refer to POSIX.
7578         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7579         sentence about trailing slashes.
7580         * lib/fflush.c: Clarify the reasoning.
7581         * tests/test-fflush2.c: Cite the relevant sentence.
7583 2019-09-28  Bruno Haible  <bruno@clisp.org>
7585         access: Document limitations on Windows.
7586         Suggested by Zaretskii <eliz@gnu.org>.
7587         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7589 2019-09-28  Bruno Haible  <bruno@clisp.org>
7591         findprog-in: Fix comment.
7592         Reported by Eli Zaretskii <eliz@gnu.org>.
7593         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7594         condition.
7595         * lib/stat.c (rpl_stat): Fix typo in comment.
7596         * lib/utime.c (_gl_utimens_windows): Likewise.
7598 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7600         Update URLs and associated text
7601         (Thanks to Bruno Haible for proofreading this patch.)
7602         Prefer https: to http: in URLs where either will do, for the usual
7603         security reasons.  I also updated broken and/or moved URLs
7604         discovered during the process. In a few places I had to resort to
7605         archive.org, since I didn't find the originals elsewhere.
7607 2019-09-15  Paul Smith  <psmith@gnu.org>
7608             Bruno Haible  <bruno@clisp.org>
7610         findprog-in: Set errno when the search fails.
7611         * lib/findprog-in.c: Include <errno.h>.
7612         (find_in_given_path): Set errno before returning NULL.
7613         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7614         Define the term "slash".
7616 2019-09-15  Bruno Haible  <bruno@clisp.org>
7618         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7619         * modules/findprog (Depends-on): Add access.
7620         * modules/findprog-lgpl (Depends-on): Likewise.
7621         * modules/findprog-in (Depends-on): Likewise.
7623 2019-09-15  Bruno Haible  <bruno@clisp.org>
7625         access: Add tests.
7626         * tests/test-access.c: New file.
7627         * modules/access-tests: New file.
7629         access: New module.
7630         * lib/unistd.in.h (access): New declaration.
7631         * lib/access.c: New file.
7632         * m4/access.m4: New file.
7633         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7634         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7635         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7636         REPLACE_ACCESS.
7637         * modules/access: New file.
7638         * tests/test-unistd-c++.cc (access): Check signature.
7639         * doc/posix-functions/access.texi: Mention the new module.
7641 2019-09-15  Bruno Haible  <bruno@clisp.org>
7643         fcntl-h: Fix compilation error of creat.c on MSVC.
7644         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7645         defined.
7647 2019-09-15  Bruno Haible  <bruno@clisp.org>
7649         creat: Add tests.
7650         * tests/test-creat.c: New file, based on tests/test-open.h.
7651         * modules/creat-tests: New file.
7653         creat: New module.
7654         * lib/fcntl.in.h (creat): New declaration.
7655         * lib/creat.c: New file, based on lib/open.c.
7656         * m4/creat.m4: New file.
7657         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7658         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7659         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7660         * modules/open (Files): Add m4/open-slash.m4.
7661         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7662         REPLACE_CREAT.
7663         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7664         * modules/creat: New file.
7665         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7666         * doc/posix-functions/creat.texi: Mention the new module.
7668 2019-09-15  Bruno Haible  <bruno@clisp.org>
7670         open tests: Enhance test.
7671         * tests/test-open.h (test_open): Test the creation of an executable
7672         regular file. Also improve initial cleanup.
7674 2019-09-15  Bruno Haible  <bruno@clisp.org>
7676         intprops tests: Avoid build failure with HP-UX cc.
7677         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7678         "error 4018: Macro param too large after substitution - use -H option.".
7680 2019-09-14  Bruno Haible  <bruno@clisp.org>
7682         Make autoconf tests work with -Werror=implicit-function-declaration.
7683         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7684         towupper() declaration.
7685         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7686         declaration.
7688 2019-09-14  Bruno Haible  <bruno@clisp.org>
7690         findprog-in: Better mimic the system on native Windows.
7691         Reported by Paul Smith <psmith@gnu.org>.
7692         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7693         non-empty suffixes when the file name already contains a '.'.
7695 2019-09-10  Bruno Haible  <bruno@clisp.org>
7697         wctob: Fix autoconf test.
7698         Based on patch by Florian Weimer <fweimer@redhat.com>.
7699         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7701 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7703         xhash: provide hash_xinitialize.
7704         Suggested by Egor Pugin <egor.pugin@gmail.com>
7705         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7706         * modules/xhash, lib/xhash.c: New.
7707         * lib/hash.h (hash_xinitialize): New.
7709 2019-09-09  Bruno Haible  <bruno@clisp.org>
7711         findprog-in: Make exec optimization optional.
7712         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7713         (find_in_given_path): Add optimize_for_exec parameter.
7714         * lib/findprog-in.c (find_in_given_path): Likewise.
7716 2019-09-08  Bruno Haible  <bruno@clisp.org>
7718         Add option to assume the best, not the worst, when cross-compiling.
7719         Suggested by Jonas Termansen <sortie@maxsi.org>.
7720         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
7721         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
7722         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
7723         lt_cv_sys_argz_works.
7724         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
7725         ac_cv_func_calloc_0_nonnull.
7726         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
7727         --enable-cross-guesses for gl_cv_func_realpath_works.
7728         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
7729         gl_cv_func_cbrtl_ieee.
7730         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
7731         gl_cv_func_ceil_ieee.
7732         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
7733         gl_cv_func_ceilf_ieee.
7734         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
7735         gl_cv_func_ceill_ieee.
7736         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
7737         ac_cv_func_chown_works.
7738         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
7739         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
7740         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
7741         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
7742         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
7743         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
7744         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
7745         gl_cv_func_expl_works.
7746         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
7747         gl_cv_func_expm1_ieee.
7748         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
7749         gl_cv_func_expm1l_works.
7750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
7751         gl_cv_func_open_directory_works.
7752         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
7753         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
7754         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
7755         gl_cv_func_fchownat_empty_filename_works.
7756         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
7757         gl_cv_func_fdopendir_works.
7758         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
7759         gl_cv_func_floor_ieee.
7760         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
7761         gl_cv_func_floorf_ieee.
7762         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
7763         gl_cv_func_fma_works.
7764         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
7765         gl_cv_func_fmaf_works.
7766         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
7767         gl_cv_func_fmal_works.
7768         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
7769         gl_cv_func_fmod_ieee.
7770         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
7771         gl_cv_func_fmodf_ieee.
7772         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
7773         gl_cv_func_fmodl_ieee.
7774         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
7775         gl_cv_func_fpurge_works.
7776         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
7777         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
7778         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
7779         gl_cv_func_getcwd_null.
7780         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
7781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
7782         gl_cv_func_working_getdelim.
7783         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7784         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
7785         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7786         gl_cv_func_getgroups_works.
7787         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
7788         am_cv_func_working_getline.
7789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
7790         for gl_cv_func_getopt_gnu.
7791         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
7792         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
7793         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
7794         gl_cv_func_hypot_ieee.
7795         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
7796         gl_cv_func_hypotf_ieee.
7797         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
7798         gl_cv_func_hypotl_ieee.
7799         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
7800         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
7801         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
7802         gl_cv_func_link_works.
7803         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
7804         gl_cv_func_linkat_slash.
7805         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
7806         gl_cv_func_log_ieee.
7807         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
7808         gl_cv_func_logf_ieee.
7809         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
7810         gl_cv_func_logl_works.
7811         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
7812         gl_cv_func_log10_ieee.
7813         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
7814         gl_cv_func_log10f_ieee.
7815         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
7816         gl_cv_func_log10l_works.
7817         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
7818         gl_cv_func_log1p_ieee.
7819         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
7820         gl_cv_func_log1pf_ieee.
7821         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
7822         gl_cv_func_log1pl_ieee.
7823         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
7824         gl_cv_func_log2_ieee.
7825         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
7826         gl_cv_func_log2f_ieee.
7827         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
7828         --enable-cross-guesses for
7829         gl_cv_func_lstat_dereferences_slashed_symlink.
7830         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
7831         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7832         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
7833         gl_cv_C_locale_sans_EILSEQ.
7834         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
7835         gl_cv_func_memchr_works.
7836         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
7837         gl_cv_func_memmem_works_always.
7838         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
7839         gl_cv_func_memmem_works_fast.
7840         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
7841         gl_cv_func_mkdir_trailing_slash_works,
7842         gl_cv_func_mkdir_trailing_dot_works.
7843         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
7844         gl_cv_func_mkfifo_works.
7845         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
7846         gl_cv_func_mknod_works.
7847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
7848         gl_cv_func_working_mkstemp.
7849         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
7850         gl_cv_func_working_mktime.
7851         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
7852         gl_cv_func_modf_ieee.
7853         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
7854         gl_cv_func_modff_ieee.
7855         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
7856         gl_cv_func_modfl_ieee.
7857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
7858         gl_cv_func_nanosleep.
7859         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
7860         gl_cv_func_perror_works.
7861         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
7862         gl_cv_func_printf_sizes_c99.
7863         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
7864         gl_cv_func_printf_infinite.
7865         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
7866         gl_cv_func_printf_infinite_long_double.
7867         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
7868         gl_cv_func_printf_directive_a.
7869         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
7870         gl_cv_func_printf_directive_f.
7871         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
7872         gl_cv_func_printf_flag_zero.
7873         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
7874         gl_cv_func_printf_enomem.
7875         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
7876         gl_cv_func_snprintf_truncation_c99.
7877         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
7878         gl_cv_func_snprintf_retval_c99.
7879         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
7880         gl_cv_func_snprintf_directive_n.
7881         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
7882         gl_cv_func_vsnprintf_zerosize_c99.
7883         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
7884         gl_cv_func_pselect_detects_ebadf.
7885         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
7886         Obey --enable-cross-guesses for
7887         gl_cv_pthread_rwlock_rdlock_prefer_writer.
7888         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
7889         gl_cv_func_ptsname_sets_errno.
7890         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
7891         gl_cv_func_svid_putenv.
7892         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
7893         gl_cv_func_readlink_works.
7894         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
7895         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7896         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
7897         gl_cv_func_re_compile_pattern_working.
7898         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
7899         gl_cv_func_remainder_ieee.
7900         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
7901         gl_cv_func_remainderf_ieee.
7902         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
7903         gl_cv_func_remainderl_ieee.
7904         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
7905         gl_cv_func_rintl_works.
7906         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
7907         gl_cv_func_rmdir_works.
7908         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
7909         gl_cv_func_round_ieee.
7910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
7911         gl_cv_func_roundf_ieee.
7912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
7913         gl_cv_func_roundl_ieee.
7914         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
7915         gl_cv_func_select_detects_ebadf.
7916         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
7917         gl_cv_func_setenv_works.
7918         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
7919         gl_cv_func_unsetenv_works.
7920         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
7921         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
7922         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
7923         gl_cv_func_sleep_works.
7924         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
7925         gl_cv_func_stat_file_slash.
7926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
7927         gl_cv_func_stpncpy.
7928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
7929         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
7930         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
7931         gl_cv_func_strcasestr_linear.
7932         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
7933         gl_cv_func_working_strerror.
7934         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
7935         gl_cv_func_strerror_0_works.
7936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
7937         --enable-cross-guesses for gl_cv_func_strerror_r_works.
7938         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
7939         gl_cv_func_strstr_works_always.
7940         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
7941         gl_cv_func_strstr_linear.
7942         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
7943         gl_cv_func_strtod_works.
7944         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
7945         gl_cv_func_strtold_works.
7946         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
7947         gl_cv_func_symlink_works.
7948         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
7949         gl_cv_func_symlinkat_works.
7950         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
7951         gl_cv_func_trunc_ieee.
7952         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
7953         gl_cv_func_truncf_ieee.
7954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
7955         gl_cv_func_truncl_ieee.
7956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
7957         gl_cv_func_tzset_clobber.
7958         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
7959         gl_cv_func_ungetc_works.
7960         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
7961         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
7962         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
7963         gl_cv_func_usleep_works.
7964         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
7965         gl_cv_func_futimesat_works.
7966         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
7967         gl_cv_func_working_utimes.
7968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
7969         gl_cv_func_wcwidth_works.
7970         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
7971         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
7972         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
7973         links for testing. Obey --enable-cross-guesses for
7974         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
7975         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
7977 2019-09-08  Bruno Haible  <bruno@clisp.org>
7979         Clarify that cross-compilation guesses are guesses.
7980         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
7981         cross-compiling.
7983 2019-09-08  Bruno Haible  <bruno@clisp.org>
7985         chown: Fix configure output (regression from 2019-03-23).
7986         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
7987         gl_cv_func_chown_follows_symlink variable.
7989 2019-09-08  Bruno Haible  <bruno@clisp.org>
7991         findprog-in: New module.
7992         Suggested by Paul Smith <psmith@gnu.org>.
7993         * lib/findprog.h (find_in_given_path): New declaration.
7994         * lib/findprog-in.c: New file, based on lib/findprog.c.
7995         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
7996         * modules/findprog-in: New file.
7998 2019-09-08  Bruno Haible  <bruno@clisp.org>
8000         findprog: Remove unused dependency.
8001         * modules/findprog (Depends-on): Remove strdup.
8003 2019-09-08  Bruno Haible  <bruno@clisp.org>
8005         findprog: Remove test that is obsolete since 2006-04-24.
8006         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8008 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8010         bitset: style changes
8011         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8012         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8013         xzalloc to xcalloc.
8014         Suggested by Paul Eggert.
8016 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8018         bitset: check memory allocation
8019         Reported by 江 祖铭 (Zu-Ming Jiang).
8020         With help from Paul Eggert.
8021         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8022         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8023         instead of realloc.
8024         When shrinking, accept failures.
8025         * lib/bitset/vector.c (vbitset_resize): Likewise.
8027 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8029         scratch_buffer: sync from glibc
8030         * config/srclist.txt: Add the scratch_buffer source
8031         code from glibc, since these should be in sync.
8032         Autoupdate.
8034 2019-09-07  Bruno Haible  <bruno@clisp.org>
8036         doc: Update for glibc 2.30.
8037         * doc/glibc-functions/gettid.texi: New file.
8038         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8039         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8040         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8041         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8042         * doc/glibc-functions/sem_clockwait.texi: New file.
8043         * doc/glibc-functions/tgkill.texi: New file.
8044         * doc/glibc-functions/twalk_r.texi: New file.
8045         * doc/gnulib.texi: Include them.
8046         (Glibc semaphore.h): New section.
8047         * doc/pastposix-functions/h_errno.texi: Update.
8048         * doc/posix-functions/*.texi: Likewise.
8050 2019-09-06  Bruno Haible  <bruno@clisp.org>
8052         symlink tests: Avoid test failure on Linux with Lustre file system.
8053         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8054         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8055         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8057 2019-09-01  Bruno Haible  <bruno@clisp.org>
8059         gitsub.sh: Add support for shallow-cloning of subdirectories.
8060         * top/gitsub.sh (func_usage): Document allowed git options with
8061         'git pull'.
8062         (func_pull): Accept GIT_OPTIONS argument.
8063         (pull): Parse git options before complaining about too many arguments.
8064         Pass the git options to func_pull.
8066 2019-08-29  Bruno Haible  <bruno@clisp.org>
8068         lock: Fix cross-compilation guesses.
8069         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8070         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8071         platforms.
8073 2019-08-28  Bruno Haible  <bruno@clisp.org>
8075         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8076         Reported by Martin Storsjö <martin@martin.st> in
8077         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8078         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8079         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8080         files from GCC 6 or newer, use an override through '#define', because
8081         the inline definitions in the platform's <cmath> cannot be overridden
8082         in another way.
8084 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8086         Revert macOS INT_MULTIPLY_WRAPV patch
8087         Problem reported by Bruno Haible in:
8088         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8089         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8090         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8091         Go back to working around the Clang bug on macOS.
8093 2019-08-27  Bruno Haible  <bruno@clisp.org>
8095         libtool-next-version: Fix error output.
8096         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8097         name.
8099 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8101         Speed up INT_MULTIPLY_WRAPV on macOS
8102         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8103         Mattias Engdegård says it’s safe to assume the relevant library
8104         is always available there.
8105         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8106         New temporary internal macro.
8107         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8108         No need to work around the Clang bug on macOS.
8110 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8112         intprops.h, verify.h: port better to clang
8113         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8114         with Clang.  Problem reported privately by Mattias Engdegård.
8115         Also, insulate intprops.h and verify.h better against each other’s
8116         definitions of __has_builtin on non-Clang hosts.
8117         * lib/intprops.h (__has_builtin): Define a temporary substitute
8118         if __has_builtin is not already defined.
8119         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8120         New temporary internal macros.
8121         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8122         Now two separate macros, replacing the old
8123         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8124         __builtin_mul_overflow is like the rest.  All uses changed.
8125         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8126         Adjust to above changes.
8127         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8128         longer relevant.  All uses changed.
8129         * lib/verify.h (__has_builtin): Treat like intprops.h,
8130         so that the two .h files do not collide with each other.
8131         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8132         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8134 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8136         intprops: say why not Clang __builtin_add_overflow
8137         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8138         Mention Clang in comment, responding to a query from
8139         Mattias Engdegård.
8141 2019-08-24  Bruno Haible  <bruno@clisp.org>
8143         doc: Document most of the files outside of modules.
8144         * doc/gnulib.texi (Build Infrastructure Files,
8145         Release Management Files): New chapters.
8147 2019-08-24  Bruno Haible  <bruno@clisp.org>
8149         bootstrap: Keep in sync with the 'gettext' module.
8150         Reported by Assaf Gordon in
8151         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8152         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8153         * build-aux/po/remove-potcdate.sin: Likewise.
8155 2019-08-24  Bruno Haible  <bruno@clisp.org>
8157         crypto/gc-sha512: Add tests.
8158         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8159         * modules/crypto/gc-sha512-tests: New file.
8161         crypto/gc-sha256: Add tests.
8162         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8163         * modules/crypto/gc-sha256-tests: New file.
8165         crypto/gc-sha256, crypto/gc-sha512: New modules.
8166         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8167         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8168         (MAX_DIGEST_SIZE): Set to 64.
8169         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8170         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8171         (gc_sha256, gc_sha512): New functions.
8172         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8173         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8174         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8176 2019-08-24  Bruno Haible  <bruno@clisp.org>
8178         crypto/gc-sha1 tests: Improve output when the test fails.
8179         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8180         output.
8182 2019-08-24  Bruno Haible  <bruno@clisp.org>
8184         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8185         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8186         LIBGCRYPT_HAS_MD_SM3.
8187         * lib/gc-libgcrypt.c: Include sm3.h.
8188         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8189         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8190         implementation if libgcrypt does not support SM3.
8192 2019-08-24  Bruno Haible  <bruno@clisp.org>
8194         crypto/gc-md2: Optimize and clarify code.
8195         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8196         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8197         is not needed.
8199 2019-08-24  Bruno Haible  <bruno@clisp.org>
8201         crypto/gc-md2: Add comment.
8202         * lib/gc-libgcrypt.c: Add comment.
8204 2019-08-24  Bruno Haible  <bruno@clisp.org>
8206         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8207         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8208         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8209         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8210         variable.
8212 2019-08-24  Bruno Haible  <bruno@clisp.org>
8214         crypto/gc: Fix link error with --with-libgcrypt.
8215         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8216         AC_LIB_HAVE_LINKFLAGS invocation.
8218 2019-08-24  Bruno Haible  <bruno@clisp.org>
8220         crypto/gc: Access the module indicators correctly.
8221         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8222         * lib/gc-libgcrypt.c: Likewise.
8224 2019-08-24  Bruno Haible  <bruno@clisp.org>
8226         crypto/gc: Fix configuration with --with-libgcrypt.
8227         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8228         * modules/crypto/gc (Files): Add it.
8229         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8231 2019-08-24  Bruno Haible  <bruno@clisp.org>
8233         Remove unused file.
8234         * m4/stat-macros.m4: Remove file.
8236 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8238         New strip-trailing-space option for srclist-update
8239         * config/srclist-update (fixfile): Support new option.
8240         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8241         Use it.
8243 2019-08-20  Eric Blake  <eblake@redhat.com>
8245         accept4: Support SOCK_NONBLOCK, if defined
8246         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8248         accept4: Fix compilation when native accept4() exists.
8249         Reported by Richard W.M. Jones <rjones@redhat.com> in
8250         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8251         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8253 2019-08-18  Bruno Haible  <bruno@clisp.org>
8255         Defeat -flto GCC optimization in math autoconf tests.
8256         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8257         at <https://savannah.gnu.org/bugs/?56109>.
8258         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8259         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8260         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8261         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8262         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8263         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8264         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8265         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8266         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8267         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8268         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8269         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8271 2019-08-17  Bruno Haible  <bruno@clisp.org>
8273         windows-spin: Implement declared functions.
8274         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8275         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8276         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8277         name.
8279 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8281         intprops: port to Oracle Developer Studio 12.6
8282         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8283         typos that were in a section not compiled by GCC.
8285 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8287         intprops: support uchar, ushort _WRAPV dests
8288         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8289         when __builtin_add_overflow etc. and _Generic are not used.
8290         (_GL_INT_OP_WRAPV): Use it to support destinations that
8291         are unsigned char or unsigned short, even in compilers
8292         that lack __typeof__ and are not C11-compatible.
8294         intprops: pacify picky GCC
8295         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8296         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8297         possibly-incorrect result.
8298         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8299         about (A) used as a boolean, when A is an expression like 3 * 4.
8301         intprops: support unsigned *_WRAPV results
8302         Add support for unsigned, unsigned long, and unsigned long long
8303         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8304         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8305         bug with unsigned inputs reported by Eli Zaretskii in:
8306         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8307         * config/srclist.txt: Break the glibc connection for intprops.h
8308         temporarily, while more testing is done in Gnulib-using apps.
8309         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8310         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8311         Support unsigned results no narrower than unsigned int.  Report
8312         overflow correctly if some arguments are unsigned.
8313         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8314         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8315         the right thing with narrow args.
8316         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8317         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8318         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8319         * tests/test-intprops.c: Check for bugs and test new behavior.
8321 2019-08-14  Bruno Haible  <bruno@clisp.org>
8323         get_progname_of: New module.
8324         * lib/get_progname_of.h: New file.
8325         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8326         * lib/getprogname.c (getprogname): Tweak coding style.
8327         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8328         * modules/get_progname_of: New file.
8330 2019-08-14  Bruno Haible  <bruno@clisp.org>
8332         get_ppid_of: New module.
8333         * lib/get_ppid_of.h: New file.
8334         * lib/get_ppid_of.c: New file.
8335         * modules/get_ppid_of: New file.
8337 2019-08-13  Bruno Haible  <bruno@clisp.org>
8339         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8340         * tests/test-libtextstyle.c (main): Do not emit styling when the
8341         environment variable NO_COLOR is set.
8343 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8345         verify: improve diagnostic quality in recent GCC
8346         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8347         useful line number containing the top-level caller of the macro.
8348         So, bring back the older way of issuing a diagnostic containing
8349         the top-level call’s arg, so that it is easier to diagnose
8350         ‘verify’ failures with recent GCC.
8351         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8352         Bring back DIAGNOSTIC arg.  All callers changed.
8353         (verify): Just use _GL_VERIFY.
8355 2019-08-11  Bruno Haible  <bruno@clisp.org>
8357         localcharset: Add more aliases for OS/2.
8358         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8359         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8360         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8362 2019-08-10  Eric Blake  <eblake@redhat.com>
8364         configmake: Update advice on usage.
8365         * modules/configmake (Include): No longer necessary to include
8366         last, since configmake.h itself worries about collision avoidance.
8368 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8370         parse-datetime: fix 'T' military timezone handling
8371         * lib/parse-datetime.y (zone):
8372         follow-up to the previous commit: the 'T' case is handled outside the
8373         conversion table (used as either military timezone UTC-7 or ISO8601
8374         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8375         timezone letters.
8377 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8379         parse-datetime: fix military timezone letters
8380         Problem and trivial fix reported by Neil Hoggarth in:
8381         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8382         * lib/parse-datetime.y (military_table):
8383         Do it the right way, not the RFC 822 way.
8385 2019-08-08  Eric Blake  <eblake@redhat.com>
8387         configmake: Avoid namespace pollution issue on mingw.
8388         * modules/configmake (Makefile.am): If the project uses
8389         <winsock2.h>, include that header before defining DATADIR.
8391 2019-07-28  Bruno Haible  <bruno@clisp.org>
8393         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8394         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8396 2019-07-24  Bruno Haible  <bruno@clisp.org>
8398         pthread-h: Fix definitions of types and macros on mingw.
8399         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8400         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8401         not in use.
8402         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8403         'pthread-once' is not in use.
8404         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8405         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8406         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8407         in use.
8408         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8409         Define also when module 'pthread-rwlock' is not in use.
8410         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8411         also when module 'pthread-cond' is not in use.
8412         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8413         'pthread-tss' is not in use.
8414         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8415         use.
8417 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8419         crypto/gc: Cope with libgcrypt without SM3.
8420         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8422 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8424         backupfile: fix resource leak on memory failure
8425         Problem found by Coverity (CID 1484214).
8426         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8428 2019-07-22  Bruno Haible  <bruno@clisp.org>
8430         Avoid missing-declarations warning in various tests.
8431         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8432         test6, test_optional, test7, test8, test9, test10, test11, test12,
8433         test13, test14, test15, test_fun): Declare static.
8434         * tests/test-cnd.c (test_cnd_wait): Likewise.
8435         * tests/test-cond.c (test_cond): Likewise.
8437 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8439         pthread tests: Avoid missing-declarations warning.
8440         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8442 2019-07-19  Bruno Haible  <bruno@clisp.org>
8444         parse-datetime: Avoid warnings from bison versions >= 3.3.
8445         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8446         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8448 2019-07-19  Bruno Haible  <bruno@clisp.org>
8450         parse-datetime: Require Bison 2.4 or newer.
8451         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8452         Code taken from gettext's intl.m4.
8453         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8454         of YACC.
8456 2019-07-19  Bruno Haible  <bruno@clisp.org>
8458         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8459         * lib/areadlink-with-size.c: Include <string.h>.
8460         * lib/areadlinkat-with-size.c: Likewise.
8461         * lib/xgethostname.c: Likewise.
8462         * lib/xgetdomainname.c: Likewise.
8464 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8466         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8467         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8468         "%pure-parser".  The former is available since Bison 2.3b (2008),
8469         while the latter is marked as obsolete since version 3.4 (May 2019).
8471 2019-07-16  Bruno Haible  <bruno@clisp.org>
8473         update-copyright: Make it work again (regression from 2019-06-15).
8474         Reported by Brian C. Lane <bcl@redhat.com>.
8475         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8477 2019-07-14  Bruno Haible  <bruno@clisp.org>
8479         doc: Update info about <pthread.h>.
8480         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8481         of 'pthread'.
8483 2019-07-14  Bruno Haible  <bruno@clisp.org>
8485         pthread_sigmask tests: Use new multithread modules.
8486         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8487         glthread/thread.h.
8488         (main_thread, killer_thread): Change type to pthread_t.
8489         (main): Update accordingly.
8490         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8491         thread.
8493 2019-07-14  Bruno Haible  <bruno@clisp.org>
8495         pthread-tss: Add tests.
8496         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8497         tests/test-tss.c.
8498         * modules/pthread-tss-tests: New file.
8500 2019-07-14  Bruno Haible  <bruno@clisp.org>
8502         pthread-cond: Add tests.
8503         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8504         tests/test-cnd.c.
8505         * modules/pthread-cond-tests: New file.
8507 2019-07-14  Bruno Haible  <bruno@clisp.org>
8509         pthread-rwlock: Add tests.
8510         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8511         * modules/pthread-rwlock-tests: New file.
8513 2019-07-14  Bruno Haible  <bruno@clisp.org>
8515         pthread-mutex: Add tests.
8516         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8517         tests/test-mtx.c.
8518         * modules/pthread-mutex-tests: New file.
8520 2019-07-14  Bruno Haible  <bruno@clisp.org>
8522         pthread-once: Add tests.
8523         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8524         tests/test-call_once.c.
8525         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8526         tests/test-mtx.c.
8527         * modules/pthread-once-tests: New file.
8529 2019-07-14  Bruno Haible  <bruno@clisp.org>
8531         pthread-thread: Add tests.
8532         * tests/test-pthread-thread.c: New file, based on
8533         tests/test-thread_create.c and tests/test-thrd_create.c.
8534         * modules/pthread-thread-tests: New file.
8536 2019-07-14  Bruno Haible  <bruno@clisp.org>
8538         pthread: Turn into a convenience module.
8539         * lib/pthread.in.h: Remove declarations for extern inline functions.
8540         * lib/pthread.c: Remove file.
8541         * modules/pthread (Files): Remove it.
8542         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8543         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8544         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8545         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8546         GNULIB_PTHREAD.
8547         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8549 2019-07-14  Bruno Haible  <bruno@clisp.org>
8551         pthread-spin: New module.
8552         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8553         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8554         inline definitions.
8555         * lib/pthread-spin.c: New file.
8556         * m4/pthread-spin.m4: New file.
8557         * modules/pthread-spin: New file.
8558         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8559         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8560         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8561         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8562         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8564 2019-07-14  Bruno Haible  <bruno@clisp.org>
8566         pthread-tss: New module.
8567         * lib/pthread-tss.c: New file.
8568         * m4/pthread-tss.m4: New file.
8569         * modules/pthread-tss: New file.
8570         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8571         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8572         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8573         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8575 2019-07-14  Bruno Haible  <bruno@clisp.org>
8577         pthread-cond: New module.
8578         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8579         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8580         * lib/pthread-cond.c: New file.
8581         * m4/pthread-cond.m4: New file.
8582         * modules/pthread-cond: New file.
8583         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8584         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8585         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8586         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8587         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8588         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8589         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8590         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8592 2019-07-14  Bruno Haible  <bruno@clisp.org>
8594         pthread-rwlock: New module.
8595         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8596         * m4/pthread-rwlock.m4: New file.
8597         * modules/pthread-rwlock: New file.
8598         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8599         and the Android problem.
8600         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8601         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8602         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8603         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8604         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8605         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8606         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8607         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8608         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8609         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8611 2019-07-14  Bruno Haible  <bruno@clisp.org>
8613         pthread-mutex: New module.
8614         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8615         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8616         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8617         pthread_mutex_unlock): Remove inline definitions.
8618         * lib/pthread-mutex.c: New file.
8619         * m4/pthread-mutex.m4: New file.
8620         * modules/pthread-mutex: New file.
8621         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8622         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8623         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8624         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8625         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8626         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8627         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8628         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8629         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8630         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8631         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8632         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8634 2019-07-14  Bruno Haible  <bruno@clisp.org>
8636         pthread-once: New module.
8637         * lib/pthread-once.c: New file.
8638         * m4/pthread-once.m4: New file.
8639         * modules/pthread-once: New file.
8640         * doc/posix-functions/pthread_once.texi: Mention the new module.
8642 2019-07-14  Bruno Haible  <bruno@clisp.org>
8644         pthread-thread: New module.
8645         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8646         inline definitions.
8647         * lib/pthread-thread.c: New file.
8648         * m4/pthread-thread.m4: New file.
8649         * modules/pthread-thread: New file.
8650         * doc/posix-functions/pthread_create.texi: Mention the new module.
8651         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8652         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8653         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8654         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8655         * doc/posix-functions/pthread_self.texi: Likewise.
8656         * doc/posix-functions/pthread_equal.texi: Likewise.
8657         * doc/posix-functions/pthread_detach.texi: Likewise.
8658         * doc/posix-functions/pthread_join.texi: Likewise.
8659         * doc/posix-functions/pthread_exit.texi: Likewise.
8661 2019-07-14  Bruno Haible  <bruno@clisp.org>
8663         pthread-h: Prepare for adding new modules.
8664         * lib/pthread.in.h: Define the types and macros for each of the
8665         facilities separately.
8666         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8667         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8668         HAVE_PTHREAD_PROCESS_SHARED.
8669         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8670         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8671         HAVE_PTHREAD_PROCESS_SHARED.
8672         * modules/pthread-h (Makefile.am): Substitute
8673         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8674         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8676 2019-07-14  Bruno Haible  <bruno@clisp.org>
8678         pthread-h: Add declarations of essential pthread functions.
8679         * lib/pthread.in.h: Include snippets.
8680         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8681         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8682         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8683         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8684         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8685         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8686         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8687         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8688         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8689         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8690         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8691         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8692         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8693         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8694         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8695         pthread_key_create, pthread_setspecific, pthread_getspecific,
8696         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8697         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8698         declarations.
8699         (pthread_mutex_timedlock): Move declaration.
8700         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8701         declared.
8702         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8703         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8704         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8705         HAVE_* and REPLACE_* variables for the new functions.
8706         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8707         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8708         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8709         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8710         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8711         variables for the new functions. Split the sed script, to avoid the
8712         limit of 99 commands of HP-UX sed.
8713         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8715 2019-07-14  Bruno Haible  <bruno@clisp.org>
8717         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8718         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8719         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
8720         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
8721         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
8722         * modules/pthread-h (Depends-on): Add threadlib.
8723         (Link): Change to $(LIBTHREAD).
8724         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
8725         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
8727 2019-07-14  Bruno Haible  <bruno@clisp.org>
8729         pthread-h: Add C++ tests.
8730         * tests/test-pthread-c++.cc: New file.
8731         * modules/pthread-h-c++-tests: New file.
8733 2019-07-14  Bruno Haible  <bruno@clisp.org>
8735         pthread-h: Add tests.
8736         * tests/test-pthread.c: New file.
8737         * modules/pthread-h-tests: New file.
8739 2019-07-14  Bruno Haible  <bruno@clisp.org>
8741         pthread-h: New module.
8742         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
8743         is 1.
8744         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
8745         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
8746         <pthread.h> pollutes the namespace; instead, prepare for generating a
8747         pthread.h always. Substitute HAVE_PTHREAD_H here.
8748         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
8749         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
8750         * modules/pthread-h: New file, based on modules/pthread.
8751         * modules/pthread: Rely on 'pthread-h'.
8752         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
8753         Update.
8754         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
8755         pthread.
8757 2019-07-14  Bruno Haible  <bruno@clisp.org>
8759         sched_yield: New module.
8760         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
8761         (sched_yield): New declaration.
8762         * lib/sched_yield.c: New file.
8763         * m4/sched_yield.m4: New file.
8764         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
8765         provide a replacement sched.h always. Test whether sched_yield is
8766         declared.
8767         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
8768         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
8769         (Makefile.am): Provide a replacement sched.h always. Substitute
8770         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
8771         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
8772         * modules/sched_yield: New file.
8773         * doc/posix-functions/sched_yield.texi: Mention the new module.
8775 2019-07-14  Bruno Haible  <bruno@clisp.org>
8777         windows-spin: New module.
8778         * lib/windows-spin.h: New file.
8779         * lib/windows-spin.c: New file.
8780         * modules/windows-spin: New file.
8782 2019-07-14  Bruno Haible  <bruno@clisp.org>
8784         windows-timedrwlock: New module.
8785         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
8786         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
8787         windows-cond.c.
8788         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
8789         redefinition conflict with windows-timedrwlock.h.
8790         * modules/windows-timedrwlock: New file.
8792 2019-07-14  Bruno Haible  <bruno@clisp.org>
8794         windows-rwlock: New module.
8795         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
8796         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
8797         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
8798         windows-initguard.h.
8799         (gl_rwlock_t): Define using glwthread_rwlock_t.
8800         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
8801         (glthread_rwlock_init): Define using glwthread_rwlock_init.
8802         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
8803         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
8804         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
8805         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
8806         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
8807         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
8808         glthread_rwlock_destroy_func): Remove declarations.
8809         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
8810         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
8811         gl_waitqueue_notify_all, glthread_rwlock_init_func,
8812         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
8813         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
8814         functions.
8815         * modules/windows-rwlock: New file.
8816         * modules/lock (Depends-on): Add windows-rwlock.
8818 2019-07-14  Bruno Haible  <bruno@clisp.org>
8820         windows-thread: Add support for creating a thread in detached state.
8821         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
8822         (glwthread_thread_create): Add attr argument.
8823         * lib/windows-thread.c (glwthread_thread_create): Likewise.
8824         * lib/glthread/thread.h (glthread_create): Update.
8825         * lib/thrd.c (thrd_create): Update.
8827 2019-07-14  Bruno Haible  <bruno@clisp.org>
8829         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
8830         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
8831         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
8832         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
8833         * lib/windows-mutex.h: Update.
8834         * lib/windows-recmutex.h: Likewise.
8835         * lib/windows-timedmutex.h: Likewise.
8836         * lib/windows-timedrecmutex.h: Likewise.
8837         * lib/windows-cond.h: Likewise.
8838         * lib/glthread/lock.h: Likewise.
8839         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
8840         lib/windows-spinlock.h.
8841         * modules/windows-recmutex (Files): Likewise.
8842         * modules/windows-timedmutex (Files): Likewise.
8843         * modules/windows-timedrecmutex (Files): Likewise.
8844         * modules/windows-cond (Files): Likewise.
8845         * modules/threads-h (Files): Likewise.
8847 2019-07-14  Bruno Haible  <bruno@clisp.org>
8849         doc: Fix info about pthread API in HP-UX.
8850         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
8852 2019-07-14  Bruno Haible  <bruno@clisp.org>
8854         threads-h: Fix generation of threads.h.
8855         * modules/threads-h (Makefile.am): Insert the required header file
8856         snippets.
8858 2019-07-09  Bruno Haible  <bruno@clisp.org>
8860         striconveh test: Fix a compilation failure when iconv is not available.
8861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8862         * tests/test-striconveh.c (main): Move iconv_close invocations inside
8863         HAVE_ICONV.
8865 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
8867         argmatch: adjust columns for help2man.
8868         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
8869         requires column 20 or more, return 20.
8871 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8873         areadlink-with-size: avoid realloc when size==0
8874         * lib/areadlink-with-size.c (areadlink_with_size):
8875         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
8876         Reallocate at the end to the actual size, to avoid memory waste,
8877         as suggested by Bruno Haible.  But when the guessed size is zero -
8878         useful when the size is unknown - do the initial small readlink
8879         into the stack, to avoid that realloc in the usual case.
8881 2019-07-06  Pádraig Brady  <P@draigBrady.com>
8883         areadlink-with-size: guess a buffer size with 0 size
8884         The size is usually taken from st_size, which can be zero,
8885         resulting in inefficient operation.
8886         Instead let zero select an initial memory allocation
8887         of 128 bytes, which most symlinks fit within.
8888         * lib/areadlink-with-size.c (areadlink_with_size):
8889         Start with a 128 byte buffer, for SIZE == 0.
8890         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
8892 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
8894         Replace manually crafted hex regexes with [:xdigit:]
8895         * build-aux/gitlog-to-changelog (parse_amend_file)
8896         (git_dir_option):
8897         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
8898         This patch is backported from Emacs (Bug#36167).
8900 2019-07-06  Bruno Haible  <bruno@clisp.org>
8902         error: Fix documentation.
8903         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
8904         module provides.
8905         * doc/glibc-functions/error_message_count.texi: Likewise.
8906         * doc/glibc-functions/error_one_per_line.texi: Likewise.
8907         * doc/glibc-functions/error_print_progname.texi: Likewise.
8909 2019-07-06  Bruno Haible  <bruno@clisp.org>
8911         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
8912         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
8913         and older is unsupported.
8914         * doc/**/*.texi: Update.
8916 2019-07-06  Bruno Haible  <bruno@clisp.org>
8918         doc: Remove documentation of Linux libc5 as a supported platform.
8919         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
8920         to Linux libc5.
8921         * doc/posix-functions/iswalpha.texi: Likewise.
8922         * doc/posix-functions/iswblank.texi: Likewise.
8923         * doc/posix-functions/iswcntrl.texi: Likewise.
8924         * doc/posix-functions/iswdigit.texi: Likewise.
8925         * doc/posix-functions/iswgraph.texi: Likewise.
8926         * doc/posix-functions/iswlower.texi: Likewise.
8927         * doc/posix-functions/iswprint.texi: Likewise.
8928         * doc/posix-functions/iswpunct.texi: Likewise.
8929         * doc/posix-functions/iswspace.texi: Likewise.
8930         * doc/posix-functions/iswupper.texi: Likewise.
8931         * doc/posix-functions/iswxdigit.texi: Likewise.
8932         * doc/posix-functions/snprintf.texi: Likewise.
8933         * doc/posix-functions/vsnprintf.texi: Likewise.
8935 2019-07-06  Bruno Haible  <bruno@clisp.org>
8937         doc: Remove documentation of Tandem/NSK as a supported platform.
8938         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
8939         Tandem/NSK.
8940         * doc/**/*.texi: Update.
8942 2019-07-06  Bruno Haible  <bruno@clisp.org>
8944         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
8945         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
8946         and older is unsupported.
8947         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
8948         Mac OS X 10.4 and older.
8949         * doc/posix-functions/asinl.texi: Likewise.
8950         * doc/posix-functions/atanl.texi: Likewise.
8951         * doc/posix-functions/cosl.texi: Likewise.
8952         * doc/posix-functions/expl.texi: Likewise.
8953         * doc/posix-functions/frexpl.texi: Likewise.
8954         * doc/posix-functions/gettimeofday.texi: Likewise.
8955         * doc/posix-functions/logl.texi: Likewise.
8956         * doc/posix-functions/mkstemp.texi: Likewise.
8957         * doc/posix-functions/sinl.texi: Likewise.
8958         * doc/posix-functions/sqrtl.texi: Likewise.
8959         * doc/posix-functions/tanl.texi: Likewise.
8960         * doc/posix-functions/wcswidth.texi: Likewise.
8961         * doc/**/*.texi: Update.
8963 2019-07-06  Bruno Haible  <bruno@clisp.org>
8965         doc: Remove documentation of AIX 4 as a supported platform.
8966         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
8967         unsupported.
8968         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
8969         workarounds.
8970         * doc/posix-functions/strnlen.texi: Likewise.
8971         * doc/posix-headers/inttypes.texi: Likewise.
8972         * doc/**/*.texi: Update.
8974 2019-07-06  Bruno Haible  <bruno@clisp.org>
8976         doc: Remove documentation of HP-UX 10 as a supported platform.
8977         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
8978         unsupported.
8979         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
8980         workarounds.
8981         * doc/posix-functions/gmtime_r.texi: Likewise.
8982         * doc/posix-functions/localtime_r.texi: Likewise.
8983         * doc/posix-functions/mkstemp.texi: Likewise.
8984         * doc/**/*.texi: Update.
8986 2019-07-06  Bruno Haible  <bruno@clisp.org>
8988         doc: Remove documentation of Interix 3.5 as a supported platform.
8989         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
8990         unsupported.
8991         * doc/posix-functions/select.texi: Don't mention Interix specific
8992         workarounds.
8993         * doc/posix-headers/signal.texi: Likewise.
8994         * doc/**/*.texi: Update.
8996 2019-07-06  Bruno Haible  <bruno@clisp.org>
8998         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
8999         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9000         unsupported.
9001         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9002         workarounds.
9003         * doc/posix-functions/nl_langinfo.texi: Likewise.
9004         * doc/posix-functions/remainder.texi: Likewise.
9005         * doc/posix-functions/towlower.texi: Likewise.
9006         * doc/posix-functions/towupper.texi: Likewise.
9007         * doc/posix-functions/vsnprintf.texi: Likewise.
9008         * doc/posix-functions/wcscat.texi: Likewise.
9009         * doc/posix-functions/wcschr.texi: Likewise.
9010         * doc/posix-functions/wcscmp.texi: Likewise.
9011         * doc/posix-functions/wcscpy.texi: Likewise.
9012         * doc/posix-functions/wcscspn.texi: Likewise.
9013         * doc/posix-functions/wcslen.texi: Likewise.
9014         * doc/posix-functions/wcsncat.texi: Likewise.
9015         * doc/posix-functions/wcsncmp.texi: Likewise.
9016         * doc/posix-functions/wcsncpy.texi: Likewise.
9017         * doc/posix-functions/wcspbrk.texi: Likewise.
9018         * doc/posix-functions/wcsrchr.texi: Likewise.
9019         * doc/posix-functions/wcsspn.texi: Likewise.
9020         * doc/posix-headers/langinfo.texi: Likewise.
9021         * doc/posix-headers/signal.texi: Likewise.
9022         * doc/posix-headers/wchar.texi: Likewise.
9023         * doc/posix-headers/wctype.texi: Likewise.
9024         * doc/**/*.texi: Update.
9026 2019-07-05  Bruno Haible  <bruno@clisp.org>
9028         doc: Remove documentation of OSF/1 as supported platform.
9029         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9030         unsupported.
9031         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9032         workarounds.
9033         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9034         * doc/glibc-functions/ptsname_r.texi: Likewise.
9035         * doc/posix-functions/ceil.texi: Likewise.
9036         * doc/posix-functions/ceilf.texi: Likewise.
9037         * doc/posix-functions/ceill.texi: Likewise.
9038         * doc/posix-functions/fchdir.texi: Likewise.
9039         * doc/posix-functions/floor.texi: Likewise.
9040         * doc/posix-functions/floorf.texi: Likewise.
9041         * doc/posix-functions/fmod.texi: Likewise.
9042         * doc/posix-functions/fmodf.texi: Likewise.
9043         * doc/posix-functions/fmodl.texi: Likewise.
9044         * doc/posix-functions/log.texi: Likewise.
9045         * doc/posix-functions/logf.texi: Likewise.
9046         * doc/posix-functions/logl.texi: Likewise.
9047         * doc/posix-functions/log10.texi: Likewise.
9048         * doc/posix-functions/log10f.texi: Likewise.
9049         * doc/posix-functions/log10l.texi: Likewise.
9050         * doc/posix-functions/log2.texi: Likewise.
9051         * doc/posix-functions/log2f.texi: Likewise.
9052         * doc/posix-functions/log2l.texi: Likewise.
9053         * doc/posix-functions/mbrtowc.texi: Likewise.
9054         * doc/posix-functions/recv.texi: Likewise.
9055         * doc/posix-functions/recvfrom.texi: Likewise.
9056         * doc/posix-functions/remainder.texi: Likewise.
9057         * doc/posix-functions/remainderf.texi: Likewise.
9058         * doc/posix-functions/remainderl.texi: Likewise.
9059         * doc/posix-functions/round.texi: Likewise.
9060         * doc/posix-functions/roundf.texi: Likewise.
9061         * doc/posix-functions/roundl.texi: Likewise.
9062         * doc/posix-functions/send.texi: Likewise.
9063         * doc/posix-functions/sendto.texi: Likewise.
9064         * doc/posix-functions/setenv.texi: Likewise.
9065         * doc/posix-functions/snprintf.texi: Likewise.
9066         * doc/posix-functions/tcgetsid.texi: Likewise.
9067         * doc/posix-functions/trunc.texi: Likewise.
9068         * doc/posix-functions/truncf.texi: Likewise.
9069         * doc/posix-functions/truncl.texi: Likewise.
9070         * doc/posix-functions/ttyname_r.texi: Likewise.
9071         * doc/posix-functions/unsetenv.texi: Likewise.
9072         * doc/posix-functions/wcsrtombs.texi: Likewise.
9073         * doc/posix-headers/sys_select.texi: Likewise.
9074         * doc/posix-headers/wchar.texi: Likewise.
9075         * doc/posix-headers/wctype.texi: Likewise.
9076         * doc/**/*.texi: Update.
9078 2019-07-05  Bruno Haible  <bruno@clisp.org>
9080         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9081         * doc/**/*.texi: Update.
9083 2019-07-05  Bruno Haible  <bruno@clisp.org>
9085         doc: Remove documentation of Solaris 8 and older as supported platforms.
9086         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9087         unsupported.
9088         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9089         workarounds.
9090         * doc/posix-functions/memcmp.texi: Likewise.
9091         * doc/posix-functions/rename.texi: Likewise.
9092         * doc/posix-functions/tzset.texi: Likewise.
9093         * doc/posix-headers/wctype.texi: Likewise.
9094         * doc/**/*.texi: Update.
9096 2019-07-05  Bruno Haible  <bruno@clisp.org>
9098         doc: Remove documentation of Interix 3.5 as a supported platform.
9099         * doc/**/*.texi: Update.
9101 2019-07-05  Bruno Haible  <bruno@clisp.org>
9103         doc: Remove documentation of BeOS as a supported platform.
9104         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9105         unsupported.
9106         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9107         * doc/posix-functions/getdelim.texi: Likewise.
9108         * doc/**/*.texi: Update.
9110 2019-07-05  Bruno Haible  <bruno@clisp.org>
9112         thread, lock, cond, tls: Remove support for Pth threads.
9113         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9114         --enable-threads=pth any more.
9115         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9117         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9118         threads and ISO C11 threads.
9119         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9120         * lib/glthread/lock.h: Likewise.
9121         * lib/glthread/lock.c: Likewise.
9122         * lib/glthread/cond.h: Likewise.
9123         * lib/glthread/cond.c: Likewise.
9124         * lib/glthread/tls.h: Likewise.
9125         * lib/glthread/tls.c: Likewise.
9126         * lib/glthread/yield.h: Likewise.
9127         * lib/regex_internal.h: Likewise.
9128         * tests/test-thread_create.c: Likewise.
9129         * tests/test-lock.c: Likewise.
9130         * tests/test-cond.c: Likewise.
9131         * tests/test-tls.c: Likewise.
9132         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9133         (main): Sleep without calling gl_thread_yield.
9135 2019-07-05  Bruno Haible  <bruno@clisp.org>
9137         thread, lock, cond, tls: Remove support for old Solaris threads.
9138         Solaris >= 2.5.1 has POSIX threads.
9139         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9140         --enable-threads=solaris any more.
9141         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9142         * lib/glthread/thread.c: Update comment.
9143         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9144         * lib/glthread/lock.h: Likewise.
9145         * lib/glthread/lock.c: Likewise.
9146         * lib/glthread/cond.h: Likewise.
9147         * lib/glthread/cond.c: Likewise.
9148         * lib/glthread/tls.h: Likewise.
9149         * lib/glthread/tls.c: Likewise.
9150         * lib/glthread/yield.h: Likewise.
9151         * lib/regex_internal.h: Likewise.
9152         * tests/test-thread_create.c: Likewise.
9153         * tests/test-lock.c: Likewise.
9154         * tests/test-cond.c: Likewise.
9155         * tests/test-tls.c: Likewise.
9157 2019-07-05  Bruno Haible  <bruno@clisp.org>
9159         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9160         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9161         needed size is equal to the allocated size.
9162         * lib/getcwd.c (__getcwd): Likewise.
9164 2019-07-05  Bruno Haible  <bruno@clisp.org>
9166         xgetdomainname: Don't return an excessive memory allocation.
9167         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9168         before returning it.
9170 2019-07-05  Bruno Haible  <bruno@clisp.org>
9172         xgethostname: Don't return an excessive memory allocation.
9173         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9174         returning it.
9176 2019-07-05  Bruno Haible  <bruno@clisp.org>
9178         areadlinkat-with-size: Don't return an excessive memory allocation.
9179         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9180         before returning it.
9182 2019-07-05  Bruno Haible  <bruno@clisp.org>
9184         areadlink-with-size: Don't return an excessive memory allocation.
9185         Reported by Andreas Dilger <adilger@whamcloud.com>.
9186         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9187         before returning it.
9189 2019-07-03  Bruno Haible  <bruno@clisp.org>
9191         renameatu: Fix test failure on MSVC.
9192         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9193         empty string.
9195 2019-07-03  Bruno Haible  <bruno@clisp.org>
9197         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9198         * lib/mbrtowc.c: Include glthread/lock.h.
9199         (mbtowc_lock): New variable.
9200         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9201         encodings, explicitly reset the internal state of mbtowc, and protect
9202         this through a lock.
9203         * modules/mbrtowc (Depends-on): Add lock.
9205 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9207         argmatch: don't define _ in the header.
9208         Reported by Jim Meyering.
9209         * lib/argmatch.h (N_, _): Don't define.
9210         Use gettext instead.
9211         * lib/argmatch.h (_): Define.
9212         * tests/test-argmatch.c (N_): Define.
9214 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9216         verify: document ‘assume’ better
9217         * lib/verify.h: Reword doc (Bug#36370).
9219 2019-07-02  Bruno Haible  <bruno@clisp.org>
9221         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9222         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9223         "CPutf8".
9224         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9226 2019-07-02  Bruno Haible  <bruno@clisp.org>
9228         getcwd: Fix crash when invoked with size = 0 on MSVC.
9229         * lib/getcwd.c: Include msvc-inval.h.
9230         (getcwd_nothrow): New function/macro.
9231         (getcwd_system): New macro.
9232         (__getcwd): Use it instead of getcwd.
9233         * modules/getcwd (Depends-on): Add msvc-inval.
9234         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9236 2019-07-02  Bruno Haible  <bruno@clisp.org>
9238         nonblocking-pipe tests: Fix test failure on MSVC.
9239         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9240         native Windows.
9242 2019-07-02  Bruno Haible  <bruno@clisp.org>
9244         usleep: Implement with millisecond resolution on native Windows.
9245         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9246         * doc/pastposix-functions/usleep.texi: Update accordingly.
9248 2019-07-02  Bruno Haible  <bruno@clisp.org>
9250         lstat tests: Fix test failure on MSVC.
9251         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9252         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9254 2019-07-02  Bruno Haible  <bruno@clisp.org>
9256         stat tests: Fix test failure on MSVC.
9257         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9258         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9260 2019-07-02  Bruno Haible  <bruno@clisp.org>
9262         getaddrinfo tests: Fix test failure on MSVC.
9263         * tests/test-getaddrinfo.c: Include sockets.h.
9264         (main): Invoke gl_sockets_startup.
9265         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9267 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9269         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9270         * lib/poll.c: Call Windows native select() with Windows native timeval.
9272 2019-06-30  Bruno Haible  <bruno@clisp.org>
9274         argmatch: Fix compilation errors.
9275         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9276         * tests/test-argmatch.c (main): Update after last-minute function names
9277         change.
9279 2019-06-30  Bruno Haible  <bruno@clisp.org>
9281         Include <stdlib.h> when needed.
9282         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9283         * lib/fcntl.c: Likewise.
9284         * lib/mbscasestr.c: Likewise.
9285         * lib/mbssep.c: Likewise.
9286         * lib/mbsstr.c: Likewise.
9287         * lib/openat.c: Include <stdlib.h>, needed for free().
9288         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9289         abort().
9291 2019-06-30  Bruno Haible  <bruno@clisp.org>
9293         Include <stdlib.h> when needed.
9294         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9295         * lib/faccessat.c: Likewise.
9296         * lib/fchmodat.c: Likewise.
9297         * lib/fchownat.c: Likewise.
9298         * lib/fstatat.c: Likewise.
9299         * lib/mkfifoat.c: Likewise.
9300         * lib/mknodat.c: Likewise.
9301         * lib/readlinkat.c: Likewise.
9302         * lib/symlinkat.c: Likewise.
9303         * lib/utimensat.c: Likewise.
9304         * lib/mkdirat.c: Likewise. Include also the specification header.
9306 2019-06-30  Bruno Haible  <bruno@clisp.org>
9308         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9309         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9310         from gl_PREREQ_SYS_H_SOCKET.
9311         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9312         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9313         gl_PREREQ_SYS_H_WS2TCPIP.
9314         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9315         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9316         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9318 2019-06-30  Bruno Haible  <bruno@clisp.org>
9320         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9321         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9322         REPLACE_INET_NTOP to 1 always.
9323         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9324         REPLACE_INET_PTON to 1 always.
9326 2019-06-30  Bruno Haible  <bruno@clisp.org>
9328         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9329         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9330         not REPLACE_INET_NTOP.
9332 2019-06-30  Bruno Haible  <bruno@clisp.org>
9334         poll: Add comment.
9335         * lib/poll.c: Add comment about WSAPoll.
9337 2019-06-30  Bruno Haible  <bruno@clisp.org>
9339         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9340         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9341         * lib/poll.in.h: Include <winsock2.h>.
9342         (POLL*, pollfd): Override on native Windows.
9343         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9344         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9345         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9347 2019-06-28  Bruno Haible  <bruno@clisp.org>
9349         accept4: Fix compilation error on OpenIndiana.
9350         Reported by Michal Nowak <mnowak@startmail.com>
9351         via Mark H Weaver <mhw@netris.org>.
9352         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9353         whether it exists as a function.
9355 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9357         strverscmp: sync from glibc
9358         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9359         comments, include libc-config.h, define __strverscmp to be
9360         strverscmp, and don’t assume types line uint8_t and int8_t that
9361         that C99 doesn’t guarantee.
9362         [!_LIBC]: Include libc-config.h; define __strverscmp.
9363         Include stdint.h.
9364         (__strverscmp): Assume C99.  Use uint_least8_t
9365         and int_least8_t instead of unsigned char and signed char.
9366         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9368 2019-06-25  Bruno Haible  <bruno@clisp.org>
9370         tss tests: Add tests for destructors and races.
9371         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9372         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9373         functions.
9374         (main): Invoke them.
9375         * modules/tls-tests (Depends-on): Add mtx.
9377 2019-06-25  Bruno Haible  <bruno@clisp.org>
9379         tls tests: Add tests for destructors and races.
9380         * tests/test-tls.c: Include glthread/lock.h.
9381         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9382         functions.
9383         (main): Invoke them.
9384         * modules/tls-tests (Depends-on): Add lock.
9386 2019-06-25  Bruno Haible  <bruno@clisp.org>
9388         windows-tls: Implement TLS key destructors for native Windows.
9389         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9390         declaration.
9391         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9392         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9393         (dtor_table_init_once, dtor_table_lock: New variables.
9394         (struct dtor): New type.
9395         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9396         dtor_processing_threads): New variables.
9397         (dtor_table_initialize, dtor_table_ensure_initialized,
9398         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9399         functions.
9400         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9401         handle non-NULL destructors.
9402         * modules/windows-tls (Depends-on): Add windows-once.
9403         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9404         Use the functions declared in windows-tls.h.
9405         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9406         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9407         * lib/windows-thread.c: Include windows-tls.h.
9408         (wrapper_func, glwthread_thread_exit): Invoke
9409         glwthread_tls_process_destructors.
9410         * modules/windows-thread (Depends-on): Add windows-tls.
9412 2019-06-25  Bruno Haible  <bruno@clisp.org>
9414         threadlib: Avoid autoconf warning "was expanded before it was required".
9415         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9417 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9419         argmatch: remove duplicate const qualifier
9420         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9422 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9424         unistd: stddef.h and sys/types.h namespace cleanup
9425         * lib/unistd.in.h [__GLIBC__]:
9426         Do not include stddef.h or sys/types.h.
9427         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9428         supposed to declare off_t and ssize_t.  Problem found when looking
9429         at why @GNULIB_PWRITE@ was different from the newly-added
9430         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9432 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9434         maintainer-makefile: restore portability to non-GNU awks
9435         Reported by Tim Rühsen.
9436         * top/maint.mk (AWK): New variable.  Use it.
9437         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9439 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9441         Document setvbuf _IOLBF problem
9442         * doc/posix-functions/setvbuf.texi (setvbuf):
9443         Document MS-Windows portability problem with _IOLBF.
9445         Document lseek SEEK_DATA/SEEK_HOLE
9446         * doc/posix-functions/lseek.texi (lseek):
9447         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9449 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9451         argmatch: put all the docs member last.
9452         Reported by Bruno Haible.
9453         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9454         member before the docs done.
9455         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9457 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9459         argmatch: add support to generate the usage message.
9460         * lib/argmatch.c: Move some #includes and gettext support to...
9461         * lib/argmatch.h: here.
9462         (ARGMATCH_DEFINE_GROUP): New macro.
9463         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9464         (argmatch_backup_group): New.
9465         (CHECK): New.
9466         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9467         argmatch_backup_argument and argmatch_backup_usage.
9468         * modules/argmatch: We depend on c99.
9469         * doc/argmatch.texi (Recognizing Option Arguments): New.
9470         * doc/gnulib.texi: Use it.
9472 2019-06-21  Bruno Haible  <bruno@clisp.org>
9474         thrd: Add comment.
9475         * lib/thrd.c (pthread_main_func): Add comment.
9477 2019-06-21  Bruno Haible  <bruno@clisp.org>
9479         threads-h: Define 'thread_local' if and only if it actually works.
9480         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9481         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9482         Oracle Solaris Studio C. Compile a simple program, to see whether
9483         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9484         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9485         * lib/threads.in.h (thread_local): Undefine if it does not work.
9486         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9487         (Link): Mention LIBTHREADLOCAL.
9488         * tests/test-threads.c: Don't check that thread_local is defined.
9489         * tests/test-thread_local.c: New file.
9490         * modules/threads-h-tests (Files): Add it and macros.h.
9491         (Depends-on): Add thrd and stdint.
9492         (configure.ac): Test whether 'alarm' is declared.
9493         (Makefile.am): Arrange to build and link test-thread_local.
9494         * doc/posix-headers/threads.texi: Mention the platforms that don't
9495         support 'thread_local'.
9497 2019-06-20  Bruno Haible  <bruno@clisp.org>
9499         threads-h: Simplify link dependencies.
9500         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9501         Don't set LTLIBSTDTHREAD.
9502         * modules/thrd (Link): Simplify accordingly.
9503         * modules/mtx (Link): Likewise.
9504         * modules/cnd (Link): Likewise.
9505         * modules/tss (Link): Likewise.
9506         * modules/threads (Link): Likewise.
9508 2019-06-20  Bruno Haible  <bruno@clisp.org>
9510         threads-h: Fix link error on FreeBSD 11.
9511         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9512         also with -lpthread.
9514 2019-06-20  Bruno Haible  <bruno@clisp.org>
9516         threadlib: Fix typo (regression from today).
9517         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9519 2019-06-20  Bruno Haible  <bruno@clisp.org>
9521         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9522         * lib/windows-thread.c: Include <errno.h>.
9523         * lib/windows-tls.c: Likewise.
9525 2019-06-20  Bruno Haible  <bruno@clisp.org>
9527         tss tests: Small improvement.
9528         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9530 2019-06-20  Bruno Haible  <bruno@clisp.org>
9532         threads: New module.
9533         * modules/threads: New file.
9535 2019-06-20  Bruno Haible  <bruno@clisp.org>
9537         tss: Add tests.
9538         * tests/test-tss.c: New file, based on tests/test-tls.c.
9539         * modules/tss-tests: New file.
9541 2019-06-20  Bruno Haible  <bruno@clisp.org>
9543         cnd: Add tests.
9544         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9545         * modules/cnd-tests: New file.
9547 2019-06-20  Bruno Haible  <bruno@clisp.org>
9549         mtx: Add tests.
9550         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9551         * tests/test-call_once.c: New file, based on tests/test-once.c.
9552         * modules/mtx-tests: New file.
9554 2019-06-20  Bruno Haible  <bruno@clisp.org>
9556         thrd: Add tests.
9557         * tests/test-thrd_create.c: New file, based on
9558         tests/test-thread_create.c.
9559         * tests/test-thrd_current.c: New file, based on
9560         tests/test-thread_self.c.
9561         * modules/thrd-tests: New file.
9563 2019-06-20  Bruno Haible  <bruno@clisp.org>
9565         tss: New module.
9566         * lib/tss.c: New file.
9567         * modules/tss: New file.
9568         * doc/posix-functions/tss_create.texi: Mention the new module.
9569         * doc/posix-functions/tss_set.texi: Likewise.
9570         * doc/posix-functions/tss_get.texi: Likewise.
9571         * doc/posix-functions/tss_delete.texi: Likewise.
9573 2019-06-20  Bruno Haible  <bruno@clisp.org>
9575         cnd: New module.
9576         * lib/cnd.c: New file.
9577         * modules/cnd: New file.
9578         * doc/posix-functions/cnd_init.texi: Mention the new module.
9579         * doc/posix-functions/cnd_wait.texi: Likewise.
9580         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9581         * doc/posix-functions/cnd_signal.texi: Likewise.
9582         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9583         * doc/posix-functions/cnd_destroy.texi: Likewise.
9585 2019-06-20  Bruno Haible  <bruno@clisp.org>
9587         mtx: New module.
9588         * lib/mtx.c: New file.
9589         * modules/mtx: New file.
9590         * doc/posix-functions/call_once.texi: Mention the new module.
9591         * doc/posix-functions/mtx_init.texi: Likewise.
9592         * doc/posix-functions/mtx_lock.texi: Likewise.
9593         * doc/posix-functions/mtx_trylock.texi: Likewise.
9594         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9595         * doc/posix-functions/mtx_unlock.texi: Likewise.
9596         * doc/posix-functions/mtx_destroy.texi: Likewise.
9598 2019-06-20  Bruno Haible  <bruno@clisp.org>
9600         thrd: New module.
9601         * lib/thrd.c: New file.
9602         * m4/thrd.m4: New file.
9603         * modules/thrd: New file.
9604         * doc/posix-functions/thrd_current.texi: Mention the new module.
9605         * doc/posix-functions/thrd_detach.texi: Likewise.
9606         * doc/posix-functions/thrd_equal.texi: Likewise.
9607         * doc/posix-functions/thrd_exit.texi: Likewise.
9608         * doc/posix-functions/thrd_sleep.texi: Likewise.
9609         * doc/posix-functions/thrd_yield.texi: Likewise.
9610         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9611         AIX bug.
9612         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9613         AIX and Solaris bugs.
9615 2019-06-20  Bruno Haible  <bruno@clisp.org>
9617         threads-h: Add tests.
9618         * tests/test-threads.c: New file.
9619         * modules/threads-h-tests: New file.
9620         * tests/test-threads-c++.cc: New file.
9621         * modules/threads-h-c++-tests: New file.
9623 2019-06-20  Bruno Haible  <bruno@clisp.org>
9625         threads-h: New module.
9626         * lib/threads.in.h: New file.
9627         * m4/threads.m4: New file.
9628         * m4/yield.m4 (gl_YIELD): Update comment.
9629         * modules/threads-h: New file.
9630         * modules/yields (configure.ac): Use AC_REQUIRE.
9631         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9632         bugs.
9634 2019-06-20  Bruno Haible  <bruno@clisp.org>
9636         windows-thread: New module.
9637         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9638         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9639         * lib/glthread/thread.h: Include windows-thread.h.
9640         (gl_thread_t): Define using glwthread_thread_t.
9641         (glthread_create): Define using glwthread_thread_create.
9642         (glthread_join): Define using glwthread_thread_join.
9643         (gl_thread_self): Define using glwthread_thread_self.
9644         (gl_thread_exit): Define using glwthread_thread_exit.
9645         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9646         gl_thread_exit_func): Remove declarations.
9647         * lib/glthread/thread.c (self_key): Remove variable.
9648         (do_init_self_key, init_self_key): Remove functions.
9649         (struct gl_thread_struct): Remove type.
9650         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9651         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9652         functions.
9653         * modules/windows-thread: New file.
9654         * modules/thread (Depends-on): Add windows-thread.
9656 2019-06-20  Bruno Haible  <bruno@clisp.org>
9658         windows-tls: New module.
9659         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9660         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9661         * lib/glthread/tls.h: Include windows-tls.h.
9662         (gl_tls_key_t): Define using glwthread_tls_key_t.
9663         * modules/windows-tls: New file.
9664         * modules/tls (Depends-on): Add windows-tls.
9666 2019-06-20  Bruno Haible  <bruno@clisp.org>
9668         windows-cond: New module.
9669         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9670         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9671         * lib/glthread/cond.h: Include windows-cond.h.
9672         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9673         (gl_cond_t): Define using glwthread_cond_t.
9674         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9675         (glthread_cond_init): Define using glwthread_cond_init.
9676         (glthread_cond_wait): Define using glwthread_cond_wait.
9677         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9678         (glthread_cond_signal): Define using glwthread_cond_signal.
9679         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9680         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9681         (glthread_cond_init_func, glthread_cond_wait_func,
9682         glthread_cond_timedwait_func, glthread_cond_signal_func,
9683         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9684         declarations.
9685         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9686         types.
9687         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9688         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9689         glthread_cond_init_func, glthread_cond_wait_func,
9690         glthread_cond_timedwait_func, glthread_cond_signal_func,
9691         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9692         functions.
9693         * modules/windows-cond: New file.
9694         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9696 2019-06-20  Bruno Haible  <bruno@clisp.org>
9698         windows-timedrecmutex: New module.
9699         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9700         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9701         * modules/windows-timedrecmutex: New file.
9703 2019-06-20  Bruno Haible  <bruno@clisp.org>
9705         windows-timedmutex: New module.
9706         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9707         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9708         * modules/windows-timedmutex: New file.
9710 2019-06-20  Bruno Haible  <bruno@clisp.org>
9712         windows-recmutex: New module.
9713         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9714         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9715         * lib/glthread/lock.h: Include windows-recmutex.h.
9716         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9717         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9718         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9719         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
9720         (glthread_recursive_lock_unlock): Define using
9721         glwthread_recmutex_unlock.
9722         (glthread_recursive_lock_destroy): Define using
9723         glwthread_recmutex_destroy.
9724         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
9725         glthread_recursive_lock_unlock_func,
9726         glthread_recursive_lock_destroy_func): Remove declarations.
9727         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
9728         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
9729         glthread_recursive_lock_destroy_func): Remove functions.
9730         * modules/windows-recmutex: New file.
9731         * modules/lock (Depends-on): Add windows-recmutex.
9733 2019-06-20  Bruno Haible  <bruno@clisp.org>
9735         windows-mutex: New module.
9736         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
9737         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
9738         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
9739         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
9740         (gl_spinlock_t): Remove type.
9741         (gl_lock_t): Define using glwthread_mutex_t.
9742         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
9743         (glthread_lock_init): Define using glwthread_mutex_init.
9744         (glthread_lock_lock): Define using glwthread_mutex_lock.
9745         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
9746         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
9747         (glthread_lock_init_func, glthread_lock_lock_func,
9748         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9749         declarations.
9750         Use glwthread_spinlock_t instead of gl_spinlock_t.
9751         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
9752         GLWTHREAD_SPINLOCK_INIT.
9753         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
9754         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9755         functions.
9756         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
9757         gl_spinlock_t.
9758         * modules/windows-mutex: New file.
9759         * modules/lock (Depends-on): Add windows-mutex.
9761 2019-06-20  Bruno Haible  <bruno@clisp.org>
9763         windows-once: New module.
9764         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
9765         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
9766         * lib/glthread/lock.h: Include windows-once.h.
9767         (gl_once_t): Define using glwthread_once_t.
9768         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
9769         (glthread_once): Define using glwthread_once.
9770         (glthread_once_func): Remove declaration.
9771         * lib/glthread/lock.c (glthread_once_func): Remove function.
9772         * modules/windows-once: New file.
9773         * modules/lock (Depends-on): Add windows-once.
9775 2019-06-20  Bruno Haible  <bruno@clisp.org>
9777         lock, cond: Avoid possible counter wraparound on Windows.
9778         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
9779         field of the guard unchanged if it was already positive.
9780         (glthread_rwlock_rdlock_func): Likewise.
9781         (glthread_rwlock_wrlock_func): Likewise.
9782         (glthread_recursive_lock_lock_func): Likewise.
9783         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
9784         (glthread_cond_timedwait_func): Likewise.
9786 2019-06-20  Bruno Haible  <bruno@clisp.org>
9788         cond: Make glthread_cond_timedwait more reliable on Windows.
9789         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
9790         condition variable before looking at the current time.
9792 2019-06-20  Bruno Haible  <bruno@clisp.org>
9794         pthread_mutex_timedlock: New module.
9795         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
9796         new declaration.
9797         * lib/pthread_mutex_timedlock.c: New file.
9798         * m4/pthread_mutex_timedlock.m4: New file.
9799         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
9800         whether pthread_mutex_timedlock is declared.
9801         (gl_PTHREAD_MODULE_INDICATOR): New macro.
9802         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9803         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9804         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
9805         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9806         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9807         * modules/pthread_mutex_timedlock: New file.
9808         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
9809         module.
9811 2019-06-20  Bruno Haible  <bruno@clisp.org>
9813         thread, lock, cond, tls: Recognize C11 multithreaded applications.
9814         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
9815         * lib/glthread/thread.h (c11_threads_in_use): New macro.
9816         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9817         * lib/glthread/lock.h (c11_threads_in_use): New macro.
9818         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9819         * lib/glthread/cond.h (c11_threads_in_use): New macro.
9820         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9821         * lib/glthread/tls.h (c11_threads_in_use): New macro.
9822         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9824 2019-06-20  Bruno Haible  <bruno@clisp.org>
9826         tls tests: Small improvements.
9827         * tests/test-tls.c: Include <stdint.h>.
9828         (worker_thread): Avoid gcc warning on 64-bit mingw.
9829         (test_tls): Pass a different id to each thread.
9830         * modules/tls-tests (Depends-on): Add stdint.
9832 2019-06-20  Bruno Haible  <bruno@clisp.org>
9834         cond tests: Simplify.
9835         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
9837 2019-06-20  Bruno Haible  <bruno@clisp.org>
9839         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
9840         * tests/test-lock.c (test_once): Don't reference fire_signal if
9841         !ENABLE_LOCKING.
9843 2019-06-19  Bruno Haible  <bruno@clisp.org>
9845         nanosleep: Relicense under LGPLv2+.
9846         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
9847         * modules/nanosleep (License): Change to LGPLv2+.
9849 2019-06-19  Bruno Haible  <bruno@clisp.org>
9851         Reorder pieces of header in perl scripts.
9852         The desired order is
9853         - Prologue part 1 (2 lines with #!)
9854         - Program short description
9855         - Copyright and license notice
9856         - Written-by notice
9857         - Program short description (optional)
9858         - Program long description (optional)
9859         - Prologue part 2
9860         - Time stamp
9861         - Code
9862         Reported by Paul Eggert.
9863         * build-aux/announce-gen: Reorder header.
9864         * build-aux/gitlog-to-changelog: Likewise.
9865         * build-aux/useless-if-before-free: Likewise.
9866         * build-aux/prefix-gnulib-mk: Add copyright notice and short
9867         description.
9868         * build-aux/update-copyright: Likewise. Add short description. Bump
9869         time-stamp-line-limit to 200.
9871 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9873         verify-tests: work around xlc bug
9874         Problem reported by Bruno Haible in:
9875         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
9876         * tests/test-verify.c (item): Move the arithmetic inside the
9877         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
9879 2019-06-16  Bruno Haible  <bruno@clisp.org>
9881         Restore Emacs time-stamp hook applicability.
9882         Reported by Darshit Shah <darnir@gnu.org>.
9883         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
9884         * build-aux/announce-gen: Likewise.
9885         * build-aux/gitlog-to-changelog: Likewise.
9886         * build-aux/prefix-gnulib-mk: Likewise.
9887         * build-aux/update-copyright: Likewise.
9889 2019-06-15  Bruno Haible  <bruno@clisp.org>
9891         Fix scripts to have valid executable format on Alpine Linux.
9892         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
9893         Idea by Paul Eggert.
9894         * build-aux/useless-if-before-free: Use a prologue that starts with
9895         '#!/bin/sh'.
9896         * build-aux/announce-gen: Likewise.
9897         * build-aux/gitlog-to-changelog: Likewise.
9898         * build-aux/prefix-gnulib-mk: Likewise.
9899         * build-aux/update-copyright: Likewise.
9900         * tests/test-update-copyright.sh: Update test program accordingly.
9902 2019-06-10  Bruno Haible  <bruno@clisp.org>
9904         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
9905         Reported by Nikita Ermakov <arei@altlinux.org> in
9906         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
9907         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
9908         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
9910 2019-06-10  Bruno Haible  <bruno@clisp.org>
9912         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
9913         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
9914         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
9915         a copy of the path argument.
9916         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
9917         it.
9919 2019-06-10  Bruno Haible  <bruno@clisp.org>
9921         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
9922         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
9923         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
9924         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
9925         a copy of the path argument.
9926         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
9927         it.
9929 2019-06-10  Bruno Haible  <bruno@clisp.org>
9931         posix_spawn_file_actions_addfchdir: Add tests.
9932         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
9933         * tests/test-posix_spawn5.c: New file.
9934         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
9936 2019-06-10  Bruno Haible  <bruno@clisp.org>
9938         posix_spawn_file_actions_addfchdir: New module.
9939         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
9940         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
9941         union member 'fchdir_action'.
9942         * lib/spawn_faction_addfchdir.c: New file.
9943         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
9944         * m4/posix_spawn_faction_addfchdir.m4: New file.
9945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
9946         'posix_spawn_file_actions_addfchdir' is present and whether
9947         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
9948         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
9949         posix_spawn_file_actions_addfchdir is declared.
9950         (gl_SPAWN_H_DEFAULTS): Initialize
9951         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9952         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9953         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
9954         * modules/spawn (Makefile.am): Substitute
9955         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9956         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
9957         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
9958         * modules/posix_spawn_file_actions_addfchdir: New file.
9959         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
9960         signature.
9961         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9962         * doc/posix-functions/posix_spawnp.texi: Likewise.
9963         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
9964         Likewise.
9966 2019-06-10  Bruno Haible  <bruno@clisp.org>
9968         doc: Document existence of posix_spawn_file_actions_addchdir module.
9969         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
9970         the posix_spawn_file_actions_addchdir module.
9972 2019-06-10  Bruno Haible  <bruno@clisp.org>
9974         posix_spawn-internal: Fix module description.
9975         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
9976         from here...
9977         * modules/posix_spawnp (configure.ac): ... and here...
9978         * modules/posix_spawn-internal (configure.ac): ... to here.
9980 2019-06-10  Bruno Haible  <bruno@clisp.org>
9982         doc: Update and improve documentation of glibc functions.
9983         This is a series of commits that
9984         - updates the documentation to the state of glibc 2.29,
9985         - adds references to Linux man pages and glibc documentation,
9986         - marks Linux specific functions as such.
9987         These are the commits:
9988         doc: Update after removal of crypt functions from glibc 2.28.
9989         doc: Remove mention of function vm86 (does not exist on x86_64).
9990         doc: Remove mention of functions that are gone from glibc.
9991         doc: Mention that glibc no longer provides h_errno.
9992         doc: Mention the availability of specific functions in glibc versions.
9993         doc: Mention eaccess.
9994         doc: Add references to Linux man pages.
9995         doc: Add references to glibc documentation.
9996         doc: Mention inotify_* functions.
9997         doc: Mention ppoll.
9998         doc: Mention sched_getcpu.
9999         doc: Mention sync_file_range.
10000         doc: Mention epoll_pwait.
10001         doc: Mention eventfd, eventfd_read, eventfd_write.
10002         doc: Mention signalfd.
10003         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10004         doc: Mention epoll_create1.
10005         doc: Mention getauxval.
10006         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10007         doc: Mention nextdown, nextup.
10008         doc: Mention more ISO TS 18661-1 <math.h> functions.
10009         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10010         doc: Mention getrandom, getentropy.
10011         doc: Mention strfromf, strfromd, strfroml.
10012         doc: Mention preadv2, pwritev2.
10013         doc: Mention copy_file_range.
10014         doc: Mention memfd_create.
10015         doc: Mention mlock2.
10016         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10017         doc: Mention more ISO TS 18661-1 <math.h> functions.
10018         doc: Mention renameat2.
10019         doc: Mention statx.
10020         doc: Mention the ISO C11 multithreading header and functions.
10021         doc: Mention getcpu.
10022         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10023         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10024         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10025         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10026         doc: Some glibc functions also exist on Solaris 11.
10027         doc: Some glibc functions also exist on Solaris 11.4.
10028         doc: Some glibc functions also exist on FreeBSD.
10029         doc: Some glibc functions also exist on BeOS.
10030         doc: Some glibc functions also exist on Haiku.
10031         doc: Mark functions which exist only on Linux.
10032         doc: Mark functions which exist only on Linux and illumos.
10034 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10036         copy-file: fix typo
10037         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10039         copy-file-range: simplify into a stub
10040         Based on a comment by Florian Weimer in:
10041         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10042         It turns out that Emacs (which will use this module) won’t need an
10043         emulation and I suspect other programs won’t either, because these
10044         programs will need to fall back on read+write anyway.  Perhaps I
10045         am wrong and other programs will be able to use an emulation; if
10046         so, this patch can be reverted.
10047         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10048         Just call it copy_file_range.
10049         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10050         Check via AC_LINK_IFELSE.
10051         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10053 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10055         copy-file: prefer copy_file_range
10056         * lib/copy-file.c: Do not include xalloc.h.
10057         (qcopy_file_preserving): Allocate a buffer only if
10058         copy_file_range does not suffice.  If the allocation fails
10059         don't give up; just use a small stack-based buffer.
10060         Prefer copy_file_range if it works.
10061         * modules/copy-file (Depends-on): Add copy-file-range.
10062         Remove xalloc.
10064         copy-file-range: new module
10065         * MODULES.html.sh: Add copy-file-range.
10066         * lib/copy-file-range.c, m4/copy-file-range.m4:
10067         * modules/copy-file-range: New files.
10068         * lib/unistd.in.h (copy_file_range): Declare.
10069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10070         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10071         * modules/unistd (unistd.h): Substitute them.
10073 2019-05-28  Bruno Haible  <bruno@clisp.org>
10075         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10076         Reported by KO Myung-Hun <komh78@gmail.com> in
10077         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10078         * lib/binary-io.h (__gl_setmode_check): Remove function.
10079         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10080         * lib/binary-io.c (__gl_setmode_check): Remove function.
10081         (set_binary_mode): Define here on DJGPP and EMX. Inline
10082         __gl_setmode_check. In case of a tty, don't return an error code.
10084 2019-05-28  James Youngman  <jay@gnu.org>
10086         dirent-safer: Make opendir_safer usable from C++.
10087         * lib/dirent-safer.h: use extern "C".
10089 2019-05-28  James Youngman  <jay@gnu.org>
10091         canonicalize: Make canonicalize_filename_mode usable from C++.
10092         * lib/canonicalize.h: use extern "C".
10094 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10096         prefix-gnulib-mk: Fix CPPFLAGS migration.
10097         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10098         _a part of the library name.
10100 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10102         flexmember: update comments again
10103         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10105         flexmember: update comment
10106         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10108 2019-05-20  Bruno Haible  <bruno@clisp.org>
10110         setlocale: Improve fallback on macOS.
10111         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10112         invocation.
10113         (locales_with_principal_territory): New array.
10114         (langcmp, get_main_locale_with_same_language): New functions.
10115         (locales_with_principal_language): New array.
10116         (terrcmp, get_main_locale_with_same_territory): New functions.
10117         (rpl_setlocale): When setlocale_single failed, try again with a locale
10118         that is more likely to exist. Don't warn if the environment variable
10119         SETLOCALE_VERBOSE is not set.
10121 2019-05-19  Bruno Haible  <bruno@clisp.org>
10123         localename: Fix default on macOS.
10124         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10125         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10126         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10127         HAVE_CFLOCALECOPYCURRENT.
10128         * lib/localename.h (gl_locale_name_default): Update.
10130 2019-05-19  Karl Berry  <karl@freefriends.org>
10132         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10133         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10134         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10136 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10138         maintainer-makefile: catch uses of $< in non-implicit rules
10139         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10141 2019-05-18  Bruno Haible  <bruno@clisp.org>
10143         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10144         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10145         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10146         gl_use_threads accordingly.
10148 2019-05-18  Bruno Haible  <bruno@clisp.org>
10150         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10151         Reported by Tim Rühsen in
10152         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10153         and Michele Locati in
10154         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10155         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10156         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10157         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10158         in use and regardless which threads API is chosen.
10160 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10162         close-stream, closein, closeout: simplify
10163         I noticed this opportunity for simplification while drafting a
10164         new, related module that I haven’t had time to finish yet.
10165         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10166         * modules/close-stream (Files): Remove m4/close-stream.m4.
10167         (configure.ac): Omit gl_CLOSE_STREAM.
10168         * modules/closein (Files): Remove m4/closein.m4
10169         (configure.ac): Omit gl_CLOSEIN.
10170         * modules/closeout (Files): Remove m4/closeout.m4.
10171         (configure.ac): Omit gl_CLOSEOUT.
10173 2019-05-12  Bruno Haible  <bruno@clisp.org>
10175         libtool-next-version: New program.
10176         * build-aux/libtool-next-version: New file.
10178 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10179             Bruno Haible  <bruno@clisp.org>
10181         version-etc: Ease translation.
10182         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10183         URLs and formatting newlines out of translatable string.
10185 2019-05-11  Bruno Haible  <bruno@clisp.org>
10187         gnupload: Explain how to create symlinks.
10188         * build-aux/gnupload (usage): Add an example that creates symlinks.
10190 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10192         fpucw: port to gcc -pedantic
10193         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10194         Use __extension__ if using ({ ... }).
10196         crypto/af_alg: port to strict C compilers
10197         * lib/af_alg.c: Include af_alg.h regardless, so that the
10198         compilation unit is nonempty.
10200 2019-05-10  Bruno Haible  <bruno@clisp.org>
10202         base64: Avoid false positive warning from Coverity.
10203         Reported by Kamil Dudka <kdudka@redhat.com>.
10204         Idea by Paul Eggert.
10205         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10206         '& 0x3f' to the array index expressions. This convinces Coverity that
10207         there is no out-of-bounds array reference, regardless of the input.
10209 2019-05-09  Bruno Haible  <bruno@clisp.org>
10211         gettext: Update to gettext 0.20.
10212         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10213         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10214         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10215         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10216         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10217         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10218         (configure.ac): Request infrastructure compatible with gettext 0.20.
10219         * m4/glibc2.m4: Remove file.
10220         * m4/intdiv0.m4: Remove file.
10221         * m4/intl.m4: Remove file.
10222         * m4/intldir.m4: Remove file.
10223         * m4/intmax.m4: Remove file.
10224         * m4/printf-posix.m4: Remove file.
10225         * m4/uintmax_t.m4: Remove file.
10226         * m4/gettext.m4: Update from gettext 0.20.
10227         * m4/po.m4: Likewise.
10229 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10231         verify: remove verify_true
10232         * NEWS: Mention this.
10233         * lib/verify.h (verify_true): Remove.
10234         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10236         Support C2X and C++17 static_assert
10237         C2X and C++17 finally added support for a simple, single-argument
10238         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10239         doing back in 2005.  Implement static_assert on older platforms.
10240         The only remaining advantage of ‘verify’ is a shorter name.
10241         * doc/posix-headers/assert.texi (assert.h):
10242         * doc/verify.texi (Compile-time Assertions):
10243         Modernize for C2X and C++17.
10244         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10245         New macros.
10246         (_GL_HAVE__STATIC_ASSERT): Remove.
10247         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10248         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10249         string.  All callers changed.
10250         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10251         are used.  All callers changed.
10252         (_Static_assert): Allow either 1 or 2 args, and define if
10253         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10254         !_GL_HAVE__STATIC_ASSERT.
10255         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10256         of defining if !_GL_HAVE_STATIC_ASSERT.
10257         (verify_expr, verify): Don’t bother trying to copy the expression
10258         into the diagnostic, since 1-argument static_assert doesn’t.
10259         (verify): Prefer 1-argument _Static_assert if it works.
10260         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10262 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10264         Fix _GL_HAVE__STATIC_ASSERT typo
10265         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10266         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10268 2019-05-05  Bruno Haible  <bruno@clisp.org>
10270         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10271         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10272         via Akim Demaille <akim.demaille@gmail.com>.
10273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10274         en_US.UTF-8 locale, since that is more likely to be present than an
10275         fr_FR.UTF-8 locale.
10276         * tests/test-wcwidth.c (main): Check the width of U+2202.
10277         * doc/posix-functions/wcwidth.texi: Mention the issue.
10279 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10281         Port manywarnings to GCC 9
10282         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10283         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10284         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10285         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10286         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10287         --help=warnings output.
10288         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10289         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10290         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10292 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10294         Sync lib/mktime-internal.h from glibc
10295         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10296         * lib/mktime-internal.h: Autoupdate.
10298 2019-04-28  Bruno Haible  <bruno@clisp.org>
10300         tls tests: Prevent that the test takes too long.
10301         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10302         (main): Let the test fail if it takes more than 10 minutes.
10303         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10305 2019-04-27  Bruno Haible  <bruno@clisp.org>
10307         lock tests: Prevent that the test takes too long.
10308         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10309         (main): Let the test fail if it takes more than 10 minutes.
10310         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10312 2019-04-27  Bruno Haible  <bruno@clisp.org>
10314         localename: Fix crash on mingw (regression from 2018-11-23).
10315         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10316         locale name that is null.
10318 2019-04-27  Bruno Haible  <bruno@clisp.org>
10320         Fix gcc warnings on 64-bit mode mingw.
10321         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10322         * lib/gl_array_list.c: Likewise.
10323         * lib/gl_array_map.c: Likewise.
10324         * lib/gl_array_set.c: Likewise.
10325         * lib/gl_carray_list.c: Likewise.
10326         * lib/gl_sublist.c: Likewise.
10327         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10328         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10329         * lib/gl_hash_map.c (uintptr_t): Likewise.
10330         * lib/gl_hash_set.c (uintptr_t): Likewise.
10331         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10332         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10333         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10334         * lib/iconv.c (uintptr_t): Likewise.
10335         * lib/iconv_close.c (uintptr_t): Likewise.
10336         * tests/test-lock.c: Include <stdint.h>.
10337         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10338         'long'.
10339         * modules/clean-temp (Depends-on): Add stdint.
10340         * modules/array-list (Depends-on): Likewise.
10341         * modules/array-map (Depends-on): Likewise.
10342         * modules/array-set (Depends-on): Likewise.
10343         * modules/carray-list (Depends-on): Likewise.
10344         * modules/sublist (Depends-on): Likewise.
10345         * modules/lock-tests (Depends-on): Likewise.
10347 2019-04-27  Bruno Haible  <bruno@clisp.org>
10349         error: Tweak indentation.
10350         * lib/error.c: Correct indentation.
10352 2019-04-27  Bruno Haible  <bruno@clisp.org>
10354         term-style-control: Fix gcc warning on mingw.
10355         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10356         of i.
10358 2019-04-26  Bruno Haible  <bruno@clisp.org>
10360         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10361         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10363 2019-04-26  Bruno Haible  <bruno@clisp.org>
10365         relocatable-prog: Fix gcc warning on mingw.
10366         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10367         on EMX.
10369 2019-04-02  Bruno Haible  <bruno@clisp.org>
10371         gitsub.sh: New file.
10372         * top/gitsub.sh: New file.
10374 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10376         argmatch: use void* for raw memory pointers
10377         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10378         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10379         to "values", keep char* for strings.
10381 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10383         prefix-gnulib-mk: fix the support for gnulib-po
10384         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10385         Don't touch HAVE_* variables.
10386         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10388 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10390         di-set: allow free with 'ino_map' being NULL.
10391         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10392         is NULL.  Bug introduced in commit 3703dbbe88dd.
10393         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10394         as a test.
10396 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10398         * lib/str-two-way.h: Fix comment typo.
10400 2019-04-13  Bruno Haible  <bruno@clisp.org>
10402         x-to-1: Restore ability to use original calling convention.
10403         * build-aux/x-to-1.in: Add comments. Accept the original form of
10404         HELP2MAN argument as well as the form expected since 2012-12-12.
10406 2019-04-13  Bruno Haible  <bruno@clisp.org>
10408         x-to-1: Avoid failure due to missing perl modules.
10409         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10410         needs are installed.
10412 2019-04-13  Bruno Haible  <bruno@clisp.org>
10414         openmp-init: New module.
10415         * modules/openmp-init: New file.
10416         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10417         the changes from 2019-04-09.
10419 2019-04-12  Bruno Haible  <bruno@clisp.org>
10421         signbit: Fix compilation error when gnulib's math.h exists twice.
10422         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10424 2019-04-12  Bruno Haible  <bruno@clisp.org>
10426         openmp: Fix compilation error on platforms without OpenMP.
10427         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10429 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10431         mountlist: make parsing /proc/self/mountinfo more robust
10432         Cater for the following issues with mountinfo parsing (the first
10433         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10434         in <https://bugs.gnu.org/35137>).
10435         1. The fields source, target, mntroot and fstype may contain characters
10436         like '\r'; sscanf(3) fails to read such values with the %s format
10437         specifier because it would stop at such characters.
10438         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10439         The only true separator in that file is the ' ' character.
10440         2. The source field may be an empty string, which happens e.g. with
10441         "mount -t tmpfs '' /target".
10442         3. The fstype field may contain mangled characters as well which need
10443         unescaping.
10444         * lib/mountlist.c (terminate_at_blank): Add utility function.
10445         (read_file_system_list): In the block trying to read the mountinfo file,
10446         avoid using sscanf(3) with %s format; instead, parse the above fields
10447         separated by spaces one by one.
10448         This also handles the case when the source field is an empty string.
10449         Unescape the fstype field.
10451 2019-04-09  Bruno Haible  <bruno@clisp.org>
10453         openmp: Add workaround for 32-bit programs on AIX.
10454         * lib/omp.in.h: New file.
10455         * lib/omp-init.c: New file, based on lib/nproc.c.
10456         * m4/omp_h.m4: New file.
10457         * modules/openmp (Files): Add them.
10458         (Depends-on): Add include_next, c-ctype, setenv.
10459         (configure.ac): Invoke gl_OMP_H.
10460         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10461         (Include): Mention <omp.h>.
10463 2019-04-09  Bruno Haible  <bruno@clisp.org>
10465         nproc: Fix return value for privileged processes.
10466         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10467         getpid().
10469 2019-04-07  Bruno Haible  <bruno@clisp.org>
10471         Add copyright notices in several files.
10472         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10473         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10474         * lib/libunistring.valgrind: Likewise.
10475         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10476         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10477         * lib/memchr.valgrind: Likewise.
10478         * lib/memchr2.valgrind: Likewise.
10479         * lib/rawmemchr.valgrind: Likewise.
10480         * lib/relocatable.valgrind: Likewise.
10481         * lib/strchrnul.valgrind: Likewise.
10483 2019-03-25  Bruno Haible  <bruno@clisp.org>
10485         term-style-control tests: Fix link error.
10486         Reported by Tom G. Christensen in
10487         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10488         * modules/term-style-control-tests (Makefile.am): Link
10489         test-term-style-control-hello and test-term-style-control-yes against
10490         LIBINTL.
10492 2019-03-24  Bruno Haible  <bruno@clisp.org>
10494         term-style-control: Add tests.
10495         * tests/test-term-style-control-hello.c: New file.
10496         * tests/test-term-style-control-yes.c: New file.
10497         * modules/term-style-control-tests: New file.
10499         term-style-control: New module.
10500         * lib/term-style-control.h: New file, based on libtextstyle's
10501         term-ostream.oo.h and term-ostream.oo.c.
10502         * lib/term-style-control.c: New file, based on libtextstyle's
10503         term-ostream.oo.c.
10504         * modules/term-style-control: New file.
10506 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10508         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10509         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10510         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10512 2019-03-23  Bruno Haible  <bruno@clisp.org>
10514         Support cross-compilation to musl libc.
10515         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10516         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10517         musl libc.
10518         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10519         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10520         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10521         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10522         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10523         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10524         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10525         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10526         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10527         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10528         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10529         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10530         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10531         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10532         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10533         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10534         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10535         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10536         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10537         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10538         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10540         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10541         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10543         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10544         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10545         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10546         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10547         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10548         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10549         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10550         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10551         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10552         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10553         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10554         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10555         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10556         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10557         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10558         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10559         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10560         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10561         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10562         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10563         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10564         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10565         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10566         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10567         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10568         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10569         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10570         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10571         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10572         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10573         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10574         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10575         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10576         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10577         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10578         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10581         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10582         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10583         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10584         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10585         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10586         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10587         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10588         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10589         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10591         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10592         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10593         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10594         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10597 2019-03-23  Bruno Haible  <bruno@clisp.org>
10599         posix_spawn_file_actions_*: Document musl libc bugs.
10600         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10601         the bug.
10602         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10603         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10604         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10605         cross-compiling to a musl system, guess no.
10606         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10607         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10609 2019-03-23  Bruno Haible  <bruno@clisp.org>
10611         futimens: Document musl libc bug.
10612         * doc/posix-functions/futimens.texi: Mention the bug.
10613         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10614         cross-compiling, guess no on glibc and musl systems.
10616 2019-03-23  Bruno Haible  <bruno@clisp.org>
10618         Clarify that cross-compilation guesses are guesses.
10619         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10620         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10621         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10622         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10623         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10624         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10625         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10626         gl_cv_glob_lists_symlinks.
10627         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10628         'guessing ' to ac_cv_func_malloc_0_nonnull.
10629         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10630         'guessing ' to ac_cv_func_realloc_0_nonnull.
10631         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10632         'guessing ' to gl_cv_func_poll.
10633         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10634         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10635         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10637 2019-03-23  Bruno Haible  <bruno@clisp.org>
10639         strtold: Fix typo.
10640         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10642 2019-03-23  Bruno Haible  <bruno@clisp.org>
10644         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10645         Reported by Akim Demaille.
10646         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10647         [[noreturn]] would not work, use _Noreturn instead.
10649 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10651         libtextstyle-optional: Fix compiler warnings.
10652         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10653         as unused.
10655 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10657         bitset: fix memory leaks
10658         Reported by Bruno Haible.
10659         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10660         * lib/bitset/vector.c (vbitset_free): New.
10661         (vbitset_vtable): Use it.
10663 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10665         bitset: minor changes
10666         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10667         * lib/bitset/table.c: Formatting changes.
10668         Remove useless braces.
10669         Prefer using else in cascades of if/else-if with returns.
10670         * lib/bitset/vector.c: Reduce scopes.
10672 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10674         bitset: expose bitset_resize
10675         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10676         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10677         (main): Use a variable bitset as reference, since fixed does not support resize.
10679 2019-03-19  Bruno Haible  <bruno@clisp.org>
10681         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10682         Reported by Akim Demaille.
10683         * doc/noreturn.texi: New file.
10684         * doc/gnulib.texi: Include it.
10686 2019-03-19  Bruno Haible  <bruno@clisp.org>
10688         doc: Document how to use 'static inline'.
10689         * doc/static-inline.texi: New file.
10690         * doc/gnulib.texi: Include it.
10692 2019-03-19  Bruno Haible  <bruno@clisp.org>
10694         libtextstyle-optional: Add tests.
10695         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10696         adhoc-tests/hello.c.
10697         * tests/test-libtextstyle-default.css: New file, copied from
10698         libtextstyle's adhoc-tests/hello-default.css.
10699         * modules/libtextstyle-optional-tests: New file.
10701         libtextstyle-optional: New module.
10702         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10703         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10704         * modules/libtextstyle-optional: New file.
10706 2019-03-19  Bruno Haible  <bruno@clisp.org>
10708         c-stack: Make signal handlers more reliable.
10709         * lib/c-stack.c (progname): New variable.
10710         (die): Use it.
10711         (c_stack_action): Initialize it.
10712         (segv_handler): Save and restore errno.
10714 2019-03-19  Bruno Haible  <bruno@clisp.org>
10716         Help making signal handlers more reliable.
10717         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10718         _GL_ASYNC_SAFE into config.h.
10719         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
10720         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
10721         argument.
10722         * lib/fatal-signal.c (action_t, uninstall_handlers,
10723         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
10724         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
10725         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
10726         _GL_ASYNC_SAFE.
10727         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
10728         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
10730 2019-03-18  Bruno Haible  <bruno@clisp.org>
10732         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
10733         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
10734         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
10736 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10738         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
10739         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
10740         GCC 4.8.
10742 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10744         fts: minor simplification
10745         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
10747 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10749         bitset, timevar: Depend on c99.
10750         Reported by Bruno Haible.
10751         * modules/bitset, modules/timevar (Depends-on): Add c99.
10753 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10755         bitset: a bit (...) more tests
10756         * tests/test-bitset.c (check_attributes): Check zero and ones.
10758 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10760         bitset: fix overflows.
10761         Reported by Bruno Haible.
10762         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
10763         * lib/bitset/table.c (tbitset_test): last_bit is the position of
10764         the bit in the array of bitset_word, so be sure to take its modulo
10765         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
10766         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
10768 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
10770         bitset: style changes.
10771         * lib/bitset/table.c: Use NULL, not 0, for pointers.
10772         Formatting changes.
10773         (tbitset_list): Reduce scopes.
10775 2019-03-16  Bruno Haible  <bruno@clisp.org>
10777         fatal-signal: Pass the signal number to the action.
10778         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
10779         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
10780         (fatal_signal_handler): Pass the signal number to the action.
10781         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
10782         signal number as parameter.
10783         (create_temp_dir): Update.
10784         * lib/wait-process.c (cleanup_slaves_action): New function.
10785         (register_slave_subprocess): Update at_fatal_signal invocation.
10786         * NEWS: Mention the change.
10788 2019-03-16  Bruno Haible  <bruno@clisp.org>
10790         fatal-signal: Add function that lists the fatal signals.
10791         * lib/fatal-signal.h (get_fatal_signals): New declaration.
10792         * lib/fatal-signal.c (get_fatal_signals): New function.
10794 2019-03-14  Bruno Haible  <bruno@clisp.org>
10796         isatty: Make it return true in Cygwin consoles on native Windows.
10797         * lib/isatty.c: Include <string.h>.
10798         (GetProcAddress): New macro.
10799         (GetNamedPipeClientProcessIdFuncType): New type.
10800         (GetNamedPipeClientProcessIdFunc): New variable.
10801         (QueryFullProcessImageNameFuncType): New type.
10802         (QueryFullProcessImageNameFunc): New variable.
10803         (initialized): New variable.
10804         (initialize): New function.
10805         (IsCygwinConsoleHandle): New function.
10806         (isatty): Invoke it.
10807         * doc/posix-functions/isatty.texi: Mention the issue.
10809 2019-03-14  Bruno Haible  <bruno@clisp.org>
10811         all: Update URLs to msdn.microsoft.com.
10812         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
10813         was moved to docs.microsoft.com.
10815 2019-03-13  Bruno Haible  <bruno@clisp.org>
10817         gnulib-tool: Clarify the coding style.
10818         Suggested by Pavel Raiskup <praiskup@redhat.com>.
10819         * gnulib-tool: Add comment about coding style.
10821 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
10823         strtod: fix clash with strtold
10824         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
10825         * lib/strtod.c (compute_minus_zero, minus_zero):
10826         Simplify by remving the macro / external variable,
10827         and having just a function.  User changed.  This avoids
10828         the need for an external variable that might clash.
10830 2019-03-10  Bruno Haible  <bruno@clisp.org>
10832         alloca-opt: Fix conflict mingw's new <alloca.h> file.
10833         Reported by Eli Zaretskii <eliz@gnu.org>.
10834         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
10835         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
10836         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
10838 2019-03-10  Bruno Haible  <bruno@clisp.org>
10840         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
10841         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
10842         is in use.
10843         * tests/test-printf-posix2.c: Likewise.
10845 2019-03-10  Bruno Haible  <bruno@clisp.org>
10847         uninorm tests: Free allocated memory.
10848         * tests/uninorm/test-u32-normalize-big.h
10849         (struct normalization_test_file): Remove 'const' from allocated member.
10850         (free_normalization_test_file): New declaration.
10851         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
10852         memory.
10853         (free_normalization_test_file): New function.
10854         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
10855         'struct normalization_test_file' contents.
10856         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
10857         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
10858         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
10860 2019-03-10  Bruno Haible  <bruno@clisp.org>
10862         di-set: Fix memory leak.
10863         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
10864         not free().
10866 2019-03-10  Bruno Haible  <bruno@clisp.org>
10868         tests: Free allocated memory.
10869         Reported by <deltatau@protonmail.com> via Assaf Gordon.
10870         * tests/test-astrxfrm.c (main): Free allocated memory.
10871         * tests/test-bitset.c (compare, check_attributes): Free allocated
10872         bitsets.
10873         * tests/test-filenamecat.c (main): Free allocated memory.
10874         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
10875         * tests/test-freadptr.c (main): Likewise.
10876         * tests/test-freadptr2.c (main): Free allocated memory.
10877         * tests/test-freadseek.c (main): Likewise.
10878         * tests/test-gc-arcfour.c (main): Close allocated context.
10879         * tests/test-gc-arctwo.c (main): Likewise.
10880         * tests/test-gc-des.c (main): Close all allocated contexts.
10881         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
10882         * tests/test-pipe-filter-ii1.c (main): Likewise.
10883         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
10884         allocated file actions.
10885         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
10886         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
10887         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
10888         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
10889         * tests/test-strfmon_l.c (main): Free allocated locales.
10890         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
10891         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
10892         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10893         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
10894         * tests/unistr/test-chr.h (main): Free input32.
10895         * tests/unistr/test-strchr.h (test_strchr): Likewise.
10897 2019-03-10  Bruno Haible  <bruno@clisp.org>
10899         tests: Prepare for using valgrind.
10900         * tests/*.sh: Invoke all test programs through ${CHECKER}.
10901         * tests/*/*.sh: Likewise.
10902         * tests/test-freadptr.c (main): Update accordingly.
10903         * tests/test-freadseek.c (main): Likewise.
10905 2019-03-09  Bruno Haible  <bruno@clisp.org>
10907         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
10908         * lib/get-rusage-as.c (get_rusage_as): When compiled by
10909         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
10910         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
10911         before exiting.
10913 2019-03-09  Jim Meyering  <meyering@fb.com>
10915         test-userspec.c: don't print NULL
10916         * tests/test-userspec.c (main): A test release of gcc,
10917         9.0.1 20190310, warned that this test would attempt to
10918         print a NULL pointer via a %s printf format.  Fix that
10919         and remove the unnecessary preceding "!diag" conjunct.
10920         Also add a comment.
10922 2019-03-03  Bruno Haible  <bruno@clisp.org>
10924         getloadavg: Write NULL for the null pointer.
10925         Reported by Michal Privoznik <mprivozn@redhat.com>.
10926         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
10928 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
10930         alloca, tsearch-tests: Write NULL for the null pointer.
10931         * lib/alloca.c (i00afunc): Write NULL instead of 0.
10932         * tests/test-tsearch.c (mangle_tree): Likewise.
10934 2019-03-09  Bruno Haible  <bruno@clisp.org>
10936         strfmon_l: Fix -fsanitize=address finding.
10937         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
10938         <string.h>.
10939         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
10940         (directive_t, directives_t): New types.
10941         (fmon_parse): New function.
10942         (rpl_strfmon_l): Don't call va_arg more often than needed for the
10943         format string. Consume 'long double' arguments in places where the
10944         format string indicates so.
10945         * modules/strfmon_l (Depends-on): Add 'stdbool'.
10947 2019-03-09  Bruno Haible  <bruno@clisp.org>
10949         crypto/des: Fix undefined behaviour.
10950         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
10951         shift operations on 'int'.
10953 2019-03-09  Bruno Haible  <bruno@clisp.org>
10955         Fix undefined behaviour.
10956         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
10957         'unsigned int', to avoid shift operations on 'int'.
10958         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
10959         * tests/test-count-leading-zeros.c (main): Use a random number that has
10960         as many bits as TYPE, not only 2*15 or 2*31 bits.
10961         * tests/test-count-trailing-zeros.c (main): Likewise.
10962         * tests/test-count-one-bits.c (main): Likewise.
10963         * tests/test-memmem.c: Don't include "null-ptr.h".
10964         (main): Use zerosize_ptr() instead of null_ptr().
10965         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
10967 2019-03-08  Bruno Haible  <bruno@clisp.org>
10969         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
10970         Reported by Jeffrey Walton <noloader@gmail.com>.
10971         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
10972         invoke memset with a zero size.
10973         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10974         Likewise.
10975         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10976         Adjust accordingly.
10978 2019-03-08  Bruno Haible  <bruno@clisp.org>
10980         unistr/*, uniconv/*: Fix undefined behaviour.
10981         Reported by Jeffrey Walton <noloader@gmail.com>.
10982         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
10983         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
10984         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10985         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10987 2019-03-08  Bruno Haible  <bruno@clisp.org>
10989         unistr/u8-cmp: Fix undefined behaviour.
10990         Reported by Jeffrey Walton <noloader@gmail.com>.
10991         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
10993 2019-03-08  Bruno Haible  <bruno@clisp.org>
10995         unictype/numeric: Fix undefined behaviour.
10996         Reported by Jeffrey Walton <noloader@gmail.com>.
10997         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
10998         on shift overflow, caught by "gcc -fsanitize=undefined".
10999         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11000         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11001         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11003 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11005         git-version-gen: fix --version copyright year
11006         * build-aux/git-version-gen, build-aux/move-if-change (version):
11007         --version output copyright year is now taken from script year,
11008         so that it no longer needs to be updated by hand.
11010 2019-03-04  Bruno Haible  <bruno@clisp.org>
11012         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11013         This approach supports relocatable installation of shared libraries
11014         which depend on other shared libraries from the same package.
11015         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11016         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11017         wrapper around the original LIBTOOL.
11018         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11019         token '@loader_path' instead of '$ORIGIN'.
11020         * build-aux/libtool-reloc: New file.
11021         * modules/relocatable-prog (Files): Add it.
11022         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11023         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11024         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11025         Makefile.am, not in configure.ac.
11027 2019-03-04  Bruno Haible  <bruno@clisp.org>
11029         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11030         * build-aux/install-reloc: Revert change.
11031         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11033 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11035         nstrftime: support the ‘+’ flag
11036         * lib/nstrftime.c (add, __strftime_internal):
11037         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11038         (__strftime_internal): New arg ‘width’.  All uses changed.
11039         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11041 2019-02-24  Bruno Haible  <bruno@clisp.org>
11043         relocatable-prog: Improve verbose output.
11044         * build-aux/install-reloc (func_verbose): Escape characters that would
11045         be interpreted by the shell.
11047 2019-02-24  Bruno Haible  <bruno@clisp.org>
11049         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11050         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11051         "sys/stat.h".
11052         * lib/lstat.c: Likewise.
11053         * lib/fstat.c: Likewise.
11054         * lib/fstatat.c: Likewise.
11056 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11058         long-options: add parse_gnu_standard_options_only
11059         Discussed in https://bugs.gnu.org/33468 .
11061         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11062         (parse_gnu_standard_options_only): Add function to process
11063         the GNU default options --help and --version and fail for
11064         any other unknown long or short option. See
11065         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11066         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11067         * modules/long-options (depends-on): Add stdbool, exitfail.
11068         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11069         syntax-check rule, add new function name.
11071 2019-02-23  Bruno Haible  <bruno@clisp.org>
11073         relocatable-prog: Update documentation.
11074         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11075         the recent changes.
11077 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11079         nstrftime: tweak arg order
11080         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11081         All callers changed.  Suggested by TAMUKI Shoichi in:
11082         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11084 2019-02-23  Bruno Haible  <bruno@clisp.org>
11086         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11087         Reported by Paul Smith <psmith@gnu.org>.
11088         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11089         (func_relativize): New function, from gnulib-tool.
11090         Handle mode 'macosx' through invocations of 'otool' and
11091         'install_name_tool'.
11092         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11093         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11094         'install-reloc' invocation with mode 'macosx'.
11096 2019-02-23  Bruno Haible  <bruno@clisp.org>
11098         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11099         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11100         Hurd with glibc >= 2.27.
11102 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11104         nstrftime: merge glibc strftime changes
11105         This incorporates:
11106         2019-02-11 Fix a few whitespace arrangement inconsistencies
11107         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11108         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11109         2019-01-11 strftime: use the "L_" macro with character literals
11110         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11111         callers changed.  Default width of %Ey is now 2.  This is needed
11112         for proper handling of Japanese dates starting on 2019-05-01.
11114 2019-02-19  Bruno Haible  <bruno@clisp.org>
11116         relocatable-prog: Use $ORIGIN trick on more platforms.
11117         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11118         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11119         Solaris >= 10, Haiku. But don't use it on Android.
11120         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11121         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11123 2019-02-19  Bruno Haible  <bruno@clisp.org>
11125         progreloc: Speed up executable lookup on various platforms.
11126         * lib/progreloc.c: Include <errno.h>.
11127         (safe_read, full_read): New functions.
11128         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11129         prefer the information from the /proc file system to a PATH search.
11131 2019-02-19  Bruno Haible  <bruno@clisp.org>
11133         progreloc: Simplify code for Android.
11134         * lib/progreloc.c (executable_fd): Don't define on Android.
11135         (maybe_executable, find_executable): Don't use executable_fd on Android.
11137 2019-02-15  Bruno Haible  <bruno@clisp.org>
11139         gnulib-tool: Support --import with just a few tests, not --with-tests.
11140         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11141         'inctests' when generating files; use 'inctests' only for computing the
11142         transitive closure.
11144 2019-02-14  Bruno Haible  <bruno@clisp.org>
11146         gnulib-tool: Improve handling of multiple --local-dir options.
11147         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11148         options work.
11149         * gnulib-tool (func_path_prepend): Remove function.
11150         (func_path_foreach): Make IFS handling more robust.
11151         (local_gnulib_path): Collect --local-dir values using func_path_append,
11152         not func_path_prepend.
11153         (func_determine_path_separator): Make IFS handling more robust.
11154         (func_lookup_file_cb): New function.
11155         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11156         func_lookup_local_file. Apply the patches in the reverse order of their
11157         origin in $local_gnulib_path.
11158         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11159         * NEWS: Mention that the first --local-dir option is the one with
11160         highest priority.
11162 2019-02-10  Bruno Haible  <bruno@clisp.org>
11164         libtextstyle: New module.
11165         * m4/libtextstyle.m4: New file.
11166         * modules/libtextstyle: New file.
11168 2019-02-05  Bruno Haible  <bruno@clisp.org>
11170         declared.sh: Fix bug with variables of pointer type.
11171         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11172         before the symbol to be omitted if the preceding character is a '*'.
11174 2019-02-04  Bruno Haible  <bruno@clisp.org>
11176         Add script for running tests under valgrind.
11177         * build-aux/run-test: New file, from GNU libunistring.
11178         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11179         as well.
11181 2019-02-04  Bruno Haible  <bruno@clisp.org>
11183         declared.sh: Fix --version output.
11184         * build-aux/declared.sh (func_version): Update package name.
11186 2019-02-03  Bruno Haible  <bruno@clisp.org>
11188         Add script for determining the set of symbols to export from a library.
11189         * build-aux/declared.sh: New file, from GNU libunistring.
11190         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11191         Mention it.
11193 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11195         vla: add commentary about VLA_ELEMS
11196         * lib/vla.h (VLA_ELEMS): Add commentary,
11197         some inspired by Bruno Haible’s proposal in:
11198         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11200         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11201         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11202         assume the C99 signatures for strtod and strtold.  Programs that
11203         require stricter adherence to C99 should also use the strtod and
11204         strtold modules as needed, and we no longer need the
11205         HAVE_C99_STRTOLD macro.
11206         * NEWS: Mention this.
11207         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11208         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11209         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11210         (Files): Remove m4/c-strtod.m4.
11211         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11212         exists.
11214 2019-02-02  Bruno Haible  <bruno@clisp.org>
11216         fma: Improve code style.
11217         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11219 2019-02-02  Colin Watson  <cjwatson@debian.org>
11221         *-map tests: Fix compilation error.
11222         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11223         * tests/test-hash_map.c: Likewise.
11224         * tests/test-linkedhash_map.c: Likewise.
11226 2019-01-31  Bruno Haible  <bruno@clisp.org>
11228         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11229         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11230         GNULIB_defined_strtold_function): New macros.
11231         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11232         (STRTOD): Ignore HAVE_C99_STRTOLD.
11233         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11234         deemed buggy. But do use it on platforms where uselocale exists and is
11235         usable.
11236         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11237         deemed buggy. On platforms where uselocale exists and is usable, use
11238         uselocale and strtod/strtold.
11239         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11240         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11241         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11242         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11243         (Depends-on): Add strtod.
11244         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11245         (Depends-on): Add strtold.
11247 2019-01-31  Bruno Haible  <bruno@clisp.org>
11249         strtod, strtold: Use the locale's decimal point.
11250         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11251         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11252         (parse_number): Add a radixchar argument. Use it instead of '.'.
11253         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11254         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11255         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11256         * tests/test-strtod1.c: New file.
11257         * tests/test-strtod1.sh: New file.
11258         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11259         locale-fr.m4 and its dependencies.
11260         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11261         (Makefile.am): Arrange to compile test-strtod1.c and run
11262         test-strtod1.sh.
11263         * tests/test-strtold1.c: New file.
11264         * tests/test-strtold1.sh: New file.
11265         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11266         locale-fr.m4 and its dependencies.
11267         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11268         (Makefile.am): Arrange to compile test-strtold1.c and run
11269         test-strtold1.sh.
11271 2019-01-31  Bruno Haible  <bruno@clisp.org>
11273         strtod, strtold tests: Simplify tests.
11274         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11275         * tests/test-strtold.c (main): Likewise.
11277 2019-01-31  Bruno Haible  <bruno@clisp.org>
11279         strtod, strtold: Avoid unnecessary rounding errors.
11280         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11281         decimal to DOUBLE conversion.
11283 2019-01-31  Bruno Haible  <bruno@clisp.org>
11285         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11286         * lib/strtod.c (STRTOD): When there is an extra character after the
11287         exponent marker 'p', reparse the number.
11288         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11289         * doc/posix-functions/strtold.texi: Likewise.
11291 2019-01-29  Bruno Haible  <bruno@clisp.org>
11293         strtold: Add tests.
11294         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11295         * modules/strtold-tests: New file.
11297 2019-01-29  Bruno Haible  <bruno@clisp.org>
11299         strtold: New module.
11300         * lib/stdlib.in.h (strtold): New declaration.
11301         * lib/strtold.c: New file.
11302         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11303         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11304         USE_LDEXP): New macros.
11305         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11306         USE_LONG_DOUBLE.
11307         (underlying_strtod): Remove function. Replace with some macros.
11308         Re-add the code for a missing underlying function that was removed on
11309         2013-02-19.
11310         * m4/strtold.m4: New file.
11311         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11312         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11313         REPLACE_STRTOLD.
11314         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11315         REPLACE_STRTOLD.
11316         * modules/strtold: New file.
11317         * doc/posix-functions/strtold.texi: Document the new module.
11319 2019-01-29  Bruno Haible  <bruno@clisp.org>
11321         strtod: Fix compilation error on IRIX 6.5.
11322         * modules/strtod (Depends-on): Add 'math'.
11324 2019-01-28  Bruno Haible  <bruno@clisp.org>
11326         Fix build error when building a shared libunistring on Android.
11327         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11328         (main): Add 'volatile', to defeat a GCC optimization that would
11329         eliminate the reference.
11330         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11331         (main): Add 'volatile', to defeat a GCC optimization that would
11332         eliminate the reference.
11333         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11334         (main): Add 'volatile', to defeat a GCC optimization that would
11335         eliminate the reference.
11336         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11337         (main): Add 'volatile', to defeat a GCC optimization that would
11338         eliminate the reference.
11340 2019-01-27  Bruno Haible  <bruno@clisp.org>
11342         Avoid build errors due to wrong references between modules.
11343         * lib/uninorm/canonical-decomposition.c: Include
11344         "uninorm/decomposition-table.h", not "decomposition-table.h".
11345         * lib/uninorm/decomposition.c: Likewise.
11346         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11347         not "decompose-internal.h".
11348         * lib/uninorm/u16-normalize.c: Likewise.
11349         * lib/uninorm/u32-normalize.c: Likewise.
11350         * lib/uninorm/uninorm-filter.c: Likewise.
11351         * lib/uninorm/nfkc.c: Likewise.
11352         * lib/uninorm/nfkd.c: Likewise.
11353         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11354         "caseprop.h".
11355         * lib/unicase/u8-ct-totitle.c: Likewise.
11356         * lib/unicase/u8-prefix-context.c: Likewise.
11357         * lib/unicase/u8-suffix-context.c: Likewise.
11358         * lib/unicase/u16-casemap.c: Likewise.
11359         * lib/unicase/u16-ct-totitle.c: Likewise.
11360         * lib/unicase/u16-prefix-context.c: Likewise.
11361         * lib/unicase/u16-suffix-context.c: Likewise.
11362         * lib/unicase/u32-casemap.c: Likewise.
11363         * lib/unicase/u32-ct-totitle.c: Likewise.
11364         * lib/unicase/u32-prefix-context.c: Likewise.
11365         * lib/unicase/u32-suffix-context.c: Likewise.
11366         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11367         "unicasemap.h".
11368         * lib/unicase/u8-toupper.c: Likewise.
11369         * lib/unicase/u8-ct-tolower.c: Likewise.
11370         * lib/unicase/u8-ct-toupper.c: Likewise.
11371         * lib/unicase/u16-tolower.c: Likewise.
11372         * lib/unicase/u16-toupper.c: Likewise.
11373         * lib/unicase/u16-ct-tolower.c: Likewise.
11374         * lib/unicase/u16-ct-toupper.c: Likewise.
11375         * lib/unicase/u32-tolower.c: Likewise.
11376         * lib/unicase/u32-toupper.c: Likewise.
11377         * lib/unicase/u32-ct-tolower.c: Likewise.
11378         * lib/unicase/u32-ct-toupper.c: Likewise.
11379         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11380         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11381         * lib/unicase/u16-ct-casefold.c: Likewise.
11382         * lib/unicase/u32-ct-casefold.c: Likewise.
11384 2019-01-27  Bruno Haible  <bruno@clisp.org>
11386         gperf: Fix error when this module is required by some test module.
11387         * modules/gperf (Applicability): Set to 'all'.
11389 2019-01-27  Bruno Haible  <bruno@clisp.org>
11391         tmpfile: Add support for Android.
11392         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11393         works.
11394         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11395         Android.
11396         * modules/tmpfile (Depends-on): Add 'stdbool'.
11397         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11398         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11400 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11402         bitsetv: allow free on NULL.
11403         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11405 2019-01-27  Bruno Haible  <bruno@clisp.org>
11407         test-framework-sh: Improve maintainability.
11408         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11410 2019-01-27  Bruno Haible  <bruno@clisp.org>
11412         tests: Don't assume that /tmp exists.
11413         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11414         * tests/test-copy-acl-1.sh: Likewise.
11415         * tests/test-file-has-acl-1.sh: Likewise.
11416         * tests/test-copy-file-1.sh: Likewise.
11418 2019-01-27  Bruno Haible  <bruno@clisp.org>
11420         tests: Accommodate a shell that is not in /bin/sh.
11421         * tests/init.sh (setup_): Set srcdir and builddir.
11422         (BOURNE_SHELL): New variable.
11423         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11424         * modules/file-has-acl-tests (Depends-on): Likewise.
11425         * modules/copy-file-tests (Depends-on): Likewise.
11426         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11427         scripts through $BOURNE_SHELL.
11428         * tests/test-set-mode-acl-2.sh: Likewise.
11429         * tests/test-copy-acl-1.sh: Likewise.
11430         * tests/test-copy-acl-2.sh: Likewise.
11431         * tests/test-file-has-acl-1.sh: Likewise.
11432         * tests/test-file-has-acl-2.sh: Likewise.
11433         * tests/test-copy-file-1.sh: Likewise.
11434         * tests/test-copy-file-2.sh: Likewise.
11435         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11436         invoker.
11437         * tests/test-copy-acl.sh (builddir): Likewise.
11438         * tests/test-file-has-acl.sh (builddir): Likewise.
11439         * tests/test-copy-file.sh (builddir): Likewise.
11440         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11441         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11442         * tests/test-vc-list-files-git.sh: Likewise.
11444 2019-01-27  Bruno Haible  <bruno@clisp.org>
11446         tests: Fix some "unused variable" warnings.
11447         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11448         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11449         * tests/test-striconveh.c (main): Move some variable into the
11450         '#if HAVE_ICONV'.
11451         * tests/test-striconveha.c (main): Likewise.
11452         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11453         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11454         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11455         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11456         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11457         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11458         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11459         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11460         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11461         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11462         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11463         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11464         * tests/test-tsearch.c (main): Move some variable into the
11465         '#if HAVE_INITSTATE'.
11467 2019-01-27  Bruno Haible  <bruno@clisp.org>
11469         unigbrk/uc-grapheme-breaks: Fix build failure.
11470         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11471         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11473 2019-01-27  Bruno Haible  <bruno@clisp.org>
11475         mountlist: Merge two .m4 files.
11476         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11477         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11478         * m4/ls-mntd-fs.m4: Remove file.
11479         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11481 2019-01-27  Bruno Haible  <bruno@clisp.org>
11483         tests: Enable Linux specific tests on Android.
11484         * tests/test-flock.c (main): Treat Android like Linux.
11485         * tests/test-openat-safer.c (main): Likewise.
11487 2019-01-27  Bruno Haible  <bruno@clisp.org>
11489         relocatable-prog: Use Linux code on Android.
11490         * lib/progreloc.c: Treat Android like Linux.
11492 2019-01-26  Bruno Haible  <bruno@clisp.org>
11494         getloadavg: Add support for Android.
11495         * lib/getloadavg.c: Treat Android like Linux.
11497 2019-01-26  Bruno Haible  <bruno@clisp.org>
11499         vma-iter: Add support for Android.
11500         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11501         * lib/vma-iter.c: Treat Android like Linux.
11502         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11504 2019-01-26  Bruno Haible  <bruno@clisp.org>
11506         fts: Optimize on Android.
11507         * lib/fts.c: Treat Android like Linux.
11509 2019-01-26  Bruno Haible  <bruno@clisp.org>
11511         fts: Add support for Android.
11512         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11513         defined by this module and the ones in libc.
11514         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11516 2019-01-26  Bruno Haible  <bruno@clisp.org>
11518         mountlist: Use Linux code on Android.
11519         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11520         (unescape_tab, read_file_system_list): Enable Linux code on Android
11521         as well.
11522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11523         and endmntent.
11524         * modules/mountlist (Depends-on): Add 'getline'.
11526 2019-01-26  Bruno Haible  <bruno@clisp.org>
11528         localename tests: Fix test failure on Android.
11529         * modules/localename-tests (Depends-on): Add 'setlocale'.
11531 2019-01-26  Bruno Haible  <bruno@clisp.org>
11533         mountlist: Port better to Android.
11534         * lib/mountlist.c (MOUNTED): Redefine on Android.
11535         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11536         Android.
11538 2019-01-26  Bruno Haible  <bruno@clisp.org>
11540         striconveh: Fix use of uninitialized iconv_t.
11541         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11542         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11543         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11545 2019-01-26  Bruno Haible  <bruno@clisp.org>
11547         nonblocking-socket-tests: Fix test failure on Android 4.3.
11548         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11549         also on Android.
11551 2019-01-26  Bruno Haible  <bruno@clisp.org>
11553         sh-filename: Add support for Android 4.3.
11554         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11556 2019-01-26  Bruno Haible  <bruno@clisp.org>
11558         ptsname_r: Work around bug on Android 4.3.
11559         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11560         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11561         correct.
11562         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11563         is defined, just fix the return value.
11564         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11565         The behaviour of musl libc is nothing to be "fixed", since it is
11566         compliant with the next POSIX standard.
11568 2019-01-26  Bruno Haible  <bruno@clisp.org>
11570         ttyname_r: Work around bug on Android 4.3.
11571         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11572         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11573         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11574         * doc/posix-functions/ttyname.texi: Likewise.
11576 2019-01-25  Bruno Haible  <bruno@clisp.org>
11578         getprogname: Port to Android 4.3.
11579         * lib/getprogname.c (getprogname): On Android, take only the last
11580         component of __progname.
11582 2019-01-25  Bruno Haible  <bruno@clisp.org>
11584         wcrtomb: Work around bug on Android 4.3.
11585         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11586         the C locale.
11587         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11588         which does not have the 'wctomb' function.
11589         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11590         * tests/test-wcrtomb.c (main): Accept argument '5'.
11591         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11593 2019-01-25  Bruno Haible  <bruno@clisp.org>
11595         setlocale: Work around bug on Android 4.3.
11596         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11597         the "C" locale.
11598         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11599         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11601 2019-01-24  Bruno Haible  <bruno@clisp.org>
11603         memchr: Work around bug on Android <= 5.0.
11604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11605         * doc/posix-functions/memchr.texi: Mention the Android bug.
11607 2019-01-24  Bruno Haible  <bruno@clisp.org>
11609         random: Fix compilation error on Android 4.3.
11610         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11611         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11612         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11613         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11614         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11616         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11617         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11618         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11619         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11620         REPLACE_INITSTATE, REPLACE_SETSTATE.
11621         * doc/posix-functions/random.texi: Correct the description of the
11622         situation on Android.
11623         * doc/posix-functions/srandom.texi: Likewise.
11624         * doc/posix-functions/rand.texi: Likewise.
11625         * doc/posix-functions/srand.texi: Likewise.
11627 2019-01-24  Bruno Haible  <bruno@clisp.org>
11629         mbtowc: Fix compilation error on Android 4.3.
11630         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11631         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11632         HAVE_MBTOWC.
11633         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11634         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11635         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11636         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11637         * doc/posix-functions/mbtowc.texi: Mention the change.
11639 2019-01-24  Bruno Haible  <bruno@clisp.org>
11641         fdatasync: Fix compilation error on Android 4.3.
11642         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11643         test whether fdatasync() exists.
11645 2019-01-24  Bruno Haible  <bruno@clisp.org>
11647         unlinkat: Fix compilation error on Android 4.3.
11648         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11649         also on Android.
11650         * doc/posix-functions/unlinkat.texi: Mention the issue.
11652 2019-01-24  Bruno Haible  <bruno@clisp.org>
11654         renameat: Fix compilation error on Android 4.3.
11655         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11656         * doc/posix-functions/renameat.texi: Mention the issue.
11658 2019-01-24  Bruno Haible  <bruno@clisp.org>
11660         fchownat: Fix compilation error on Android 4.3.
11661         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11662         use.
11663         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11664         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11665         * doc/posix-functions/fchownat.texi: Mention the issue.
11667 2019-01-23  Bruno Haible  <bruno@clisp.org>
11669         gnulib-tool: Support running testdirs on Android.
11670         * build-aux/test-driver.diff: New file.
11671         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11672         build-aux/test-driver after running automake.
11674 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11676         relocatable-prog: avoid warnings from Automake
11677         * modules/relocatable-prog: Don't declare PHONY dependencies in
11678         Automake conditionals.
11680 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11682         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11683         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11685 2019-01-23  Bruno Haible  <bruno@clisp.org>
11687         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11688         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11689         preceding -Wl,--as-needed option. Don't check whether the linker
11690         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11692 2019-01-23  Bruno Haible  <bruno@clisp.org>
11694         thread: Force linking with -lpthread, even when --as-needed is in use.
11695         Reported by Richard W.M. Jones <rjones@redhat.com> in
11696         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11697         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11699 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11700             Bruno Haible  <bruno@clisp.org>
11702         relocatable: avoid compiler warnings (-Wshadow)
11703         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11704         to avoid name collisions with global variables.
11706 2019-01-22  Bruno Haible  <bruno@clisp.org>
11708         vasnprintf: Don't use %n on Android.
11709         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11710         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11711         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11713 2019-01-22  Bruno Haible  <bruno@clisp.org>
11715         *printf: Support cross-compilation to Android.
11716         * m4/printf.m4: Add cross-compilation guesses for Android.
11718 2019-01-21  Bruno Haible  <bruno@clisp.org>
11720         diacrit: Mark deprecated.
11721         * modules/diacrit (Status, Notice): Mark as deprecated.
11722         * NEWS: Mention it.
11724 2019-01-20  Bruno Haible  <bruno@clisp.org>
11726         rintl: Override broken implementation on NetBSD.
11727         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
11728         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
11729         REPLACE_RINTL.
11730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
11731         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
11732         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
11733         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
11735 2019-01-20  Bruno Haible  <bruno@clisp.org>
11737         log10l: Work around inaccurate implementation on NetBSD.
11738         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
11739         * lib/log10l.c: Comment out too simplistic override.
11740         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
11742 2019-01-20  Bruno Haible  <bruno@clisp.org>
11744         logl: Work around inaccurate implementation on NetBSD.
11745         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
11746         * lib/logl.c: Comment out unused code.
11747         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
11749 2019-01-20  Bruno Haible  <bruno@clisp.org>
11751         expm1l: Work around inaccurate implementation on NetBSD.
11752         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
11753         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
11754         REPLACE_EXPM1L.
11755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
11756         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
11757         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
11758         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
11760 2019-01-20  Bruno Haible  <bruno@clisp.org>
11762         expl: Work around inaccurate implementation on NetBSD.
11763         * lib/math.in.h (expl): Test also REPLACE_EXPL.
11764         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
11765         REPLACE_EXPL.
11766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
11767         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
11768         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
11769         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
11771 2019-01-20  Bruno Haible  <bruno@clisp.org>
11773         exp2l: Work around inaccurate implementation on NetBSD.
11774         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
11775         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
11777 2019-01-20  Bruno Haible  <bruno@clisp.org>
11779         floor, floorl: Avoid autoconf warnings.
11780         * modules/floor (configure.ac): Use AC_REQUIRE.
11781         * modules/floorl (configure.ac): Likewise.
11783 2019-01-20  Bruno Haible  <bruno@clisp.org>
11785         Defeat current GCC optimizations in math autoconf tests.
11786         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
11787         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11788         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11789         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11790         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11791         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11792         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11793         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11794         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11795         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11796         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11797         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11798         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11799         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11800         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11801         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11802         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
11803         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11804         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11805         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11806         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11807         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11808         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11809         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11810         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11811         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11812         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11813         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11814         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11815         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11816         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11817         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11818         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11820         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11821         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11822         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11823         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11825 2019-01-19  Pádraig Brady  <P@draigBrady.com>
11827         gettext: support disabling use of VLAs
11828         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
11830 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11832         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
11833         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
11835 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11837         fcntl: Fix syntax error (regression from 2018-10-05).
11838         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
11840 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11842         relocatable: improve documentation.
11843         * doc/relocatable-maint.texi (Supporting Relocation): For
11844         substitutions performed by config.status, we need more variables
11845         (for instance datarootdir defaults to '${prefix}/share' so we need
11846         prefix).
11848 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11850         backup: update dependencies
11851         * modules/backup-rename (Depends-on): It now depends on opendirat
11852         instead of opendir.  It also uses stdint, and xalloc-oversized.
11853         But no longer dirfd.
11854         * modules/backupfile (Depends-on): Add xalloc-oversized.
11856 2019-01-13  Bruno Haible  <bruno@clisp.org>
11858         getcwd: Fix test failure when building on a Linux 9p file system.
11859         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
11860         EINVAL from mkdir like ENAMETOOLONG.
11861         * tests/test-getcwd.c (test_long_name): Likewise.
11863 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
11865         Fix typos found by codespell.
11866         * lib/*.[hc]: Fix typos in comments.
11867         * pygnulib/*.py: Fix typos in error messages and comments.
11869 2019-01-12  Bruno Haible  <bruno@clisp.org>
11871         doc: Fix documentation about container data types.
11872         Reported by Werner Lemberg <wl@gnu.org>.
11873         * doc/containers.texi (Container data types): Fix typo.
11875 2019-01-10  Bruno Haible  <bruno@clisp.org>
11877         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
11878         Reported by Reuben Thomas <rrt@sc3d.org>.
11879         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
11881 2019-01-06  Bruno Haible  <bruno@clisp.org>
11883         maintainer-makefile: Make the configure.ac section optional.
11884         * top/maint.mk (GREP, SED): Define if not defined.
11886 2019-01-06  Bruno Haible  <bruno@clisp.org>
11888         localename: Assume setlocale function.
11889         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
11890         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
11892 2019-01-06  Bruno Haible  <bruno@clisp.org>
11894         doc: Add documentation about container data types.
11895         * doc/containers.texi: New file.
11896         * doc/gnulib.texi (Particular Modules): Include it.
11898 2019-01-06  Bruno Haible  <bruno@clisp.org>
11900         doc: Update documentation about 'progname' module.
11901         * doc/progname.texi: Rename from doc/error.texi. Change node name and
11902         title. Rewrite.
11903         * doc/gnulib.texi (Particular Modules): Update.
11905 2019-01-06  Bruno Haible  <bruno@clisp.org>
11907         doc: Document the xstdopen and *-safer modules.
11908         * doc/xstdopen.texi: New file.
11909         * doc/gnulib.texi (Particular Modules): Include it.
11911 2019-01-06  Bruno Haible  <bruno@clisp.org>
11913         xstdopen: Add tests.
11914         * tests/test-xstdopen.c: New file.
11915         * tests/test-xstdopen.sh: New file.
11916         * modules/xstdopen-tests: New file.
11918         xstdopen: New module.
11919         * lib/xstdopen.h: New file.
11920         * lib/xstdopen.c: New file.
11921         * modules/xstdopen: New file.
11923 2019-01-06  Bruno Haible  <bruno@clisp.org>
11925         stdopen: Fix compilation error with IRIX cc.
11926         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
11928 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11930         xfreopen need not include stdio--.h
11931         * lib/xfreopen.c: Do not include stdio--.h.
11933         xfreopen need not depend on freopen-safer
11934         * modules/xfreopen (Depends-on):
11935         Depend on freopen, not freopen-safer.
11937         stdopen: modernize and simplify
11938         * lib/stdopen.c: Update copyright date
11939         Do not include sys/types.h; no longer needed these days.
11940         (stdopen): Use C99-style decl in loop.  Return int errno
11941         value, rather than just a bool.  Do not worry about fd mismatches,
11942         since the caller cares only if 0, 1, 2 are occupied.
11943         * lib/stdopen.h: No need to include <stdbool.h>.
11944         * m4/stdopen.m4: Remove.
11945         * modules/stdopen: New file.
11947         stdopen: copy from last use in coreutils
11948         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
11949         New files, taken from their last commit in coreutils
11950         2007-07-23T12:35:58Z!jim@meyering.net
11951         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
11953 2019-01-05  Bruno Haible  <bruno@clisp.org>
11955         argp: Don't pass an invalid argument to dgettext().
11956         Reported by He X <xw897002528@gmail.com>.
11957         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
11958         dgettext().
11960 2019-01-05  Bruno Haible  <bruno@clisp.org>
11962         argp: Don't pass an invalid argument to dgettext().
11963         Reported by He X <xw897002528@gmail.com>.
11964         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
11965         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
11966         dgettext().
11968 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11970         stdioext: port to newer 32-bit Android
11971         Problem reported by Tom Yan in:
11972         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
11973         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
11974         (fp_) [__ANDROID__]: Use it.
11976 2019-01-04  Bruno Haible  <bruno@clisp.org>
11978         lock: Fix link error with --enable-threads=pth.
11979         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
11980         Mark as weak.
11982 2019-01-04  Bruno Haible  <bruno@clisp.org>
11984         Fix link errors in unit tests.
11985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11986         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
11987         * modules/array-map-tests (Makefile.am): Link test-array_map against
11988         libintl.
11989         * modules/array-set-tests (Makefile.am): Link test-array_set against
11990         libintl.
11991         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
11992         libintl.
11993         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
11994         libintl.
11995         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
11996         against libintl.
11997         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
11998         against libintl.
12000 2019-01-04  Bruno Haible  <bruno@clisp.org>
12002         Fix incorrect 'Link' sections.
12003         * modules/regex (Link): Mention the link requirement of module 'lock'.
12004         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12006 2019-01-04  Bruno Haible  <bruno@clisp.org>
12008         Fix some 'Link' sections.
12009         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12010         dependency.
12011         * modules/getaddrinfo (Link): Likewise.
12013 2019-01-04  Bruno Haible  <bruno@clisp.org>
12015         Remove redundant 'Link' sections.
12016         * modules/canon-host (Link): Remove section.
12017         * modules/timevar (Link): Likewise.
12019 2019-01-04  Bruno Haible  <bruno@clisp.org>
12021         Remove incorrect 'Link' sections.
12022         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12023         the dependencies instead.
12024         * modules/crypto/md5 (Link): Likewise.
12025         * modules/crypto/sha1 (Link): Likewise.
12026         * modules/crypto/sha256 (Link): Likewise.
12027         * modules/crypto/sha512 (Link): Likewise.
12028         * modules/faccessat (Link): Likewise.
12029         * modules/fdutimensat (Link): Likewise.
12030         * modules/iconv_open-utf (Link): Likewise.
12031         * modules/propername (Link): Likewise.
12032         * modules/qacl (Link): Likewise.
12033         * modules/unicodeio (Link): Likewise.
12034         * modules/utimecmp (Link): Likewise.
12035         * modules/utimensat (Link): Likewise.
12036         * modules/xstriconv (Link): Likewise.
12037         * modules/xstriconveh (Link): Likewise.
12039 2019-01-04  Bruno Haible  <bruno@clisp.org>
12041         gnulib-tool: New option --extract-recursive-link-directive.
12042         * gnulib-tool (func_usage): Document the new options
12043         --extract-recursive-dependencies, --extract-recursive-link-directive.
12044         (func_verify_module): Document output variables.
12045         (func_get_dependencies_recursively): New function.
12046         (func_get_link_directive_recursively): New function.
12047         Use them to implement the new options
12048         --extract-recursive-dependencies, --extract-recursive-link-directive.
12049         * doc/gnulib-tool.texi (Link-time requirements): New section.
12051 2019-01-04  Bruno Haible  <bruno@clisp.org>
12053         Clarify meaning of 'Link' section in module description.
12054         * doc/gnulib.texi (Module description): Clarify the meaning of the
12055         'Link' section versus the one of the dependencies.
12056         * NEWS: Mention the change.
12058 2019-01-04  Bruno Haible  <bruno@clisp.org>
12060         pselect: Fix module description.
12061         * modules/pselect (Link): Put one link option per line.
12063 2019-01-04  Bruno Haible  <bruno@clisp.org>
12065         cosl: Fix module description.
12066         * modules/cosl (Link): Fix typo.
12067         * modules/mathl (configure.ac): Likewise.
12069 2019-01-04  Bruno Haible  <bruno@clisp.org>
12071         c-xvasprintf: Fix module dependencies.
12072         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12074 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12076         bootstrap: die when some submodules are not initialized
12077         * build-aux/bootstrap: Make sure all submodules are initialized.
12079 2019-01-04  Bruno Haible  <bruno@clisp.org>
12081         bitsetv: Fix module dependencies.
12082         * lib/bitsetv.c: Include xalloc.h.
12083         * modules/bitsetv (Depends-on): Add 'xalloc'.
12085 2019-01-04  Bruno Haible  <bruno@clisp.org>
12087         xmemdup0: Remove redundant code.
12088         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12090 2019-01-04  Bruno Haible  <bruno@clisp.org>
12092         backupfile: Fix module dependencies.
12093         * modules/backupfile (Depends-on): Add 'xalloc'.
12095 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12097         bitset, crypto/gc: fix conflicts with Solaris 11
12098         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12099         avoid clash with Solaris 11 <sys/bitset.h>.
12100         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12101         with Solaris 11 <xorg/gc.h>.
12103 2019-01-04  Bruno Haible  <bruno@clisp.org>
12105         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12106         Reported by Andy Fiddaman <andy@omniosce.org>.
12107         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12109 2019-01-03  Eric Blake  <eblake@redhat.com>
12111         maintainer-makefile: fix typo in previous patch
12112         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12113         of Roman's work.
12115 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12117         maintainer-makefile: prefer $(GREP) over grep
12118         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12119         defined.
12120         * top/maint.mk: Use it everywhere.
12122         maintainer-makefile: split long argument lines
12123         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12124         it would be too long for exec limits on BSD.
12126 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12128         mkfifo: bring back HAVE_MKFIFO macro
12129         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12130         Problem reported by Andrew Janke in:
12131         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12133 2018-12-21  Bruno Haible  <bruno@clisp.org>
12135         Assume Autoconf >= 2.63.
12136         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12137         versions < 2.60.
12139 2018-12-21  Bruno Haible  <bruno@clisp.org>
12141         memcmp: Mention the clang bug.
12142         * tests/test-memcmp.c: Add comment about a known test failure.
12143         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12145 2018-12-20  Jim Meyering  <meyering@fb.com>
12147         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12148         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12149           echo '123-x'|LC_ALL=C grep -E '.\bx'
12150         The goal is to revert the first, but reverting it requires to restore
12151         the function deleted in the second. I ran this to restore the deleted
12152         function:
12153           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12154             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12155             | patch -R -p1
12156         * lib/dfa.c (charclass_context): Restore deleted function.
12157         Reverting the primary commit removes this change:
12158         dfa: Simplify a building state
12159         * lib/dfa.c (build_state): Simplify a building state.
12161 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12163         version-etc: allow zero authors
12164         * lib/version-etc.c (version_etc_arn): If no authors are given,
12165         omit authorship info instead of dumping core.
12167 2018-12-19  Bruno Haible  <bruno@clisp.org>
12169         lchown tests: Be more permissive regarding errno values.
12170         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12171         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12172         alternative to ENOSYS.
12173         * modules/lchown-tests (Depends-on): Add 'errno'.
12174         * modules/fchownat-tests (Depends-on): Likewise.
12176 2018-12-18  Bruno Haible  <bruno@clisp.org>
12178         duplocale: Avoid test failure on AIX 7.
12179         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12180         (configure.ac): Invoke gt_FUNC_USELOCALE.
12181         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12182         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12183         works.
12185 2018-12-18  Bruno Haible  <bruno@clisp.org>
12187         localename: Fix test failure on AIX 7.
12188         Reported by Assaf Gordon in
12189         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12190         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12191         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12192         instead of ac_cv_func_uselocale.
12193         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12194         HAVE_USELOCALE.
12195         * lib/localename-table.h: Likewise.
12196         * lib/localename-table.c: Likewise.
12197         * tests/test-localename.c: Likewise.
12198         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12200 2018-12-18  Bruno Haible  <bruno@clisp.org>
12202         localename: Update comments regarding Cygwin.
12203         * lib/localename.c: Update comment.
12204         * doc/posix-functions/uselocale.texi: Update platforms list.
12205         * doc/posix-functions/newlocale.texi: Likewise.
12206         * doc/posix-functions/duplocale.texi: Likewise.
12207         * doc/posix-functions/freelocale.texi: Likewise.
12209 2018-12-16  Bruno Haible  <bruno@clisp.org>
12211         c-stack: Fix for Linux/sparc.
12212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12213         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12215 2018-12-16  Bruno Haible  <bruno@clisp.org>
12217         localename: Avoid test failure on some glibc systems.
12218         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12219         Unset environment variables that might disturb the first setlocale call,
12220         and verify that this setlocale call succeeds.
12222 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12224         random: Fix build error on native Windows (regression from 2018-06-21).
12225         * lib/random.c (__srandom, __initstate, __setstate, __random,
12226         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12227         to the symbols without '__' prefix.
12229 2018-12-16  Bruno Haible  <bruno@clisp.org>
12231         obstack, libc-config: Support HP-UX cc in C99 mode.
12232         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12233         compiler, even when in C99 mode.
12234         * lib/cdefs.h (__flexarr): Likewise.
12235         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12237 2018-12-16  Bruno Haible  <bruno@clisp.org>
12239         localename: Fix test failure on OpenBSD >= 6.2.
12240         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12241         locale system. Define HAVE_FAKE_LOCALES in this case.
12242         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12243         HAVE_USELOCALE.
12244         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12245         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12246         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12247         platforms list.
12248         * doc/posix-functions/newlocale.texi: Likewise.
12249         * doc/posix-functions/duplocale.texi: Update platforms list.
12250         * doc/posix-functions/freelocale.texi: Likewise.
12252 2018-12-16  Bruno Haible  <bruno@clisp.org>
12254         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12255         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12256         of the test, on platforms without <monetary.h>.
12258 2018-12-16  Bruno Haible  <bruno@clisp.org>
12260         localename: Update comments.
12261         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12263 2018-12-15  Jim Meyering  <meyering@fb.com>
12265         regex: fix indentation
12266         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12268 2018-12-15  Bruno Haible  <bruno@clisp.org>
12270         openat-safer tests: Avoid test failure on NetBSD 8.
12271         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12272         on Linux.
12274 2018-12-15  Jim Meyering  <meyering@fb.com>
12276         regex: work around a bug in glibc-2.27 and prior
12277         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12278         assertion for /0|()0|\1|0/.
12279         * tests/test-regex.c (main): Add the same test here.
12281 2018-12-15  Bruno Haible  <bruno@clisp.org>
12283         localename: Fix use of uninitialized shell variable.
12284         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12285         gt_cv_locale_solaris114 always before use. Remove assignment without
12286         effect.
12288 2018-12-15  Bruno Haible  <bruno@clisp.org>
12290         dfa tests: Avoid test failure on Alpine Linux.
12291         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12292         command found on Alpine Linux.
12294 2018-12-15  Jim Meyering  <meyering@fb.com>
12296         dfa: avoid new warnings from gcc
12297         These would prevent building with -Werror and a Dec snapshot of gcc.
12298         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12299         Rename each inner instance to "p".
12300         (charclass_context): Remove unused static function.
12302 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12304         mkdir-p: improve diagnostic for FUSE mounts
12305         Problem reported by Niklas Hambüchen in:
12306         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12307         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12308         errno to mkdir errno if the stat errno is likely more interesting.
12310 2018-12-14  Bruno Haible  <bruno@clisp.org>
12312         hash-map: Add tests.
12313         * tests/test-hash_map.c: New file.
12314         * modules/hash-map-tests: New file.
12316         linkedhash-map: Add tests.
12317         * tests/test-linkedhash_map.c: New file.
12318         * modules/linkedhash-map-tests: New file.
12320         array-map: Add tests.
12321         * tests/test-array_map.c: New file.
12322         * modules/array-map-tests: New file.
12324         xmap: New module.
12325         * lib/gl_xmap.h: New file.
12326         * lib/gl_xmap.c: New file.
12327         * modules/xmap: New file.
12329         hash-map: New module.
12330         * lib/gl_hash_map.h: New file.
12331         * lib/gl_hash_map.c: New file.
12332         * modules/hash-map: New file.
12334         linkedhash-map: New module.
12335         * lib/gl_linkedhash_map.h: New file.
12336         * lib/gl_linkedhash_map.c: New file.
12337         * lib/gl_anyhash1.h: Update comments.
12338         * lib/gl_anyhash2.h: Likewise.
12339         * modules/linkedhash-map: New file.
12341         array-map: New module.
12342         * lib/gl_array_map.h: New file.
12343         * lib/gl_array_map.c: New file.
12344         * modules/array-map: New file.
12346         map: New module.
12347         * lib/gl_map.h: New file.
12348         * lib/gl_map.c: New file.
12349         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12350         conflict with gl_map.h.
12351         * modules/map: New file.
12353 2018-12-13  Bruno Haible  <bruno@clisp.org>
12355         select tests: Avoid test failure on Cygwin.
12356         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12358 2018-12-13  Bruno Haible  <bruno@clisp.org>
12360         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12361         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12363 2018-12-13  Bruno Haible  <bruno@clisp.org>
12365         localeconv tests: Avoid test failure on Cygwin.
12366         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12367         'mon_grouping' tests.
12369 2018-12-11  Bruno Haible  <bruno@clisp.org>
12371         omap: Don't dispose the old value when the function returns it.
12372         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12373         here.
12374         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12375         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12376         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12377         here.
12379         array-omap, avltree-omap, rbtree-omap: Tweak style.
12380         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12381         false.
12382         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12384         rbtree-omap: Add tests.
12385         * tests/test-rbtree_omap.c: New file.
12386         * modules/rbtree-omap-tests: New file.
12388         avltree-omap: Add tests.
12389         * tests/test-avltree_omap.c: New file.
12390         * modules/avltree-omap-tests: New file.
12392         array-omap: Add tests.
12393         * tests/test-array_omap.c: New file.
12394         * modules/array-omap-tests: New file.
12396         xomap: New module.
12397         * lib/gl_xomap.h: New file.
12398         * lib/gl_xomap.c: New file.
12399         * modules/xomap: New file.
12401         rbtree-omap: New module.
12402         * lib/gl_rbtree_omap.h: New file.
12403         * lib/gl_rbtree_omap.c: New file.
12404         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12405         Parameterize.
12406         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12407         * modules/rbtree-omap: New file.
12408         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12409         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12411         avltree-omap: New module.
12412         * lib/gl_avltree_omap.h: New file.
12413         * lib/gl_avltree_omap.c: New file.
12414         * lib/gl_avltree_ordered.h: Code moved to here from
12415         lib/gl_avltree_oset.c. Parameterize.
12416         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12417         * lib/gl_anytree_omap.h: New file.
12418         * modules/avltree-omap: New file.
12419         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12420         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12422         array-omap: New module.
12423         * lib/gl_array_omap.h: New file.
12424         * lib/gl_array_omap.c: New file.
12425         * modules/array-omap: New file.
12427         omap: New module.
12428         * lib/gl_omap.h: New file.
12429         * lib/gl_omap.c: New file.
12430         * modules/omap: New file.
12432 2018-12-11  Bruno Haible  <bruno@clisp.org>
12434         hash-set, linkedhash-set: Reduce code duplication.
12435         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12436         lib/gl_anyhash_set1.h.
12437         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12438         lib/gl_anyhash_set2.h. Parameterize.
12439         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12440         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12441         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12442         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12443         * lib/gl_rbtreehash_list.c: Likewise.
12444         * lib/gl_linkedhash_list.c: Likewise.
12445         (hash_resize_after_add): Remove function.
12446         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12447         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12448         * gl_hash_set.c: Likewise.
12449         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12450         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12451         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12452         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12453         * modules/hash-set (Files, Makefile.am): Likewise.
12455 2018-12-11  Bruno Haible  <bruno@clisp.org>
12457         array-set: Optimize.
12458         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12459         outside the loop, not inside the loop.
12461 2018-12-11  Bruno Haible  <bruno@clisp.org>
12463         times: Fix tests.
12464         * tests/test-times.c (doublecmp): Implement a total order.
12466 2018-12-11  Bruno Haible  <bruno@clisp.org>
12468         array-set, linkedhash-set, hash-set: Fix tests.
12469         * tests/test-array_set.c (cmp_objects_in_array): New function.
12470         (check_equals): Use it.
12471         * tests/test-hash_set.c: Likewise.
12472         * tests/test-linkedhash_set.c: Likewise.
12474 2018-12-08  Bruno Haible  <bruno@clisp.org>
12476         Fix comments.
12477         * lib/gl_list.h (gl_list_free): Clarify what it does.
12478         * lib/gl_oset.h (gl_oset_free): Likewise.
12479         * lib/gl_set.h (gl_set_free): Likewise.
12480         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12481         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12482         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12483         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12485 2018-12-03  Bruno Haible  <bruno@clisp.org>
12487         hash-set: Add tests.
12488         * tests/test-hash_set.c: New file.
12489         * modules/hash-set-tests: New file.
12491         linkedhash-set: Add tests.
12492         * tests/test-linkedhash_set.c: New file.
12493         * modules/linkedhash-set-tests: New file.
12495         array-set: Add tests.
12496         * tests/test-array_set.c: New file.
12497         * modules/array-set-tests: New file.
12499         xset: New module.
12500         * lib/gl_xset.h: New file.
12501         * lib/gl_xset.c: New file.
12502         * modules/xset: New file.
12504         hash-set: New module.
12505         * lib/gl_hash_set.h: New file.
12506         * lib/gl_hash_set.c: New file.
12507         * modules/hash-set: New file.
12509         linkedhash-set: New module.
12510         * lib/gl_linkedhash_set.h: New file.
12511         * lib/gl_linkedhash_set.c: New file.
12512         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12513         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12514         * lib/gl_anyhash_primes.h: New file, extracted from
12515         lib/gl_anyhash_list2.h.
12516         * lib/gl_anyhash_list2.h: Include it.
12517         (primes, next_prime): Remove definitions.
12518         * modules/linkedhash-set: New file.
12519         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12520         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12521         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12522         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12523         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12524         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12526         array-set: New module.
12527         * lib/gl_array_set.h: New file.
12528         * lib/gl_array_set.c: New file.
12529         * modules/array-set: New file.
12531         set: New module.
12532         * lib/gl_set.h: New file.
12533         * lib/gl_set.c: New file.
12534         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12535         gl_set.h.
12536         * modules/set: New file.
12538 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12540         bison: don't force the Yacc mode
12541         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12542         errors when Bison features are used in the grammar file.  Some of
12543         these features (such as %expect) were flagged non-yacc recently.  Most
12544         of the time, -y is actually used to please Automake's ylwrap which
12545         expects the output to be y.tab.c.
12546         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12548 2018-12-01  Bruno Haible  <bruno@clisp.org>
12550         gnupload: Document short options.
12551         * build-aux/gnupload (usage): Document the short options.
12553 2018-11-28  Ben Elliston  <bje@gnu.org>
12555         gnupload: Support option -h as alias of --help.
12556         * build-aux/gnupload: Support -h.
12558 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12560         memrchr: port better to clang
12561         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12562         longword *, to pacify clang -Wcast-align (Bug#33544).
12564 2018-11-29  Eric Blake  <eblake@redhat.com>
12566         docs: mention printf %m considerations
12567         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12568         is not portable, and is easy enough to work around.
12569         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12570         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12571         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12572         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12573         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12574         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12575         * doc/posix-functions/printf.texi (printf): Likewise.
12576         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12577         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12578         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12579         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12580         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12581         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12582         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12583         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12584         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12585         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12586         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12587         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12589 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12591         bitset: rename ebitset/expandable.* as tbitset/table.*
12592         See
12593         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12594         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12595         * lib/bitset/table.h, lib/bitset/table.c: these.
12596         Rename all the ebitset* symbols as tbitset*.
12597         Adjust dependencies.
12599 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12601         bitset: check the operations
12602         * tests/test-bitset.c (bitset_random): New.
12603         Use it.
12604         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12606 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12608         bitset: properly use false/true instead of 0/1 for Booleans
12609         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12610         0/1, as Booleans.
12612 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12614         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12615         For consistency with the name of the file.
12616         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12617         * lib/bitset/stats.c, lib/bitset/vector.c
12618         (BITSET_VARRAY): Rename as...
12619         (BITSET_VECTOR): this.
12621 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12623         strerror_r-posix: memmove, not memcpy
12624         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12625         since the source and destination might overlap in the call
12626         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12627         Simplify.
12629 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12631         bitsetv: new module
12632         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12634 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12636         bitset: add tests and doc
12637         First stabs at providing a documentation and test for the bitset
12638         module.
12639         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12641 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12643         bitset: new module
12644         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12645         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12646         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12647         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12648         * lib/bitset/vector.h, modules/bitset:
12649         New.
12651 2018-11-23  Bruno Haible  <bruno@clisp.org>
12653         localename: Fix gettext test failures on mingw.
12654         * lib/localename.c (gl_locale_name_posix): Convert the result of
12655         gl_locale_name_environ to XPG syntax.
12657 2018-11-23  Karl Berry  <karl@freefriends.org>
12659         * config/srclistvars.txt,
12660         * config/srclist.txt: remove all gettext references;
12661         the gettext maintainers will sync as needed.
12663 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12665         mktime: add libc-config dependency
12666         I missed this when we synced from glibc.
12667         * modules/mktime (Depends-on): Add libc-config.
12669 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12671         longlong: fix comment typo
12672         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12674 2018-11-11  Bruno Haible  <bruno@clisp.org>
12676         havelib: Remove the need to include asm-underscore.m4.
12677         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12678         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12679         gl_HOST_CPU_C_ABI.
12680         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12681         (Depends-on): Remove host-cpu-c-abi.
12683 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12685         parse-datetime: simplify test for mktime failure
12686         * lib/parse-datetime.y (mktime_ok): Simplify.
12687         Remove args TZ and T; no longer needed.  Callers changed.
12689         posixtm: simplify test for mktime failure
12690         * lib/posixtm.c (posixtime): Simplify.
12692         nstrftime: simplify test for mktime failure
12693         * lib/nstrftime.c (__strftime_internal): Simplify.
12695 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12697         gnulib-common.m4: port _Noreturn to C++
12698         Problem reported by Akim Demaille in:
12699         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12700         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12701         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12702         version.
12703         * lib/_Noreturn.h: Match gnulib-common.
12705 2018-10-30  Bruno Haible  <bruno@clisp.org>
12707         gnu-make: Fix for NetBSD 8 'make'.
12708         Reported by Reuben Thomas in
12709         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12710         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12711         output, ignoring exit codes.
12713 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12715         maintainer-makefile: fix syntax-check rule for "same.h"
12716         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12717         for 'same_nameat', too.
12719 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12721         havelib: fix nested ‘configure’ chatter
12722         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
12723         AC_CACHE_CHECK calls, which resulted in confusing output like
12724         “checking for the common suffixes of directories in the library
12725         search path... checking for 64-bit host... no lib,lib”.
12727         backupfile: tweak for better code
12728         * lib/backupfile.c: Sort include directives, and remove
12729         unnecessary <limits.h> include.
12730         (FALLTHROUGH): New macro, copied from other modules.
12731         (backupfile_internal): Use it to avoid code duplication.
12732         This lets GCC 8.2.1 generate better code by inlining the
12733         call to check_extension.
12735 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12737         backupfile: new dir_fd args
12738         New module opendirat with code taken from fts.
12739         Use this module to let backupfile use a directory file descriptor.
12740         * NEWS: Document the incompatible change.
12741         * lib/backup-find.c (find_backup_file_name):
12742         * lib/backup-rename.c (backup_file_rename):
12743         New arg DIR_FD.
12744         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
12745         (SIZE_MAX): Remove.
12746         Include opendirat.h rather than dirent--.h.
12747         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
12748         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
12749         (backupfile_internal): New arg DIR_FD.  All callers changed.
12750         * lib/fts.c: Include opendirat.h.
12751         (opendirat): Move to opendirat.c.
12752         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
12753         * modules/backupfile (Depends-on): Remove dirfd, opendir.
12754         Add opendirat.
12755         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
12756         Add opendirat.
12758 2018-10-23  Bruno Haible  <bruno@clisp.org>
12760         localename: Simplify support for per-thread locales on Solaris 11.4.
12761         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
12762         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
12763         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
12764         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
12765         specific code.
12766         * lib/localename-table.h: Update comments.
12767         * lib/localename-table.c: Update comments.
12768         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
12769         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
12770         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
12771         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
12772         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
12773         HAVE_NAMELESS_LOCALES here.
12774         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
12775         m4/intlsolaris.m4.
12776         * modules/gettext (Files): Likewise.
12778 2018-10-22  Bruno Haible  <bruno@clisp.org>
12780         std-gnu11: Support Autoconf versions < 2.64.
12781         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
12782         when _AC_DO_LIMIT does not exist.
12784 2018-10-22  Bruno Haible  <bruno@clisp.org>
12786         Assume Autoconf >= 2.63.
12787         * DEPENDENCIES: Mention the requirement.
12789         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
12790         (func_get_filelist): Don't list m4/onceonly.m4 any more.
12791         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
12792         * m4/onceonly.m4: Remove file.
12794         * m4/openmp.m4: Remove file.
12795         * modules/openmp (Files): Remove m4/openmp.m4.
12797         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
12798         htmldir, dvidir, pdfdir, psdir, localedir.
12799         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
12801         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
12802         Autoconf < 2.60.
12803         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
12804         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
12806         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
12807         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
12808         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
12810         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
12811         exists.
12812         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
12814         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
12815         Autoconf < 2.61.
12817         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
12818         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
12819         Autoconf >= 2.52.
12821         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
12822         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
12823         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
12825 2018-10-22  Bruno Haible  <bruno@clisp.org>
12827         Assume Automake >= 1.11.
12828         * m4/configmake.m4: Update comments.
12829         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
12830         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
12831         of 'eval'.
12832         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
12833         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
12834         requires Automake >= 1.11.
12836 2018-10-22  Bruno Haible  <bruno@clisp.org>
12838         localename: Fix typo in comment.
12839         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
12841 2018-10-22  Bruno Haible  <bruno@clisp.org>
12843         Fix failure of 'gnulib-tool --create-testdir' with all modules.
12844         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
12846 2018-10-21  Bruno Haible  <bruno@clisp.org>
12848         locale: Ease integration with GNU libintl.
12849         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
12850         GNULIB_defined_freelocale): New macros.
12852 2018-10-21  Bruno Haible  <bruno@clisp.org>
12854         localename: Fine-tune support for per-thread locales on Solaris 11.4.
12855         * lib/localename-table.h: New file, extracted from lib/localename.c.
12856         * lib/localename-table.c: Likewise.
12857         * lib/localename.c: Include localename-table.h.
12858         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
12859         locale_hash_function instead of pointer_hash.
12860         * modules/localename (Files): Add lib/localename-table.h,
12861         lib/localename-table.c.
12862         (lib_SOURCES): Add localename-table.c.
12863         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
12864         for Solaris 11.4 locale system only on Solaris. Test for it
12865         independently whether getlocalename_l exists.
12866         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
12867         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
12868         HAVE_NAMELESS_LOCALES.
12869         * modules/gettext (Files): Add m4/intlsolaris.m4.
12871 2018-10-21  Bruno Haible  <bruno@clisp.org>
12873         Small update from gettext.
12874         * m4/intl.m4: Update from gettext:
12875         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
12876         mode on AIX.
12877         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
12878         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
12880 2018-10-16  Bruno Haible  <bruno@clisp.org>
12882         mountlist: Remove support for Cray with UNICOS 9.
12883         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12884         MOUNTED_LISTMNTENT.
12885         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
12887 2018-10-16  Bruno Haible  <bruno@clisp.org>
12889         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
12890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
12891         STAT_STATFS2_FS_DATA.
12892         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
12893         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12894         MOUNTED_GETMNT.
12895         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
12896         * lib/getloadavg.c (decstation): Remove definition and case.
12897         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
12898         * lib/getgroups.c: Likewise.
12899         * doc/posix-functions/getgroups.texi: Likewise.
12900         * lib/time.in.h: Update comments.
12902 2018-10-16  Bruno Haible  <bruno@clisp.org>
12904         getloadavg: Remove support for ConvexOS.
12905         * lib/getloadavg.c: Remove convex case.
12907 2018-10-16  Bruno Haible  <bruno@clisp.org>
12909         getloadavg: Remove support for Sony NEWS.
12910         * lib/getloadavg.c: Remove sony_news case.
12912 2018-10-16  Bruno Haible  <bruno@clisp.org>
12914         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
12915         * lib/fsusage.c: Remove _SEQUENT_ case.
12916         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
12917         * lib/mountlist.c: Don't test for MNTTABNAME.
12918         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
12919         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
12920         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
12921         * lib/stat-size.h: Don't mention the Sequent bug.
12922         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
12924 2018-10-16  Bruno Haible  <bruno@clisp.org>
12926         fsusage: Remove support for AIX 3.
12927         * lib/fsusage.c: Remove code for AIX 3.
12928         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
12930 2018-10-16  Bruno Haible  <bruno@clisp.org>
12932         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
12933         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
12934         * lib/fsusage.c: Remove code for AIX PS/2.
12935         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
12936         * lib/getloadavg.c: Likewise.
12938 2018-10-16  Bruno Haible  <bruno@clisp.org>
12940         getloadavg: Remove support for HP-UX on m68k.
12941         * lib/getloadavg.c: Remove hp9000s300 case.
12943 2018-10-16  Bruno Haible  <bruno@clisp.org>
12945         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
12946         * lib/fsusage.c: Remove DOLPHIN case.
12947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
12948         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
12950 2018-10-16  Bruno Haible  <bruno@clisp.org>
12952         getloadavg: Remove support for Alliant FX/2800.
12953         * lib/getloadavg.c: Remove alliant case.
12955 2018-10-16  Bruno Haible  <bruno@clisp.org>
12957         getloadavg: Remove support for tek4300.
12958         * lib/getloadavg.c: Remove tek4300 case.
12960 2018-10-16  Bruno Haible  <bruno@clisp.org>
12962         getloadavg: Remove support for Ardent.
12963         * lib/getloadavg.c: Remove ardent case.
12965 2018-10-16  Bruno Haible  <bruno@clisp.org>
12967         mountlist: Remove support for SVR2.
12968         Reported by Andrew Borodin <aborodin@vmail.ru> in
12969         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
12970         * lib/mountlist.c: Remove MOUNTED_FREAD case.
12971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
12972         MOUNTED_FREAD.
12974 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12976         libc-config: merge from glibc
12977         * lib/cdefs.h (__glibc_has_attribute): New macro.
12979         regex: depend on libc-config
12980         * modules/regex (Depends-on): Add libc-config.
12981         This is needed after the recent autoupdate from glibc.
12983 2018-10-14  Bruno Haible  <bruno@clisp.org>
12985         localename: Add support for per-thread locales on Solaris 11.4.
12986         * lib/locale.in.h (newlocale, freelocale): New declarations.
12987         (duplocale): Declare also when the 'localename' module requests it.
12988         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
12989         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
12990         (struniq): Update.
12991         (struct locale_categories_names, struct locale_hash_node): New types.
12992         (LOCALE_HASH_TABLE_SIZE): New constant.
12993         (locale_hash_table, locale_lock): New variables.
12994         (pointer_hash, get_locale_t_name): New functions.
12995         (newlocale, duplocale, freelocale): New overridden functions.
12996         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
12997         * m4/intlsolaris.m4: New file.
12998         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
12999         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13000         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13001         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13002         declared.
13003         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13004         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13005         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13006         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13007         * modules/localename (Files): Add intlsolaris.m4.
13008         (Depends-on): Add 'locale'.
13009         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13010         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13011         the signatures.
13013 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13015         timevar: use gethrxtime to get wall clock time
13016         clock_gettime is not portable.  gethrxtime takes the best available
13017         option to get the wall clock time, including clock_gettime (monotonic
13018         clock), and gettime (non monotonic).
13019         Also, using xtime_t instead of float preserves the precision.
13020         Suggested by Bruno Haible.
13021         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13022         * modules/timevar (Depends-on): We need gethrxtime.
13023         We no longer use times().
13024         (Link): Update.
13025         * lib/timevar.h (timevar_time_def): Use xtime_t.
13026         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13027         (timevar_print): Instead of checking whether the timings themselves
13028         are large enough for the timevar to be printed, check the percentages.
13030 2018-10-14  Bruno Haible  <bruno@clisp.org>
13032         wcsnrtombs: Work around Solaris 11.4 bug.
13033         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13034         macro.
13035         (gl_FUNC_WCSNRTOMBS): Invoke it.
13036         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13038 2018-10-14  Bruno Haible  <bruno@clisp.org>
13040         mbsnrtowcs: Work around Solaris 11.4 bug.
13041         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13042         macro.
13043         (gl_FUNC_MBSNRTOWCS): Invoke it.
13044         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13046 2018-10-14  Bruno Haible  <bruno@clisp.org>
13048         doc: Update for Solaris 11.4.
13049         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13050         mention Solaris 11.4.
13051         * m4/printf.m4: Update comments about Solaris.
13052         * m4/log.m4: Likewise.
13053         * m4/log10.m4: Likewise.
13054         * m4/logb.m4: Likewise.
13055         * m4/logbf.m4: Likewise.
13056         * m4/logbl.m4: Likewise.
13057         * m4/rename.m4: Likewise.
13058         * m4/wcrtomb.m4: Likewise.
13059         * m4/hostent.m4: Likewise.
13060         * m4/servent.m4: Likewise.
13062 2018-10-14  Bruno Haible  <bruno@clisp.org>
13064         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13065         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13066         pointer.
13067         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13068         pointer.
13069         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13070         pointer.
13071         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13072         pointer.
13073         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13074         pointer.
13076 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13078         bootstrap: fix wget command for po files.
13079         * build-aux/bootstrap (po_download_command_format): Fix comment,
13080         and adjust callers.
13082 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13084         timevar: improve the output format
13085         Suggested by Bruno Haible.
13086         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13087         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13088         wall, since its resolution is much higher.
13090 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13092         timevar: expect that getrusage is available.
13093         Don't keep both times and getrusage as backend: both are guaranteed by
13094         gnulib, a single one suffices.  Using getrusage is open to possibly
13095         tracking other types of resources in the future.
13096         * modules/timevar (Depends-on): Add getrusage.
13097         (configure.ac): Remove gl_TIMEVAR.
13098         (Files): Remove m4/timevar.m4.
13099         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13100         * lib/timevar.h (timevar_enabled): Clarify documentation.
13101         * lib/timevar.c: Remove all the code about times.
13102         Remove all the CPP guards about getrusage: expect it to be present
13103         (courtesy of gnulib).
13105 2018-10-12  Bruno Haible  <bruno@clisp.org>
13107         mountlist: Improve support for Solaris in 64-bit mode.
13108         Reported by David Wood <David.Wood@deshaw.com> in
13109         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13110         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13111         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13112         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13114 2018-10-12  Bruno Haible  <bruno@clisp.org>
13116         mountlist: Add support for Minix.
13117         Reported by Assaf Gordon in
13118         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13120         AC_CHECK_FUNCS to check for 'getmntinfo'.
13121         * lib/mountlist.c: Update comments.
13123 2018-10-12  Bruno Haible  <bruno@clisp.org>
13125         Make better use of Autoconf.
13126         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13127         * m4/manywarnings.m4: Likewise.
13128         * m4/manywarnings-c++.m4: Likewise.
13129         * m4/socklen.m4: Likewise.
13130         * m4/sockpfaf.m4: Likewise.
13131         * m4/stdarg.m4: Likewise.
13132         * m4/visibility.m4: Likewise.
13133         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13134         indentation.
13135         * m4/ls-mntd-fs.m4: Likewise.
13137 2018-10-11  Bruno Haible  <bruno@clisp.org>
13139         mountlist: Modernize platform lists.
13140         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13141         platforms, deemphasizing the obsolete ones.
13142         * lib/mountlist.c: Likewise.
13144 2018-10-11  Bruno Haible  <bruno@clisp.org>
13146         getprogname: Add support for 32-bit programs on HP-UX.
13147         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13148         try the similar functions 32-bit programs on 64-bit HP-UX.
13150 2018-10-11  Bruno Haible  <bruno@clisp.org>
13152         getprogname: Work around program name truncation when possible.
13153         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13154         possibly use pst_cmd instead.
13156 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13158         fts: cleanup after FTS_NOATIME removal
13159         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13160         (FTS_STOP): Shrink to minimal values.  We don’t need to
13161         worry about binary compatibility in Gnulib, and the old way
13162         of doing things had a hole in the user options that caused
13163         FTS_OPTIONMASK to not work as desired.
13165 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13167         fts: remove FTS_NOATIME
13168         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13169         We cannot guarantee that O_NOATIME works: e.g. openat fails
13170         with EPERM if the effective user ID of the caller does not match
13171         the owner of the file and the caller is not privileged.
13172         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13173         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13174         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13175         (FTS_OPTIONMASK): Adjust.
13176         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13177         (fd_ring_check): Likewise.
13179 2018-10-08  Bruno Haible  <bruno@clisp.org>
13181         csharpcomp*, csharpexec*: Remove support for pnet.
13182         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13183         HAVE_CSCC.
13184         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13185         Don't test HAVE_CSCC.
13186         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13187         (compile_csharp_class): Don't invoke it.
13188         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13189         HAVE_ILRUN.
13190         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13191         Don't test HAVE_ILRUN.
13192         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13193         (execute_csharp_program): Don't invoke it.
13194         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13195         any more.
13197 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13199         renameatu: prefer renameat2 to syscall
13200         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13201         Use renameat2 instead of syscall (Bug#32796).
13202         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13204 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13206         bootstrap, gnulib-tool: use https instead of insecure rsync
13207         * build-aux/bootstrap (download_po_files, po_download_command_format):
13208         Don't try using rsync; always use wget over https to fetch PO files.
13209         * gnulib-tool (func_import): Likewise.
13210         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13212 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13214         bootstrap, gnulib-tool: correct the translations wget command
13215         * build-aux/bootstrap (po_download_command_format2): Restrict
13216         recursion to a single level.
13217         * gnulib-tool (func_import): Likewise.
13218         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13220 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13222         doc: the gnulib snapshots are not maintained
13223         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13225 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13227         timevar: add to lib_SOURCES
13228         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13230 2018-10-07  Bruno Haible  <bruno@clisp.org>
13232         dirent: Update documentation.
13233         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13235 2018-10-05  Bruno Haible  <bruno@clisp.org>
13237         strpbrk: Make it possible to namespace the defined symbol.
13238         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13240 2018-10-05  Bruno Haible  <bruno@clisp.org>
13242         strcspn: Make it possible to namespace the defined symbol.
13243         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13245 2018-10-05  Bruno Haible  <bruno@clisp.org>
13247         raise: Make it possible to namespace the defined symbol.
13248         * lib/raise.c (raise): Undefine only after the replacement function has
13249         been defined.
13250         (raise): Renamed from rpl_raise.
13251         (raise_nothrow): Move to the end of the compilation unit.
13253 2018-10-05  Bruno Haible  <bruno@clisp.org>
13255         memcmp: Make it possible to namespace the defined symbol.
13256         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13258 2018-10-05  Bruno Haible  <bruno@clisp.org>
13260         explicit_bzero: Make it possible to namespace the defined symbol.
13261         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13262         glibc.
13264 2018-10-05  Bruno Haible  <bruno@clisp.org>
13266         mkdir-p: Depend on 'mkdir'.
13267         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13269 2018-10-05  Bruno Haible  <bruno@clisp.org>
13271         tempname: Depend on 'mkdir'.
13272         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13273         at <https://savannah.gnu.org/bugs/?33379>.
13274         * modules/tempname (Depends-on): Add 'mkdir'.
13276 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13278         timevar: rely on gnulib modules for time portability.
13279         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13280         * m4/timevar.m4: Don't check for clock_t and struct tms,
13281         guaranteed by gnulib.
13282         * lib/timevar.h: Use extern "C" protection.
13283         Include <stdio.h> for FILE.
13284         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13285         they are guaranteed by gnulib.
13286         Remove uses of clock as (now useless) fallback.
13288 2018-10-04  Bruno Haible  <bruno@clisp.org>
13290         sh-filename: New module.
13291         * m4/sh-filename.m4: New file.
13292         * modules/sh-filename: New file.
13293         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13294         "/bin/sh".
13295         * tests/test-posix_spawn1.c (main): Likewise.
13296         * tests/test-posix_spawn2.c (main): Likewise.
13297         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13298         is_envjavac_gcj43): Likewise.
13299         * lib/javaexec.c (execute_java_class): Likewise.
13300         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13301         * modules/posix_spawnp-tests (Depends-on): Likewise.
13302         * modules/javacomp (Depends-on): Likewise.
13303         * modules/javaexec (Depends-on): Likewise.
13305 2018-10-04  Bruno Haible  <bruno@clisp.org>
13307         spawn-pipe tests: Avoid test failure on native Windows.
13308         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13309         that fd 2 is closed.
13311 2018-10-04  Bruno Haible  <bruno@clisp.org>
13313         fcntl: Make it possible to namespace the defined symbol.
13314         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13315         been defined.
13316         (fcntl): Renamed from rpl_fcntl.
13317         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13318         from fcntl.
13319         (klibc_fcntl): Move to the end of the compilation unit.
13321 2018-10-02  Bruno Haible  <bruno@clisp.org>
13323         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13324         * tests/test-vasnprintf.c (test_function): Change the test added on
13325         2018-09-23 to check only the 18 most significant digits.
13327         vasnprintf tests: Avoid test failure on Cygwin.
13328         * tests/test-vasnprintf.c (test_function): Change the test added on
13329         2018-09-23 to check only the 42 most significant digits.
13331 2018-10-01  Bruno Haible  <bruno@clisp.org>
13333         mkostemp, mkostemps: Update documentation.
13334         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13335         * doc/glibc-functions/mkostemps.texi: Likewise.
13337 2018-10-01  Tom Tromey  <tom@tromey.com>
13339         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13340         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13341         on OS X.
13343 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13345         hmac-*: refactor to remove repetitive code
13346         * lib/hmac.c: A new parameterized single implementation.
13347         * lib/hmac-md5.c: Define parameters and include implementation.
13348         * lib/hmac-sha1.c: Likewise.
13349         * lib/hmac-sha256.c: Likewise.
13350         * lib/hmac-sha512.c: Likewise.
13351         * modules/crypto/hmac-md5: Reference the new implementation file.
13352         * modules/crypto/hmac-sha1: Likewise.
13353         * modules/crypto/hmac-sha256: Likewise.
13354         * modules/crypto/hmac-sha512: Likewise.
13355         * tests/test-hmac-md5.c: Refactor common code to a single function.
13356         * tests/test-hmac-sha1.c: Likewise.
13357         * tests/test-hmac-sha256.c: Likewise.
13358         * tests/test-hmac-sha512.c: Likewise.
13360 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13362         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13363         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13364         key length to that output by sha512, not the blocksize.
13365         Otherwise uninitialized data from the stack
13366         is used when computing the hash.
13367         * tests/test-hmac-sha512.c: Add a shortened key test case.
13368         Reported at https://github.com/coreutils/gnulib/pull/5
13370 2018-09-30  Bruno Haible  <bruno@clisp.org>
13372         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13373         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13374         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13375         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13376         'unsigned int' before comparison with an unsigned value.
13378 2018-09-30  Bruno Haible  <bruno@clisp.org>
13380         grantpt: Remove unnecessary dependency.
13381         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13383 2018-09-30  Bruno Haible  <bruno@clisp.org>
13385         timevar: Small tweaks.
13386         * lib/timevar.h: Fix comments. Add parameter names to function
13387         declarations.
13388         * lib/timevar.c: Include timevar.h immediately after config.h.
13389         * lib/timevar.def: Fix comments.
13390         * modules/timevar (Maintainer): List Akim Demaille.
13392 2018-09-30  Bruno Haible  <bruno@clisp.org>
13394         timevar: Include documentation in gnulib manual.
13395         * doc/timevar.texi: Change node and section name to 'Profiling of
13396         program phases'.
13397         In the code snippets, tweak the #includes and use GNU coding style.
13398         * doc/gnulib.texi: Include timevar.texi.
13400 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13402         timevar: import from Bison.
13403         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13404         New files.
13405         * lib/timevar.def: New file.
13406         * doc/timevar.texi: New file.
13408 2018-09-26  Bruno Haible  <bruno@clisp.org>
13410         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13411         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13412         * lib/javacomp.c (default_target_version): Likewise.
13414 2018-09-26  Bruno Haible  <bruno@clisp.org>
13416         javacomp-script, javacomp: Add support for Java 11.
13417         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13418         target-version 11.
13419         * lib/javaversion.h: Update comments.
13420         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13421         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13422         TARGET_VERSION_BOUND, target_version_index,
13423         corresponding_classfile_version): Accept source_version 11 and
13424         target_version 11.
13425         * lib/javacomp.h: Update comments accordingly.
13427 2018-09-23  Bruno Haible  <bruno@clisp.org>
13429         vasnprintf: Fix heap memory overrun bug.
13430         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13431         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13432         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13433         memory.
13434         * tests/test-vasnprintf.c (test_function): Add another test.
13436 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13438         maint: mktime.c now shared with glibc
13439         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13440         are now the same in Gnulib and glibc.
13442         mktime: fix _LIBC typo
13443         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13445 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13447         dfa: optimization for state merge
13448         * lib/dfa.c (merge2): New function.
13449         (merge_nfa_state): Use it.
13451 2018-09-18  Jim Meyering  <meyering@fb.com>
13453         dfa: trivial comment fix: s/is/if/
13454         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13456 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13458         dfa: use more-informative function name
13459         * lib/dfa.c (maybe_disable_superset_dfa):
13460         Rename from dfautf8noss.  Use change.
13462         dfa: tweak allocation performance
13463         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13464         Prefer ptrdiff_t for indexes some more.
13465         Use char for flags, as it’s wide enough.
13466         Allocate queue and flags together, with one malloc call.
13467         No need to use xnmalloc since the multiplication and
13468         addition cannot overflow (it’s already been checked by
13469         earlier allocation).  Prefer memset to open-coding.
13471         dfa: prune states as we go
13472         * lib/dfa.c (prune): Remove.
13473         dfa: reorder enum for efficiency
13474         (merge_nfa_state): Prune as we go instead of at the end.
13475         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13477         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13478         of the enumeration to make it easier for GCC to generate
13479         efficient code by using fewer comparisons to check for
13480         ranges of values.
13481         (atom): Take advantage of the reordering.
13483 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13485         dfa: optimize alternation in NFA
13486         Even when similar states exist in alternation, the DFA treats them
13487         as separate items, which may complicate the transition in NFA and
13488         cause slowdown.  This change assembles the states into one.  For
13489         example, ab|ac is changed into a(b|c).  This change speeds-up
13490         matching for many branched patterns.  For example, grep speeds up
13491         more than 30× in:
13493           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13494           time -p env LC_ALL=C grep -vf in in
13496         * lib/dfa.c (prune): New function.
13497         (merge_nfa_state): New function.  It merges similar NFA states.
13498         (dfaoptimize): New function.  It seeks merged and removed nodes.
13499         (dfaanalyze): Call new function.
13500         (dfautf8noss): Change name from dfaoptimize because of addition of new
13501         function.
13502         (dfacomp): Update caller.
13504         dfa: simplify initial state
13505         Simplifying the initial state enables easier optimization of the NFA.
13506         * lib/dfa.c (enum token): Add new element BEG.
13507         (prtok): Adjust due to adding element BEG.
13508         (dfaparse): Put BEG at a head of tokens.
13509         (state_index): Adjust due to adding element BEG.
13510         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13511         build initial state.
13512         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13514 2018-09-18  Bruno Haible  <bruno@clisp.org>
13516         file-has-acl: Fix test failure on Cygwin 2.9.
13517         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13518         * lib/acl-internal.h: Likewise.
13519         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13520         * lib/acl-internal.c: Update comments regarding Cygwin.
13521         * lib/acl_entries.c: Likewise.
13522         * lib/file-has-acl.c: Likewise.
13523         (file_has_acl): For Cygwin, use a different way to determine whether
13524         the "default" ACL of a directory is nontrivial.
13525         * lib/get-permissions.c: Update comments regarding Cygwin.
13526         * lib/set-permissions.c: Likewise.
13528 2018-09-18  Bruno Haible  <bruno@clisp.org>
13530         stat-time tests: Fix test failure on Cygwin.
13531         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13533 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13535         doc: OS X 10.11 lacked ns time functions
13536         According to <https://github.com/zeromq/libzmq/issues/2175>,
13537         nanosecond-resolution timestamp functions were introduced
13538         in macOS 10.12, so document the last version (OS X 10.11)
13539         where they were absent.
13541         gettime: nanotime never existed
13542         Problem reported by Bruno Haible in:
13543         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13544         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13545         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13547 2018-09-18  Bruno Haible  <bruno@clisp.org>
13549         doc: Update statement about target platforms.
13550         Reported by Simon Sobisch.
13551         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13552         restrictions on MSVC versions.
13554 2018-09-18  Bruno Haible  <bruno@clisp.org>
13556         posix_spawn tests: Fix link error on 64-bit Cygwin.
13557         * tests/test-posix_spawn1.c (environ): Remove declaration.
13558         * tests/test-posix_spawn2.c (environ): Likewise.
13559         * tests/test-posix_spawn3.c (environ): Likewise.
13560         * tests/test-posix_spawn4.c (environ): Likewise.
13561         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13562         * modules/posix_spawnp-tests (Depends-on): Likewise.
13564 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13566         timespec: new function current_timespec
13567         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13568         and don’t worry about it failing on a CLOCK_REALTIME arg.
13569         POSIX requires it to succeed and I don’t know of any
13570         counterexamples where the fallbacks would work.
13571         (current_timespec): New function, taken from Emacs.  It is more
13572         convenient than gettime, and can help register allocation.
13573         * lib/timespec.h: Include arg-nonnull.h.
13574         (current_timespec): New declaration.
13575         (gettime, settime): Declare args to be nonnull.
13576         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13578 2018-09-16  Bruno Haible  <bruno@clisp.org>
13580         setlocale: Improve locale handling on macOS 10.12 or newer.
13581         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13582         gl_locale_name_canonicalize.
13583         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13584         and LC_MESSAGES.
13585         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13587 2018-09-16  Bruno Haible  <bruno@clisp.org>
13589         Update list of locale names with scripts on macOS.
13590         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13591         match Mac OS X 10.13 and recent glibc.
13593 2018-09-16  Bruno Haible  <bruno@clisp.org>
13595         gettext: Use newer macOS APIs when possible.
13596         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13597         CFLocaleCopyPreferredLanguages.
13599 2018-09-16  Bruno Haible  <bruno@clisp.org>
13601         localename: Revisit macOS specific code.
13602         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13603         Fix comments about Mac OS X versions.
13605 2018-09-15  Bruno Haible  <bruno@clisp.org>
13607         setlocale: Improve support for locales not supported by libc.
13608         Reported by Dapeng Gao <peter@dpgao.cc> at
13609         <https://savannah.gnu.org/bugs/?54479>.
13610         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13611         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13612         to be set is not supported by libc: Emit warnings instead of failing.
13614 2018-09-15  Bruno Haible  <bruno@clisp.org>
13616         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13617         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13618         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13619         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13621         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13622         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13623         * doc/glibc-functions/strcasestr.texi: Likewise.
13625 2018-09-14  Bruno Haible  <bruno@clisp.org>
13627         doc: Fix bottom of top-level page.
13628         Reported by Akim Demaille <akim.demaille@gmail.com> in
13629         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13630         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13631         mode.
13632         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13633         accordingly.
13635 2018-09-12  Bruno Haible  <bruno@clisp.org>
13637         Add test case from a recent glibc bug.
13638         * tests/test-strstr.c (main): Add test of long needle.
13639         * tests/test-strcasestr.c (main): Likewise.
13640         * tests/test-c-strstr.c (main): Likewise.
13641         * tests/test-c-strcasestr.c (main): Likewise.
13642         * tests/test-memmem.c (main): Likewise.
13644 2018-09-12  Bruno Haible  <bruno@clisp.org>
13646         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13647         * tests/test-c-strstr.c (main): Add the same tests here as well.
13649 2018-09-12  Bruno Haible  <bruno@clisp.org>
13651         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13652         * tests/test-memmem.c (main): Free haystack.
13653         * tests/test-strcasestr.c (main): Likewise.
13654         * tests/test-c-strcasestr.c (main): Likewise.
13656 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13658         xstrtol: fix missing-TYPE_SIGNED typo
13659         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13661 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13663         timespec: fix resolution confusion
13664         In normal usage, clock resolution is given in seconds, but the
13665         code was mistakenly using inverse seconds and calling it
13666         “resolution”.  Fix this, partly by renaming two identifiers.
13667         The old names will be kept for a bit, to ease transition.
13668         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13669         New constants, replacing TIMESPEC_RESOLUTION and
13670         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13671         All uses changed.
13673 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13675         mktime: simplify in prep for glibc merge
13676         * lib/mktime.c, lib/timegm.c [_LIBC]:
13677         Include mktime-internal.h (a small file just for glibc)
13678         instead of using a typedef.
13680 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13682         intprops: minor clarification of code
13683         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13684         Use _GL_INT_CONVERT rather than reinventing it.
13686 2018-09-07  Bruno Haible  <bruno@clisp.org>
13688         Fix a comment.
13689         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13691 2018-09-07  Bruno Haible  <bruno@clisp.org>
13693         posix_spawn_file_actions_addchdir: Add tests.
13694         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13695         * tests/test-posix_spawn4.c: New file.
13696         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13698 2018-09-07  Bruno Haible  <bruno@clisp.org>
13700         posix_spawn_file_actions_addchdir: New module.
13701         Suggested by Eric Blake in
13702         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13703         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13704         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13705         union member 'chdir_action'.
13706         * lib/spawn_faction_addchdir.c: New file.
13707         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13708         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13709         HAVE_WORKING_POSIX_SPAWN.
13710         * lib/spawn_faction_adddup2.c: Likewise.
13711         * lib/spawn_faction_addopen.c: Likewise.
13712         * m4/posix_spawn_faction_addchdir.m4: New file.
13713         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13714         'posix_spawn_file_actions_addchdir' is present and whether
13715         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13716         instead of HAVE_WORKING_POSIX_SPAWN.
13717         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13718         posix_spawn_file_actions_addchdir is declared.
13719         (gl_SPAWN_H_DEFAULTS): Initialize
13720         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13721         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13722         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13723         * modules/spawn (Makefile.am): Substitute
13724         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13725         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13726         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13727         * modules/posix_spawn_file_actions_addchdir: New file.
13728         * modules/posix_spawn_file_actions_addclose (Depends-on,
13729         configure.ac): Test also REPLACE_POSIX_SPAWN.
13730         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
13731         configure.ac): Likewise.
13732         * modules/posix_spawn_file_actions_addopen (Depends-on,
13733         configure.ac): Likewise.
13734         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
13735         signature.
13736         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13737         * doc/posix-functions/posix_spawnp.texi: Likewise.
13739 2018-09-06  Bruno Haible  <bruno@clisp.org>
13741         stddef: Override max_align_t on NetBSD 8.0/x86.
13742         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
13743         the value of __alignof__ (max_align_t).
13744         * doc/posix-headers/stddef.texi: Mention the issue.
13746 2018-09-06  Bruno Haible  <bruno@clisp.org>
13748         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
13749         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
13750         system fcntl.
13751         * doc/posix-functions/fcntl.texi: Document the issue.
13753 2018-09-06  Bruno Haible  <bruno@clisp.org>
13755         count-trailing-zeros tests: Rely on limits-h module.
13756         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
13757         definition.
13758         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
13760 2018-09-06  Bruno Haible  <bruno@clisp.org>
13762         count-leading-zeros tests: Rely on limits-h module.
13763         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
13764         definition.
13765         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
13767 2018-09-06  Bruno Haible  <bruno@clisp.org>
13769         count-one-bits tests: Rely on limits-h module.
13770         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
13771         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
13773 2018-09-06  Bruno Haible  <bruno@clisp.org>
13775         xstrtoll: Rely on limits-h module.
13776         * lib/xstrtol.c: Don't include intprops.h.
13777         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13778         * modules/xstrtol (Depends-on): Remove 'intprops'.
13779         * modules/xstrtoll (Depends-on): Add 'limits-h'.
13781 2018-09-06  Bruno Haible  <bruno@clisp.org>
13783         strtoll, strtoull: Rely on limits-h module.
13784         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
13785         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13786         * modules/strtoll (Depends-on): Add limits-h.
13787         * modules/strtoull (Depends-on): Likewise.
13789 2018-09-06  Bruno Haible  <bruno@clisp.org>
13791         intprops tests: Fix compilation error with pre-C99 compiler.
13792         * tests/test-intprops.c (verify_stmt): New macro.
13793         (VERIFY, main): Use it.
13795 2018-09-06  Bruno Haible  <bruno@clisp.org>
13797         limits-h: Provide numerical limits macros.
13798         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
13799         IRIX and for GCC.
13800         (WORD_BIT, LONG_BIT): Define.
13801         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
13802         <limits.h> does not define LLONG_MAX or WORD_BIT.
13803         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
13804         TYPE_MAXIMUM): New macros, from intprops.h.
13805         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
13806         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
13807         provides.
13809 2018-09-05  Bruno Haible  <bruno@clisp.org>
13811         fcntl: Don't access nonexistent optional argument.
13812         Reported by Frank Busse <f.busse@imperial.ac.uk> in
13813         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
13814         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
13815         don't consume an argument. For actions that take an 'int' argument,
13816         consume an 'int' argument.
13818 2018-09-05  Eric Blake  <eblake@redhat.com>
13820         doc: mention environ pitfall
13821         * doc/posix-functions/environ.texi (environ): Assigning NULL to
13822         environ is a glibc extension.
13824 2018-09-03  Bruno Haible  <bruno@clisp.org>
13826         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
13827         Reported by Antoine Luong <antoine.luong@c-s.fr> in
13828         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
13829         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
13830         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
13831         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
13833 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13835         mktime: fix unlikely race+overflow bug
13836         Problem reported by Alexandre Oliva in:
13837         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
13838         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
13839         to avoid an unlikely race if the compiler delays a load and
13840         if this cascades into a signed integer overflow.
13842 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13844         mktime, timegm: simplify glibc time64_t
13845         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
13846         Now long int, not time_t, since long int is the longstanding type
13847         for this in glibc and there is no need to change it even if time_t
13848         becomes 64 bits - even int would do, though this would be a change
13849         to the glibc generated code.  When this change is merged into
13850         glibc, it should simplify the time_t vs time64_t situation.
13852         mktime, timegm: simplify merge to glibc
13853         Move code around to make a merge to glibc easier to audit.
13854         This should not change behavior.
13855         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13856         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13857         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13858         simplify later conditionals; default the others to zero.  In uses
13859         of these conditionals, explicitly spell out how _LIBC affects
13860         things, so it’s easier to review from a glibc viewpoint.
13861         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
13862         compartmentalize tzset issues.  Move system-dependent tzsettish
13863         code here from mktime.
13864         (mktime): Move tzsettish code to my_tzset, and move
13865         localtime_offset to within mktime so that it doesn’t
13866         need a separate ifdef.
13868 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13870         intprops: avoid evaluation of some expressions
13871         This makes EXPR_SIGNED (e) easier to use, as it no longer
13872         evaluates the expression E.  Formerly, E was required to be free
13873         of side effects.
13874         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
13875         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
13876         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
13878 2018-08-23  Bruno Haible  <bruno@clisp.org>
13880         getcwd: Add cross-compilation guesses.
13881         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
13882         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
13883         Based on a patch by Paul Eggert.
13884         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
13885         guesses for all GNU systems.
13887 2018-08-19  Bruno Haible  <bruno@clisp.org>
13889         glob-h: Formalize side effects from other modules.
13890         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
13891         * m4/glob.m4 (gl_GLOB): Invoke it.
13893         fnmatch-h: Formalize side effects from other modules.
13894         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
13895         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
13897         limits-h: Formalize side effects from other modules.
13898         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
13899         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
13901 2018-08-19  Bruno Haible  <bruno@clisp.org>
13903         getpass: Move declaration to <unistd.h>.
13904         * lib/unistd.in.h (getpass): New declaration.
13905         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
13906         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
13907         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
13908         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
13909         On glibc systems, don't set REPLACE_GETPASS to 1.
13910         * modules/getpass (Depends-on): Add 'unistd'.
13911         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
13912         (Include): Specify <unistd.h> instead of "getpass.h".
13913         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
13914         (configure.ac): Sync with the configure.ac section of modules/getpass.
13915         (Include): Specify <unistd.h> instead of "getpass.h".
13916         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
13917         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
13918         REPLACE_GETPASS.
13919         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
13920         REPLACE_GETPASS.
13921         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
13922         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
13923         and musl.
13924         * NEWS: Mention the change.
13926 2018-08-19  Bruno Haible  <bruno@clisp.org>
13928         glob: Fix over-optimization due to attribute __nonnull__.
13929         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
13931 2018-08-19  Bruno Haible  <bruno@clisp.org>
13933         glob: Fix another compilation error when glob.h is not replaced.
13934         Reported by Reuben Thomas <rrt@sc3d.org> in
13935         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
13936         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
13937         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
13939 2018-08-18  Bruno Haible  <bruno@clisp.org>
13941         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
13942         Reported by Reuben Thomas <rrt@sc3d.org> in
13943         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
13944         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
13945         in config.h.
13947 2018-08-18  Bruno Haible  <bruno@clisp.org>
13949         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
13950         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
13951         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
13952         Solution proposed by Eli Zaretskii.
13953         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
13954         * lib/gettimeofday.c (GetProcAddress): Likewise.
13955         * lib/link.c (GetProcAddress): Likewise.
13956         * lib/physmem.c (GetProcAddress): Likewise.
13957         * lib/poll.c (GetProcAddress): Likewise.
13958         * lib/select.c (GetProcAddress): Likewise.
13959         * lib/stat-w32.c (GetProcAddress): Likewise.
13961 2018-08-18  Bruno Haible  <bruno@clisp.org>
13963         glob: Fix another compilation error when glob.h is not replaced.
13964         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
13965         * lib/globfree.c: Include <libc-config.h>.
13967 2018-08-18  Bruno Haible  <bruno@clisp.org>
13969         glob: Fix compilation error when glob.h is not replaced.
13970         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
13971         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
13972         * lib/glob_pattern_p.c: Include <libc-config.h>.
13973         * modules/glob (Depends-on): Add libc-config.
13975 2018-08-18  Bruno Haible  <bruno@clisp.org>
13977         scratch_buffer: Add tests.
13978         * tests/test-scratch-buffer.c: New file.
13979         * modules/scratch_buffer-tests: New file.
13981 2018-08-18  Bruno Haible  <bruno@clisp.org>
13983         scratch_buffer: Fix include file.
13984         Reported by Reuben Thomas <rrt@sc3d.org> in
13985         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
13986         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
13987         double-inclusion guard.
13989 2018-08-18  Bruno Haible  <bruno@clisp.org>
13991         glob-h: Revert Paul Eggert's revert.
13992         * m4/glob_h.m4: Revert to previous state.
13993         * modules/glob-h: Likewise.
13995 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13997         glob-h: always build glob.h
13998         This works around a problem reported by Reuben Thomas in:
13999         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14000         This workaround always builds glob.h, even on platforms that
14001         do not need it; perhaps this could be improved someday.
14002         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14003         is always created now.
14004         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14006 2018-08-13  Bruno Haible  <bruno@clisp.org>
14008         monetary: Simplify m4 code.
14009         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14010         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14012 2018-08-13  Bruno Haible  <bruno@clisp.org>
14014         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14015         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14016         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14017         and by Paul J. Lucas <paul@lucasmail.org> in
14018         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14019         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14021 2018-08-11  Bruno Haible  <bruno@clisp.org>
14023         setlocale: Trivial simplification.
14024         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14026 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14028         verify: port 'assume' to traditional tools
14029         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14030         and other tools that use /*NOTREACHED*/ comments.
14032 2018-08-10  Bruno Haible  <bruno@clisp.org>
14034         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14035         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14036         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14037         'fnmatch-gnu' is in use.
14039 2018-08-07  Bruno Haible  <bruno@clisp.org>
14041         glob-h: Add tests.
14042         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14043         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14044         tests/test-glob-h.c.
14045         * modules/glob-h-tests: New file.
14046         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14047         conditions.
14048         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14049         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14051 2018-08-07  Bruno Haible  <bruno@clisp.org>
14053         glob-h: New module.
14054         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14055         replacements.
14056         * lib/glob.c: Include <config.h>.
14057         * m4/glob_h.m4: New file.
14058         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14059         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14060         REPLACE_GLOB_PATTERN_P as appropriate.
14061         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14062         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14063         * modules/glob-h: New file.
14064         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14065         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14066         lstat, sys_stat. Change conditions.
14067         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14068         REPLACE_GLOB_PATTERN_P. Set module indicator.
14069         (Makefile.am): Remove code that is moved to glob-h.
14070         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14071         * modules/posixcheck (Depends-on): Add glob-h.
14073 2018-08-06  Bruno Haible  <bruno@clisp.org>
14075         Force generation of substitute .h file when C++ support is enabled.
14076         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14077         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14078         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14079         FNMATCH_H to non-empty.
14080         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14081         ICONV_H to non-empty.
14082         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14083         MONETARY_H to non-empty.
14084         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14085         non-empty.
14087 2018-08-06  Bruno Haible  <bruno@clisp.org>
14089         fnmatch-h: Fix test compilation error on mingw (regression from today).
14090         * lib/fnmatch.in.h: Fix conditions.
14092 2018-08-06  Bruno Haible  <bruno@clisp.org>
14094         sys_resource: Relicense under LGPLv2+.
14095         John Malmberg's approval is in
14096         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14097         * modules/sys_resource (License): Change to LGPLv2+.
14099 2018-08-06  Bruno Haible  <bruno@clisp.org>
14101         fnmatch-h: Add tests.
14102         * tests/test-fnmatch-h.c: New file.
14103         * modules/fnmatch-h-tests: New file.
14104         * tests/test-fnmatch-h-c++.cc: New file.
14105         * modules/fnmatch-h-c++-tests: New file.
14107 2018-08-06  Bruno Haible  <bruno@clisp.org>
14109         fnmatch-h: New module.
14110         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14111         replacements.
14112         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14113         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14114         'posixcheck' warning.
14115         * m4/fnmatch_h.m4: New file.
14116         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14117         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14118         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14119         as appropriate.
14120         * modules/fnmatch-h: New file.
14121         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14122         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14123         conditions.
14124         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14125         indicator.
14126         (Makefile.am): Remove code that is moved to fnmatch-h.
14127         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14128         REPLACE_FNMATCH.
14129         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14130         * modules/posixcheck (Depends-on): Add fnmatch-h.
14132 2018-08-06  Bruno Haible  <bruno@clisp.org>
14134         Enable more C++ tests.
14135         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14136         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14137         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14138         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14139         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14141 2018-08-06  Bruno Haible  <bruno@clisp.org>
14143         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14144         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14145         getopt.h.
14146         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14148 2018-08-05  Bruno Haible  <bruno@clisp.org>
14150         utime-h: Generate header file when module 'posixcheck' is in use.
14151         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14152         UTIME_H to non-empty.
14154 2018-08-05  Bruno Haible  <bruno@clisp.org>
14156         monetary: Generate header file when module 'posixcheck' is in use.
14157         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14158         use, set MONETARY_H to non-empty.
14160 2018-08-05  Bruno Haible  <bruno@clisp.org>
14162         iconv-h: Generate header file when module 'posixcheck' is in use.
14163         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14164         set ICONV_H to non-empty.
14166 2018-08-05  Bruno Haible  <bruno@clisp.org>
14168         Optimize the "checking whether ... is declared without a macro" checks.
14169         Suggested by Paul Eggert in
14170         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14171         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14172         Gnulib module 'posixcheck' is not in use.
14174 2018-08-05  Bruno Haible  <bruno@clisp.org>
14176         iconv-h: Enable 'posixcheck' warnings.
14177         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14178         iconv_open.
14179         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14181 2018-08-05  Bruno Haible  <bruno@clisp.org>
14183         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14184         * m4/extern-inline.m4: Add more comments.
14185         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14186         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14187         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14189 2018-08-04  Bruno Haible  <bruno@clisp.org>
14191         New module 'posixcheck'.
14192         * modules/posixcheck: New file.
14193         * m4/posixcheck.m4: New file.
14194         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14195         (Which modules?): Reference it.
14197 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14199         dfa: fix memory leak
14200         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14202 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14204         ieee754-h: new module
14205         It looks like Emacs can use this for some NaN processing.
14206         Emacs uses it only on double NaNs so it should be safe.
14207         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14208         * config/srclist.txt: Mention ieee754.h in a comment.
14209         * doc/glibc-headers/ieee754.texi (ieee754.h):
14210         Gnulib now has a substitute that should work
14211         except for long double and for non-IEEE platforms.
14212         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14213         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14215 2018-07-27  Bruno Haible  <bruno@clisp.org>
14217         iswcntrl: Mention minor problem on macOS.
14218         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14220 2018-07-26  Colin Watson  <cjwatson@debian.org>
14222         bootstrap, gnulib-tool: fix translations rsync
14223         Previously, we created files such as $pobase/Makefile.in.in and then the
14224         subsequent rsync would immediately delete them.
14225         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14226         non-.po files in target directory when rsyncing translations.
14227         * gnulib-tool (func_import): Likewise.
14228         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14230 2018-07-25  Jim Meyering  <meyering@fb.com>
14232         bootstrap: reinstate definition fo gnulib_mk.
14233         That variable is used at least by cppi.
14234         * build-aux/bootstrap (gnulib_mk): Restore definition.
14235         This reverts the deletion from v0.1-1844-gc66dba9ba.
14237 2018-07-23  Bruno Haible  <bruno@clisp.org>
14239         doc: For module names, use texinfo markup @code{} or @samp{}.
14240         * doc/alloca.texi: Mark gnulib module names with @code.
14241         * doc/alloca-opt.texi: Likewise.
14242         * doc/quote.texi: Likewise.
14243         * doc/posix-functions/freopen.texi: Likewise.
14244         * doc/posix-functions/open.texi: Likewise.
14245         * doc/posix-functions/readlink.texi: Likewise.
14246         * doc/posix-functions/readlinkat.texi: Likewise.
14247         * doc/posix-functions/stdout.texi: Likewise.
14248         * doc/posix-functions/stderr.texi: Likewise.
14249         * doc/posix-functions/unlink.texi: Likewise.
14250         * doc/posix-functions/unlinkat.texi: Likewise.
14251         * doc/posix-functions/utime.texi: Likewise.
14252         * doc/posix-functions/utimensat.texi: Likewise.
14253         * doc/posix-functions/utimes.texi: Likewise.
14254         * doc/posix-headers/stdint.texi: Likewise.
14255         * doc/glibc-functions/futimesat.texi: Likewise.
14256         * doc/glibc-functions/lutimes.texi: Likewise.
14257         * doc/glibc-functions/memmem.texi: Likewise.
14259 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14261         doc: Avoid some overfull lines in the TeX output.
14262         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14263         @example.
14264         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14265         newline before the long URL.
14266         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14267         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14268         Add line breaks in code snippets.
14270 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14272         hard-locale: simplify by removing hard-locale.m4
14273         * m4/hard-locale.m4: Remove.
14274         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14275         (configure.ac): Do not call gl_HARD_LOCALE.
14277         gnulib-tool: limit line length for git send-email
14278         * gnulib-tool (func_import): Break actioncmd log line
14279         into multiple lines.
14281 2018-07-16  Bruno Haible  <bruno@clisp.org>
14283         ffs: Ensure declaration on mingw.
14284         Reported by Daniel P. Berrangé <berrange@redhat.com>
14285         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14286         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14287         also declared.
14289 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14291         regex-tests: add dependency
14292         * modules/regex-tests (Depends-on): Add gettext-h.
14293         This is needed given the recent changes to regex,
14294         which no longer depends on gettext-h.
14296 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14298         regex: now in sync with glibc
14299         * config/srclist.txt: Gnulib and glibc regex code
14300         are synchronized again.
14302 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14304         renameatu: rename from renameat2
14305         It's looking like Glibc will add a renameat2 function
14306         that is incompatible with Gnulib renameat2; see:
14307         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14308         To help avoid future confusion, rename renameat2 to something else.
14309         Use the name 'renameatu', as the Gnulib function is close to the
14310         Glibc function.  Perhaps someday there will also be a renameat2
14311         Gnulib module, which mimicks the future glibc renameat2, but that
14312         can wait as nobody seems to need such a module now.
14313         * NEWS: Mention this.
14314         * lib/renameatu.c: Rename from lib/renameat2.c.
14315         * lib/renameatu.h: Rename from lib/renameat2.h.
14316         * modules/renameatu: Rename from modules/renameat2.
14317         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14318         All uses of "renameat2" in identifiers or file name
14319         changed to "renameatu", except for two instances in
14320         lib/renameatu.c that deal with the Linux kernel's
14321         renameat2 syscall.
14323 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14325         gnulib-tool: minor tweaks for --gnu-make
14326         * gnulib-tool: Do not allow --gnu-make in test modes,
14327         since they all require automake.
14328         (func_emit_lib_Makefile_am): Don’t emit automake comment
14329         if --gnu-make.
14331         regex: work around conditional-dependencies glitch
14332         * modules/regex (Depends-on): Add langinfo.
14333         Without this change, I had problems building an experimental
14334         version of GNU Emacs.  The symptom of the bug was a message
14335         ‘./configure: line 12726: test: =: unary operator expected’.
14336         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14337         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14338         was unset.  Although gl_FUNC_NL_LANGINFO has
14339         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14340         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14341         --conditional-dependencies sometimes arranges for the
14342         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14343         code.  Since the regex code includes <langinfo.h> it should be
14344         depending on the langinfo module anyway, and this happens to work
14345         around the bug, so install that as a workaround for now.  To
14346         reproduce the original problem, run the following shell script on
14347         the version of Gnulib just before this patch was installed.
14348                 rm -fr foo
14349                 mkdir foo
14350                 cat >foo/configure.ac <<'EOF'
14351                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14352                 gl_EARLY
14353                 gl_INIT
14354                 AC_OUTPUT
14355                 EOF
14356                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14357                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14358                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14359                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14360                 cd foo
14361                 aclocal -I m4
14362                 autoconf
14363                 ./configure --with-included-regex
14365 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14367         wchar: fix bug when checking for ‘inline’
14368         I discovered this when looking into using the regex module
14369         with Emacs.
14370         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14371         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14372         conftest1.c and conftest2.c but these files were not created.
14373         As far as I can see, this check never worked and nobody reported
14374         it until now, which is a bit worrisome.
14376 2018-06-30  Jim Meyering  <meyering@fb.com>
14378         bootstrap: s/--option val/--option=val/
14379         * build-aux/bootstrap (gnulib_tool_options): Change the
14380         spelling of "--option val" pairs to "--option=val", for
14381         aesthetics, and also so that this file no longer triggers
14382         a common help2man syntax-check warning when copied into
14383         projects like grep, gzip, etc.
14385 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14387         manywarnings: omit -Wswitch-default
14388         This should make things more consistent, as we already ignore
14389         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14390         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14391         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14392         Add -Wswitch-default.
14393         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14394         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14395         Remove -Wswitch-default.
14397         regex: revert most trimming
14398         Problems reported by Bruno Haible in:
14399         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14400         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14401         and wctype back in.  lock because regex users shouldn’t
14402         need to know that regex needs locking, and the rest because
14403         gnulib-tool should ordinarily ignore them anyway.
14405 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14407         regex: trim module dependencies
14408         * modules/regex (Depends-on): Remove gettext-h and lock,
14409         since the regex code should work OK without these modules,
14410         and Emacs uses it that way.  Also remove memcmp, memmove,
14411         and wctype, as these modules are obsolete and should not be
14412         needed any more.
14414 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14416         regex: glibc does not use intprops.h
14417         Maybe we can talk glibc into using intprops.h someday, but
14418         now doesn’t seem to be a good time.
14419         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14420         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14421         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14423 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14425         regex: port to recently proposed glibc regex merge
14426         This patch is inspired by Adhemerval Zanella's recent proposal
14427         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14428         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14429         the glibc side, without keeping Gnulib portable.
14430         * lib/regex.h: Fix a problem with glibc installed-header checking,
14431         as follows:
14432         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14433         (_Restrict_arr_): Prefer __restrict_arr if defined,
14434         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14435         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14436         (build_wcs_upper_buffer, build_upper_buffer)
14437         (re_string_translate_buffer, re_string_context_at):
14438         Move decls here from lib/regex_internal.h, for glibc internal tests.
14439         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14440         glibc BZ #18496.
14441         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14442         -Wunused-value.
14443         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14444         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14445         (bitset_mask): Now static inline, and without any __attribute__
14446         ((unused)) decoration, for glibc internal tests.
14448 2018-06-25  Bruno Haible  <bruno@clisp.org>
14450         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14451         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14452         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14453         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14454         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14455         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14456         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14457         / -lthread / -lpth does not get optimized away by a preceding
14458         --as-needed option.
14460 2018-06-25  Bruno Haible  <bruno@clisp.org>
14462         Continue to use spaces for indentation, not tabs.
14463         * MODULES.html.sh: Untabify.
14464         * doc/regex.texi: Likewise.
14465         * lib/acl-internal.c: Likewise.
14466         * lib/dfa.c: Likewise.
14467         * lib/exclude.c: Likewise.
14468         * lib/exclude.h: Likewise.
14469         * lib/get-permissions.c: Likewise.
14470         * lib/gettimeofday.c: Likewise.
14471         * lib/parse-datetime.y: Likewise.
14472         * lib/pselect.c: Likewise.
14473         * lib/set-permissions.c: Likewise.
14474         * lib/time.in.h: Likewise.
14475         * m4/canonicalize.m4: Likewise.
14476         * m4/gc.m4: Likewise.
14477         * m4/gnulib-common.m4: Likewise.
14478         * m4/pthread_sigmask.m4: Likewise.
14479         * m4/vararrays.m4: Likewise.
14480         * tests/test-digest.h: Likewise.
14481         * tests/test-fcntl-h.c: Likewise.
14482         * tests/test-timespec.c: Likewise.
14483         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14485 2018-06-25  Bruno Haible  <bruno@clisp.org>
14487         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14488         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14489         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14490         -Wjump-misses-init.
14492 2018-06-25  Jim Meyering  <meyering@fb.com>
14494         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14495         * lib/acl-internal.h (free_permission_context): Remove that
14496         attribute directive.  Otherwise, it would provoke this from GCC 9:
14497         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14498           returning 'void' [-Werror=attributes]
14500 2018-06-24  Jim Meyering  <meyering@fb.com>
14502         parse-datetime: accommodate gcc-4.8.5
14503         Bruno Haible reported the build failure in
14504         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14505         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14506         on declaration of new local.
14508 2018-06-24  Bruno Haible  <bruno@clisp.org>
14510         af_alg: Fail in continuable manner on Linux/powerpc64le.
14511         Reported by Assaf Gordon <assafgordon@gmail.com>
14512         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14513         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14514         byte send() as the first round.
14516 2018-06-24  Bruno Haible  <bruno@clisp.org>
14518         af_alg: Fix state of stream after sendfile() succeeds.
14519         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14520         the stream is correctly positioned afterwards.
14521         * modules/crypto/af_alg (Depends-on): Add fflush.
14522         * tests/test-digest.h (test_digest_on_files): Verify that after the
14523         operation the stream is positioned at end of file.
14525 2018-06-24  Jim Meyering  <meyering@fb.com>
14527         canon-host: take GCC9's advice rather than ignoring warning
14528         Pádraig Brady suggested not to ignore this GCC9 advice.
14529         * lib/canon-host.c: Undo preceding change.
14530         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14532         parse-datetime.y: avoid spurious GCC 9 warning
14533         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14534         a function local prior to the first "goto fail".  The prior use would
14535         evoke this:
14536         parse-datetime.y: In function 'parse_datetime2':
14537         parse-datetime.y:1791:19: error: jump skips variable initialization \
14538           [-Werror=jump-misses-init]
14539         parse-datetime.y:2385:2: note: label 'fail' defined here
14540         parse-datetime.y:188:43: note: '({anonymous})' declared here
14541         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14543         canon-host.c: avoid spurious GCC 9 warning
14544         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14546         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14547         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14548         * m4/manywarnings.m4: Remove them.
14549         Otherwise, building coreutils, I would see this:
14550         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14551         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14552         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14553           which is also used by default
14554         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14556 2018-06-24  Bruno Haible  <bruno@clisp.org>
14558         af_alg tests: Add another test.
14559         * tests/test-digest.h (test_digest_on_files): Also check a large file
14560         with a skipped header.
14561         * tests/test-md5.c: Include macros.h.
14562         * tests/test-sha1.c: Likewise.
14563         * tests/test-sha256.c: Likewise.
14564         * tests/test-sha512.c: Likewise.
14565         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14566         * modules/crypto/sha1-tests (Files): Likewise.
14567         * modules/crypto/sha256-tests (Files): Likewise.
14568         * modules/crypto/sha512-tests (Files): Likewise.
14570 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14572         maint: clarify comments about sticky EOF
14573         * lib/af_alg.c: Be more direct that we can't
14574         assume stickiness of EOF for portability reasons.
14575         * lib/md5.c: Clarify that this isn't just a glibc issue.
14576         * lib/sha1.c: Likewise.
14577         * lib/sha256.c: Likewise.
14578         * lib/sha512.c: Likewise.
14580 2018-06-24  Bruno Haible  <bruno@clisp.org>
14582         af_alg: Comment and style improvements.
14583         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14584         (afalg_buffer, afalg_stream): Improve comments.
14586 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14588         af_alg: disable kernel hash functions by default
14589         All the kernel routines were seen to be significantly slower
14590         with these relatively recent components on an i3-2310M system:
14591           kernel-4.10.6-200.fc25.x86_64
14592           openssl-1.0.2m-1.fc25.x86_64
14593         sha1 was nearly twice as slow in the kernel for example.
14594         Further considerations why this should not be the default, at:
14595         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14597         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14598         * m4/gl-openssl.m4: Tweak accordingly.
14600 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14602         af_alg: avoid hangs when reading from streams
14603         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14604         and thus avoid doing a fread() when feof() is set.
14605         * lib/md5.c: Ensure feof() is called before fread().
14606         * lib/sha1.c: Likewise.
14607         * lib/sha256.c: Likewise.
14608         * lib/sha512.c: Likewise.
14610 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14612         af_alg: fix error handling when hash not returned
14613         * lib/af_alg.c (afalg_stream): Handle the case where we've
14614         successfully written data to the kernel in the read/write loop,
14615         but the kernel doesn't respond with the hash.
14617 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14619         libc-config: merge from glibc
14620         * lib/cdefs.h (__inline, __restrict):
14621         Copy from current glibc.  This fixes glibc bug 17721,
14622         which Gnulib had already fixed in a different way.
14623         (__nonnull): Lessen the distance from glibc by using the
14624         glibc definition inside an ‘#ifndef __nonnull’.
14625         (__attribute_nonstring__): New macro, copied from
14626         current glibc.
14627         * lib/libc-config.h (__attribute_nonstring__): New undef.
14628         (__restrict): Remove; workaround no longer needed.
14629         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14630         support more compilers than the glibc __inline can.
14632 2018-06-24  Bruno Haible  <bruno@clisp.org>
14634         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14635         * lib/mbrtowc.c (enc_t): New enum type.
14636         (locale_enc, locale_enc_cached): New functions.
14637         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14638         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14639         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14640         instead.
14641         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14642         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14643         * modules/wcwidth (configure.ac): Invoke it.
14645 2018-06-24  Bruno Haible  <bruno@clisp.org>
14647         wchar-single: Fix test failure in wcwidth tests.
14648         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14649         skip the tests in the C locale.
14651 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14653         crypto: mention --without-linux-crypto in --with-openssl --help
14654         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14655         routines take precedence in --with-openssl help output.
14657 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14659         wchar-single: a new module to enable optimizations in wchar replacements
14660         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14661         GNULIB_WCHAR_SINGLE is enabled.
14662         * lib/wcwidth.c (wcwidth): Likewise.
14664 2018-06-23  Bruno Haible  <bruno@clisp.org>
14666         libc-config: Fix conflict with FreeBSD include files.
14667         * lib/cdefs.h (__nonnull): Remove definition.
14668         * lib/libc-config.h (__nonnull): Remove undefinition.
14670 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14672         random_r: do not crash if state is unaligned
14673         Problem reported by Bruce Korb in:
14674         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14675         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14676         with 'cc -O2 -xmemalign=8s'.
14677         * lib/random_r.c: Include string.h, for memcpy.
14678         (get_int32, set_int32): New functions.
14679         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14680         Use them to avoid assumption that state pointer is aligned.
14681         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14682         * tests/test-random_r.c (test_failed): New function.
14683         (main): Use it, to test for alignment bugs.
14685         random_r: omit unnecessary include
14686         * lib/random_r.c: Do not include limits.h.
14688         random, random_r: merge from glibc
14689         * lib/random.c, lib/random_r.c:
14690         Include libc-config.h if !_LIBC, not config.h unilaterally.
14691         * lib/random.c:
14692         Do not include stdint.h or time.h; not needed.
14693         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14694         (unsafe_state): Rename from generator.  All uses changed.
14695         Use C99-style initializers.
14696         (__random, __srandom, __initstate, __setstate): Rename from
14697         non-underscored version, but define it to non-underscored version
14698         on Gnulib.  Add a lock.
14699         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14700         Likewise.
14701         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14702         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14703         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14704         (__random_r): Use uint32 to fix glibc bug 17343.
14705         * modules/random, modules/random_r (Depends-on): Add libc-config.
14706         Depend on stdint only if $HAVE_RANDOM = 0.
14708 2018-06-19  Jim Meyering  <meyering@fb.com>
14710         README-release: also run any check-very-expensive tests
14711         * top/README-release: Adjust instructions so they run the
14712         check-very-expensive tests when there is such a target.
14714 2018-06-18  Bruno Haible  <bruno@clisp.org>
14716         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14717         * m4/pthread_rwlock_rdlock.m4: Add comment.
14718         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14719         are reader-preferring in glibc.
14720         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
14721         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
14723 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14725         crypto: use byteswap
14726         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
14727         * lib/sm3.c: Include <byteswap.h>.
14728         (SWAP): Use its macros rather than reinventing the wheel.
14729         * modules/crypto/md4, modules/crypto/md5-buffer:
14730         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
14731         * modules/crypto/sha512-buffer, modules/crypto/sm3:
14732         (Depends-on): Add byteswap.
14734 2018-06-17  Pádraig Brady  <P@draigBrady.com>
14736         gendocs.sh: fix support for legacy --texi2html
14737         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
14738         to the default makeinfo invocation.
14739         Reported by Bruce Korb
14741 2018-06-17  Bruno Haible  <bruno@clisp.org>
14743         gettext po infrastructure: Update from current gettext git.
14744         Reported by Akim Demaille <akim@lrde.epita.fr>.
14745         * build-aux/po/Makefile.in.in: Update from current gettext git.
14746         * build-aux/po/remove-potcdate.sin: Likewise.
14747         * config/srclist.txt: Temporarily disable sync for these files.
14749 2018-06-17  Bruno Haible  <bruno@clisp.org>
14751         getloadavg: Return 0 on Windows without Cygwin.
14752         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
14754 2018-06-17  Paul Smith  <psmith@gnu.org>
14756         getloadavg: Allow building on Windows without Cygwin
14757         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
14758         * m4/getloadavg.m4: Check for unistd.h.
14760 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
14762         Port crypto/af_alg to GCC 4.8.4
14763         Problem reported by Peter Simons in:
14764         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
14765         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
14767 2018-05-27  Colin Watson  <cjwatson@debian.org>
14769         bootstrap: document source fetching in --help
14770         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
14772 2018-04-09  Colin Watson  <cjwatson@debian.org>
14774         bootstrap: allow non-submodule control of gnulib
14775         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
14776         bootstrap.conf when fetching gnulib using "git clone" or via
14777         GNULIB_SRCDIR.
14779 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14781         crypto: omit stream ops Emacs doesn’t need
14782         * lib/md5.c (md5_stream):
14783         * lib/sha1.c (sha1_stream):
14784         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
14785         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
14786         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
14787         defined.  Emacs needs this, as it does not use the stream
14788         operations and doesn’t need all the af_alg stuff we’ve recently
14789         added.  Perhaps a similar change is needed to the other crypto
14790         modules, but this patch changes only those needed for Emacs.
14791         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
14792         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
14793         New modules, used by Emacs.
14794         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
14795         * modules/crypto/sha512: Rewrite to depend on the new modules.
14797 2018-05-20  Pádraig Brady  <P@draigBrady.com>
14799         fts: avoid a memory leak edge case
14800         * lib/fts.c (fts_open): Set an appropriate fts_level
14801         so that an immediate fts_close() will free the allocation.
14802         * tests/test-fts.c (fts_dealloc): Add a test case which
14803         will trigger under valgrind or address sanitizer.
14804         Fixes https://bugs.gnu.org/31439
14806 2018-05-20  Bruno Haible  <bruno@clisp.org>
14808         wcwidth tests: Fix link error.
14809         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
14810         $(LIBUNISTRING).
14812 2018-05-20  Bruno Haible  <bruno@clisp.org>
14814         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
14815         * modules/regex (Files): Add m4/glibc21.m4.
14817 2018-05-20  Bruno Haible  <bruno@clisp.org>
14819         localcharset: Optimize.
14820         * lib/localcharset.c (alias_table): Comment out no-op mappings for
14821         platforms where these don't matter. This reduces the table size,
14822         which in turn reduces the lookup time.
14824 2018-05-19  Bruno Haible  <bruno@clisp.org>
14826         localcharset: Map the locale encodings found in newer OSes.
14827         * lib/localcharset.c (alias_table): Add mapping for locale encodings
14828         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
14829         IRIX 6.5, Minix 3.3.
14830         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
14832 2018-05-19  Bruno Haible  <bruno@clisp.org>
14834         localcharset: Move mapping tables into the code. Use a binary search.
14835         * lib/localcharset.h: Document the GNU canonical names for character
14836         encodings here.
14837         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
14838         relocatable.h, configmake.h.
14839         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
14840         macros.
14841         (charset_aliases): Remove variable.
14842         (get_charset_aliases): Remove function.
14843         (struct table_entry): New type.
14844         (alias_table, locale_table): New constants.
14845         (locale_charset): Use the alias_table or locale_table to get the
14846         canonicalized encoding name.
14847         * lib/config.charset: Remove file.
14848         * lib/ref-add.sin: Remove file.
14849         * lib/ref-del.sin: Remove file.
14850         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
14851         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
14852         * modules/localcharset (Notice): Remove.
14853         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
14854         glibc21.m4.
14855         (Depends-on): Remove configmake.
14856         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
14857         (Makefile.am): Simplify.
14858         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
14860 2018-05-19  Bruno Haible  <bruno@clisp.org>
14862         localcharset: Add a manual test.
14863         * tests/test-localcharset.c: New file.
14864         * modules/localcharset-tests: New file.
14866 2018-05-19  Bruno Haible  <bruno@clisp.org>
14868         localcharset: Remove support for obsolete platforms.
14869         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
14870         Mac OS X 10.2. Comment out dubious entry for Solaris.
14872 2018-05-19  Jim Meyering  <meyering@fb.com>
14874         gnupload: adjust comment
14875         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
14876         more likely we'll remove the just-added code in a year or two.
14878 2018-05-19  Bruno Haible  <bruno@clisp.org>
14880         gnupload: Fix "gpg-agent is not available in this session" error.
14881         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
14883 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14885         crypto/af_alg: fix --help
14886         * m4/af_alg.m4: Avoid spurious newline in --help output.
14888 2018-05-13  Bruno Haible  <bruno@clisp.org>
14890         nl_langinfo: Fix compilation error on Android.
14891         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
14892         INT_CURR_SYMBOL, etc. only if these items are defined.
14894 2018-05-13  Bruno Haible  <bruno@clisp.org>
14896         truncate: Fix compilation error on Android.
14897         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
14898         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
14899         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
14900         HAVE_TRUNCATE.
14901         * modules/truncate: Likewise.
14902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
14903         not HAVE_TRUNCATE.
14904         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
14905         HAVE_TRUNCATE.
14906         * doc/posix-functions/truncate.texi: Mention the issue.
14908 2018-05-13  Bruno Haible  <bruno@clisp.org>
14910         pthread: Fix compilation error on Android.
14911         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
14912         recursive inclusion of this file.
14914 2018-05-13  Bruno Haible  <bruno@clisp.org>
14916         posix_spawn: Fix compilation error on Android.
14917         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
14918         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
14919         (posix_spawn_file_actions_t): Consider also the case
14920         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
14922 2018-05-13  Bruno Haible  <bruno@clisp.org>
14924         tsearch: Move from K&R C to ANSI C.
14925         * lib/tsearch.c (tfind): Convert definition to ANSI C.
14927 2018-05-13  Bruno Haible  <bruno@clisp.org>
14929         tsearch: Fix compilation error on Android.
14930         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
14931         is 0.
14932         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
14933         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
14934         GNULIB_defined_tsearch is true.
14935         (twalk): Define only if GNULIB_defined_twalk is true.
14936         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
14937         is 0.
14938         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
14939         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
14940         * modules/search (Makefile.am): Substitute HAVE_TWALK.
14942 2018-05-13  Bruno Haible  <bruno@clisp.org>
14944         imaxdiv: Fix compilation error on Android.
14945         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
14946         is not defined.
14947         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
14948         HAVE_DECL_IMAXDIV, is 0.
14949         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
14950         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
14952 2018-05-13  Bruno Haible  <bruno@clisp.org>
14954         Support selective inclusion mechanism of recent mingw.org header files.
14955         Reported by Eli Zaretskii <eliz@gnu.org>.
14956         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
14957         __need_ssize_t, or __need_time_t is defined, just include the system's
14958         <sys/types.h>.
14959         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
14960         include the system's <locale.h>.
14962 2018-05-13  Bruno Haible  <bruno@clisp.org>
14964         Avoid compilation error due to 'mmap' on Android.
14965         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
14966         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
14967         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
14968         Undefine on Android.
14970 2018-05-13  Bruno Haible  <bruno@clisp.org>
14972         Add cross-compilation guesses for Linux systems without glibc.
14973         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
14974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14975         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14976         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14977         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
14978         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14979         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14980         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14981         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
14982         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
14983         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14984         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14985         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14986         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14988         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14989         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14990         * m4/utimens.m4 (gl_UTIMENS): Likewise.
14992 2018-05-13  Bruno Haible  <bruno@clisp.org>
14994         getpagesize: Fix compilation error on Android.
14995         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
14996         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
14997         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
14998         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
14999         HAVE_GETPAGESIZE accordingly.
15000         * modules/getcwd (Files): Add m4/getpagesize.m4.
15002 2018-05-13  Bruno Haible  <bruno@clisp.org>
15004         tcgetsid: Fix compilation error on Android.
15005         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15006         AC_CHECK_FUNC.
15008 2018-05-13  Bruno Haible  <bruno@clisp.org>
15010         getpass: Fix configure test for Android.
15011         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15012         AC_CHECK_FUNC.
15014 2018-05-13  Bruno Haible  <bruno@clisp.org>
15016         ffs: Fix compilation error on Android.
15017         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15019 2018-05-13  Bruno Haible  <bruno@clisp.org>
15021         mkfifo: Fix compilation error on Android.
15022         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15023         AC_CHECK_FUNC.
15025 2018-05-13  Bruno Haible  <bruno@clisp.org>
15027         c-strtod: Fix configure test for Android.
15028         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15029         AC_CHECK_FUNC.
15031 2018-05-13  Bruno Haible  <bruno@clisp.org>
15033         random: Fix compilation error on Android.
15034         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15035         AC_CHECK_FUNC.
15037 2018-05-13  Bruno Haible  <bruno@clisp.org>
15039         grantpt: Fix compilation error on Android.
15040         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15041         AC_CHECK_FUNC.
15043 2018-05-13  Bruno Haible  <bruno@clisp.org>
15045         stdioext: Fix compilation errors with newer Android headers.
15046         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15047         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15048         fallbacks for Android.
15049         * lib/fpending.c: Update comments.
15050         * lib/fpurge.c: Likewise.
15051         * lib/freadable.h: Likewise.
15052         * lib/freadable.c: Likewise.
15053         * lib/freadahead.c: Likewise.
15054         * lib/freading.h: Likewise.
15055         * lib/freadptr.c: Likewise.
15056         * lib/fseterr.c: Likewise.
15057         * lib/fwritable.h: Likewise.
15058         * lib/fwritable.c: Likewise.
15059         * lib/fwriting.h: Likewise.
15060         * lib/fwriting.c: Likewise.
15062 2018-05-13  Bruno Haible  <bruno@clisp.org>
15064         doc: Add info about Android versions 2.0 to 8.1.
15065         * doc/**/*.texi: Add info about functions in all released versions of
15066         Bionic.
15068 2018-05-12  Bruno Haible  <bruno@clisp.org>
15070         fseeko: On mingw, don't use the hidden function _fseeki64.
15071         Reported by Eli Zaretskii <eliz@gnu.org>.
15072         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15073         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15075 2018-05-12  Bruno Haible  <bruno@clisp.org>
15077         glob: Choose 'dirent_type' in a way that works better on mingw.
15078         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15079         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15081 2018-05-12  Bruno Haible  <bruno@clisp.org>
15083         execute, spawn-pipe: Avoid warning about redefining 'close'.
15084         Reported by Eli Zaretskii <eliz@gnu.org>.
15085         * lib/execute.c: Undefine 'close' before redefining it.
15086         * lib/spawn-pipe.c: Likewise.
15088 2018-05-12  Bruno Haible  <bruno@clisp.org>
15090         nanosleep: Avoid test failure on mingw when it has nanosleep.
15091         Reported by Eli Zaretskii <eliz@gnu.org>.
15092         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15093         If it does not exist, use a simpler test program that does not call
15094         alarm().
15096 2018-05-10  Bruno Haible  <bruno@clisp.org>
15098         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15099         Reported by Devin Hussey <husseydevin@gmail.com>.
15100         Based on a patch by Paul Eggert.
15101         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15102         as witness of libpthread.
15103         * lib/glthread/cond.h (pthread_in_use): Likewise.
15104         * lib/glthread/thread.h (pthread_in_use): Likewise.
15105         * lib/glthread/tls.h (pthread_in_use): Likewise.
15107 2018-05-10  Bruno Haible  <bruno@clisp.org>
15109         cond tests: Fix compilation error on Solaris.
15110         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15111         macro.
15113 2018-05-10  Bruno Haible  <bruno@clisp.org>
15115         doc: Add partial info about Android 4.3.
15116         * doc/*-functions/*.texi: Add info about functions that were added
15117         to Bionic between Android 4.3 and Android 9.0.
15119 2018-05-10  Bruno Haible  <bruno@clisp.org>
15121         doc: Add info about Android 9.0.
15122         * doc/**/*.texi: Add info about functions and headers in Bionic from
15123         Android 9.0.
15125 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15127         af_alg: fix my typo in afalg_buffer
15128         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15129         (afalg_stream): Simplify and avoid the need for a runtime test
15130         at the end.
15132         af_alg: recover better from crypto failures
15133         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15134         input stream is seekable, by repositioning the stream back to
15135         where it was, possibly by just calling sendfile with an offset
15136         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15137         cases, which lets our callers try again with user-mode code.
15138         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15139         instead of on fflush and lseek.
15141         af_alg: distiguish I/O errors better
15142         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15143         not -EIO, if it’s OK for the caller to try again with user-mode code.
15144         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15145         some other error number) if fflush fails, as the caller should not
15146         try again that case.
15148         af_alg: avoid gotos
15149         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15150         gotos, as they were a source of unreliability and made the code a
15151         bit harder to follow.
15153         af_alg: don’t leak file descriptors into children
15154         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15155         This code should be compiled only on recent GNU/Linux platforms
15156         so we shouldn’t have to also depend on the accept4 module.
15158         af_alg: coalesce socket creation
15159         * lib/af_alg.c (alg_socket): New function.
15160         (afalg_buffer, afalg_stream): Use it.  This avoids some
15161         code duplication and gotos.
15163         af_alg: fix file descriptor leak
15164         * lib/af_alg.c (afalg_stream): Close leak.
15166         af_alg: Pacify --enable-gcc-warnings on GCC 8
15167         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15168         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15170 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15172         af_alg: Pacify --enable-gcc-warnings
15173         Problem reported by Assaf Gordon in:
15174         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15175         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15176         gcc -Wjump-misses-init.
15177         * lib/sha512.c (shaxxx_stream): Now static.
15179 2018-05-06  Bruno Haible  <bruno@clisp.org>
15181         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15182         * lib/af_alg.h (afalg_buffer): New declaration.
15183         * lib/af_alg.c (afalg_buffer): New function.
15185 2018-05-06  Bruno Haible  <bruno@clisp.org>
15187         af_alg: Avoid warnings.
15188         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15189         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15191 2018-05-06  Bruno Haible  <bruno@clisp.org>
15193         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15194         * tests/bench-digest.h: New file.
15195         * tests/bench-md5.c: New file.
15196         * tests/bench-sha1.c: New file.
15197         * tests/bench-sha224.c: New file.
15198         * tests/bench-sha256.c: New file.
15199         * tests/bench-sha384.c: New file.
15200         * tests/bench-sha512.c: New file.
15201         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15202         tests/bench-digest.h.
15203         (Depends-on): Add getrusage, gettimeofday.
15204         (Makefile.am): Add variables to build bench-md5.
15205         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15206         tests/bench-digest.h.
15207         (Depends-on): Add getrusage, gettimeofday.
15208         (Makefile.am): Add variables to build bench-sha1.
15209         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15210         tests/bench-sha256.c, tests/bench-digest.h.
15211         (Depends-on): Add getrusage, gettimeofday.
15212         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15213         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15214         tests/bench-sha512.c, tests/bench-digest.h.
15215         (Depends-on): Add getrusage, gettimeofday.
15216         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15218 2018-05-06  Bruno Haible  <bruno@clisp.org>
15220         af_alg: Fix a resource leak.
15221         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15222         New local variable 'result'.
15224 2018-05-06  Bruno Haible  <bruno@clisp.org>
15226         af_alg: Fix bug with streams that are not at position 0.
15227         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15228         assume that the stream is positioned at position 0.
15229         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15230         of the stream.
15231         * lib/md5.h (md5_stream): Likewise.
15232         * lib/sha1.h (sha1_stream): Likewise.
15233         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15234         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15235         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15237         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15238         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15239         stream that is not positioned at the beginning.
15241 2018-05-06  Bruno Haible  <bruno@clisp.org>
15243         af_alg: Add configure option to enable/disable use of Linux crypto API.
15244         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15245         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15246         USE_LINUX_CRYPTO_API.
15247         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15248         * lib/af_alg.c: Likewise.
15250 2018-05-06  Bruno Haible  <bruno@clisp.org>
15252         Followup to 'af_alg: New module.'.
15253         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15254         * modules/crypto/sha1 (Depends-on): Likewise.
15255         * modules/crypto/sha256 (Depends-on): Likewise.
15256         * modules/crypto/sha512 (Depends-on): Likewise.
15258 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15260         crypto/{md5,sha1,sha256,sha512}: simplify
15261         * lib/md5.c (md5_stream):
15262         * lib/sha1.c (sha1_stream):
15263         * lib/sha256.c (shaxxx_stream):
15264         Simplify, partly by assuming C99.
15265         * lib/sha256.c (shaxxx_stream):
15266         New function, which implements both sha256 and sha224.
15267         Simplify, partly by assuming C99.
15268         (sha256_stream, sha224_stream):
15269         Use it to avoid code duplication, removing a FIXME.
15270         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15271         Likewise.
15273         af_alg: Improve comments.
15274         * lib/af_alg.h: Use imperatives and tighten up wording.
15276 2018-05-05  Bruno Haible  <bruno@clisp.org>
15278         af_alg: Improve comments.
15279         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15281 2018-05-05  Bruno Haible  <bruno@clisp.org>
15283         af_alg: New module.
15284         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15285         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15286         * lib/md5.c: Include "af_alg.h" unconditionally.
15287         (md5_stream): Invoke afalg_stream unconditionally.
15288         * lib/sha1.c: Include "af_alg.h" unconditionally.
15289         (sha1_stream): Invoke afalg_stream unconditionally.
15290         * lib/sha256.c: Include "af_alg.h" unconditionally.
15291         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15292         * lib/sha512.c: Include "af_alg.h" unconditionally.
15293         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15294         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15295         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15296         * modules/crypto/af_alg: New file.
15297         * modules/crypto/md5 (Files): Remove files that are now in the
15298         'crypto/af_alg' module.
15299         (Depends-on): Add crypto/af_alg.
15300         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15301         (Makefile.am): Don't mention af_alg.c here.
15302         * modules/crypto/sha1 (Files): Remove files that are now in the
15303         'crypto/af_alg' module.
15304         (Depends-on): Add crypto/af_alg.
15305         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15306         (Makefile.am): Don't mention af_alg.c here.
15307         * modules/crypto/sha256 (Files): Remove files that are now in the
15308         'crypto/af_alg' module.
15309         (Depends-on): Add crypto/af_alg.
15310         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15311         (Makefile.am): Don't mention af_alg.c here.
15312         * modules/crypto/sha512 (Files): Remove files that are now in the
15313         'crypto/af_alg' module.
15314         (Depends-on): Add crypto/af_alg.
15315         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15316         (Makefile.am): Don't mention af_alg.c here.
15318 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15320         crypto tests: pacify GCC
15321         * tests/test-digest.h (test_digest_on_files):
15322         Don’t assume digest size fits in int (!).
15324         af_alg: minor style improvements
15325         * lib/af_alg.c (afalg_stream): Prefer C99 style
15326         decl-after-statement, since we’re already assuming C99.  Clarify
15327         by strengthening the bind test and omit unnecessary assignment.
15329 2018-05-05  Bruno Haible  <bruno@clisp.org>
15331         af_alg: Fix bug on empty files.
15332         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15333         stream is empty.
15335 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15337         sys-limits.h: new file for crypto and safe I/O
15338         * lib/af_alg.c: Include sys-limits.h.
15339         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15340         (afalg_stream): Also reject negative sizes for sendfile; they
15341         should not happen and the code is a bit cleaner and faster this way.
15342         * lib/safe-read.c: Include sys-limits.h.
15343         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15344         * lib/sys-limits.h: New file, with values and commentary derived
15345         from the old safe-read.c and from GNU Emacs sysdep.c.
15346         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15347         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15348         Add lib/sys-limits.h to Files section.
15350 2018-05-05  Bruno Haible  <bruno@clisp.org>
15352         af_alg: Improve function signature.
15353         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15354         * lib/af_alg.c (afalg_stream): Likewise.
15355         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15357 2018-05-05  Bruno Haible  <bruno@clisp.org>
15359         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15360         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15361         * modules/crypto/sha1 (Depends-on): Likewise.
15362         * modules/crypto/sha256 (Depends-on): Likewise.
15363         * modules/crypto/sha512 (Depends-on): Likewise.
15365 2018-05-05  Bruno Haible  <bruno@clisp.org>
15367         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15368         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15369         * modules/crypto/sha1 (Depends-on): Likewise.
15370         * modules/crypto/sha256 (Depends-on): Likewise.
15371         * modules/crypto/sha512 (Depends-on): Likewise.
15373 2018-05-05  Bruno Haible  <bruno@clisp.org>
15375         af_alg: Add documentation.
15376         * lib/af_alg.h: Add comments.
15378 2018-05-05  Bruno Haible  <bruno@clisp.org>
15380         sha512: Add tests.
15381         * tests/test-sha512.c: New file.
15382         * modules/crypto/sha512-tests: New file.
15384 2018-05-05  Bruno Haible  <bruno@clisp.org>
15386         sha256: Add tests.
15387         * tests/test-sha256.c: New file.
15388         * modules/crypto/sha256-tests: New file.
15390 2018-05-05  Bruno Haible  <bruno@clisp.org>
15392         sha1 tests: Add test for sha1_stream.
15393         * tests/test-sha1.c: Include test-digest.h.
15394         (main): Invoke test_digest_on_files on 'sha1_stream'.
15395         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15397 2018-05-05  Bruno Haible  <bruno@clisp.org>
15399         md5 tests: Add test for md5_stream.
15400         * tests/test-digest.h: New file.
15401         * tests/test-md5.c: Include test-digest.h.
15402         (main): Invoke test_digest_on_files on 'md5_stream'.
15403         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15405 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15407         md5sum: Use AF_ALG when available.
15408         * lib/md5.c: Include af_alg.h.
15409         (md5_stream): Use afalg_stream when available.
15410         * modules/crypto/md5 (Files): Add the af_alg files.
15411         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15412         (Makefile.am): Add af_alg.c.
15414 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15416         sha512sum: Use AF_ALG when available.
15417         * lib/sha512.c: Include af_alg.h.
15418         (sha512_stream, sha384_stream): Use afalg_stream when available.
15419         * modules/crypto/sha512 (Files): Add the af_alg files.
15420         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15421         (Makefile.am): Add af_alg.c.
15423 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15425         sha256sum: Use AF_ALG when available.
15426         * lib/sha256.c: Include af_alg.h.
15427         (sha256_stream, sha224_stream): Use afalg_stream when available.
15428         * modules/crypto/sha256 (Files): Add the af_alg files.
15429         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15430         (Makefile.am): Add af_alg.c.
15432 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15434         sha1sum: Use AF_ALG when available.
15435         * lib/af_alg.h: New file.
15436         * lib/af_alg.c: New file.
15437         * lib/sha1.c: Include af_alg.h.
15438         (sha1_stream): Use afalg_stream when available.
15439         * m4/linux-if-alg.m4: New file.
15440         * modules/crypto/sha1 (Files): Add the new files.
15441         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15442         (Makefile.am): Add af_alg.c.
15444 2018-05-05  Bruno Haible  <bruno@clisp.org>
15446         all: Replace more http URLs by https URLs.
15447         * lib/localename.c: Use https: URL.
15448         * lib/timespec.h: Likewise.
15450 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15452         maint: port more modules to GCC 8
15453         * lib/dirname.h (base_name):
15454         * lib/exclude.h (new_exclude):
15455         * lib/xstrndup.h (xstrndup):
15456         Add malloc attribute.
15457         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15458         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15459         This pacifies GCC 8.
15460         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15461         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15463 2018-05-03  Bruno Haible  <bruno@clisp.org>
15465         Simplify code. Drop support for Borland C++ on Windows.
15466         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15467         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15468         'defined _WIN32'.
15469         * lib/canonicalize-lgpl.c: Likewise.
15470         * lib/classpath.c: Likewise.
15471         * lib/clean-temp.c: Likewise.
15472         * lib/csharpexec.c: Likewise.
15473         * lib/ctime.c: Likewise.
15474         * lib/dosname.h: Likewise.
15475         * lib/dup2.c: Likewise.
15476         * lib/errno.in.h: Likewise.
15477         * lib/error.c: Likewise.
15478         * lib/euidaccess.c: Likewise.
15479         * lib/execute.c: Likewise.
15480         * lib/fcntl.in.h: Likewise.
15481         * lib/fcntl.c: Likewise.
15482         * lib/filename.h: Likewise.
15483         * lib/findprog.c: Likewise.
15484         * lib/flock.c: Likewise.
15485         * lib/fopen.c: Likewise.
15486         * lib/freopen.c: Likewise.
15487         * lib/fstat.c: Likewise.
15488         * lib/fsync.c: Likewise.
15489         * lib/gc-gnulib.c: Likewise.
15490         * lib/get-rusage-data.c: Likewise.
15491         * lib/getaddrinfo.c: Likewise.
15492         * lib/getdelim.c: Likewise.
15493         * lib/getdtablesize.c: Likewise.
15494         * lib/gethostname.c: Likewise.
15495         * lib/getlogin.c: Likewise.
15496         * lib/getlogin_r.c: Likewise.
15497         * lib/getopt.c: Likewise.
15498         * lib/getpagesize.c: Likewise.
15499         * lib/getpass.c: Likewise.
15500         * lib/getrusage.c: Likewise.
15501         * lib/gettimeofday.c: Likewise.
15502         * lib/glob.c: Likewise.
15503         * lib/inttypes.in.h: Likewise.
15504         * lib/isapipe.c: Likewise.
15505         * lib/javaexec.c: Likewise.
15506         * lib/link.c: Likewise.
15507         * lib/localcharset.c: Likewise.
15508         * lib/localename.h: Likewise.
15509         * lib/localename.c: Likewise.
15510         * lib/localtime.c: Likewise.
15511         * lib/lseek.c: Likewise.
15512         * lib/mbsinit.c: Likewise.
15513         * lib/mkdir.c: Likewise.
15514         * lib/msvc-nothrow.h: Likewise.
15515         * lib/nanosleep.c: Likewise.
15516         * lib/nl_langinfo.c: Likewise.
15517         * lib/nonblocking.c: Likewise.
15518         * lib/nproc.c: Likewise.
15519         * lib/open.c: Likewise.
15520         * lib/openpty.c: Likewise.
15521         * lib/pathmax.h: Likewise.
15522         * lib/pipe-filter-aux.c: Likewise.
15523         * lib/pipe-filter-gi.c: Likewise.
15524         * lib/pipe-filter-ii.c: Likewise.
15525         * lib/pipe.c: Likewise.
15526         * lib/pipe2.c: Likewise.
15527         * lib/poll.c: Likewise.
15528         * lib/popen.c: Likewise.
15529         * lib/posix_openpt.c: Likewise.
15530         * lib/printf-parse.c: Likewise.
15531         * lib/progreloc.c: Likewise.
15532         * lib/putenv.c: Likewise.
15533         * lib/read.c: Likewise.
15534         * lib/relocatable.c: Likewise.
15535         * lib/rename.c: Likewise.
15536         * lib/same-inode.h: Likewise.
15537         * lib/secure_getenv.c: Likewise.
15538         * lib/select.c: Likewise.
15539         * lib/sethostname.c: Likewise.
15540         * lib/setlocale.c: Likewise.
15541         * lib/sigaction.c: Likewise.
15542         * lib/sigprocmask.c: Likewise.
15543         * lib/sleep.c: Likewise.
15544         * lib/spawn-pipe.h: Likewise.
15545         * lib/spawn-pipe.c: Likewise.
15546         * lib/spawni.c: Likewise.
15547         * lib/stat-time.h: Likewise.
15548         * lib/stat-w32.c: Likewise.
15549         * lib/stat.c: Likewise.
15550         * lib/stdio.in.h: Likewise.
15551         * lib/stdio-impl.h: Likewise.
15552         * lib/stdio-read.c: Likewise.
15553         * lib/stdio-write.c: Likewise.
15554         * lib/stdlib.in.h: Likewise.
15555         * lib/strerror_r.c: Likewise.
15556         * lib/strftime-fixes.c: Likewise.
15557         * lib/sys_stat.in.h: Likewise.
15558         * lib/sys_types.in.h: Likewise.
15559         * lib/sys_wait.in.h : Likewise.
15560         * lib/system-quote.h: Likewise.
15561         * lib/system-quote.c: Likewise.
15562         * lib/tmpdir.c: Likewise.
15563         * lib/tzset.c: Likewise.
15564         * lib/uname.c: Likewise.
15565         * lib/unistd.in.h: Likewise.
15566         * lib/utime.in.h: Likewise.
15567         * lib/utime.c: Likewise.
15568         * lib/utimecmp.c: Likewise.
15569         * lib/utimens.c: Likewise.
15570         * lib/vasnprintf.c: Likewise.
15571         * lib/vma-iter.h: Likewise.
15572         * lib/vma-iter.c: Likewise.
15573         * lib/wait-process.c: Likewise.
15574         * lib/wcsftime.c: Likewise.
15575         * lib/wctype.in.h: Likewise.
15576         * lib/write.c: Likewise.
15577         * tests/nap.h: Likewise.
15578         * tests/test-cloexec.c: Likewise.
15579         * tests/test-dup-safer.c: Likewise.
15580         * tests/test-dup2.c: Likewise.
15581         * tests/test-dup3.c: Likewise.
15582         * tests/test-fcntl.c: Likewise.
15583         * tests/test-get-rusage-data.c: Likewise.
15584         * tests/test-getaddrinfo.c: Likewise.
15585         * tests/test-getlogin.h: Likewise.
15586         * tests/test-isatty.c: Likewise.
15587         * tests/test-localename.c: Likewise.
15588         * tests/test-mbrtowc-w32.c: Likewise.
15589         * tests/test-nonblocking.c: Likewise.
15590         * tests/test-nonblocking-pipe-main.c: Likewise.
15591         * tests/test-nonblocking-socket-main.c: Likewise.
15592         * tests/test-nonblocking-socket.h: Likewise.
15593         * tests/test-pipe.c: Likewise.
15594         * tests/test-pipe2.c: Likewise.
15595         * tests/test-poll.c: Likewise.
15596         * tests/test-pthread_sigmask1.c: Likewise.
15597         * tests/test-select.h: Likewise.
15598         * tests/test-sethostname2.c: Likewise.
15599         * tests/test-sigprocmask.c: Likewise.
15600         * tests/test-spawn-pipe-child.c: Likewise.
15601         * tests/test-stat-time.c: Likewise.
15602         * tests/test-system-quote-main.c: Likewise.
15603         * tests/test-utimens-common.h: Likewise.
15604         * tests/test-wcrtomb-w32.c: Likewise.
15605         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15606         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15607         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15608         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15609         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15610         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15611         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15612         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15613         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15614         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15615         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15616         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15617         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15618         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15619         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15620         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15622 2018-05-02  Bruno Haible  <bruno@clisp.org>
15624         localename: Fix test failures on mingw.
15625         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15626         native Windows.
15627         (gl_locale_name_posix): Move code specific to native Windows here.
15628         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15629         Accept result without charset suffix, as it appears on mingw.
15631 2018-04-28  Paul Smith  <psmith@gnu.org>
15633         bootstrap: Avoid gnulib operations if not needed
15634         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15635         Set $gnulib_extra_files early so it can be overridden in .conf.
15636         Remove redundant --import flag from $gnulib_tool_options.
15637         Set $use_gnulib to false if no gnulib modules or files are needed.
15638         If $use_gnulib is false, don't do anything related to gnulib.
15639         A lot of this is just whitespace (indentation) changes.
15641 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15643         manywarnings: port to GCC 8.0
15644         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15645         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15646         fact that the GCC help message now mentions operands for
15647         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15648         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15649         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15650         and -Wunused-const-variable.
15651         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15652         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15653         -Wmissing-attributes, -Wmultistatement-macros,
15654         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15655         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15657 2018-04-24  Bruno Haible  <bruno@clisp.org>
15659         sys_socket: Make SO_REUSEPORT available across platforms.
15660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15661         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15662         * doc/posix-headers/sys_socket.texi: Mention the issue.
15663         * tests/test-poll.c (SO_REUSEPORT): Remove.
15664         * tests/test-select.h: Include <sys/socket.h>.
15665         (SO_REUSEPORT): Remove.
15666         * modules/select-tests (Depends-on): Add 'sys_socket'.
15668 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15670         localcharset: short-circuit the search for an alias on a Mac
15671         * lib/localcharset.c (get_charset_aliases): Add a tautological
15672         UTF-8 entry to speed up the search for this case.
15673         Most machines default to a UTF-8 locale nowadays, so begin the
15674         list of aliases with a dummy UTF-8 entry so it will be found
15675         immediately and a time-consuming search through the rest of
15676         the list is avoided.
15678 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15680         fts: add comment
15681         * lib/fts.c (fts_build): Explain why ==, not >.
15682         See remark by Bernhard Voelker in:
15683         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15685         fts: fix bug in find across filesystems
15686         This fixes a bug I introduced last summer.
15687         Problem reported by Kamil Dudka in:
15688         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15689         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15690         (leaf_optimization):
15691         New arg for file descriptor.  All callers changed.
15692         (fts_build): Check for whether inodes should be sorted
15693         before closing the directory.
15695 2018-04-07  Bruno Haible  <bruno@clisp.org>
15697         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15698         Reported by Genki Sky <sky@genki.is>.
15699         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15700         version 0.9.10 or newer.
15701         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15702         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15703         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15704         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15705         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15707 2018-04-07  Bruno Haible  <bruno@clisp.org>
15709         execute: Update comment.
15710         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15712 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15714         fts: treat CIFS like NFS
15715         Problem reported by Kamil Dudka in:
15716         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15717         * lib/fts.c (S_MAGIC_CIFS): New macro.
15718         (dirent_inode_sort_may_be_useful, leaf_optimization):
15719         Treat CIFS like NFS.
15721 2018-03-28  Bruno Haible  <bruno@clisp.org>
15723         c-stack: Fix possible build failure on some platforms.
15724         * lib/c-stack.c (die): Define whenever this function is referenced.
15726 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
15728         time_rz: fix workaround for Mac OS X 10.6 infloop
15729         Problems reported by Charles A. Roelli (Bug#27736#117).
15730         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
15731         Also, discard output, which clutters the 'configure' log.
15733 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15735         havelib: port to Solaris 10 /bin/sh
15736         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
15737         instead of '! test EXPR'.
15739 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15741         time_rz: work around Mac OS X 10.6 infloop
15742         * doc/posix-functions/localtime.texi:
15743         * doc/posix-functions/localtime_r.texi: Mention the bug.
15744         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
15745         better to fix localtime and localtime_r instead, but that would be
15746         more work and is not needed to fix the Emacs problem.
15747         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
15749 2018-03-24  Jim Meyering  <meyering@fb.com>
15751         test-version-etc.sh: don't use diff directly: use init.sh's compare
15752         We'd rather not sacrifice readable "diff -u" output even for
15753         "diff -c" output (not supported by busybox) or for even less
15754         readable ed-style "diff" output.  So use init.sh's compare function
15755         * tests/test-version-etc.sh: Source init.sh and add "." to path.
15756         Remove "./" from invocation of test-version-etc, so we use path.
15757         And s/diff/compare/.
15758         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
15759         to get init.sh.
15760         Prompted by Eric Blake's comments in
15761         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
15763 2018-03-24  Bruno Haible  <bruno@clisp.org>
15765         javacomp-script, javacomp: Add support for Java 10.
15766         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
15767         target-version 10.
15768         * lib/javaversion.h: Update comments.
15769         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15770         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15771         TARGET_VERSION_BOUND, target_version_index,
15772         corresponding_classfile_version): Accept source_version 10 and
15773         target_version 10.
15774         * lib/javacomp.h: Update comments accordingly.
15776 2018-03-24  Bruno Haible  <bruno@clisp.org>
15778         javacomp-script, javacomp: Update comments.
15779         * m4/javacomp.m4: Update comments regarding gcj.
15780         * lib/javacomp.h: Likewise.
15782 2018-03-24  Bruno Haible  <bruno@clisp.org>
15784         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
15785         * lib/javaversion.h: Update comments.
15786         * lib/javacomp.h: Likewise.
15787         * lib/javacomp.c (default_target_version, source_version_index,
15788         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
15789         "1.9".
15790         (TARGET_VERSION_BOUND): Bump to 9.
15791         (target_version_index, corresponding_classfile_version): Recognize "9"
15792         instead of "1.9".
15793         (get_source_version_for_javac): New function.
15794         (is_envjavac_nongcj_usable, is_javac_usable): Add
15795         source_version_for_javac argument.
15796         (compile_java_class): Determine and pass source_version_for_javac.
15797         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
15798         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
15799         appropriate.
15801 2018-03-23  Jim Meyering  <meyering@fb.com>
15803         test-version-etc.sh: port to diff without -c
15804         * tests/test-version-etc.sh: Don't use diff's -c option.
15805         This caused spurious test failure on Alpine Linux, which
15806         uses busybox's diff. Reported by Assaf Gordon in
15807         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
15809 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15811         c-stack: port to recent GCC build
15812         Problem reported by The Fireplace (Bug#30913).
15813         * lib/c-stack.c (die): Define only if used.
15815 2018-03-20  Bruno Haible  <bruno@clisp.org>
15817         euidaccess: Port to native Windows.
15818         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
15819         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
15821 2018-03-19  Bruno Haible  <bruno@clisp.org>
15823         javacomp: Add support for Java 7, 8, 9.
15824         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15825         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15826         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
15827         and target_version 1,7, 1.8, 1.9.
15828         * lib/javacomp.h: Update comments accordingly.
15830 2018-03-19  Bruno Haible  <bruno@clisp.org>
15832         javacomp-script: Add support for Java 9.
15833         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
15834         target-version 1.9.
15836 2018-03-16  Bruno Haible  <bruno@clisp.org>
15838         glob: Don't compile replacements on recent glibc systems.
15839         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
15840         REPLACE_GLOB is 0, include the system's <glob.h> and use
15841         _GL_CXXALIAS_SYS.
15842         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
15843         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
15844         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
15845         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
15846         Remove snippet/warn-on-use.
15847         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
15848         (Makefile.am): Create glob.h always. Update list of substitutions in
15849         glob.h. Don't depend on $(WARN_ON_USE_H).
15851 2018-03-16  Bruno Haible  <bruno@clisp.org>
15853         glob: Fix link error on native Windows.
15854         * modules/glob (Depends-on): Add 'lstat'.
15856 2018-03-15  Bruno Haible  <bruno@clisp.org>
15858         glob: Fix compilation error in C++ mode.
15859         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
15861 2018-03-15  Bruno Haible  <bruno@clisp.org>
15863         host-cpu-c-abi: Support for RISC-V CPU.
15864         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
15865         riscv32 and riscv64 ABIs.
15866         References:
15867         https://github.com/riscv/riscv-toolchain-conventions
15868         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
15869         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
15871 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15873         fflush: be more paranoid about libio.h change
15874         Suggested by Eli Zaretskii in:
15875         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
15876         * lib/fbufmode.c (fbufmode):
15877         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15878         (disable_seek_optimization, rpl_fflush):
15879         * lib/fpending.c (__fpending):
15880         * lib/fpurge.c (fpurge):
15881         * lib/freadable.c (freadable):
15882         * lib/freadahead.c (freadahead):
15883         * lib/freading.c (freading):
15884         * lib/freadptr.c (freadptr):
15885         * lib/freadseek.c (freadptrinc):
15886         * lib/fseeko.c (fseeko):
15887         * lib/fseterr.c (fseterr):
15888         * lib/fwritable.c (fwritable):
15889         * lib/fwriting.c (fwriting):
15890         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
15892 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
15894         maint: write-file-hooks -> before-save-hook
15895         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
15896         it's time to use the recommended replacement.
15897         Problem reported by Glenn Morris in:
15898         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
15899         * build-aux/announce-gen, build-aux/bootstrap:
15900         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
15901         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
15902         * build-aux/gnu-web-doc-update, build-aux/gnupload:
15903         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
15904         * build-aux/update-copyright, build-aux/useless-if-before-free:
15905         * build-aux/vc-list-files:
15906         Update hook usage for files where Gnulib is the canonical source.
15908 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15910         binary-io: pacify gcc -Wunused-parameter
15911         Problem reported by Reuben Thomas in:
15912         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
15913         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
15914         Use _GL_UNUSED where appropriate.
15916         fflush: adjust to glibc 2.28 libio.h removal
15917         Problem reported by Daniel P. Berrangé in:
15918         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
15919         * lib/fbufmode.c (fbufmode):
15920         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15921         (disable_seek_optimization, rpl_fflush):
15922         * lib/fpending.c (__fpending):
15923         * lib/fpurge.c (fpurge):
15924         * lib/freadable.c (freadable):
15925         * lib/freadahead.c (freadahead):
15926         * lib/freading.c (freading):
15927         * lib/freadptr.c (freadptr):
15928         * lib/freadseek.c (freadptrinc):
15929         * lib/fseeko.c (fseeko):
15930         * lib/fseterr.c (fseterr):
15931         * lib/fwritable.c (fwritable):
15932         * lib/fwriting.c (fwriting):
15933         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
15934         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
15935         Define if not already defined.
15937 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
15939         environ: fix link error on 32-bit Cygwin
15940         Problem reported for GNU Emacs by Ken Brown in:
15941         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
15942         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
15944 2018-02-24  Bruno Haible  <bruno@clisp.org>
15946         mbrtowc tests: Fix regression on glibc.
15947         Reported by Bernhard Voelker.
15948         * tests/test-mbrtowc.c (main): Fix expected value of wc.
15950 2018-02-24  Bruno Haible  <bruno@clisp.org>
15952         striconveha, uniconv/*: Avoid test failures on musl libc.
15953         * tests/iconvsupport.c: New file.
15954         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
15955         does not support the ISO-2022-JP-2 encoding.
15956         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15957         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15958         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15959         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15960         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15961         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15962         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
15963         (Makefile.am): Link test-striconveha with iconvsupport.o.
15964         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
15965         tests/iconvsupport.c.
15966         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
15967         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
15968         tests/iconvsupport.c.
15969         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
15970         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
15971         tests/iconvsupport.c.
15972         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
15973         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
15974         tests/iconvsupport.c.
15975         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
15976         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
15977         tests/iconvsupport.c.
15978         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
15979         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
15980         tests/iconvsupport.c.
15981         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
15983 2018-02-24  Bruno Haible  <bruno@clisp.org>
15985         localename: Add support for musl libc.
15986         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
15987         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
15988         on Linux platforms which define NL_LOCALE_NAME.
15990 2018-02-24  Bruno Haible  <bruno@clisp.org>
15992         mbrtowc tests: Don't make assumptions about the charset the C locale.
15993         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
15994         particular mapping in the C locale.
15996 2018-02-24  Bruno Haible  <bruno@clisp.org>
15998         ptsname_r: Don't expect that this function sets errno.
15999         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16000         from ptsname_r().
16001         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16003 2018-02-23  Bruno Haible  <bruno@clisp.org>
16005         xmalloca: pacify gcc -Wbad-function-cast
16006         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16008 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16010         nl_langinfo: pacify gcc -Wunused-function
16011         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16012         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16013         this case.  Without this change, I got a diagnostic when building
16014         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16016         same: pacify gcc -Wunused-variable
16017         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16018         Omit unused variable.
16020         malloca: pacify gcc -Wbad-function-cast
16021         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16022         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16023         To pacify GCC, I had to cast alloca’s result to some type other
16024         than void * before casting that to uintptr_t.
16026 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16028         utimecmp: new function utimecmpat
16029         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16030         Do not include utimens.h.
16031         (utimecmpat): New function, generalizing utimecmp.
16032         (utimecmp): Now a thin layer around utimecmpat.
16033         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16034         utimensat instead of on lstat and utimens.
16036         same: new function same_nameat
16037         * lib/same.c: Include fcntl.h.
16038         * lib/same.c (same_nameat): New function, generalizing same_name.
16039         (same_name): Now a thin layer around same_nameat.
16040         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16041         * modules/same (Depends-on): Depend on fstatat, openat.
16043 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16045         warnings: Add support for Objective C.
16046         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16047         macro.
16049 2018-02-17  Bruno Haible  <bruno@clisp.org>
16051         lock: Fix test-once1 crash on FreeBSD11.
16052         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16053         'pthread_create', not 'pthread_cancel'.
16055 2018-02-17  Bruno Haible  <bruno@clisp.org>
16057         lock: Add test of gl_once.
16058         * tests/test-once.c: New file.
16059         * modules/lock-tests (Files): Add it.
16060         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16062 2018-02-17  Bruno Haible  <bruno@clisp.org>
16064         thread: Fix compilation error on IRIX.
16065         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16066         needed; include it outside the C++ extern "C" {} block.
16067         * doc/posix-headers/pthread.texi: Mention the problem with
16068         pthread_atfork on IRIX.
16070 2018-02-04  Bruno Haible  <bruno@clisp.org>
16072         nl_langinfo: Override the system's nl_langinfo() when needed.
16073         Reported by Jim Meyering.
16074         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16075         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16077 2018-02-04  Bruno Haible  <bruno@clisp.org>
16079         signal-h, monetary, strings: Fix build failure in some cases.
16080         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16081         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16082         as delimiter in sed command, not '|'.
16083         * modules/monetary (Makefile.am): Likewise.
16084         * modules/strings (Makefile.am): Likewise.
16086 2018-02-03  Jim Meyering  <meyering@fb.com>
16088         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16089         * top/maint.mk (sc_file_system): Don't complain about
16090         "/proc/filesystems".
16092 2018-02-03  Bruno Haible  <bruno@clisp.org>
16094         stdlib: Fix compilation error on OpenIndiana.
16095         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16096         <sys/time.h>.
16097         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16098         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16100 2018-02-03  Bruno Haible  <bruno@clisp.org>
16102         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16103         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16104         and use $EGREP instead of 'grep -E'.
16105         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16106         'grep -E'.
16108 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16110         malloca: Add a compile-time verification.
16111         * lib/malloca.c (small_t): Verify that it is wide enough.
16112         * modules/malloca (Depends-on): Add verify.
16114 2018-02-02  Bruno Haible  <bruno@clisp.org>
16116         malloca: Add an argument check.
16117         Suggested by Paul Eggert.
16118         * lib/malloca.c (freea): Check against an invalid argument.
16120 2018-02-02  Bruno Haible  <bruno@clisp.org>
16122         localename: Add support for OpenIndiana.
16123         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16124         Solaris 11 variants with uselocale() but without getlocalename_l().
16126 2018-02-02  Bruno Haible  <bruno@clisp.org>
16128         malloca, xmalloca: Make multithread-safe.
16129         Reported by Florian Weimer <fweimer@redhat.com>.
16130         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16131         * lib/malloca.h (malloca): In the stack allocation case, return a
16132         pointer that is a multiple of 2 * sa_alignment_max.
16133         (sa_increment): Remove enum item.
16134         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16135         a pointer that is a multiple of 2 * sa_alignment_max.
16136         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16137         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16138         HASH_TABLE_SIZE, mmalloca_results): Remove.
16139         (small_t): New type.
16140         (mmalloca, free): Rewritten.
16141         * lib/malloca.valgrind: Remove file.
16142         * modules/malloca (Files): Remove it.
16143         (Depends-on): Remove verify.
16145 2018-01-31  Bruno Haible  <bruno@clisp.org>
16147         environ: Fix link error on 64-bit Cygwin.
16148         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16149         __declspec(dllimport) attribute.
16150         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16152 2018-01-30  Bruno Haible  <bruno@clisp.org>
16154         get-rusage-data: Add support for Minix 3.
16155         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16157 2018-01-30  Bruno Haible  <bruno@clisp.org>
16159         vma-iter: Add support for Minix 3.
16160         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16161         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16163 2018-01-27  Bruno Haible  <bruno@clisp.org>
16165         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16166         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16167         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16168         _HPUX_ALT_XOPEN_SOCKET_API.
16169         * modules/accept (Depends-on): Add 'extensions'.
16170         * modules/getpeername (Depends-on): Likewise.
16171         * modules/getsockname (Depends-on): Likewise.
16172         * modules/getsockopt (Depends-on): Likewise.
16173         * modules/recvfrom (Depends-on): Likewise.
16174         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16175         * doc/posix-functions/getpeername.texi: Likewise.
16176         * doc/posix-functions/getsockname.texi: Likewise.
16177         * doc/posix-functions/getsockopt.texi: Likewise.
16178         * doc/posix-functions/recvfrom.texi: Likewise.
16180 2018-01-27  Bruno Haible  <bruno@clisp.org>
16182         getsockname tests: More tests.
16183         * tests/test-getsockname.c (open_server_socket): New function, mostly
16184         copied from test-poll.c.
16185         (main): Check that getsockname fills in addr.
16186         * modules/getsockname-tests (Depends-on): Add the necessary
16187         dependencies.
16188         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16190 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16192         manywarnings: fix maintainer comment
16193         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16194         it does not mistakenly think that ‘-1)’ is an option.
16196 2018-01-26  Bruno Haible  <bruno@clisp.org>
16198         langinfo: Fix last commit.
16199         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16200         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16202 2018-01-24  Bruno Haible  <bruno@clisp.org>
16204         langinfo, nl_langinfo: Add support for alternative month names.
16205         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16206         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16207         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16208         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16209         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16210         * doc/posix-functions/nl_langinfo.texi: Likewise.
16212 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16214         Merge strftime.c changes from glibc
16215         This incorporates:
16216         2017-11-14 [BZ #10871] Implement alternative month names
16217         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16218         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16219         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16220         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16221         Use locale_t, not __locale_t.
16222         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16223         (__strftime_internal): Add support for alternate months.
16225 2018-01-23  Bruno Haible  <bruno@clisp.org>
16227         doc: Mention another prerequisite for using Gnulib.
16228         Reported at <https://stackoverflow.com/questions/48378214/>.
16229         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16230         AC_CONFIG_HEADERS.
16232 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16234         build: GuixSD doesn't have /bin/bash
16235         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16237 2018-01-21  Bruno Haible  <bruno@clisp.org>
16239         Avoid test failures on Microsoft Windows Subsystem for Linux.
16240         * tests/test-fcntl.c (main): Allow a different errno.
16241         * tests/test-rename.h (test_rename): Likewise.
16242         * tests/test-renameat.c (main): Likewise.
16243         * tests/test-renameat2.c (main): Likewise.
16245 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16247         filenamecat: make base a suffix of result
16248         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16249         (mfile_name_concat): Always make BASE a suffix of the result, as
16250         cp expects this.  To implement this, separate with '.' instead of
16251         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16252         * tests/test-filenamecat.c (main): Adjust tests to match
16253         current behavior.  Check that BASE_IN_RESULT points to
16254         a copy of BASE and is a suffix of the resultk, and that DIR
16255         is a prefix of the result that is no longer than the prefix
16256         indicated by BASE_IN_RESULT.
16258 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16260         update-copyright: Handle use of ©
16261         * build-aux/update-copyright ($circle_c_re): Update regex to
16262         handle use of © in headers.
16264 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16266         Fix -Wundef warning in user-included header lib/cdefs.h.
16267         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16269 2018-01-04  Bruno Haible  <bruno@clisp.org>
16271         pthread_sigmask: Avoid compilation error on mingw.
16272         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16273         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16274         macro.
16276 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16278         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16279         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16280         Suggested by Bob Proulx (Bug#29968).
16281         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16283 2018-01-02  Eric Blake  <eblake@redhat.com>
16285         stat-time: silence -Wunused-parameter regression
16286         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16287         Prefer attribute over cast-to-void.
16288         (stat_time_normalize): Mark st as potentially unused.
16290 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16292         test-framework-sh: avoid netstat
16293         Problem reported by Kristýna Streitová (Bug#29947).
16294         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16295         deprecated on SuSE and it's not that important anyway.
16297 2018-01-01  Jim Meyering  <meyering@fb.com>
16299         update-copyright: add code to handle more special cases
16300         After running "make update-copyright" this year, five files
16301         required additional manual changes.  Automate those adjustments
16302         for next year.
16303         * Makefile (_year_and_prev): Define.
16304         (update-copyright): Add perl commands to induce this year's post-
16305         update-copyright adjustments.
16307 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16309         version-etc: new year
16310         * build-aux/gendocs.sh (version):
16311         * doc/gendocs_template:
16312         * doc/gendocs_template_min:
16313         * doc/gnulib.texi:
16314         * lib/version-etc.c (COPYRIGHT_YEAR):
16315         Update copyright dates by hand in templates and the like.
16317         maint: fix 'make update-copyright'
16318         * Makefile (update-copyright): Adjust to 2016-11-23 change
16319         to config/srclist-update, which changed the format of srclist.txt.
16321 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16323         chdir-safer: remove this module
16324         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16325         * NEWS: Document removal.
16326         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16327         * modules/chdir-safer: Remove these files.
16329 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16331         Add cross-compilation results for GNU/Hurd.
16332         * m4/calloc.m4: Add GNU/Hurd guess.
16333         * m4/cbrtl.m4: Likewise.
16334         * m4/ceil.m4: Likewise.
16335         * m4/ceilf.m4: Likewise.
16336         * m4/ceill.m4: Likewise.
16337         * m4/chown.m4: Likewise.
16338         * m4/duplocale.m4: Likewise.
16339         * m4/exp2l.m4: Likewise.
16340         * m4/expm1.m4: Likewise.
16341         * m4/fchdir.m4: Likewise.
16342         * m4/floor.m4: Likewise.
16343         * m4/floorf.m4: Likewise.
16344         * m4/fmod.m4: Likewise.
16345         * m4/fmodf.m4: Likewise.
16346         * m4/fmodl.m4: Likewise.
16347         * m4/getcwd.m4: Likewise.
16348         * m4/getgroups.m4: Likewise.
16349         * m4/gettimeofday.m4: Likewise.
16350         * m4/hypot.m4: Likewise.
16351         * m4/hypotf.m4: Likewise.
16352         * m4/hypotl.m4: Likewise.
16353         * m4/link-follow.m4: Likewise.
16354         * m4/link.m4: Likewise.
16355         * m4/linkat.m4: Likewise.
16356         * m4/log.m4: Likewise.
16357         * m4/log10.m4: Likewise.
16358         * m4/log10f.m4: Likewise.
16359         * m4/log1p.m4: Likewise.
16360         * m4/log1pf.m4: Likewise.
16361         * m4/log1pl.m4: Likewise.
16362         * m4/log2.m4: Likewise.
16363         * m4/log2f.m4: Likewise.
16364         * m4/logf.m4: Likewise.
16365         * m4/lstat.m4: Likewise.
16366         * m4/malloc.m4: Likewise.
16367         * m4/mbrlen.m4: Likewise.
16368         * m4/mbrtowc.m4: Likewise.
16369         * m4/mkdir.m4: Likewise.
16370         * m4/mkfifo.m4: Likewise.
16371         * m4/mknod.m4: Likewise.
16372         * m4/mkstemp.m4: Likewise.
16373         * m4/modf.m4: Likewise.
16374         * m4/modff.m4: Likewise.
16375         * m4/modfl.m4: Likewise.
16376         * m4/printf.m4: Likewise.
16377         * m4/pselect.m4: Likewise.
16378         * m4/ptsname.m4: Likewise.
16379         * m4/putenv.m4: Likewise.
16380         * m4/readlink.m4: Likewise.
16381         * m4/realloc.m4: Likewise.
16382         * m4/remainder.m4: Likewise.
16383         * m4/remainderf.m4: Likewise.
16384         * m4/remainderl.m4: Likewise.
16385         * m4/rmdir.m4: Likewise.
16386         * m4/round.m4: Likewise.
16387         * m4/roundf.m4: Likewise.
16388         * m4/roundl.m4: Likewise.
16389         * m4/select.m4: Likewise.
16390         * m4/setenv.m4: Likewise.
16391         * m4/signbit.m4: Likewise.
16392         * m4/sleep.m4: Likewise.
16393         * m4/stat.m4: Likewise.
16394         * m4/strerror.m4: Likewise.
16395         * m4/strtok_r.m4: Likewise.
16396         * m4/symlink.m4: Likewise.
16397         * m4/symlinkat.m4: Likewise.
16398         * m4/trunc.m4: Likewise.
16399         * m4/truncf.m4: Likewise.
16400         * m4/truncl.m4: Likewise.
16401         * m4/tzset.m4: Likewise.
16402         * m4/ungetc.m4: Likewise.
16403         * m4/usleep.m4: Likewise.
16404         * m4/wcwidth.m4: Likewise.
16406 2017-12-28  Bruno Haible  <bruno@clisp.org>
16408         gnulib-tool: Make --conditional-dependencies work better.
16409         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16410         * gnulib-tool (Options): Don't reject the combination of
16411         --conditional-dependencies with --with-tests.
16412         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16413         Don't reference $modules.
16414         (func_import, func_create_testdir): Pass it.
16416 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16418         regex: use re_malloc etc. consistently
16419         Problem and original patch reported by Arnold Robbins in:
16420         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16421         * lib/regcomp.c (re_comp):
16422         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16423         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16425 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16426             Paul Eggert  <eggert@cs.ucla.edu>
16428         glob: Silence warning about void pointer arithmetic.
16429         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16430         arithmetic.
16432 2017-12-15  Bruno Haible  <bruno@clisp.org>
16434         spawn-pipe: Silence a clang warning.
16435         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16436         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16437         in this file.
16439 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16441         explicit_bzero: port to macOS + Clang 9.0.0
16442         Problem reported by Marcus Johnson (Bug#29658).
16443         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16444         Don’t use asm.
16446 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16448         doc: Improve explanation of supporting relocatable libraries.
16449         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16450         properly how to build the relocatable module for
16451         libraries. (Method and example code from Bruno Haible.)
16453 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16455         doc: Use better texinfo tags in a few cases.
16456         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16457         instead of @samp in a few places.
16459 2017-12-11  Bruno Haible  <bruno@clisp.org>
16461         unistr/base: Update comment.
16462         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16464 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16466         test-faccessat.c: unlink temp file to avoid subsequent test failure
16467         * tests/test-faccessat.c: Remove the file to avoid failure
16468         to open the file on subsequent runs due to being created
16469         with no permissions.
16471 2017-12-10  Bruno Haible  <bruno@clisp.org>
16473         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16474         * doc/gnulib-tool.texi (Modified build rules): New node.
16476 2017-12-10  Bruno Haible  <bruno@clisp.org>
16478         doc: Tweak wording.
16479         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16480         "binaries".
16482 2017-12-05  Sam Steingold  <sds@gnu.org>
16483             Bruno Haible  <bruno@clisp.org>
16485         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16486         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16487         AC_EGREP_CPP pattern.
16489 2017-12-03  Bruno Haible  <bruno@clisp.org>
16491         all: Replace more http URLs by https URLs.
16492         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16493         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16494         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16495         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16497 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16499         Port better to CentOS 5
16500         Problems reported by Tom G. Christensen in:
16501         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16502         * doc/glibc-functions/strverscmp.texi (strverscmp):
16503         Document strverscmp bug with glibc 2.9 and earlier.
16504         * doc/posix-functions/tzset.texi (tzset):
16505         Document that TZ with angle brackets is POSIX-2001 and later.
16506         * tests/test-nstrftime.c: Include unistd.h.
16507         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16508         (TZ): Use it to skip tests with angle brackets in TZ,
16509         for older systems.
16511         stat: add missing module dependencies
16512         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16513         Add stat-time.
16515 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16517         stat: fix compilation failure on macOS Sierra
16518         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16519         https://savannah.gnu.org/bugs/?52546
16520         * lib/stat.c: Add missing include of stat-time.h.
16522 2017-11-28  Jim Meyering  <meyering@fb.com>
16524         test-faccessat.c: correct BASE definition to avoid parallel test failure
16525         * tests/test-faccessat.c (BASE): Define using this file's name, not
16526         that of test-lstat.c.  Using the latter caused this test to fail
16527         sometimes when run concurrently with test-lstat.
16529 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16531         unicase: fix VPATH build
16532         * modules/unicase/special-casing (Makefile.am): Ensure that the
16533         base directory is created when generating
16534         unicase/special-casing.h.
16536 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16538         libunistring: update to Unicode 9.0.0
16539         * lib/gen-uni-tables.c (fill_properties): Recognize
16540         Sentence_Terminal and Prepended_Concatenation_Mark.
16541         (is_property_default_ignorable_code_point): Exclude U+08E2.
16542         (fill_arabicshaping): Allow missing whitespace when parsing;
16543         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16544         (output_blocks): Increase the element size of the level1 table to
16545         accommodate more blocks.
16546         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16547         Update each class according to the standard.
16548         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16549         E_Base_GAZ characters.
16550         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16551         Glue_After_Zwj, and E_Base_GAZ characters.
16552         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16553         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16554         enum value.
16555         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16556         value.
16557         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16558         LBP_ZWJ, LBP_EB, and LBP_EM.
16559         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16560         enum value.
16561         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16562         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16563         declaration.
16564         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16565         (uniwbrk_table): Implement WB14.
16566         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16567         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16568         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16569         uc-is-grapheme-break.
16570         * modules/unigbrk/uc-grapheme-breaks: New module.
16571         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16572         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16573         enum value.
16574         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16575         * lib/unigbrk/u-grapheme-breaks.h: New file.
16576         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16577         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16578         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16579         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16580         29.
16581         * tests/unigbrk/test-uc-gbrk-prop.c
16582         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16583         GBP_GAZ, and GBP_EBG.
16584         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16585         * tests/unigbrk/test-uc-is-grapheme-break.c
16586         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16587         GBP_GAZ, and GBP_EBG.
16588         (main): Skip unsupported rules involving 3 or more characters,
16589         namely GB10, GB12, and GB13.
16590         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16591         * all generated files under lib/uni* and tests/uni*: Regenerate.
16592         * all the affected modules: Bump version.
16594 2017-11-26  Bruno Haible  <bruno@clisp.org>
16596         strfmon_l: Fix compilation error with glibc 2.5.
16597         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16598         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16599         * lib/monetary.in.h: Include also <locale.h>.
16601 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16603         posixtm: remove PDS_LEADING_YEAR
16604         This changes the API slightly, in a hopefully-innocuous way.
16605         Without this change the code had undefined behavior when a
16606         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16607         Problem reported by Pádraig Brady in:
16608         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16609         * NEWS: Mention this.
16610         * lib/posixtm.c (posix_time_parse): Treat the absence of
16611         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16612         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16613         present, but define it as zero, for compatibility with existing
16614         source code).  All other PDS_* values moved up.
16615         * tests/test-posixtm.c (LY): New macro.
16616         (T): Use it.  Do not expect a particular numeric encoding
16617         for PDS_CENTURY etc.
16619 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16621         stat: work around Solaris bug with tv_nsec < 0
16622         * doc/posix-functions/fstat.texi (fstat):
16623         * doc/posix-functions/fstatat.texi (fstatat):
16624         * doc/posix-functions/lstat.texi (lstat):
16625         * doc/posix-functions/stat.texi (stat):
16626         Mention Solaris 11 bug.
16627         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16628         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16629         * lib/lstat.c (rpl_lstat):
16630         * lib/stat.c (rpl_stat):
16631         Normalize resulting timestamps.
16632         * lib/fstatat.c (normal_fstatat): New function.
16633         (rpl_fstatat): Use it.
16634         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16635         (stat_time_normalize): New function.
16636         * m4/fstat.m4 (gl_FUNC_FSTAT):
16637         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16638         * m4/lstat.m4 (gl_FUNC_LSTAT):
16639         * m4/stat.m4 (gl_FUNC_STAT):
16640         Replace on Solaris.
16641         * modules/fstat (Depends-on):
16642         * modules/fstatat (Depends-on):
16643         Add stat-time.
16644         * modules/stat-time (Depends-on): Add errno, intprops.
16646 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16648         regex: merge from glibc
16649         * lib/regcomp.c (init_word_char): Add comments.
16651 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16653         regex: merge from glibc
16654         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16655         * lib/regex_internal.h (internal_function): Remove.
16656         All uses removed.
16658 2017-11-20  Bruno Haible  <bruno@clisp.org>
16660         crypto/gc-sm3: Fix buffer overrun.
16661         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16662         Reported by Coverity.
16664 2017-11-12  Jim Meyering  <meyering@fb.com>
16666         maint: shorten https://lists.gnu.org/archive/html/... links
16667         Each /archive/html/ part can be replace with /r/.
16668         Run this to induce the change:
16669         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16670         * ChangeLog: Perform that substitution.
16671         * Makefile: Likewise.
16672         * STATUS-libposix: Likewise.
16673         * build-aux/bootstrap: Likewise.
16674         * doc/maintain.texi: Likewise.
16675         * gnulib-tool: Likewise.
16676         * lib/allocator.h: Likewise.
16677         * lib/argp-ba.c: Likewise.
16678         * lib/argp-pv.c: Likewise.
16679         * lib/canon-host.c: Likewise.
16680         * lib/canonicalize-lgpl.c: Likewise.
16681         * lib/float.in.h: Likewise.
16682         * lib/fstat.c: Likewise.
16683         * lib/getdelim.c: Likewise.
16684         * lib/getprogname.c: Likewise.
16685         * lib/glthread/thread.h: Likewise.
16686         * lib/intprops.h: Likewise.
16687         * lib/mbsrtowcs-state.c: Likewise.
16688         * lib/safe-read.c: Likewise.
16689         * lib/signal.in.h: Likewise.
16690         * lib/stat.c: Likewise.
16691         * lib/stdbool.in.h: Likewise.
16692         * lib/stdio-impl.h: Likewise.
16693         * lib/stdio.in.h: Likewise.
16694         * lib/sysexits.in.h: Likewise.
16695         * lib/timespec.h: Likewise.
16696         * lib/wcsrtombs-state.c: Likewise.
16697         * m4/alloca.m4: Likewise.
16698         * m4/extern-inline.m4: Likewise.
16699         * m4/fstatat.m4: Likewise.
16700         * m4/gnulib-common.m4: Likewise.
16701         * m4/lib-ignore.m4: Likewise.
16702         * m4/printf.m4: Likewise.
16703         * m4/regex.m4: Likewise.
16704         * m4/stat-size.m4: Likewise.
16705         * m4/std-gnu11.m4: Likewise.
16706         * m4/stdbool.m4: Likewise.
16707         * m4/sys_types_h.m4: Likewise.
16708         * m4/threadlib.m4: Likewise.
16709         * m4/vararrays.m4: Likewise.
16710         * pygnulib/GLImport.py: Likewise.
16711         * tests/test-exp.h: Likewise.
16712         * tests/test-exp2.h: Likewise.
16713         * tests/test-expm1.h: Likewise.
16714         * tests/test-fflush2.c: Likewise.
16715         * tests/test-getopt_long.h: Likewise.
16716         * tests/test-intprops.c: Likewise.
16717         * tests/test-log.h: Likewise.
16718         * tests/test-log10.h: Likewise.
16719         * tests/test-log1p.h: Likewise.
16720         * tests/test-log2.h: Likewise.
16721         * tests/test-printf-posix.h: Likewise.
16722         * tests/test-regex.c: Likewise.
16723         * tests/test-snprintf-posix.h: Likewise.
16724         * tests/test-sprintf-posix.h: Likewise.
16725         * tests/test-stdalign.c: Likewise.
16726         * tests/test-stdbool.c: Likewise.
16727         * tests/test-vasnprintf-posix.c: Likewise.
16728         * tests/test-vasprintf-posix.c: Likewise.
16729         * top/maint.mk: Likewise.
16731 2017-11-12  Bruno Haible  <bruno@clisp.org>
16733         faccessat: Make the last change more robust.
16734         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
16735         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
16737 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16739         faccessat: port to macOS (Bug#29231)
16740         macOS faccessat has the same bug that lstat does: if the file
16741         name ends in '/' it ignores the trailing slash.
16742         Problem reported for Emacs by Vincent Zhang.
16743         * doc/posix-functions/faccessat.texi (faccessat): Document this.
16744         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
16745         around the initial includes.  Include errno.h, string.h, sys/stat.h.
16746         (orig_faccessat) [HAVE_FACCESSAT]: New function.
16747         Include "unistd.h" after defining it.
16748         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
16749         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
16750         Handle in the usual way.
16751         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
16752         lstat dereferences symlinks, since faccessat is likely to
16753         have the same problem.
16754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
16755         * modules/faccessat (Depends-on): Add fstatat.
16756         Depend if REPLACE_FACCESSAT is 1, too.
16757         (configure.ac): Link if REPLACE_FACCESSAT is 1.
16758         * modules/faccessat-tests (Depends-on): Add symlink.
16759         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
16760         * tests/test-faccessat.c (main): Test for the bug.
16762 2017-11-11  Bruno Haible  <bruno@clisp.org>
16764         getprogname: Fix compilation error on IRIX.
16765         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
16766         'namesize'.
16768 2017-11-11  Bruno Haible  <bruno@clisp.org>
16770         year2038: Tweak last patch.
16771         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
16773 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16775         year2038: be more insistent about 64-bit time_t
16776         Applications requiring access to arbitrary files should not be
16777         built with 32-bit time_t on hosts that have 64-bit timestamps,
16778         as this can lead to real trouble at runtime.
16779         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
16780         Check on all systems, not just MinGW.  Use a heuristic involving
16781         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
16782         output a failure or just a warning, to make it more likely that
16783         builders will select 64-bit time_t.
16785 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16787         havelib: fix typo in previous change
16788         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
16790         Don’t use AC_EGREP_CPP if affected by CFLAGS
16791         * m4/float_h.m4 (gl_FLOAT_H):
16792         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
16793         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
16794         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
16795         * m4/year2038.m4 (gl_YEAR2038):
16796         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
16797         likely to be affected by the choice of CFLAGS, since CFLAGS are
16798         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
16799         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
16801         fstatat: pacify GCC on unusual platform
16802         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
16803         Omit, as it’s unused in this case.
16805 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16807         timespec: prefer ‘assume’ to ‘assure’
16808         This avoids some runtime tests.  The rest of the module makes
16809         similar assumptions and there is little point to testing here.
16810         * lib/timespec.h: Include verify.h instead of assure.h.
16811         (timespec_cmp): Use ‘assume’, not ‘assure’.
16812         Also, remove an unnecessary cast to ‘int’, as lots of other
16813         code in this module now causes -Wconversion to complain, and
16814         this is a problem with -Wconversion not with the code.
16816         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
16818         Port recent gnulib-tool change to Dash
16819         * gnulib-tool (func_create_testdir): Don't assume that the shell
16820         retokenizes after expanding "$@" inside the call to
16821         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
16823 2017-10-27  Jim Meyering  <meyering@fb.com>
16825         timespec.h: use "assure" to avoid a spurious warning
16826         * lib/timespec.h: Include "assure.h" and use it to help
16827         gcc7's -Wstrict-overflow avoid a false positive warning
16828         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
16829         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
16830         * modules/timespec (Depends-on): Add assure.
16832 2017-10-29  Bruno Haible  <bruno@clisp.org>
16834         Avoid several test failures with traditional locales on Haiku.
16835         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
16836         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
16837         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
16838         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
16839         LOCALE_ZH_CN=none.
16841 2017-10-29  Bruno Haible  <bruno@clisp.org>
16843         strerror_r-posix: Fix behaviour and test failure on Haiku.
16844         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
16845         are positive. Work around return value 0 instead of ERANGE on Haiku.
16846         For unknown error numbers, use a format string consistent with perror().
16847         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
16848         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
16849         are positive.
16851 2017-10-29  Bruno Haible  <bruno@clisp.org>
16853         get-rusage-data: Avoid crash on Haiku.
16854         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
16856 2017-10-29  Bruno Haible  <bruno@clisp.org>
16858         get-rusage-as: Avoid crash on Haiku.
16859         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
16861 2017-10-29  Bruno Haible  <bruno@clisp.org>
16863         ilogbl: Ensure replacement on Haiku.
16864         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
16865         REPLACE_ILOGBL if ilogbl does not work.
16866         (gl_FUNC_ILOGBL_WORKS): New macro.
16867         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
16868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
16869         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
16870         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
16871         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
16873 2017-10-29  Bruno Haible  <bruno@clisp.org>
16875         expl: Ensure replacement on Haiku.
16876         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
16877         zero.
16878         * doc/posix-functions/expl.texi: Mention the Haiku problem.
16880 2017-10-29  Bruno Haible  <bruno@clisp.org>
16882         math: Fix test failure on Haiku.
16883         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
16884         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
16885         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16886         * doc/posix-headers/math.texi: Mention the Haiku problem.
16888 2017-10-29  Bruno Haible  <bruno@clisp.org>
16890         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
16891         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
16892         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
16894 2017-10-29  Bruno Haible  <bruno@clisp.org>
16896         crypto/*: Verify that the header file is self-contained.
16897         * tests/test-gc-*.c: Include the module's header file immediately after
16898         <config.h>.
16899         * tests/test-hmac-*.c: Likewise.
16900         * tests/test-arcfour.c: Likewise.
16901         * tests/test-arctwo.c: Likewise.
16902         * tests/test-des.c: Likewise.
16903         * tests/test-md2.c: Likewise.
16904         * tests/test-md4.c: Likewise.
16905         * tests/test-md5.c: Likewise.
16906         * tests/test-rijndael.c: Likewise.
16907         * tests/test-sha1.c: Likewise.
16908         * tests/test-sm3.c: Likewise.
16910 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16911             Bruno Haible  <bruno@clisp.org>
16913         crypto/gc: fix build failure with -Werror=suggest-attribute=const
16914         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
16916 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16918         New module: crypto/gc-sm3
16919         * lib/gc.h: Declare SM3-related stuffs.
16920         * lib/gc-gnulib.c: Support sm3 in internal functions.
16921         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
16922         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
16923         * modules/crypto/gc-sm3: Define gc-sm3 module.
16924         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
16925         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
16926         * MODULES.html.sh: List gc-sm3 module.
16928 2017-10-29  Bruno Haible  <bruno@clisp.org>
16930         random, random_r: Mention different prototypes on Haiku.
16931         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
16932         * doc/glibc-functions/random_r.texi: Likewise.
16933         * doc/glibc-functions/initstate_r.texi: Likewise.
16934         * doc/glibc-functions/setstate_r.texi: Likewise.
16936 2017-10-28  Bruno Haible  <bruno@clisp.org>
16938         posix_spawn: Avoid spurious message in configure output.
16939         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
16940         'cmp' command.
16942 2017-10-28  Bruno Haible  <bruno@clisp.org>
16944         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
16945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
16946         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
16948 2017-10-28  Bruno Haible  <bruno@clisp.org>
16950         ioctl: Override non-POSIX declaration on Haiku.
16951         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
16952         * lib/sys_ioctl.in.h: Add comment about Haiku.
16953         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
16954         * doc/glibc-headers/sys_ioctl.texi: Likewise.
16956 2017-10-28  Bruno Haible  <bruno@clisp.org>
16958         crypto/sm3: Add overview documentation to the .h file.
16959         * lib/sm3.h: Add comments.
16961 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16963         New module: crypto/sm3
16964         This new module can be used to compute SM3 message digest of files or
16965         memory blocks according to the specification GM/T 004-2012
16966         Cryptographic Hash Algorithm SM3, published by State Cryptography
16967         Administration, China.
16968         The official SM3 cryptographic hash algorithm specification is
16969         available at
16970         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
16971         * lib/sm3.h: Declare the APIs of sm3 module.
16972         * lib/sm3.c: Implement SM3 hash algorithm.
16973         * m4/sm3.m4: m4 file for sm3 module.
16974         * modules/crypto/sm3: Define sm3 module.
16975         * tests/test-sm3.c: Implement SM3 test case.
16976         * modules/crypto/sm3-tests: Define sm3 test module.
16977         * MODULES.html.sh: List sm3 module.
16979 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16981         gc-libgcrypt: fix undefined enum type in switch statement
16982         Resolve the following build failure:
16983         lib/gc-libgcrypt.c: In function 'gc_hash_open':
16984         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
16985         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
16986              case 0:
16987              ^~~~
16988         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
16989         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
16991 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
16993         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
16994         Resolve the following build failure:
16995         lib/gc-libgcrypt.c: In function 'gc_hash_read':
16996         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
16997         in signedness [-Werror=pointer-sign]
16998             digest = gcry_md_read (ctx->gch, 0);
16999                    ^
17000         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17002 2017-10-26  Bruno Haible  <bruno@clisp.org>
17004         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17005         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17006         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17008 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17010         glob: fix another heap buffer overflow
17011         Problem reported by Tim Rühsen in:
17012         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17013         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17015 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17017         quotearg: pacify compiler re unsigned
17018         * lib/quotearg.c (quotearg_n_options):
17019         Rewrite to avoid diagnostic from overly-picky compiler.
17020         Problem reported by Sami Kerola in:
17021         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17023         glob: fix heap buffer overflow
17024         * lib/glob.c (glob): Fix off-by-one error introduced into
17025         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17026         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17027         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17028         Fix suggested by Bruno Haible.
17030 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17032         glob: pacify fuzzer for mempcpy
17033         Problem reported by Tim Rühsen in:
17034         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17035         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17037 2017-10-12  Bruno Haible  <bruno@clisp.org>
17039         doc: Fix syntax error (regression from 2017-10-03).
17040         * doc/posix-functions/strncpy.texi: Fix syntax error.
17042 2017-10-12  Bruno Haible  <bruno@clisp.org>
17044         doc: Update for Solaris 11.3.
17045         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17046         mention Solaris 11.3.
17047         * m4/log2.m4: Fix comments.
17048         * m4/log2f.m4: Likewise.
17049         * m4/printf.m4: Update comments.
17050         * m4/rename.m4: Likewise.
17051         * m4/strncat.m4: Likewise.
17053         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17055 2017-10-10  Bruno Haible  <bruno@clisp.org>
17057         doc: Improve doc about ioctl.
17058         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17059         prototype.
17061 2017-10-09  Bruno Haible  <bruno@clisp.org>
17063         wcwidth: Don't use obsolete syntax of 'test'.
17064         Reported by Eric Blake.
17065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17066         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17068 2017-10-09  Bruno Haible  <bruno@clisp.org>
17070         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17071         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17072         and Daniel P. Berrange <berrange@redhat.com>.
17073         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17074         on glibc systems. The getopt-pfx-core.h file declares exactly what
17075         unistd.h needs, nothing more.
17077 2017-10-08  Bruno Haible  <bruno@clisp.org>
17079         vma-iter: Improve support for FreeBSD.
17080         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17081         vma_iterate.
17082         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17084 2017-10-08  Bruno Haible  <bruno@clisp.org>
17086         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17087         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17089 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17091         test-framework-sh: Fix 'invalid path dir' error.
17092         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17093         separator between a drive letter and directory parts.
17094         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17095         treated as an invalid path dir.
17096         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17097         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17098         instead of hard coded ':'.
17100 2017-10-07  Bruno Haible  <bruno@clisp.org>
17102         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17103         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17104         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17105         (rof_open): On Linux, do multiple read() calls and make sure
17106         MIN_LEFTOVER bytes are left when read() returns.
17108 2017-10-07  Bruno Haible  <bruno@clisp.org>
17110         vma-iter: Improve support for GNU/Hurd.
17111         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17112         API, not the /proc file system.
17114 2017-10-07  Bruno Haible  <bruno@clisp.org>
17116         test-framework-sh: Don't require bash on Windows and OS/2.
17117         Reported by KO Myung-Hun.
17118         * tests/test-init.sh: Use 'shopt' only when running in bash.
17120 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17122         wcwidth: check a macro version of wcwidth () as well
17123         * lib/wchar.in.h: Revert commit from 2016-01-14.
17124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17126 2017-10-06  Bruno Haible  <bruno@clisp.org>
17128         getopt-posix: Clarify copyright header.
17129         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17130         * lib/getopt-pfx-core.h: Likewise.
17131         * lib/getopt-pfx-ext.h: Likewise.
17132         * lib/getopt-cdefs.in.h: Likewise.
17134 2017-10-03  Bruno Haible  <bruno@clisp.org>
17136         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17137         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17138         gl_HOST_CPU_C_ABI.
17140 2017-10-03  Bruno Haible  <bruno@clisp.org>
17142         doc: warn about misuse of strncpy and wcsncpy.
17143         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17144         memory allocation.
17145         * doc/posix-functions/wcscpy.texi: Likewise.
17146         * doc/posix-functions/strncpy.texi: Describe what this function is not
17147         useful for.
17148         * doc/posix-functions/wcsncpy.texi: Likewise.
17150 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17152         fsuage: fix typo in previous change
17153         * lib/fsusage.c: Remove stray include of full-read.h.
17154         Problem reported by Sam Steingold for macOS (Bug#28669).
17156 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17158         fsusage: remove SVR2 support
17159         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17160         and its code was getting in the way of use of this module by
17161         Emacs, which has its own ‘read’ function anyway.
17162         * lib/fsusage.c: Do not include sys/filsys.h.
17163         (get_fs_usage): Remove SVR2-specific code.
17164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17165         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17166         * modules/fsusage (Depends-on): Do not depend on full-read.
17168         Simplify autoupdate of licenses
17169         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17170         place.
17172 2017-10-01  Bruno Haible  <bruno@clisp.org>
17174         vma-iter: Add support for GNU/Hurd.
17175         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17176         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17178 2017-09-30  Bruno Haible  <bruno@clisp.org>
17180         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17181         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17182         fail when module 'largefile' is in use.
17183         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17184         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17185         Don't test HAVE_SYS_PROCFS_H.
17187 2017-09-30  Bruno Haible  <bruno@clisp.org>
17189         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17190         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17191         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17192         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17194 2017-09-30  Bruno Haible  <bruno@clisp.org>
17196         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17197         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17198         scope of local variables.
17200 2017-09-28  Bruno Haible  <bruno@clisp.org>
17202         string: code style
17203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17204         substitutable variables.
17205         * modules/string (Makefile.am): Likewise.
17207 2017-09-26  Bruno Haible  <bruno@clisp.org>
17209         uniname/uniname-tests: Tighten code.
17210         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17211         local variables into one.
17213 2017-09-26  Bruno Haible  <bruno@clisp.org>
17215         vma-iter: Improvements for Linux and BSD platforms.
17216         - Add support for DragonFly BSD.
17217         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17218         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17219         Read the entire file into memory in a single system call.
17220         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17221         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17223 2017-09-26  Bruno Haible  <bruno@clisp.org>
17225         vma-iter: Provide the protection flags on FreeBSD.
17226         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17227         skip three fields between the addresses and the protection flags.
17229 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17231         glob: remove bogus extern decl
17232         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17233         extern declaration.  Problem reported by Adhemerval Zanella in:
17234         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17236 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17238         uniname/uniname-tests: integer overflow fix
17239         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17240         Check for integer overflow.
17242         duplocale-tests: fix unlikely crash
17243         * tests/test-duplocale.c (get_locale_dependent_values):
17244         Don’t crash with absurdly long month names.
17246         maint: fix overflow checking in nap.h
17247         * modules/chown-tests:
17248         * modules/fchownat-tests, modules/fdutimensat-tests:
17249         * modules/futimens-tests, modules/lchown-tests:
17250         * modules/stat-time-tests, modules/utime-tests:
17251         * modules/utimens-tests, modules/utimensat-tests:
17252         Depend on intprops.
17253         * tests/nap.h: Include intprops.h.
17254         (diff_timespec): Handle overflow properly.
17256         sys_types: update URL
17257         * m4/sys_types_h.m4: Use https: URL.
17259         parse-datetime: fix dependency
17260         * modules/parse-datetime (Depends-on): Depend
17261         on nstrftime, not strftime.
17263         parse-datetime, posixtm: avoid uninit access
17264         * lib/parse-datetime.y (parse_datetime2):
17265         * lib/posixtm.c (posixtime):
17266         Do not access uninitialized storage, even though the resulting
17267         value is never used.
17269 2017-09-25  Bruno Haible  <bruno@clisp.org>
17271         vma-iter: Improvements for BSD platforms.
17272         - Add support for GNU/kFreeBSD.
17273         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17274         - Speed up on OpenBSD.
17275         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17276         (vma_iterate_bsd): New function.
17277         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17278         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17279         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17280         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17282 2017-09-23  Bruno Haible  <bruno@clisp.org>
17284         strfmon_l: New module.
17285         * modules/strfmon_l: New file.
17286         * lib/strfmon_l.c: New file.
17287         * m4/strfmon_l.m4: New file.
17288         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17289         * modules/strfmon_l-tests: New file.
17290         * tests/test-strfmon_l.c: New file.
17292         monetary: New module.
17293         * modules/monetary: New file.
17294         * lib/monetary.in.h: New file.
17295         * m4/monetary_h.m4: New file.
17296         * doc/posix-headers/monetary.texi: Mention the new module.
17297         * modules/monetary-tests: New file.
17298         * tests/test-monetary.c: New file.
17299         * modules/monetary-c++-tests: New file.
17300         * tests/test-monetary-c++.cc: New file.
17301         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17303 2017-09-23  Bruno Haible  <bruno@clisp.org>
17305         duplocale tests: Fix test crash on Linux/x86.
17306         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17307         locale from the current thread before freeing it.
17309 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17311         mktime: port to OpenVMS
17312         Problem reported by John E. Malmberg in:
17313         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17314         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17316 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17318         manywarnings: port to GCC on 64-bit MS-Windows
17319         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17320         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17321         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17323 2017-09-13  Bruno Haible  <bruno@clisp.org>
17325         all: Replace many more http URLs by https URLs. Update stale URLs.
17326         * users.txt: Remove mention of 'newts'.
17327         * lib/localename.c: Update comment about LANG_SOTHO.
17329 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17331         all: Replace many http URLs by https URLs.
17333 2017-09-12  Bruno Haible  <bruno@clisp.org>
17335         doc: Prefer https URLs where possible.
17336         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17337         * doc/ld-output-def.texi: Remove unavailable URL.
17339 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17341         maintainer-makefile: FTP -> HTTPS
17342         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17343         of FTP, which is planned to be decommissioned on 2017-11-01.
17345 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17347         libc-config: Fix __GNUC_PREREQ macro.
17348         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17349         __GNUC_MINOR.
17351 2017-09-09  Bruno Haible  <bruno@clisp.org>
17353         gnulib-tool: Simplify commit from 2015-08-20.
17354         * gnulib-tool (func_add_or_update): Remove local variable
17355         is_binary_file.
17357 2017-09-08  Bruno Haible  <bruno@clisp.org>
17359         stddef: Avoid conflict with system-defined max_align_t.
17360         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17361         Reported by Werner Lemberg <wl@gnu.org> in
17362         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17363         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17364         (max_align_t): Define as a macro.
17365         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17366         definitions of rpl_max_align_t in different copies of gnulib-generated
17367         <stddef.h>.
17369 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17371         libc-config: port to MSVC
17372         Problems reported by Gisle Vanem in:
17373         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17374         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17375         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17376         * m4/__inline.m4: New file.
17377         * modules/libc-config (Files): Add it.
17378         (Depends-on): Use it.
17380         glob: Use enum for __glob_pattern_type result
17381         From a patch proposed by Adhemerval Zanella in:
17382         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17383         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17384         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17385         * lib/glob_internal.h (__glob_pattern_type):
17386         * lib/glob.c (glob):
17387         * lib/glob_pattern_p.c (__glob_pattern_p):
17388         Use them.
17390         glob: fix for use in glibc
17391         Problem reported by Adhemerval Zanella in:
17392         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17393         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17394         Do not redefine if _LIBC.
17396 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17398         glob: fix bugs with long login names
17399         Problem reported by Adhemerval Zanella in:
17400         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17401         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17402         (glob): Use the same scratch buffer for both getlogin_r and
17403         getpwnam_r.  Don’t require preallocation of the login name.  This
17404         simplifies storage allocation, and corrects the handling of
17405         long login names.
17407 2017-09-02  Bruno Haible  <bruno@clisp.org>
17409         dirent: Update doc.
17410         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17412 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17414         glob: fix getpwnam_r errno typo
17415         * lib/glob.c (glob): Fix longstanding misuse of errno after
17416         getpwnam_r, which returns an error number rather than setting
17417         errno.
17419         glob: fix typo in recent change
17420         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17421         Fix recently-introduced typo.
17423 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17425         glob: don't save and restore errno unnecessarily
17426         * lib/glob.c (glob): Don't save and restore errno
17427         merely because we have getpwnam_r.
17429         glob: don't assume getpwnam_r
17430         * lib/glob.c (glob): Port recent patches to platforms
17431         lacking getpwnam_r.
17433         scratch_buffer: don’t use private glibc API
17434         Suggested by Florian Weimer in:
17435         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17436         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17437         * lib/scratch_buffer_grow.c: Rename to
17438         lib/malloc/scratch_buffer_grow.c.
17439         * lib/scratch_buffer_grow_preserve.c: Rename to
17440         lib/malloc/scratch_buffer_grow_preserve.c.
17441         * lib/scratch_buffer_set_array_size.c: Rename to
17442         lib/malloc/scratch_buffer_set_array_size.c.
17443         * lib/scratch_buffer.h: New file.
17444         * modules/scratch_buffer (Files, Makefile.am):
17445         Adjust to source-file renaming.
17447 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17449         glob: use scratch_buffer instead of extend_alloca
17450         Much of the lib/glob.c part of this patch comes from a glibc patch
17451         proposed by Adhemerval Zanella in:
17452         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17453         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17454         included via glob.h, does this for us now.
17455         (__set_errno): Remove, as libc-config does this for us now.
17456         Include <scratch_buffer.h>.
17457         (GETPW_R_SIZE_MAX): Remove.
17458         (glob): Use struct scratch_buffer instead of extend_alloca.
17459         * lib/glob.in.h: Include libc-config.h rather than
17460         including <sys/cdefs.h> conditionally.
17461         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17462         (__glibc_unlikely, __restrict, weak_alias):
17463         Remove, as libc-config does this for us now.
17464         * m4/glob.m4 (gl_PREREQ_GLOB):
17465         Remove sys/cdefs.h tests; no longer needed.
17466         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17467         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17469         scratch_buffer: new module
17470         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17471         * lib/scratch_buffer_grow_preserve.c:
17472         * lib/scratch_buffer_set_array_size.c:
17473         New files, copied from glibc with very minor changes that can be
17474         copied back.
17475         * modules/scratch_buffer: New file.
17477         libc-config: new module
17478         * MODULES.html.sh: Add libc-config.
17479         * lib/cdefs.h: New file, copied from the GNU C Library with very
17480         minor changes that can be copied back.
17481         * lib/libc-config.h, modules/libc-config: New files.
17483 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17485         glob: match dangling symlinks
17486         This fixes a bug I inadvertently introduced to Gnulib when I
17487         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17488         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17489         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17490         * doc/posix-functions/glob.texi: Update list of affected platforms.
17491         * lib/glob.c (__lstat64): New macro.
17492         (is_dir): New function.
17493         (glob, glob_in_dir): Match symlinks even if they are dangling.
17494         (link_stat, link_exists_p): Remove.  All uses removed.
17495         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17496         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17497         * modules/glob-tests (Depends-on): Add symlink.
17498         * tests/test-glob.c: Include errno.h, unistd.h.
17499         (BASE): New macro.
17500         (main): Test dangling symlinks, if symlinks are supported.
17502         glob, backupfile: inode 0 is a valid inode number
17503         * doc/posix-functions/readdir.texi (readdir):
17504         * doc/posix-headers/dirent.texi (dirent.h):
17505         Document more readdir portability issues.
17506         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17507         (numbered_backup): Don’t treat inode 0 any differently from
17508         other inode values.
17509         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17510         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17511         All uses removed.
17512         * modules/glob (Depends-on): Remove d-ino.
17514         glob: simplify symlink detection
17515         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17516         uint8_t, as C99 does not require uint8_t.
17517         (struct readdir_result): Use it.  Do not define skip_entry unless
17518         it is needed; this saves a byte on platforms lacking d_ino.
17519         (readdir_result_type, readdir_result_skip_entry):
17520         New functions, replacing ...
17521         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17522         ... these functions, which were removed.  This makes the callers
17523         easier to read.  All callers changed.
17524         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17526 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17528         fts-tests: tag as a longrunning-test so not included by default
17529         * modules/fts-tests: This test takes about 20s on current systems,
17530         and uses about 285M of space on ext4.
17532 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17534         renameat2: fix compilation on alpine linux
17535         * m4/renameat.m4: Check for <linux/fs.h> presence.
17536         * lib/renameat2.h: Only include <linux/fs.h> if present.
17537         Reported by Assaf Gordon on Alpine Linux.
17539 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17541         glob: try to port recent changes to MS-Windows
17542         Problem reported by Bruno Haible in:
17543         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17544         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17545         * lib/glob.in.h (__glob_pattern_p): ... to here.
17547 2017-08-24  Eric Blake  <eblake@redhat.com>
17549         warnings: fix compilation with old autoconf
17550         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17551         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17552         AC_DEFUN.
17553         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17554         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17556 2017-08-24  Bruno Haible  <bruno@clisp.org>
17558         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17559         * modules/glob (Depends-on): Add c99.
17561 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17563         glob: fix typo that broke platforms lacking d_ino
17564         This typo also hurt performance on GNU/Linux and similar hosts.
17565         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17566         in previous change.
17568 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17570         glob: merge from glibc with Zanella glob changes
17571         Merge glob from glibc, with changes for glob proposed
17572         by Adhemerval Zanella in the thread starting here:
17573         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17574         plus some fixes for this merge.
17575         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17576         New files, ported from glibc.
17577         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17578         with __restrict.
17579         (__size_t): Remove.  All uses replaced by size_t.
17580         (size_t): Define by defining __need_size_t and including <stddef.h>.
17581         This should work even in non-glibc platforms, where any name
17582         pollution is OK.
17583         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17584         (struct stat64): Don’t worry about __GLOB_GNULIB.
17585         (glob, globfree, glob_pattern_p): Remove macros for
17586         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17587         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17588         but set errno.
17589         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17590         removed since the glibc behavior works on null pointers.
17591         Do not include stdio.h; old SunOS is irrelevant now.
17592         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17593         Include glob_internal.h.
17594         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17595         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17596         worked only coincidentally.
17597         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17598         Remove macros; now done in glob.in.h.
17599         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17600         (glob): Properly initialize glob structure with
17601         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17602         Remove old code using SHELL since Bash no longer
17603         uses this.
17604         (glob, prefix_array): Separate MS code better.
17605         (glob, glob_in_dir): Use C99 decls before statements when glibc
17606         does.
17607         (glob_in_dir): Remove old Amiga and VMS code.
17608         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17609         separate files.
17610         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17611         (__glibc_unlikely):
17612         Move here from glob.c.
17613         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17614         (weak_alias): New macro.
17615         (__size_t): Remove.  All uses replaced by size_t.
17616         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17617         * modules/glob (Files): Add +lib/glob_internal.h,
17618         lib/glob_pattern_p.c, lib/globfree.c.
17619         (Depends-on): Remove snippet/arg-nonnull.
17621 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17623         glob: port to clang's Undefined Sanitizer
17624         Problem reported by Tim Rühsen in:
17625         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17626         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17627         (glob_in_dir): Do not rely on undefined behavior in accessing
17628         struct members beyond their bounds.  Use a flexible array member
17629         instead.
17631 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17633         vc-list-files: port to Solaris 10
17634         * build-aux/vc-list-files: Don't assume test -e works.
17636 2017-08-21  Karl Berry  <karl@freefriends.org>
17638         * doc/posix-functions/srandom.texi (srandom): typo }.
17640 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17642         git-version-gen: port to Solaris 10
17643         Problem reported by Dagobert Michelsen in:
17644         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17645         * build-aux/git-version-gen (v_from_git):
17646         Use expr instead of shell substitution.
17648 2017-08-19  Bruno Haible  <bruno@clisp.org>
17650         host-cpu-c-abi: Improve detection of MIPS ABI.
17651         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17652         _MIPS_SIM.
17654 2017-08-17  Bruno Haible  <bruno@clisp.org>
17656         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17657         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17659 2017-08-17  Bruno Haible  <bruno@clisp.org>
17661         float: Fix LDBL_MIN value on FreeBSD/x86.
17662         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17664 2017-08-17  Bruno Haible  <bruno@clisp.org>
17666         random: Fix test compilation failure on Cygwin 1.5.25.
17667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17668         HAVE_DECL_SETSTATE.
17669         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17670         declared.
17671         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17672         HAVE_DECL_SETSTATE.
17673         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17674         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17675         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17676         * doc/posix-functions/random.texi: Likewise.
17677         * doc/posix-functions/setstate.texi: Likewise.
17678         * doc/posix-functions/srandom.texi: Likewise.
17680 2017-08-16  Bruno Haible  <bruno@clisp.org>
17682         stdnoreturn: Fix test compilation failure on Cygwin.
17683         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17684         <stdnoreturn.h> replacement.
17685         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17686         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17688 2017-08-16  Bruno Haible  <bruno@clisp.org>
17690         thread: Fix conflict with pthread_sigmask module.
17691         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17692         it's defined as a macro.
17693         * modules/thread (Depends-on): Add pthread_sigmask.
17695 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17697         rename: port better to NetBSD
17698         * doc/posix-functions/rename.texi (rename): NetBSD 7
17699         does not have the link-count bug.
17700         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17701         broken merely because rename ("a", "b") removes "a" when the two
17702         names are hard links to the same file.
17704 2017-08-16  Bruno Haible  <bruno@clisp.org>
17706         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17707         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17708         the target file names with '$(srcdir)/'.
17709         * modules/unicase/locale-language (Makefile.am): Likewise.
17710         * modules/unicase/special-casing (Makefile.am): Likewise.
17711         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17712         * modules/unictype/category-byname (Makefile.am): Likewise.
17713         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17714         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17715         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17716         * modules/unictype/property-byname (Makefile.am): Likewise.
17717         * modules/unictype/scripts (Makefile.am): Likewise.
17718         * modules/uninorm/composition (Makefile.am): Likewise.
17720 2017-08-16  Bruno Haible  <bruno@clisp.org>
17722         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
17723         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
17724         value for OpenBSD.
17726 2017-08-16  Bruno Haible  <bruno@clisp.org>
17728         rename, renameat: Update doc regarding NetBSD.
17729         * doc/posix-functions/rename.texi: Clarify that when using
17730         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
17731         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
17732         version.
17734 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17736         renameat2: port better to macOS
17737         * lib/renameat2.c (renameat2): Use renameatx_np if available.
17739         futimens: don’t assume struct timespec layout
17740         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
17741         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
17742         * tests/test-fdutimensat.c (main):
17743         * tests/test-futimens.h (test_futimens):
17744         * tests/test-lutimens.h (test_lutimens):
17745         * tests/test-utimens.h (test_utimens):
17746         * tests/test-utimensat.c (main):
17747         Don’t assume that struct timespec is a two-member structure in
17748         tv_sec, tv_nsec order.  Although this is true on all platforms we
17749         know about, POSIX does not guarantee it.
17751         rename: document+test NetBSD rename
17752         Test failure reported by Bruno Haible in:
17753         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
17754         This is an area where NetBSD is better-behaved than POSIX,
17755         so allow the NetBSD behavior in tests.
17756         * doc/posix-functions/rename.texi:
17757         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
17758         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
17760 2017-08-15  Bruno Haible  <bruno@clisp.org>
17762         renameat: Ensure declaration in <stdio.h> on NetBSD.
17763         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
17764         * doc/posix-functions/renameat.texi: Mention this problem.
17766 2017-08-15  Bruno Haible  <bruno@clisp.org>
17768         duplocale: Work around NetBSD 7.0 bug.
17769         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
17770         * lib/duplocale.c: Add comment about NetBSD problem.
17771         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
17773 2017-08-15  Bruno Haible  <bruno@clisp.org>
17775         duplocale tests: Verify use with *_l functions.
17776         * modules/duplocale-tests (configure.ac): Test for uselocale and
17777         some *_l functions.
17778         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
17779         from main.
17780         (get_locale_dependent_values_from, test_with_locale_parameter): New
17781         functions.
17782         (main): Test both test_with_uselocale and test_with_locale_parameter.
17784 2017-08-15  Bruno Haible  <bruno@clisp.org>
17786         extensions: Enable NetBSD specific extensions.
17787         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
17789 2017-08-14  Bruno Haible  <bruno@clisp.org>
17791         open, openat: Update doc about O_CLOEXEC.
17792         * doc/posix-functions/open.texi: More concrete list of platforms.
17793         * doc/posix-functions/openat.texi: Likewise.
17795 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17797         open: support O_CLOEXEC
17798         * NEWS, doc/posix-functions/open.texi:
17799         * doc/posix-functions/openat.texi: Document this.
17800         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
17801         (GNULIB_defined_O_CLOEXEC): New symbol.
17802         * lib/open.c: Include cloexec.h.
17803         (open): Support O_CLOEXEC.
17804         * lib/openat.c: Include cloexec.h.
17805         (rpl_openat): Support O_CLOEXEC.
17806         * lib/popen-safer.c: Do not include cloexec.h.
17807         (open_noinherit): Remove.
17808         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
17809         * lib/save-cwd.c: Do not include cloexec.h.
17810         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
17811         * m4/open-cloexec.m4: New file.
17812         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
17813         Replace 'open' if O_CLOEXEC is not present.
17814         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
17815         Replace 'openat' if O_CLOEXEC is not present.
17816         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
17817         * modules/open (Files): Add m4/open-cloexec.m4.
17818         (Depends-on): Depend on cloexec if replacing 'open'.
17819         * modules/openat (Files): Add m4/open-cloexec.m4.
17820         (Depends-on): Depend on cloexec if replacing openat.
17821         * modules/popen-safer (Depends-on): Remove cloexec.
17822         * modules/save-cwd (Depends-on): Remove cloexec, and add
17823         fd-safer-flag and 'open'.
17825 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
17827         reallocarray: minor fixes
17828         * doc/glibc-functions/reallocarray.texi: Update version numbers.
17829         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
17830         * modules/reallocarray (License): Change from GPL to LGPL.
17831         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
17832         Indent properly and don't use tabs.
17834 2017-08-13  Darshit Shah  <darnir@gnu.org>
17836         reallocarray: New module
17837         reallocarray is a new function in glibc 2.26 to safely allocate an array
17838         of memory locations with integer overflow protection.
17839         * MODULES.html.sh: Add reallocarray.
17840         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
17841         * lib/reallocarray.c: New file to implement module reallocarray.
17842         * lib/stdlib.in.h: Add function declarations for reallocarray.
17843         * m4/reallocarray.m4: New file.
17844         * m4/stdlib_h.m4: Declare reallocarray.
17845         * modules/reallocarray: New file.
17846         * modules/reallocarray-test: New file.
17847         * modules/stdlib: Coerce stdlib.h to export reallocarray.
17848         * tests/test-reallocarray.c: New test.
17850 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17852         dirent-safer: fix cloexec race
17853         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
17854         (opendir_safer): Use F_DUPFD_CLOEXEC.
17855         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
17856         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
17857         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
17858         instead of dup_safer.
17860         fts: fix cloexec races
17861         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
17862         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
17863         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
17864         (fd_ring_check): Set cloexec flag on new file descriptors.
17865         (fts_build, fd_ring_check): While we’re at it, make sure the
17866         resulting file descriptor is not 0, 1, or 2, since that is easy.
17868 2017-08-11  Bruno Haible  <bruno@clisp.org>
17870         fts tests: Fix link error.
17871         Reported by Tom G. Christensen in
17872         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
17873         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
17875 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17877         fts: port recent changes to CentOS 6
17878         Problem reported by Tom G. Christensen in:
17879         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
17880         * lib/fts.c (fsword): New type.
17881         (struct dev_type, filesystem_type): Use it.
17882         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
17883         Also, check for f_type only if fstatfs and sys/vfs.h work.
17885 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
17887         tempname: do not depend on secure_getenv
17888         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
17889         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
17890         * modules/tempname (Depends-on): Remove secure_getenv.
17892 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
17894         extensions: add _OPENBSD_SOURCE
17895         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
17897 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
17898             Bruno Haible  <bruno@clisp.org>
17900         manywarnings: Add support for C++.
17901         * build-aux/g++-warning.spec: New file.
17902         * m4/manywarnings-c++.m4: New file.
17903         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
17904         redirects to manywarnings-c++.m4.
17905         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
17907 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17909         git-version-gen: another fix for tags with "-"
17910         * build-aux/git-version-gen: Improve fix for tags containing "-".
17911         Suggested by Markus Armbruster in:
17912         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
17914 2017-08-06  Bruno Haible  <bruno@clisp.org>
17916         warnings, manywarnings: Add support for multiple languages, not just C.
17917         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
17918         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
17919         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
17920         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
17921         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
17922         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
17923         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
17924         of the current language. If C++ is the current language, modify
17925         WARN_CXXFLAGS instead of WARN_CFLAGS.
17926         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
17927         gl_MANYWARN_ALL_GCC.
17928         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
17930 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
17932         git-version-gen: Fix for tags containing '-'
17934         Really old versions of git-describe (before v1.5.0, Feb 2007)
17935         don't have the number of commits in their long format output,
17936         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
17937         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
17938         recognizes both patterns, and normalizes the old format to the new one.
17940         Unfortunately, this normalization code gets confused when the tag
17941         contains '-'.  Reproducer:
17943             $ git-tag -m test v0.2-rc1
17944             $ build-aux/git-version-gen .tarball-version; echo
17945             build-aux/git-version-gen: WARNING: git rev-list failed
17946             UNKNOWN
17948         We take exact tag "v0.2-rc1" for the old format, extract the presumed
17949         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
17950         commits since tha tag.  Fails, because tag "v0.2" does not exist.
17952         * git-version-gen: We could perhaps drop support for versions from
17953         more than a decade ago.  But tightening the pattern match is easy
17954         enough, so do that.  Still breaks when you use version tags ending in
17955         something matching -g????, but you arguably get what you deserve then.
17957 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
17959         valgrind-tests: use ls, and cache
17960         * m4/valgrind-tests.m4: Test ls, not bash.
17961         Problem reported by Reuben Thomas.
17962         Also, cache the result so that it can be overridden.
17964 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
17966         manywarnings: port to 64-bit GCC builds of Emacs
17967         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
17968         object size rather than hardwiring 2147483647.  This is needed to
17969         build GNU Emacs, which has one conditional (and used
17970         only-in-theory) call to malloc with a literal greater than
17971         2147483647.
17973 2017-08-04  Bruno Haible  <bruno@clisp.org>
17975         Relax the license of some modules with no runtime code.
17976         * modules/std-gnu11 (License): Set to 'unlimited'.
17977         * modules/c99 (License): Likewise.
17978         Reported by Reuben Thomas <rrt@sc3d.org>.
17979         * modules/d-ino (License): Set to 'LGPL'.
17980         * modules/host-os (License): Likewise.
17981         * modules/longlong (License): Likewise.
17983 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
17985         renameat2: port to RHEL 7 + NFS
17986         * lib/renameat2.c (renameat2) [SYS_renameat2]:
17987         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
17988         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
17990 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17992         renameat2: port to non-renameat platforms
17993         Problem reported for MSVC-2015 by Gisle Vanem in:
17994         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
17995         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
17996         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
17998 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18000         manywarnings: port to 32-bit GCC bug
18001         Problem reported by Pino Toscano in:
18002         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18003         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18004         not 2**63 - 1, to work around the following GCC bug:
18005         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18007 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18009         backupfile: new function to validate backup suffix
18010         * lib/backupfile.c (set_simple_backup_suffix): New function.
18011         (backupfile_internal): Use it.
18013         canonicalize: fix EOVERFLOW commentary
18014         Problem reported by Bruno Haible in:
18015         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18016         * lib/canonicalize.c (canonicalize_filename_mode):
18017         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18019         Don't interpret EOVERFLOW to mean nonexistence
18020         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18021         may be EOVERFLOW; this is likely more useful than reporting the
18022         stat errno.
18023         * lib/glob.c (link_stat): Rename from link_exists2_p and
18024         return -1/0 instead of 0/1.  Caller changed.
18025         * lib/glob.c (link_exists_p):
18026         * lib/renameat2.c (rename_noreplace, renameat2):
18027         * lib/tempname.c (try_nocreate):
18028         If errno == EOVERFLOW then the directory entry exists, so do not
18029         act as if it does not exist.
18031         backup-rename: new module
18032         It is like backupfile, except it avoids some race conditions,
18033         and it does not output to stderr or exit.
18034         * MODULES.html.sh: Add backup-rename.
18035         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18036         * modules/backup-rename: New files.
18037         * lib/backupfile.c: Turn this into an internals file, which
18038         contains code common to backupfile and backup_rename.  Include
18039         backupfile-internal.h instead of backupfile.h.  Do not include
18040         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18041         renameat2.h and fcntl.h.
18042         (BACKUP_NOMEM): New constant.
18043         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18044         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18045         (backupfile_internal): Rename from find_backup_file_name.
18046         Support new arg RENAME.
18047         (backup_args, backup_types, get_version, xget_version):
18048         Move to lib/backup-find.c.
18049         * lib/backupfile.h (backup_file_rename): New decl.
18050         * modules/backupfile (Files): Add lib/backup-internal.h,
18051         lib/backup-find.c.
18052         (Depends-on): Add dirfd, fcntl, renameat2.
18053         (lib_SOURCES): Add backup-find.c.
18055         renameat2: port better to older Solaris
18056         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18057         Add goto to use a label, to silence picky compilers.
18059         fts-tests: port to gcc -Wwrite-strings
18060         * tests/test-fts.c (base, base_d): New static vars.
18061         (argv, remove_tree, main): Use them.
18063 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18065         relocatable-lib{,-lgpl}: improve documentation
18066         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18067         Various other updates.
18069 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18070             Bruno Haible  <bruno@clisp.org>
18072         relocatable-lib{,-lgpl}: add Valgrind suppressions
18073         * lib/relocatable.valgrind: New file.
18074         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18075         * modules/relocatable-lib-lgpl: Likewise.
18077 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18079         relocatable: Make the license on the sources the GPL.
18080         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18081         LGPL, which was a special case so that the relocatable source files
18082         could be used without gnulib-tool, to GPL. They can still be used under
18083         the LGPL, using the --lgpl option to gnulib-tool.
18085 2017-07-30  Bruno Haible  <bruno@clisp.org>
18087         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18088         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18089         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18090         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18091         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18093 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18095         faccessat: document AT_SYMLINK_NOFOLLOW issue
18096         * doc/posix-functions/faccessat.texi: Modernize platform list.
18097         Document AT_SYMLINK_NOFOLLOW limitation.
18099         renameat2: port to Solaris 10
18100         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18101         with AT_SYMLINK_NOFOLLOW (which is not portable).
18102         (renameat): Undef before using, to avoid endless recursion when
18103         the replacement renameat calls renameat2 which calls the
18104         replacement renameat.
18105         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18106         * modules/renameat2 (Depends-on): Remove faccessat.
18107         * modules/renameat-tests (test_renameat_LDADD):
18108         * modules/renameat2-tests (test_renameat2_LDADD):
18109         Remove $(LIB_EACCESS).
18111         renameat2: new module
18112         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18113         useful to have access to its RENAME_NOREPLACE flag.
18114         * MODULES.html.sh (func_all_modules): Add renameat2.
18115         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18116         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18117         * lib/renameat.c (renameat): Move most of the implementation
18118         to renameat2, and just call renameat2.
18119         * modules/renameat (Files): Remove lib/at-func2.c.
18120         (Depends-on): Depend only on renameat2.
18121         (Include): Remove <fcntl.h>.
18122         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18123         since renameat (via renameat2) might use faccessat.
18125 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18127         vc-list-files: Adjust the script to support git worktrees
18128         * build-aux/vc-list-files: Require existence, not directory.
18130 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18132         doc: bring MODULES.html.sh up to date
18133         Somehow a few months ago we stopped updating MODULES.html.sh.
18134         I don’t recall explicitly deciding this, so I updated it now.
18135         Alternatively I suppose we could remove it.
18136         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18137         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18138         truncate, utime, utime-h, windows-stat-inodes,
18139         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18141 2017-07-26  Jim Meyering  <meyering@fb.com>
18143         fprintftime: fix build-break caused by recent renaming
18144         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18145         "strftime.c".
18146         * modules/fprintftime: Depend directly on nstrftime.
18148 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18150         regex: work with GCC7's -Werror=implicit-fallthrough=
18151         * lib/regex_internal.h (FALLTHROUGH): New macro.
18152         * lib/regcomp.c (peek_token_bracket, parse_expression):
18153         * lib/regexec.c (check_node_accept): Use it.
18155 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18157         fts: simplify fts_build
18158         * lib/fts.c (fts_build): Simplify, and be lazier about
18159         calling leaf_optimization.
18161         fts: three levels of leaf optimization
18162         * lib/fts.c (enum leaf_optimization): New type with three values.
18163         (S_MAGIC_AFS): New macro.  Sort them.
18164         (leaf_optimization): Rename from leaf_optimization_applies, and
18165         return enum leaf_optimization instead of bool.  All uses changed.
18166         Add cases for unknown type and for AFS.
18167         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18169         fts: cache dirent_inode_sort_may_be_useful too
18170         * lib/fts.c (struct dev_type): New struct.
18171         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18172         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18173         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18174         Now takes FTSENT const *, not int.  All uses changed.  Use
18175         filesystem_type to cache.
18176         (link_count_optimize_ok): Remove.  Caller changed to use
18177         leaf_optimization_applies, which now uses shared cache.
18179         fts: introduce MIN_DIR_NLINK
18180         * lib/fts.c (MIN_DIR_NLINK): New constant.
18181         Use it instead of 2, whenever we are talking about link counts.
18183         fts: nlink_t signedness fixups
18184         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18185         so that root need not be a special case later.
18186         (fts_read): Remove now-redundant test for fts_level.
18187         Do not assume that nlink_t is signed.
18188         (fts_build): Remove useless decrement of nlinks.
18189         (fts_stat): Avoid unlikely signed integer overflow later, if
18190         nlink_t is signed.
18192         fts-tests: new module
18193         * modules/fts-tests, tests/test-fts.c: New files.
18195 2017-07-23  Bruno Haible  <bruno@clisp.org>
18197         Rename module 'strftime' to 'nstrftime'.
18198         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18199         * lib/nstrftime.c: Renamed from lib/strftime.c.
18200         * modules/nstrftime: Renamed from modules/strftime.
18201         (Files, Makefile.am): Update.
18202         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18203         Fix comment.
18204         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18205         (Files, Makefile.am): Update.
18206         * modules/strftime: New file, an obsolete indirection.
18207         * doc/posix-functions/strftime.texi: Update reference.
18208         * config/srclist.txt: Update info.
18209         * NEWS: Mention the change.
18211 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18213         malloca: Silence a warning from clang's memory sanitizer.
18214         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18215         (freea): Use it.
18217 2017-07-18  Bruno Haible  <bruno@clisp.org>
18219         host-cpu-c-abi: Fix detection of MIPS ABI.
18220         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18221         ABI, not the CPU instruction set.
18223 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18225         explicit_bzero: new module
18226         The explicit_bzero function has been added to glibc.
18227         This module is intended to supports its use in GNU programs.
18228         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18229         * m4/explicit_bzero.m4, modules/explicit_bzero:
18230         New files.
18231         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18232         * lib/string.in.h (explicit_bzero): Declare.
18233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18234         * modules/string (string.h): Substitute its vars.
18236 2017-07-16  Bruno Haible  <bruno@clisp.org>
18238         threadlib: Support static linking.
18239         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18240         set gl_cv_have_weak to 'no'.
18242 2017-07-16  Bruno Haible  <bruno@clisp.org>
18244         unicase/locale-language: Fix link dependencies.
18245         * modules/unicase/locale-language (Link): New section.
18246         * modules/unicase/locale-language-tests (Makefile.am): Link
18247         test-locale-language program with $(LIBTHREAD).
18249 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18251         sys_socket: Add support for OpenVMS.
18252         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18253         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18255 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18257         sys_resource: Add support for OpenVMS.
18258         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18259         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18261 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18262             Bruno Haible  <bruno@clisp.org>
18264         math: Add support for OpenVMS.
18265         * lib/math.in.h [__VMS]: Include <fp.h>.
18266         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18268 2017-07-15  Bruno Haible  <bruno@clisp.org>
18270         getdtablesize: Add minimal support for OpenVMS.
18271         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18272         * modules/getdtablesize (Description): Fix.
18273         * lib/getdtablesize.c: Fix comment.
18274         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18275         getdtablesize() function, even though the test fails.
18276         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18277         limitation on OpenVMS.
18279 2017-07-13  Bruno Haible  <bruno@clisp.org>
18281         Revisit cross-compilation guesses.
18282         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18284 2017-07-13  Bruno Haible  <bruno@clisp.org>
18286         Improve cross-compilation guesses for native Windows.
18287         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18288         Windows.
18289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18291         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18292         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18293         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18294         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18295         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18296         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18297         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18298         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18299         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18300         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18301         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18302         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18303         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18304         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18305         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18307         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18308         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18309         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18310         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18311         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18312         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18313         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18314         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18315         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18316         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18317         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18318         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18319         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18321         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18322         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18323         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18324         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18325         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18326         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18327         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18328         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18329         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18331         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18332         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18333         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18334         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18335         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18336         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18337         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18338         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18339         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18340         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18341         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18342         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18343         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18344         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18345         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18346         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18347         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18348         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18350         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18351         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18352         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18353         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18355         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18356         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18357         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18358         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18359         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18360         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18361         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18362         * m4/regex.m4 (gl_REGEX): Likewise.
18363         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18364         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18365         gl_FUNC_REMAINDERF_WORKS): Likewise.
18366         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18367         gl_FUNC_REMAINDERL_WORKS): Likewise.
18368         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18369         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18370         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18371         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18372         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18373         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18374         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18375         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18376         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18377         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18378         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18379         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18380         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18381         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18382         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18383         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18384         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18386         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18387         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18388         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18389         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18390         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18391         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18392         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18393         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18394         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18395         Likewise.
18396         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18397         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18398         Windows. Enable also on Autoconf 2.70.
18399         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18400         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18401         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18402         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18403         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18404         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18405         for native Windows.
18406         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18407         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18409 2017-07-13  Bruno Haible  <bruno@clisp.org>
18411         Improve cross-compilation guesses for native Windows.
18412         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18413         Windows.
18414         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18415         memchr.m4.
18416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18418 2017-07-13  Bruno Haible  <bruno@clisp.org>
18420         Improve cross-compilation guesses for native Windows.
18421         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18422         native Windows.
18423         (gl_FUNC_FFLUSH): Update accordingly.
18424         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18425         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18427 2017-07-11  Bruno Haible  <bruno@clisp.org>
18429         More systematic m4 quoting and indentation.
18430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18431         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18432         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18433         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18434         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18435         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18436         gl_WINSIZE_IN_PTEM): Likewise.
18437         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18438         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18439         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18440         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18441         Correct indentation.
18442         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18444         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18445         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18446         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18447         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18449 2017-07-10  Bruno Haible  <bruno@clisp.org>
18451         round, roundf: Avoid compiler warning in configure test.
18452         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18453         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18455 2017-07-10  Bruno Haible  <bruno@clisp.org>
18457         getlogin tests: Avoid #ifdefs when sharing code between modules.
18458         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18459         * modules/getlogin-tests (Files): Likewise. Remove
18460         tests/test-getlogin_r.c.
18461         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18462         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18463         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18464         getlogin().
18466 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18468         getlogin: don’t assume one name per uid
18469         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18470         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18471         (ttyname): Remove test.
18472         * modules/getlogin_r-tests (ttyname): Remove test.
18473         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18474         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18475         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18476         getlogin rather than getlogin_r.  This avoids code duplication.
18477         (main): Use isatty and fstat rather than ttyname and stat.
18478         Use getpwnam instead of getpwuid, to be portable to test platforms
18479         that have multiple login names for the same uid.
18481 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18482             Bruno Haible  <bruno@clisp.org>
18484         glob: Fix more memory leaks.
18485         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18486         returning.
18487         Reported by Tim Rühsen.
18489 2017-07-10  Bruno Haible  <bruno@clisp.org>
18491         Make sure $host and $host_os are defined when used.
18492         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18493         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18494         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18496         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18497         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18498         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18499         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18500         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18501         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18502         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18504         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18505         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18506         m4_ifdef block.
18508 2017-07-09  Bruno Haible  <bruno@clisp.org>
18510         *printf: Fix cross-compilation guess for Solaris.
18511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18512         2010-12-21.
18514 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18515             Bruno Haible  <bruno@clisp.org>
18517         vasnprintf: port to macOS 10.13
18518         Problem reported by comex in:
18519         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18520         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18522 2017-07-06  Bruno Haible  <bruno@clisp.org>
18524         imaxdiv tests: Fix logic.
18525         * tests/test-imaxdiv.c (main): Use == instead of =.
18526         Reported by Coverity.
18528 2017-07-06  Bruno Haible  <bruno@clisp.org>
18530         uninorm/filter: Fix use-after-free bug.
18531         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18532         sortbuf == filter->sortbuf invariant.
18533         Reported by Coverity.
18535 2017-07-06  Bruno Haible  <bruno@clisp.org>
18537         glob: Fix more memory leaks.
18538         * lib/glob.c (glob): Free dirname before returning.
18539         Reported by Coverity and Tim Rühsen.
18541 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18543         parse-datetime: fix uninit var bug
18544         Reported by Bruno Haible in:
18545         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18546         * lib/parse-datetime.y (parse_datetime2): Do not use
18547         uninitialized.
18549 2017-07-05  Bruno Haible  <bruno@clisp.org>
18551         doc: Update for MSVC 14.
18552         * doc/posix-headers/*.texi: Add info about MSVC 14.
18553         * doc/posix-functions/*.texi: Likewise.
18554         * doc/pastposix-functions/*.texi: Likewise.
18555         * doc/glibc-headers/*.texi: Likewise.
18556         * doc/glibc-functions/*.texi: Likewise.
18558 2017-07-05  Bruno Haible  <bruno@clisp.org>
18560         sched: Fix build failure on native Windows (regression from 2017-06-19).
18561         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18563 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18565         stdioext: Port to OpenVMS.
18566         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18567         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18568         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18569         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18570         * lib/fpurge.c (fpurge): Likewise.
18571         * lib/freadable.c (freadable): Likewise.
18572         * lib/freadahead.c (freadahead): Likewise.
18573         * lib/freading.c (freading): Likewise.
18574         * lib/freadptr.c (freadptr): Likewise.
18575         * lib/freadseek.c (freadseek): Likewise.
18576         * lib/fseeko.c (fseeko): Likewise.
18577         * lib/fseterr.c (fseterr): Likewise.
18578         * lib/fwritable.c (fwriteable): Likewise.
18579         * lib/fwriting.c (fwriting): Likewise.
18581 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18583         glob: Declare variables at the very start of their scope.
18584         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18585         its separate scope, so the functions will compile on Haiku.
18587 2017-07-01  Bruno Haible  <bruno@clisp.org>
18589         logbl: Work around a glibc bug on PowerPC64LE.
18590         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18591         numbers.
18592         * doc/posix-functions/logbl.texi: Update.
18594 2017-06-29  Bruno Haible  <bruno@clisp.org>
18596         stat, fstat: Compile stat-w32.c only on platforms that need it.
18597         Suggested by Paul Eggert.
18598         * modules/stat (configure.ac): Request stat-w32.o only on native
18599         Windows.
18600         * modules/fstat (configure.ac): Likewise.
18602 2017-06-25  Bruno Haible  <bruno@clisp.org>
18604         stat: Improve last change.
18605         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18607 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18609         stat: port to xlc 12.01
18610         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18611         12.01 complains "Compilation unit is empty."
18613 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18615         xalloc-oversized: port to icc
18616         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18617         __builtin_mul_overflow if ICC is defined, as this results in
18618         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18619         20170213.
18621 2017-06-19  Bruno Haible  <bruno@clisp.org>
18623         classpath: Avoid including config.h twice, as it produces warnings.
18624         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18625         * lib/classpath.h: Conditionalize the include of config.h.
18627 2017-06-19  Bruno Haible  <bruno@clisp.org>
18628             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18630         sched: Fix compilation failure on OpenVMS.
18631         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18632         test whether <pthread.h> exists and defines struct sched_param.
18633         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18635 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18637         diffseq: port to GCC 7 with --enable-gcc-warnings
18638         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18639         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18640         not complain about big_snake being defined but not used.
18642 2017-06-15  Bruno Haible  <bruno@clisp.org>
18644         gettext-h: Update theoretical condition for use of variable size arrays.
18645         Reported by Paul Eggert.
18646         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18647         to include the theoretical condition for availability of variable size
18648         arrays, if we could trust the value of __STDC_VERSION__.
18650 2017-06-12  Bruno Haible  <bruno@clisp.org>
18652         Relicense some modules under LGPLv2+.
18653         Daiki Ueno's approval is in
18654         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18655         * modules/uniwidth/base (License): Change to LGPLv2+.
18656         * modules/uniwidth/width (License): Likewise.
18658 2017-06-11  Bruno Haible  <bruno@clisp.org>
18660         localename: Fix test failure on DragonFly BSD.
18661         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18662         like FreeBSD.
18664 2017-06-11  Bruno Haible  <bruno@clisp.org>
18666         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18667         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18668         * lib/float.in.h: Likewise.
18669         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18671 2017-06-11  Bruno Haible  <bruno@clisp.org>
18673         gnulib-tool: Clean up after autotools.
18674         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18675         useless directory left over by the Autotools.
18677 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18679         getopt-posix: port to glibc 2.25.90
18680         Problem reported by Daniel P. Berrange in:
18681         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18682         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18683         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18684         #undef if __GETOPT_PREFIX is defined.
18686 2017-06-11  Bruno Haible  <bruno@clisp.org>
18688         strtod-obsolete: Fix license.
18689         * modules/strtod-obsolete (License): Change to LGPL.
18691 2017-06-10  Jim Meyering  <meyering@fb.com>
18693         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18694         * lib/savewd.c (FALLTHROUGH): Define.
18695         (savewd_save, savewd_restore): Use this, rather than a comment,
18696         whenever one switch case falls through into the next.
18698 2017-06-08  Bruno Haible  <bruno@clisp.org>
18700         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18701         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18702         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18703         case.
18705 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18707         doc: remove robots, add prereqs
18708         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18709         builds.  Simon's robot site does not seem to be up, so remove
18710         mentions of it for now.
18712 2017-06-08  Bruno Haible  <bruno@clisp.org>
18714         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18715         * gnulib-tool (func_symlink_target): New function, extracted from
18716         func_symlink.
18717         (func_symlink, func_symlink_if_changed): Use it.
18719 2017-06-08  Bruno Haible  <bruno@clisp.org>
18721         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
18722         * gnulib-tool (func_ln_s): Determine cp_src correctly.
18724 2017-06-07  Bruno Haible  <bruno@clisp.org>
18726         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
18727         Reported by John E. Malmberg <wb8tyw@gmail.com> in
18728         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
18729         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
18730         override, pass 2 arguments to getcwd, not 3.
18732 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18734         same-inode: port better to VMS 8.2 and later
18735         Problem reported by John E. Malmberg in:
18736         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
18737         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
18738         Use the usual POSIX definition.
18739         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
18741 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18743         error: fix POSIX violation for va_end
18744         Problem reported by Bruno Haible in:
18745         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
18746         * lib/error.c (error_tail): Do not call va_end here.
18747         (error, error_at_line): Call it here instead.
18749 2017-05-28  Bruno Haible  <bruno@clisp.org>
18751         c-strtod: Make it usable in C++ mode.
18752         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
18754 2017-05-25  Jim Meyering  <meyering@fb.com>
18756         quotearg: fix compilation failure due to FALLTHROUGH misuse
18757         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
18758         macro back to /* fall through */ comment.  The macro can apply only
18759         to a following case statement.  Reported by Assaf Gordon.
18761 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18763         intprops: port to recent icc
18764         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
18765         but does not support __builtin_add_overflow etc.
18766         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
18767         Define to 0.
18769 2017-05-23  Karl Berry  <karl@freefriends.org>
18771         * config/srclist.txt (iconv.m4): sync broken, comment out
18772         until (hopefully) the next gettext release.
18774 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
18776         Remove repeated words in comments.
18778 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18780         fallthrough: reinstate a FALLTHROUGH instance in quotearg
18781         quotearg.c: Reinstate this instance which is significant
18782         when the if branch is not taken.
18784 2017-05-21  Bruno Haible  <bruno@clisp.org>
18786         gnulib-tool: Add options to create hard links.
18787         * gnulib-tool (func_usage): Document options --hardlink,
18788         --local-hardlink, --more-hardlinks.
18789         (func_symlink): Renamed from func_ln.
18790         (func_symlink_if_changed): Renamed from func_ln_if_changed.
18791         (func_hardlink): New function.
18792         (copymode, lcopymode): New variables.
18793         (symbolic, lsymbolic): Remove variables.
18794         (Options): Implement options --hardlink, --local-hardlink,
18795         --more-hardlinks.
18796         (func_should_link): Renamed from func_should_symlink. Set copyaction.
18797         (func_add_file, func_update_file): Update invocation of
18798         func_should_link. Invoke func_hardlink when appropriate.
18799         (func_import): Update comments.
18800         (func_create_testdir): Update invocation of func_should_link. Invoke
18801         func_hardlink when appropriate.
18802         Finally, invoke 'git update-index --refresh' to mitigate the effects of
18803         the hard links on git.
18805 2017-05-20  Bruno Haible  <bruno@clisp.org>
18807         argp: Simplify bit manipulation.
18808         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
18809         on a signed integer type.
18811 2017-05-20  Bruno Haible  <bruno@clisp.org>
18813         Avoid wrong configure results with gcc -fsanitize=address.
18814         This completes the work done on 2016-02-06 on this topic.
18815         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
18816         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18818         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18819         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
18820         returning.
18821         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18822         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
18823         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18824         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18825         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18826         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
18828         free allocated memory before returning.
18829         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18830         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
18831         objects before returning.
18832         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
18833         returning.
18835 2017-05-20  Bruno Haible  <bruno@clisp.org>
18837         gnulib-tool: Don't create hard links between gnulib and its testdirs.
18838         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
18840 2017-05-20  Bruno Haible  <bruno@clisp.org>
18842         argp, tsearch tests: Fix file list.
18843         * modules/argp-tests (Files): Add tests/macros.h.
18844         * modules/tsearch-tests (Files): Likewise.
18846 2017-05-20  Bruno Haible  <bruno@clisp.org>
18848         getopt-posix tests: Remove redundant include.
18849         * tests/test-getopt.h: Don't include "macros.h". It's already included
18850         by tests/test-getopt-main.h.
18852 2017-05-19  Jim Meyering  <meyering@fb.com>
18854         dfa: two small simplifications
18855         * lib/dfa.c (build_state): Avoid repeating longer expressions.
18857 2017-05-18  Jim Meyering  <meyering@fb.com>
18859         fallthrough: update for GCC 7/8
18860         * lib/quotearg.c (FALLTHROUGH): New macro.
18861         Use it whenever one switch case falls through into the next,
18862         replacing "/* Fall through */" comments.  This exposed one
18863         instance of an unwarranted "fall through" comment: unwarranted
18864         because it preceded a "goto" label not a case statement.
18865         * lib/freopen-safer.c (freopen_safer): Likewise.
18866         * lib/fts.c (leaf_optimization_applies): Likewise.
18867         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
18868         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
18869         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
18870         tests/macros.h for the definition.
18871         * tests/test-argp.c (group1_parser): Likewise.
18872         * tests/test-getopt.h (getopt_loop): Likewise.
18874 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18876         argp: fix shift bug
18877         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
18878         behavior on shift overflow, caught by gcc -fsanitize=undefined.
18880         argp: fix pointer-subtraction bug
18881         * lib/argp-help.c (hol_append): Don’t subtract pointers to
18882         different arrays, as this can run afoul of -fcheck-pointer-bounds.
18883         See the thread containing Bruno Haible’s report in:
18884         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
18886 2017-05-19  Bruno Haible  <bruno@clisp.org>
18888         printf-posix tests: Avoid test failure with "gcc --coverage".
18889         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18890         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
18891         than 5000000.
18892         * tests/test-fprintf-posix2.c (main): Likewise.
18894 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18896         closeout: don’t close stderr when sanitizing
18897         * NEWS: Document this.
18898         * lib/closeout.c (__has_feature): New macro, if not already defined.
18899         (SANITIZE_ADDRESS): New constant.
18900         (close_stdout): Don’t close stderr if sanitizing addresses.
18902 2017-05-19  Bruno Haible  <bruno@clisp.org>
18904         get-rusage-data tests: Avoid failure on Linux/glibc.
18905         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
18906         on glibc systems.
18908 2017-05-18  Bruno Haible  <bruno@clisp.org>
18910         localename: Include necessary header files on Cygwin.
18911         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
18912         where NL_LOCALE_NAME is defined.
18914 2017-05-18  Bruno Haible  <bruno@clisp.org>
18916         gettext: Update macros from gettext git.
18917         * m4/intldir.m4: Require Autoconf >= 2.60.
18918         * m4/progtest.m4: Fix typos in copyright notice.
18920 2017-05-18  Bruno Haible  <bruno@clisp.org>
18922         copy-file tests: Fix link error (regression from 2017-05-01).
18923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18924         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
18925         $(LIB_CLOCK_GETTIME).
18927 2017-05-18  Bruno Haible  <bruno@clisp.org>
18929         unicase/special-casing: Fix incompatibility with gperf-3.0.4
18930         (regression from 2017-02-13).
18931         * lib/unicase/special-casing.in.h: Renamed from
18932         lib/unicase/special-casing.h.
18933         * modules/unicase/special-casing (Files): Add
18934         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
18935         (Makefile.am): Add rule for generating unicase/special-casing.h.
18936         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
18937         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
18938         not "special-casing.h".
18939         * lib/unicase/u*.c: Likewise.
18941 2017-05-17  Bruno Haible  <bruno@clisp.org>
18943         README: Don't ask people to read a TeXinfo file.
18944         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
18945         * README: Tell people how to read the HTML formatted manual.
18947 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
18949         parse-datetime: Fix memleak
18950         * lib/parse-datetime.y (parse_datetime2): Cleanup on
18951         localtime_rz() failure.
18953 2017-05-16  Bruno Haible  <bruno@clisp.org>
18955         javacomp: Fix handle leak.
18956         Found by Coverity.
18957         * lib/javacomp.c (get_classfile_version): Close fd before returning.
18959 2017-05-16  Bruno Haible  <bruno@clisp.org>
18961         relocate: Make it easier to reclaim allocated memory.
18962         * lib/relocatable.h (relocate2): New declaration/macro.
18963         * lib/relocatable.c (relocate2): New function.
18964         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
18965         relocate2 function.
18966         * lib/localcharset.c (relocate2): Define fallback.
18967         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
18968         allocated memory.
18969         * lib/javaversion.c (relocate2): Define fallback.
18970         (javaexec_version): Invoke relocate2 instead of relocate. Free the
18971         allocated memory.
18973 2017-05-16  Bruno Haible  <bruno@clisp.org>
18975         relocate: Simplify EMX specific code.
18976         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
18977         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
18979 2017-05-16  Bruno Haible  <bruno@clisp.org>
18981         sigpipe tests: Fix file list.
18982         * modules/sigpipe-tests (Files): Add tests/macros.h.
18984 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18986         manywarnings: update for GCC 7
18987         * build-aux/gcc-warning.spec:
18988         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18989         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
18990         requires a non-comment fallthrough attribute.  This is a bit
18991         cleaner than the comment versions.
18992         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
18993         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
18994         Use it whenever one switch case falls through into the next.
18995         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
18996         Use FALLTHROUGH macro.
18998 2017-05-15  Bruno Haible  <bruno@clisp.org>
19000         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19001         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19002         @ALLOCA@, not @LTALLOCA@.
19004 2017-05-15  Bruno Haible  <bruno@clisp.org>
19006         sys_select: Avoid "was expanded before it was required" warning.
19007         * modules/sys_select (configure.ac): Require, not invoke,
19008         gl_HEADER_SYS_SELECT.
19010 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19012         gnulib-tool: improve GNU Make debugging
19013         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19014         Report autoconf diagnostics when it fails, in the output makefile.
19016 2017-05-14  Bruno Haible  <bruno@clisp.org>
19018         stat-time tests: Improve comment.
19019         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19021 2017-05-14  Bruno Haible  <bruno@clisp.org>
19023         same-inode: Adapt for windows-stat-inodes.
19024         * lib/same-inode.h: Include <sys/types.h>.
19025         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19026         * modules/same-inode (Depends-on): Add sys_types.
19028 2017-05-14  Bruno Haible  <bruno@clisp.org>
19030         windows-stat-inodes: New module.
19031         * m4/windows-stat-inodes.m4: New file.
19032         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19033         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19034         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19035         (_GL_WINDOWS_STAT_INODES): New macro.
19036         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19037         (GetFileInformationByHandleExFunc): New variable.
19038         (initialize): Initialize it.
19039         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19040         st_ino appropriately.
19041         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19042         a fallback, because it does not provide st_dev and st_ino values.
19043         * modules/fstat (Depends-on): Add 'verify'.
19044         * modules/windows-stat-inodes: New file.
19045         * doc/windows-stat-inodes.texi: New file.
19046         * doc/gnulib.texi: Include it.
19047         * doc/posix-headers/sys_stat.texi: Mention the new module.
19049 2017-05-14  Bruno Haible  <bruno@clisp.org>
19051         stat-time tests: Workaround for native Windows.
19052         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19053         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19054         New variables.
19055         (initialize_filenames): New function.
19056         (main): Invoke it.
19057         (cleanup, prepare_test): Update.
19059 2017-05-14  Bruno Haible  <bruno@clisp.org>
19061         stat-time: Adapt for windows-stat-timespec.
19062         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19063         entire st_ctim field.
19065 2017-05-13  Jim Meyering  <meyering@fb.com>
19067         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19068         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19069         file that uses the assume macro, claiming that verify.h is unused.
19071 2017-05-13  Bruno Haible  <bruno@clisp.org>
19073         Use symbolic values for _WIN32_WINNT.
19074         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19075         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19077 2017-05-13  Bruno Haible  <bruno@clisp.org>
19079         year2038: New module.
19080         * m4/year2038.m4: New file.
19081         * modules/year2038: New file.
19082         * doc/year2038.texi: New file.
19083         * doc/gnulib.texi: Include it.
19085 2017-05-13  Bruno Haible  <bruno@clisp.org>
19087         largefile: Simplify.
19088         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19089         of _GL_WINDOWS_64_BIT_ST_SIZE.
19091 2017-05-13  Bruno Haible  <bruno@clisp.org>
19093         largefile: Improve and document.
19094         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19095         the mingw headers already define 'stat' appropriately.
19096         * modules/largefile (Description): Clarify.
19097         * doc/largefile.texi: New file.
19098         * doc/gnulib.texi: Include it.
19099         * doc/posix-headers/sys_types.texi: Update.
19101 2017-05-13  Bruno Haible  <bruno@clisp.org>
19103         truncate: New module.
19104         * lib/unistd.in.h (truncate): New declaration.
19105         * lib/truncate.c: New file.
19106         * m4/truncate.m4: New file.
19107         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19108         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19109         REPLACE_TRUNCATE.
19110         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19111         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19112         * modules/truncate: New file.
19113         * tests/test-unistd-c++.cc (truncate): Test signature.
19114         * doc/posix-functions/truncate.texi: Mention the new module.
19116         * tests/test-truncate.c: New file.
19117         * modules/truncate-tests: New file.
19119 2017-05-13  Bruno Haible  <bruno@clisp.org>
19121         windows-stat-timespec: New module.
19122         * modules/windows-stat-timespec: New file.
19123         * m4/windows-stat-timespec.m4: New file.
19124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19125         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19126         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19127         fields st_atim, st_mtim, st_ctim.
19128         (st_atime, st_mtime, st_ctime): Define as macros.
19129         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19130         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19131         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19132         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19133         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19134         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19135         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19136         FILETIME to 'struct timespec', not 'time_t'.
19137         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19138         FILETIME to 'struct timespec', not 'time_t'.
19139         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19140         _GL_WINDOWS_STAT_TIMESPEC.
19141         * doc/windows-stat-timespec.texi: New file.
19142         * doc/gnulib.texi: Include it.
19144 2017-05-13  Bruno Haible  <bruno@clisp.org>
19146         windows-stat-override: New module.
19147         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19148         definition. Define GNULIB_defined_struct_stat.
19149         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19150         link error if this symbol is used and the corresponding module is not
19151         in use.
19152         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19153         GNULIB_OVERRIDES_STRUCT_STAT.
19154         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19155         GNULIB_OVERRIDES_STRUCT_STAT.
19156         * modules/sys_stat (Makefile.am): Substitute
19157         GNULIB_OVERRIDES_STRUCT_STAT.
19158         * modules/windows-stat-override: New file.
19160 2017-05-13  Bruno Haible  <bruno@clisp.org>
19162         fstat: Fix module dependency conditions.
19163         * modules/fstat (Depends-on): Fix typo.
19165 2017-05-13  Bruno Haible  <bruno@clisp.org>
19167         stat, fstat: Complete removal of old native Windows code.
19168         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19169         * lib/fstat.c: Likewise.
19170         * lib/stat-w32.c: Likewise.
19172 2017-05-13  Bruno Haible  <bruno@clisp.org>
19174         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19175         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19177 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19179         getopt-posix: port to mingw
19180         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19181         Problem reported by Daniel P. Berrage in:
19182         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19184 2017-05-11  Bruno Haible  <bruno@clisp.org>
19186         gettimeofday: Increase precision on mingw.
19187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19188         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19189         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19190         GetSystemTimePreciseAsFileTime based implementation always.
19191         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19192         mingw.
19194 2017-05-11  Bruno Haible  <bruno@clisp.org>
19196         poll: Fix confusion between SOCKETs and FDs on native Windows.
19197         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19198         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19200 2017-05-11  Bruno Haible  <bruno@clisp.org>
19202         doc: Clarify doc about socket functions on native Windows.
19203         This reworks doc that was added on 2008-09-29.
19204         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19205         clearer wording.
19206         * doc/posix-functions/accept.texi: Use clearer wording.
19207         * doc/posix-functions/bind.texi: Likewise.
19208         * doc/posix-functions/connect.texi: Likewise.
19209         * doc/posix-functions/getpeername.texi: Likewise.
19210         * doc/posix-functions/getsockname.texi: Likewise.
19211         * doc/posix-functions/getsockopt.texi: Likewise.
19212         * doc/posix-functions/ioctl.texi: Likewise.
19213         * doc/posix-functions/listen.texi: Likewise.
19214         * doc/posix-functions/recv.texi: Likewise.
19215         * doc/posix-functions/recvfrom.texi: Likewise.
19216         * doc/posix-functions/send.texi: Likewise.
19217         * doc/posix-functions/sendto.texi: Likewise.
19218         * doc/posix-functions/setsockopt.texi: Likewise.
19219         * doc/posix-functions/shutdown.texi: Likewise.
19220         * doc/posix-functions/socket.texi: Likewise.
19222 2017-05-10  Bruno Haible  <bruno@clisp.org>
19224         poll: Fix link error on native Windows.
19225         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19227 2017-05-10  Bruno Haible  <bruno@clisp.org>
19229         time: Fix missing initialization of HAVE_TIMEZONE_T.
19230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19231         here...
19232         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19233         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19234         gl_HEADER_SYS_TIME_H_DEFAULTS.
19235         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19236         (configure.ac): Remove useless quoting.
19238 2017-05-10  Bruno Haible  <bruno@clisp.org>
19240         Implement a way to opt out from MSVC support, part 2.
19241         * modules/msvc-inval (Include): Document recommended idiom.
19242         * modules/msvc-nothrow (Include): Likewise.
19244         Implement a way to opt out from MSVC support.
19245         This is useful for Emacs.
19246         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19247         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19248         * lib/error.c: Likewise.
19249         * lib/fcntl.c: Likewise.
19250         * lib/flock.c: Likewise.
19251         * lib/fstat.c: Likewise.
19252         * lib/fsync.c: Likewise.
19253         * lib/ioctl.c: Likewise.
19254         * lib/isapipe.c: Likewise.
19255         * lib/lseek.c: Likewise.
19256         * lib/nonblocking.c: Likewise.
19257         * lib/poll.c: Likewise.
19258         * lib/select.c: Likewise.
19259         * lib/sockets.h: Likewise.
19260         * lib/sockets.c: Likewise.
19261         * lib/stdio-read.c: Likewise.
19262         * lib/stdio-write.c: Likewise.
19263         * lib/utimens.c: Likewise.
19264         * lib/w32sock.h: Likewise.
19265         * lib/w32spawn.h: Likewise.
19266         * tests/test-cloexec.c: Likewise.
19267         * tests/test-dup-safer.c: Likewise.
19268         * tests/test-dup2.c: Likewise.
19269         * tests/test-dup3.c: Likewise.
19270         * tests/test-fcntl.c: Likewise.
19271         * tests/test-pipe.c: Likewise.
19272         * tests/test-pipe2.c: Likewise.
19273         * lib/ftruncate.c: Likewise.
19274         (chsize_nothrow): Renamed from chsize.
19275         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19276         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19277         * lib/close.c: Likewise.
19278         * lib/dup.c: Likewise.
19279         * lib/fclose.c: Likewise.
19280         * lib/raise.c: Likewise.
19281         * tests/test-fgetc.c: Likewise.
19282         * tests/test-fputc.c: Likewise.
19283         * tests/test-fread.c: Likewise.
19284         * tests/test-fwrite.c: Likewise.
19285         * lib/getdtablesize.c: Likewise.
19286         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19287         * lib/isatty.c: Don't include msvc-inval.h if
19288         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19289         Include <io.h> as an alternative to msvc-nothrow.h.
19290         * lib/read.c: Likewise.
19291         * lib/write.c: Likewise.
19292         * lib/dup2.c: Likewise.
19293         (dup2_nothrow): New function.
19294         (ms_windows_dup2): Use it.
19295         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19296         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19297         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19298         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19299         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19300         * m4/read.m4 (gl_FUNC_READ): Likewise.
19301         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19302         * doc/windows-without-msvc.texi: New file.
19303         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19304         section.
19306 2017-05-10  Bruno Haible  <bruno@clisp.org>
19308         wait-process: Adjust native Windows support.
19309         * lib/wait-process.c: Use the usual condition for recognizing a native
19310         Windows platform.
19312 2017-05-10  Bruno Haible  <bruno@clisp.org>
19314         doc: New chapter "Native Windows Support".
19315         * doc/gnulib.texi (Native Windows Support): New chapter.
19316         * doc/windows-libtool.texi: Small wording changes.
19317         * doc/windows-sockets.texi: Small wording and formatting changes.
19319 2017-05-10  Bruno Haible  <bruno@clisp.org>
19321         doc: Move section "Library version handling".
19322         * doc/gnulib.texi: Move section "Library version handling"
19323         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19325 2017-05-10  Bruno Haible  <bruno@clisp.org>
19327         doc: Move section "Running self-tests under valgrind".
19328         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19329         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19331 2017-05-10  Bruno Haible  <bruno@clisp.org>
19333         doc: New chapter "Build Infrastructure Modules".
19334         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19336 2017-05-10  Bruno Haible  <bruno@clisp.org>
19338         Prepare for reordering sections in the manual.
19339         * doc/gnulib.texi: Move several sections to separate files. Include
19340         these files.
19341         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19342         * doc/obsolete.texi: Likewise.
19343         * doc/extra-tests.texi: Likewise.
19344         * doc/transversal.texi: Likewise.
19345         * doc/namespace.texi: Likewise.
19346         * doc/check-version.texi: Likewise.
19347         * doc/windows-sockets.texi: Likewise.
19348         * doc/windows-libtool.texi: Likewise.
19349         * doc/licenses-texi.texi: Likewise.
19350         * doc/build-automation.texi: Likewise.
19351         * doc/c-locale.texi: Likewise.
19353 2017-05-10  Bruno Haible  <bruno@clisp.org>
19355         Fix instructions how to update manual on www.gnu.org.
19356         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19358 2017-05-09  Bruno Haible  <bruno@clisp.org>
19360         tzset: Expand comment about TZ problem on native Windows.
19361         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19362         Paul Eggert.
19363         * lib/ctime.c (rpl_ctime): Likewise.
19364         * lib/localtime.c (rpl_localtime): Likewise.
19365         * lib/mktime.c (mktime): Likewise.
19366         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19367         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19369 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19371         intprops: don’t depend on ‘verify’
19372         Problem reported by Ævar Arnfjörð Bjarmason in:
19373         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19374         * lib/intprops.h: Do not include verify.h, and move compile-time
19375         checks from here ...
19376         * tests/test-intprops.c (main): ... to here, if they’re not here
19377         already.  Check widths of other standard integer types.
19378         * modules/intprops (Depends-on): Remove ‘verify’.
19380 2017-05-07  Bruno Haible  <bruno@clisp.org>
19382         utimens: On native Windows, support 100ns resolution also if fd < 0.
19383         * lib/utime.in.h: Include <time.h>.
19384         (_gl_utimens_windows): New declaration.
19385         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19386         (utime): Invoke it.
19387         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19388         instead of utime.
19389         * modules/utime (Depends-on): Add 'time'.
19391 2017-05-07  Bruno Haible  <bruno@clisp.org>
19393         utimens: Improve error code on native Windows.
19394         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19395         error code EACCES, not EINVAL.
19397 2017-05-07  Bruno Haible  <bruno@clisp.org>
19399         utime: Handle more Windows error codes.
19400         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19401         Based on explanations by Billy O'Neal.
19403 2017-05-05  Bruno Haible  <bruno@clisp.org>
19405         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19406         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19407         union.
19408         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19409         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19410         value of cipher->IV.
19412 2017-05-05  Bruno Haible  <bruno@clisp.org>
19414         wctype-h-c++-tests: Update.
19415         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19417 2017-05-05  Bruno Haible  <bruno@clisp.org>
19419         wchar-c++-tests: Update.
19420         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19422 2017-05-05  Bruno Haible  <bruno@clisp.org>
19424         utime-h-c++-tests: New module.
19425         * tests/test-utime-h-c++.cc: New file.
19426         (utime): Declare, missing since 2017-04-30.
19427         * modules/utime-h-c++-tests: New file.
19429 2017-05-05  Bruno Haible  <bruno@clisp.org>
19431         unistd-c++-tests: Update.
19432         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19433         (read): Declare, missing since 2011-04-15.
19434         (sethostname): Declare, missing since 2011-12-03.
19436 2017-05-05  Bruno Haible  <bruno@clisp.org>
19438         time-c++-tests: Update.
19439         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19440         (localtime, gmtime): Declare, missing since 2017-04-30.
19441         (ctime): Declare, missing since 2017-04-30.
19442         (strftime): Declare, missing since 2017-04-30.
19443         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19444         2015-07-24.
19446 2017-05-05  Bruno Haible  <bruno@clisp.org>
19448         sys_resource-c++-tests: New module.
19449         * tests/test-sys_resource-c++.cc: New file.
19450         (getrusage): Declare, missing since 2012-04-13.
19451         * modules/sys_resource-c++-tests: New file.
19453 2017-05-05  Bruno Haible  <bruno@clisp.org>
19455         strings-c++-tests: New module.
19456         * tests/test-strings-c++.cc: New file.
19457         (ffs): Declare, missing since 2011-07-12.
19458         * modules/strings-c++-tests: New file.
19460 2017-05-05  Bruno Haible  <bruno@clisp.org>
19462         string-c++-tests: Update.
19463         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19464         (ffsll): Declare, missing since 2011-07-15.
19466 2017-05-05  Bruno Haible  <bruno@clisp.org>
19468         stdlib-c++-tests: Update.
19469         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19470         2011-10-18.
19471         (ptsname_r): Declare, missing since 2011-11-07.
19472         (qsort_r): Declare, missing since 2014-08-29.
19473         (random, srandom, initstate, setstate): Declare, missing since
19474         2012-01-14.
19475         (secure_getenv): Declare, missing since 2013-02-05.
19477 2017-05-05  Bruno Haible  <bruno@clisp.org>
19479         stdio-c++-tests: Update.
19480         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19482 2017-05-05  Bruno Haible  <bruno@clisp.org>
19484         signal-h-c++-tests: Update.
19485         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19487 2017-05-05  Bruno Haible  <bruno@clisp.org>
19489         math-c++-tests: Update.
19490         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19491         (fma): Declare, missing since 2011-10-17.
19492         (fmal): Declare, missing since 2011-10-17.
19494 2017-05-05  Bruno Haible  <bruno@clisp.org>
19496         locale-c++-tests: Update.
19497         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19498         2012-03-25.
19500 2017-05-05  Bruno Haible  <bruno@clisp.org>
19502         inttypes-c++-tests: New module.
19503         * tests/test-inttypes-c++.cc: New file.
19504         (strtoimax): Declare, missing since 2012-01-05.
19505         (strtoumax): Declare, missing since 2012-01-05.
19506         * modules/inttypes-c++-tests: New file.
19508 2017-05-05  Bruno Haible  <bruno@clisp.org>
19510         dirent-c++-tests: Update.
19511         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19512         (rewinddir): Declare, missing since 2011-09-13.
19513         (dirfd): Declare, missing since 2010-03-08.
19515 2017-05-04  Bruno Haible  <bruno@clisp.org>
19517         argp: Fix mistake in 2017-04-23 commit.
19518         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19519         assume that strerror_r returns 'int', not 'char *'.
19521 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19523         argp: Fix typo.
19524         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19526 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19528         utimens: port to Emacs + MS-Windows
19529         Skip the new MS-Windows-specific code if Emacs.
19530         * lib/utimens.c [EMACS_CONFIGUATION]:
19531         Avoid new MS-Windows-specific code.
19532         (USE_SETFILETIME): New macro.
19533         (fdutimens): Use it.
19535 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19537         tzset: update doc for TZ problems on MS-Windows
19538         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19539         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19540         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19541         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19542         * doc/posix-functions/wcsftime.texi:
19543         Mention some issues with TZ under MS-Windows.
19545 2017-05-01  Bruno Haible  <bruno@clisp.org>
19547         copy-file: Fix build error on mingw.
19548         * modules/copy-file (Depends-on): Add 'close'.
19550 2017-05-01  Bruno Haible  <bruno@clisp.org>
19552         tzset: Work around TZ problem on native Windows.
19553         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19554         Windows, set REPLACE_TZSET to 1.
19555         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19556         invoke '_tzset' instead of 'tzset'.
19557         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19559         * modules/time_rz (Depends-on): Add tzset.
19560         * lib/time_rz.c (tzset): Remove fallback definition.
19561         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19563 2017-05-01  Bruno Haible  <bruno@clisp.org>
19565         mktime: Fix dependencies.
19566         * modules/mktime (Depends-on): Add 'time'.
19568 2017-05-01  Bruno Haible  <bruno@clisp.org>
19570         New module 'localtime-buffer', split off from module 'gettimeofday'.
19571         * lib/localtime-buffer.h: New file.
19572         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19573         * lib/time.in.h (tzset): New declaration.
19574         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19575         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19576         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19577         moved to lib/localtime-buffer.c or lib/tzset.c.
19578         * m4/localtime-buffer.m4: New file.
19579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19580         HAVE_TZSET, REPLACE_TZSET.
19581         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19582         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19583         gl_LOCALTIME_BUFFER_NEEDED.
19584         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19585         since 2007-01-18.
19586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19587         tzset.
19588         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19589         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19590         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19591         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19592         * modules/localtime-buffer: New file.
19593         * modules/time (Depends-on): Remove 'gettimeofday'.
19594         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19595         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19596         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19597         (Files): Add lib/tzset.c.
19598         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19599         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19600         gl_TIME_MODULE_INDICATOR.
19601         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19603 2017-05-01  Bruno Haible  <bruno@clisp.org>
19605         copy-file: Preserve sub-second time stamps.
19606         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19607         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19608         transport the time stamps from the original file to the destination
19609         file.
19610         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19611         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19612         utime-h.
19614 2017-05-01  Bruno Haible  <bruno@clisp.org>
19616         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19617         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19618         also on MSVC.
19619         Reported by Eli Zaretskii <eliz@gnu.org>.
19621 2017-05-01  Bruno Haible  <bruno@clisp.org>
19623         wchar: Fix compilation error with the original mingw.org mingw.
19624         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19625         <stddef.h> instead.
19626         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19627         gl_WCTYPE_H.
19628         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19629         gl_TYPE_WINT_T_PREREQ instead.
19630         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19631         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19632         Reported by Eli Zaretskii <eliz@gnu.org>.
19634 2017-04-30  Bruno Haible  <bruno@clisp.org>
19636         utimecmp: Add support for native Windows.
19637         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19639 2017-04-30  Bruno Haible  <bruno@clisp.org>
19641         utimens: Add support for native Windows.
19642         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19643         (fdutimens): Provide a native Windows implementation, like utime.c with
19644         added tv_nsec support.
19645         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19646         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19648 2017-04-30  Bruno Haible  <bruno@clisp.org>
19650         wcsftime: New module.
19651         * lib/wchar.in.h (wcsftime): New declaration.
19652         * lib/wcsftime.c: New file.
19653         * m4/wcsftime.m4: New file.
19654         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19655         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19656         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19658         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19659         * modules/wcsftime: New file.
19660         * doc/posix-functions/wcsftime.texi: Mention the new module.
19662 2017-04-30  Bruno Haible  <bruno@clisp.org>
19664         strftime-fixes: New module.
19665         * lib/time.in.h (strftime): New declaration.
19666         * lib/strftime-fixes.c: New file.
19667         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19668         (gl_FUNC_STRFTIME): Remove macro.
19669         * m4/strftime-fixes.m4: New file.
19670         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19671         REPLACE_STRFTIME.
19672         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19673         REPLACE_STRFTIME.
19674         * modules/strftime-fixes: New file.
19675         * doc/posix-functions/strftime.texi: Mention the new module.
19677 2017-04-30  Bruno Haible  <bruno@clisp.org>
19679         mktime: Work around TZ problem on native Windows.
19680         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19681         from the native Windows workaround.
19682         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19683         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19684         'guessing no'.
19685         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19686         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19687         NEED_MKTIME_WINDOWS.
19688         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19689         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19690         NEED_MKTIME_INTERNAL.
19691         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19692         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19693         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19694         not REPLACE_MKTIME.
19695         * doc/posix-functions/mktime.texi: Mention the native Windows
19696         workaround.
19698 2017-04-30  Bruno Haible  <bruno@clisp.org>
19700         localtime: New module.
19701         * lib/time.in.h (localtime): Declare also if requested by module
19702         'localtime'.
19703         * lib/localtime.c: New file.
19704         * m4/localtime.m4: New file.
19705         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19706         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19707         * modules/localtime: New file.
19708         * doc/posix-functions/localtime.texi: Mention the new module.
19710 2017-04-30  Bruno Haible  <bruno@clisp.org>
19712         ctime: New module.
19713         * lib/time.in.h (ctime): New declaration.
19714         * lib/ctime.c: New file.
19715         * m4/ctime.m4: New file.
19716         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19717         REPLACE_CTIME.
19718         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19719         * modules/ctime: New file.
19720         * doc/posix-functions/ctime.texi: Mention the new module.
19722 2017-04-30  Bruno Haible  <bruno@clisp.org>
19724         gettimeofday: Provide higher resolution on native Windows.
19725         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
19726         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
19727         (initialize): Initialize it.
19728         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
19729         'struct timeval'. Don't use _ftime().
19730         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
19731         <sys/timeb.h> and _ftime.
19733 2017-04-30  Bruno Haible  <bruno@clisp.org>
19735         Document the problem with the Cygwin environment variable TZ.
19736         * doc/posix-functions/tzset.texi: Add note about TZ.
19737         * doc/posix-functions/ctime.texi: Likewise.
19738         * doc/posix-functions/localtime.texi: Likewise.
19739         * doc/posix-functions/mktime.texi: Likewise.
19740         * doc/posix-functions/strftime.texi: Likewise.
19741         * doc/posix-functions/wcsftime.texi: Likewise.
19742         * doc/pastposix-functions/ftime.texi: Likewise.
19744 2017-04-30  Bruno Haible  <bruno@clisp.org>
19746         utime-tests: New module.
19747         * tests/test-utime.c: New file, based on tests/test-utimens.h.
19748         * tests/test-utimens-common.h: Include <sys/stat.h>.
19749         * modules/utime-tests: New file.
19751 2017-04-29  Bruno Haible  <bruno@clisp.org>
19753         utime: New module.
19754         * lib/utime.in.h: Add comment for snippets.
19755         (utime): New declaration.
19756         * lib/utime.c: New file.
19757         * m4/utime.m4: New file.
19758         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
19759         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
19760         REPLACE_UTIME.
19761         * modules/utime-h (Depends-on): Add snippets.
19762         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
19763         Insert snippets.
19764         * modules/utime: New file.
19765         * doc/posix-functions/utime.texi: Mention the new module.
19767 2017-04-29  Bruno Haible  <bruno@clisp.org>
19769         utime-h: Modernize handling of 'struct utimbuf'.
19770         * lib/utime.in.h: Include next <utime.h> if it exists.
19771         (utimbuf): Define to _utimbuf on native Windows.
19772         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
19773         Set UTIME_H on native Windows.
19774         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
19775         * modules/utime-h (Depends-on): Add include_next.
19776         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
19777         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
19779         * lib/utimens.c (utimbuf): Remove fallback definition.
19780         * m4/utimens.m4 (gl_UTIMENS): Don't require
19781         gl_CHECK_TYPE_STRUCT_UTIMBUF.
19782         * m4/utimbuf.m4: Remove file.
19783         * modules/utimens (Files): Remove m4/utimbuf.m4.
19785 2017-04-29  Bruno Haible  <bruno@clisp.org>
19787         Make use of module 'utime-h'.
19788         * modules/copy-file (Depends-on): Add utime-h.
19789         * lib/copy-file.c: Assume that <utime.h> exists.
19790         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
19792         * modules/utimens (Depends-on): Add utime-h.
19793         * lib/utimens.c: Assume that <utime.h> exists.
19795 2017-04-29  Bruno Haible  <bruno@clisp.org>
19797         utime-h: New module.
19798         * m4/utime_h.m4: New file.
19799         * lib/utime.in.h: New file.
19800         * modules/utime-h: New file.
19801         * doc/posix-headers/utime.texi: Mention the new module.
19803         * tests/test-utime-h.c: New file.
19804         * modules/utime-h-tests: New file.
19806 2017-04-30  Bruno Haible  <bruno@clisp.org>
19808         Fix a few typos.
19809         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
19810         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
19811         * doc/posix-functions/fstat.texi: Fix a plural typo.
19812         * doc/posix-functions/stat.texi: Likewise.
19813         * m4/include_next.m4: Update comments.
19815 2017-04-29  Bruno Haible  <bruno@clisp.org>
19817         error: Fix mistake in 2017-04-23 commit.
19818         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
19819         assume that strerror_r returns 'int', not 'char *'.
19821 2017-04-29  Bruno Haible  <bruno@clisp.org>
19823         stat: Fix time_t values and other problems on native Windows platforms.
19824         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
19825         implementations of stat().
19826         * lib/stat.c: Include filename.h instead of dosname.h. Include
19827         malloca.h, stat-w32.h.
19828         (is_unc_root): New function.
19829         (rpl_stat): New implementation for native Windows. Remove
19830         REPLACE_FUNC_STAT_DIR code.
19831         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
19832         Don't define REPLACE_FUNC_STAT_DIR.
19833         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
19834         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19835         (Depends-on): Remove dosname. Add filename, malloca.
19836         (configure.ac): Also compile lib/stat-w32.c.
19838 2017-04-29  Bruno Haible  <bruno@clisp.org>
19840         fstat: Fix time_t values on native Windows platforms.
19841         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
19842         * lib/stat-w32.h: New file.
19843         * lib/stat-w32.c: New file.
19844         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
19845         stat-w32.h instead.
19846         (fstat_nothrow): Remove function.
19847         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
19848         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
19849         always.
19850         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
19851         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19852         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
19853         (configure.ac): Also compile lib/stat-w32.c.
19855 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19857         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
19858         Problem reported by Assaf Gordon and Gavin Smith in:
19859         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
19860         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
19861         #define this, too.
19863 2017-04-29  Bruno Haible  <bruno@clisp.org>
19865         strerror_r-posix: Fixes for MSVC 14.
19866         * lib/strerror_r.c: Include <stdarg.h>.
19867         (strerror_r): Provide error messages for errno values 100...140.
19868         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
19870 2017-04-28  Bruno Haible  <bruno@clisp.org>
19872         noreturn: New module.
19873         * lib/noreturn.h: New file.
19874         * modules/noreturn: New file.
19875         * tests/test-noreturn.c: New file.
19876         * modules/noreturn-tests: New file.
19877         * tests/test-noreturn-c++.cc: New file.
19878         * modules/noreturn-c++-tests: New file.
19880 2017-04-27  Bruno Haible  <bruno@clisp.org>
19882         wctype-h: Fix compilation error with the original mingw.org mingw.
19883         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
19884         HAVE_CRTDEFS_H.
19885         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
19886         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19887         <stddef.h> instead.
19888         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
19890 2017-04-26  Pádraig Brady  <P@draigBrady.com>
19892         nap.h: Fix compilation on non windows platforms
19893         * tests/nap.h: Move misplaced endif.
19895 2017-04-26  Pádraig Brady  <P@draigBrady.com>
19896         and Paul Eggert  <eggert@cs.ucla.edu>
19898         time_rz: fix heap buffer overflow vulnerability
19899         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
19900         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
19901         whether there is enough buffer space available, thus avoiding
19902         the problematic promotion of signed to unsigned causing an invalid
19903         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
19904         the start of the buffer.
19905         * tests/test-parse-datetime.c (main): Add a test case written by
19906         Paul Eggert, which overwrites enough of the heap so that
19907         standard glibc will fail with "free(): invalid pointer"
19908         without the patch applied.
19910 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19912         xalloc: add missing integer overflow check
19913         * lib/xalloc.h (x2nrealloc): Also check for multiplication
19914         overflow when P is null.
19916 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19918         parse-datetime: make it standalone
19919         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
19920         (_GL_ATTRIBUTE_FORMAT): New macro.
19921         These are needed to get './gnulib-tool --test parse-datetime' to work.
19923 2017-04-23  Bruno Haible  <bruno@clisp.org>
19925         nap.h: Port to native Windows.
19926         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
19927         use nap_fd instead. On native Windows, close and reopen nap_fd.
19928         (nap_works): Don't compare the ctimes, because on native Windows, these
19929         are the creation times.
19930         (nap): Update.
19932 2017-04-23  Bruno Haible  <bruno@clisp.org>
19934         nap.h: Fix logic.
19935         * tests/nap.h (nap): Avoid signed integer overflow in loop.
19937 2017-04-23  Bruno Haible  <bruno@clisp.org>
19939         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
19940         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
19941         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
19942         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
19943         * lib/argp-help.c (__argp_failure): Likewise.
19945 2017-04-23  Bruno Haible  <bruno@clisp.org>
19947         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
19948         * m4/strerror_r.m4: Revert changes since 2016-10-16.
19949         * lib/strerror_r.c: Likewise.
19951 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
19953         Target a C99 subset, not a C89 subset
19954         For many years Gnulib has targeted C89 and has resisted using C99
19955         features, as some Gnulib-using programs still wanted to target
19956         C89.  As this no longer seems to be the case, relax the porting
19957         requirements to allow some C99 features.  This is merely a change
19958         to the documentation, to give other Gnulib developers a chance to
19959         weigh in on the topic.
19960         * doc/extern-inline.texi (extern inline):
19961         * doc/gnulib-readme.texi (Portability guidelines):
19962         * doc/gnulib-tool.texi (Initial import):
19963         * doc/gnulib.texi (Header files):
19964         Modernize to talk about C99 and C11 instead of C89 and C99.
19965         * doc/gnulib-readme.texi (Portability guidelines):
19966         Now a section, not merely a subsection, so that it
19967         can be split up.  Modernize a bit.
19968         (C language versions, C99 features assumed)
19969         (C99 features avoided):
19970         New sections.
19972 2017-04-23  Bruno Haible  <bruno@clisp.org>
19974         doc: New section "Modules that modify the way other modules work".
19975         * doc/gnulib.texi (Modules that modify the way other modules work): New
19976         section.
19978 2017-04-23  Bruno Haible  <bruno@clisp.org>
19980         stat-time: Update comments.
19981         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
19982         * tests/test-utimens-common.h: Add reference regarding st_ctime on
19983         Windows.
19985 2017-04-01  Bruno Haible  <bruno@clisp.org>
19987         glob: Fix more memory leaks.
19988         * lib/glob.c (glob): Free allocated memory before returning.
19989         Reported by Coverity via Tim Rühsen.
19991 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19993         poll: improve fast check for out-of-range NFD
19994         * lib/poll.c: Do not include intprops.h.
19995         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
19996         * modules/poll (Depends-on): Remove intprops.
19998         ftoastr: cite a newer paper
19999         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20000         instead of Loitsch 2010.
20002 2017-04-22  Bruno Haible  <bruno@clisp.org>
20004         poll: Enable argument check also in the Windows implementation.
20005         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20006         Reported by Paul Eggert.
20008 2017-04-22  Bruno Haible  <bruno@clisp.org>
20010         getlogin_r: Work around bug in Mac OS X 10.12.
20011         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20012         bug.
20013         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20014         given size minus 1, call getlogin_r a second time, on a larger buffer.
20015         * modules/getlogin_r (Depends-on): Add malloca.
20016         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20018 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20020         parse-datetime: fix %z and prefer signed int
20021         %z problem reported by Pádraig Brady in:
20022         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20023         While fixing it, I decided to prefer signed ints to size_t, as
20024         they are less error-prone (e.g., ubsan catches overflow).
20025         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20026         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20027         counts, since signed integers make for better debugging.
20028         (date): Don’t assume %z works in printf formats.
20029         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20030         sizes of buffers known to be small, e.g., because we’re using snprintf.
20031         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20033 2017-04-22  Bruno Haible  <bruno@clisp.org>
20035         *printf: Work around rounding bug on Mac OS X.
20036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20037         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20038         Mac OS X and FreeBSD.
20039         * doc/glibc-functions/*printf.texi: Likewise.
20041 2017-04-22  Bruno Haible  <bruno@clisp.org>
20043         vasnprintf tests: Avoid warnings.
20044         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20045         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20046         test.
20048 2017-04-22  Bruno Haible  <bruno@clisp.org>
20050         sys_file tests: Avoid warning.
20051         * tests/test-sys_file.c (main): Add a default clause to the switch
20052         statement.
20054 2017-04-22  Bruno Haible  <bruno@clisp.org>
20056         sethostname: Update doc.
20057         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20058         Mac OS X.
20060 2017-04-22  Bruno Haible  <bruno@clisp.org>
20062         quotearg tests: Avoid warnings.
20063         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20064         false.
20066 2017-04-22  Bruno Haible  <bruno@clisp.org>
20068         poll: Enable argument check.
20069         * lib/poll.c: Include intprops.h.
20070         (poll): Check value of nfd correctly.
20071         * modules/poll (Depends-on): Add intprops.
20073 2017-04-22  Bruno Haible  <bruno@clisp.org>
20075         get-rusage-data: Avoid warnings on Mac OS X.
20076         * lib/get-rusage-data.c: On Mac OS X, don't define
20077         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20078         (get_rusage_data) [Mac OS X]: Just return 0.
20080 2017-04-22  Bruno Haible  <bruno@clisp.org>
20082         xbinary-io: Fix build error.
20083         * modules/xbinary-io (Depends-on): Add gettext-h.
20084         * lib/xbinary-io.c: Include gettext.h and define _().
20085         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20086         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20088 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20090         parse-datetime: overflow and debug cleanups
20091         This long patch was triggered by this bug report from Ruediger Meier:
20092         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20093         I fixed the bug he noted, then found some others nearby, and then
20094         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20095         up some of the code to follow GNU standards while I was at it.
20096         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20097         use c_isdigit.
20098         (EPOCH_YEAR): Remove; unused.
20099         (TM_YEAR_BASE): Now an enum rather than a macro.
20100         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20101         time zone offset, since timezones now are in terms of seconds and
20102         not minutes.
20103         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20104         appropriate.  Verify that intmax_t is wide enough.
20105         (time_overflow, time_zone_str): New functions, used to deal
20106         more reliably with overflow.
20107         (dbg_printf): Add printf attribute, to help catch integer width errors.
20108         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20109         (%union, to_hour, yylex, parse_datetime2):
20110         Use intmax_t instead of long int and/or long_time_t.
20111         All uses changed.
20112         (DBGBUFSIZE): Move earlier.
20113         (relative_time, set_hhmmss, parser_control):
20114         Just use int for nanoseconds and for time zones; that’s wide enough.
20115         (parser_control): Use bool for members like year_seen that can
20116         be booleans instead of counters.  All uses changed.
20117         Remove debug_default_input_timezone; no longer needed.
20118         All uses removed.
20119         (apply_relative_time): Return a bool overflow flag.
20120         All uses changed to check for overflow.
20121         (apply_relative_time, zone, date, relunit, relunit_snumber)
20122         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20123         Check for integer overflow portably.
20124         (str_days): Use just int for N, as it’s wide enough.
20125         Prefer 2D char arrays to arrays of char * when it looks like
20126         2D is a win on typical platforms.
20127         Prefer snprintf to strncpy/strncat, for simplicity;
20128         all buffers are smaller than INT_MAX so this is safe.
20129         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20130         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20131         as this is not true on x32.  Output "." before any nanoseconds.
20132         (debug_print_current_time, parse_datetime2):
20133         Output local zones using a more-consistent format.
20134         (debug_print_current_time, date, parse_datetime2):
20135         (main) [TEST]:
20136         Don’t assume time_t is the same width as long.
20137         (print_rel_part): New function, replacing ...
20138         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20139         (debug_print_relative_time): Use bool for boolean.
20140         (local_zone): dsts_seen now counts only tDST instances.
20141         (date): Fix printf of size_t to use %z.  Do not assume numeric
20142         tokens have negative values merely because the context suggests
20143         a syntax with "-" separating tokens.
20144         (time_zone_hhmm): Return bool success indicator, which checks for
20145         overflow.  Store result into PC->time_zone instead.  All callers
20146         changed.
20147         (tm_year_str): New function.  Return a bool success indicator and
20148         store the result into a buffer.  All callers changed.  Output the
20149         numerically correct string even if adding 1900 to the year would
20150         overflow.
20151         (to_tm_year): New function, replacing the old to_year.  All
20152         callers changed.
20153         (tm_diff): Sync with glibc.
20154         (lookup_word): Use to_uchar instead of doing it by hand.
20155         (TZBUFSIZE): Now local to the only function that needs it.
20156         (debug_strfdatetime): Simplify now that time zones are int seconds.
20157         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20158         (get_effective_timezone): Remove.  All uses removed.
20159         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20160         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20161         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20162         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20163         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20164         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20165         * modules/parse-datetime (Depends-on): Add inttypes.
20167 2017-04-21  Bruno Haible  <bruno@clisp.org>
20169         gettext-h: Avoid -Wundef warning.
20170         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20171         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20172         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20174 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20176         error: Avoid "function declaration isn't a prototype" warning.
20177         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20179 2017-04-21  Bruno Haible  <bruno@clisp.org>
20181         vasnprintf: Fix for MSVC 14.
20182         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20183         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20184         of !HAVE_SNPRINTF_RETVAL_C99.
20186 2017-04-21  Bruno Haible  <bruno@clisp.org>
20188         mbrtowc tests: Fix test failures on MSVC 14.
20189         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20190         behaviour for invalid input.
20192 2017-04-21  Bruno Haible  <bruno@clisp.org>
20194         mbsinit: Fix for MSVC 14.
20195         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20196         implementation that is in sync with mbrtowc.c. On other platforms, use
20197         an adequate ad-hoc implementation.
20199 2017-04-21  Bruno Haible  <bruno@clisp.org>
20201         Fix test-mbrtowc5.sh failure on native Windows.
20202         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20203         "C".
20205 2017-04-21  Bruno Haible  <bruno@clisp.org>
20207         Avoid accidental use of native Windows APIs on Cygwin.
20208         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20209         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20210         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20212 2017-04-20  Bruno Haible  <bruno@clisp.org>
20214         Remove red warnings from the generated MODULES.html.
20215         * modules/fcntl (Description): Disambiguate function references.
20216         * modules/getcwd-lgpl (Description): Likewise.
20217         * modules/hostent (Description): Likewise.
20218         * modules/servent (Description): Likewise.
20219         * modules/tempname (Description): Likewise.
20221 2017-04-20  Bruno Haible  <bruno@clisp.org>
20223         verify tests: Fix spurious failure with parallel make.
20224         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20225         EXTRA_PROGRAMS.
20226         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20227         * tests/test-verify-try.c: New file.
20228         * modules/verify-tests (Files): Add it.
20229         (EXTRA_PROGRAMS): Add test-verify-try.
20230         (MOSTLYCLEANFILES): Update accordingly.
20231         Reported by Adam James Stewart <ajstewart@anl.gov>.
20233 2017-04-18  Bruno Haible  <bruno@clisp.org>
20235         vma-iter: Fix compilation error on Solaris 7.
20236         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20237         like on IRIX, OSF/1.
20238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20240 2017-04-18  Bruno Haible  <bruno@clisp.org>
20242         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20243         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20244         included.
20245         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20246         <sys/procfs.h>.
20247         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20248         <sys/procfs.h> cannot be included.
20249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20251 2017-04-18  Bruno Haible  <bruno@clisp.org>
20253         getopt-gnu: Add comments.
20254         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20255         * modules/getopt-gnu (configure.ac): Likewise.
20257 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20259         regex: port better to Solaris 10
20260         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20261         gettext, and this causes a double #define.
20262         Problem reported by Gavin Smith in:
20263         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20264         * lib/regex_internal.h (gettext): #undef before #defining.
20266 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20268         intprops: improve comments
20269         * lib/intprops.h: Improve and shorten commentary.
20270         For the record, if we ever run into a pedantic compiler that
20271         behaves differently from GCC when converting an out-of-range value
20272         to a signed integer, we can work around the problem with something
20273         like the following code, where UCT is the signed counterpart of T
20274         (UCT is sometimes narrower than UT) and all callers are changed
20275         accordingly:
20276         #if __SUNPRO_C <= 0x5120
20277         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20278            ((t) ((ut) (a) op (ut) (b)))
20279         #else
20280         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20281            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20282             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20283                + TYPE_MINIMUM (t)) \
20284             : (t) (uct) ((ut) (a) op (ut) (b)))
20285         #endif
20287 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20289         intprops: try to avoid tickling similar bugs
20290         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20291         needs to be the same width as T; it can be wider.
20292         Change callers so that UT is at least as wide as unsigned int,
20293         as I suspect that this is less likely to run into compiler bugs.
20295         intprops: port to Oracle Studio 12.3 x86
20296         Problem reported by Gavin Smith in:
20297         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20298         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20299         Convert unsigned to signed via the usual rather than the standard way,
20300         to avoid a compiler bug in Oracle Studio 12.3 x86.
20302 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20304         getopt: prefer - to _ in new file names
20305         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20306         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20307         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20308         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20309         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20310         All uses changed.
20312         getopt: port recent getopt changes to macOS
20313         Problem reported by Harald Maier (Bug#26398).
20314         The macOS C compiler uses __nonnull for its own purposes and that
20315         clashes with glibc's __nonnull.
20316         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20317         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20318         * lib/getopt_core.h (getopt):
20319         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20320         Use _GL_ARG_NONNULL, not __nonnull.
20321         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20322         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20323         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20324         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20326 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20328         getopt-gnu: omit some duplicate code
20329         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20330         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20331         gnulib-tool already does this.
20332         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20333         getopt-posix, which we depend on.
20335         getopt-posix: use angle-bracket include
20336         * lib/getopt1.c: Include <config.h>, not "config.h".
20338 2017-04-06  Zack Weinberg  <zackw@panix.com>
20340         getopt: annotate files with relationship to glibc
20342         As the final act in this patchset, adjust the message at the top of
20343         each file to indicate which files are synced with glibc.  (This has
20344         already been done for most of the headers.)
20346         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20347         Mention in top-of-file boilerplate that these files are shared
20348         between glibc and gnulib.
20351         getopt: split up getopt.in.h and eliminate __need_getopt
20353         Over in glibc, all of the __need macros are being phased out in favor
20354         of small headers that declare only the necessary components, as this
20355         is much simpler and less prone to bugs.  As getopt is shared with
20356         glibc, gnulib needs to do the same for __need_getopt.
20358         __need_getopt is misnamed; what it really means is "we want only the
20359         getopt features specified in POSIX, not the GNU extensions".  glibc
20360         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20361         these files can be shared verbatim with gnulib.  The portability
20362         wrapper, on the other hand, they have renounced altogether; glibc's
20363         getopt.h will no longer be shared with gnulib at all.  In exchange,
20364         certain glibc-specific quirks (having to do with __posix_getopt) no
20365         longer need appear in gnulib's headers at all.
20367         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20368         splits up the current gnulib-side portability wrapper into three
20369         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20370         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20371         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20372         unistd.in.h just use them.  All new files are clearly marked with
20373         whether they are shared with glibc.
20375         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20376         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20377         with glibc, and ...
20378         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20379         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20380         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20381         instead of defining __need_getopt and including the full getopt.h.
20383         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20384         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20385         * modules/getopt-posix (Files): Add new headers and sort list.
20386         (Depends-on): No longer need snippet/arg-nonnull.
20387         (Makefile.am): Generate getopt_cdefs.h.
20390         getopt: better handling of ambiguous options
20392         glibc's getopt uses alloca to construct a linked list of possibilities
20393         for an "ambiguous" long option.  In gnulib, malloc should be used
20394         instead.  Providing for both cases complicates things a fair bit.
20396         This patch rewrites ambiguous-option handling to use a boolean vector
20397         instead of a linked list.  There is then only one allocation that
20398         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20399         and in gnulib we define __libc_use_alloca to always be false, so we
20400         don't need ifdefs in the middle of the function.  This should also be
20401         slightly more efficient in the normal case of long options being fully
20402         spelled out -- I think most people aren't even aware they _can_
20403         sometimes abbreviate long options.
20405         One interesting consequence is that the list of possibilities is now
20406         printed in exactly the order they appear in the list of long options,
20407         instead of the first possibility being shuffled to the end.
20409         (The patch looks bigger than it really is because there's a fair bit
20410         of reindentation and code rearrangement.)
20412         * lib/getopt.c: When used standalone, define __libc_use_alloca
20413         as always false and alloca to abort if called.
20414         (process_long_option): Rewrite handling of ambiguous long options
20415         to use a single boolean vector, not a linked list; use
20416         __libc_use_alloca to decide whether to allocate this using alloca.
20419         getopt: refactor long-option handling
20421         There were two copies of the bulk of the code to handle long options.
20422         Now there is only one.
20424         This change temporarily removes the logic to avoid using alloca when
20425         standalone; the next patch in the series will restore it.
20427         * lib/getopt.c (process_long_option): New function split out
20428         from _getopt_internal_r.
20429         (_getopt_internal_r): Replace both copies of the long-option
20430         processing code with calls to process_long_option.
20433         getopt: tidy up _getopt_initialize a bit
20435         _getopt_data.__posixly_correct is completely redundant to
20436         _getopt_data.__ordering, and some work that logically belongs in
20437         _getopt_initialize was being done by _getopt_internal_r, making the
20438         code harder to understand.
20440         As a side effect, getenv will no longer be called if the first
20441         character of the options string is '+' or '-', which is probably a
20442         Good Thing.  (Perhaps we should have a flag character that
20443         specifically asks for the permutation behavior?)
20445         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20446         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20447         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20450         getopt: merge from glibc: repetition reduction
20452         The definitions of the entry point functions 'getopt' and
20453         '__posix_getopt' can be made substantially less repetitive with a
20454         helper macro.
20456         While I was merging the const-correctness changes from gnulib into
20457         glibc I noticed there are still some unnecessary casts in
20458         _getopt_internal_r.
20460         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20461         a macro.  Consistently cast 'argv' to 'char **' when calling
20462         _getopt_internal.
20463         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20466         getopt: clean up error reporting
20468         getopt can print a whole bunch of error messages, and when used
20469         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20470         cancellation point and getopt isn't, and also applying fprintf to a
20471         stream in wide-character mode is not allowed.  So every single error
20472         reporting case has an #ifdef _LIBC block in which it calls internal
20473         libc functions instead.  The counterpart patch series in glibc makes
20474         it possible to simplify all of that down to a set of #defines at the
20475         top of the file; core code is written as if it is safe to just call
20476         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20477         call any *other* stdio functions.)
20479         * lib/getopt.c: When _LIBC is defined, define fprintf to
20480         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20481         to _IO_funlockfile.  When neither _LIBC nor
20482         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20483         funlockfile as no-ops.
20484         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20485         standalone error-printing code can now be used for libc as well.
20486         Add an flockfile/funlockfile pair around one case where the error
20487         message is printed in several chunks.  Don't use fputc.
20490         getopt: fix fencepost error in ambiguous-W-option handling
20492         getopt_long contains an undocumented (AFAICT) feature in which, if you
20493         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20494         treated as equivalent to '--foo'.  This is implemented with a partial
20495         second copy of the code for handling long options, and that code
20496         increments optind one too many times when recovering from an ambiguous
20497         abbreviated option, which can cause the main loop to walk past the end
20498         of argv and crash.
20500         I discovered this while writing a test case that tries to exercise all
20501         of getopt's error reporting paths; I wouldn't be surprised to learn
20502         that this feature is never used by real applications.
20504         * lib/getopt.c (_getopt_internal_r): Don't increment
20505         d->optind a second time when reporting ambiguous -W options.
20508         getopt: clean up getopt.c and getopt1.c file headers
20510         In getopt.c, there is no need to include wchar.h at all, and it is
20511         safe nowadays to assume that stdlib.h does declare getenv (several
20512         other gnulib modules make this assumption).
20514         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20515         by using "" inclusions consistently, and there is no actual need to
20516         include stdlib.h (except in the #ifdef TEST block, where it should be
20517         unconditional), nor to provide a backup definition of NULL at all.
20519         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20520         Move inclusion of stdlib.h to #ifdef TEST block and make
20521         unconditional.  Do not define NULL.
20522         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20523         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20524         * modules/getopt-gnu, modules/getopt-posix: Don't call
20525         gl_PREREQ_GETENV.
20528         getopt: harmonize comments with glibc
20530         The comments explaining how the behavior of 'getopt' varies depending
20531         on whether it's the standalone version and whether there are special
20532         characters at the beginning of the options string were inconsistent
20533         between gnulib and glibc, and also out of sync with the code.
20535         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20538         getopt: remove USE_NONOPTION_FLAGS
20540         getopt includes code to parse an environment variable named
20541         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20542         in decimal); but all of it has been #ifdefed out since 2001, with no
20543         official way to turn it back on.
20545         According to commentary in glibc's config.h.in, bash version 2.0
20546         set this environment variable to indicate argv elements that were
20547         the result of glob expansion and therefore should not be treated
20548         as options, but the feature was "disabled later" because "it
20549         caused problems".  According to bash's CHANGES file, "later" was
20550         release 2.01; it gives no more detail about what the problems
20551         were.
20553         Version 2.0 of bash was released on the last day of 1996, and version
20554         2.01 in June of 1997.  Twenty years later, I think it is safe to
20555         assume that this environment variable isn't coming back.
20557         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20558         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20559         __libc_argc and __libc_argv externs, which were only used by
20560         #ifdef USE_NONOPTION_FLAGS blocks.
20563         getopt: tabify, in preparation for merge with glibc
20565         glibc sticks to the GNU default of indenting with a mix of
20566         8-column tabs and spaces; make the gnulib copy match.
20568         getopt.h is not included because it is *not* going to be merged in its
20569         present form.
20571         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20573 2017-04-02  Bruno Haible  <bruno@clisp.org>
20575         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20576         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20577         like it was done in modules/relocatable-lib on 2011-05-21 and in
20578         modules/relocatable-prog on 2011-08-15.
20579         Reported by Reuben Thomas <rrt@sc3d.org>.
20581 2017-03-31  Bruno Haible  <bruno@clisp.org>
20583         glob: Fix invalid free() call.
20584         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20585         static storage to home_dir.
20586         Reported by Coverity via Tim Rühsen.
20588 2017-03-31  Bruno Haible  <bruno@clisp.org>
20590         glob: Fix memory leaks.
20591         * lib/glob.c (glob): Free allocated memory before returning.
20592         Reported by Coverity via Tim Rühsen.
20594 2017-03-31  Bruno Haible  <bruno@clisp.org>
20596         md5, sha1, sha256, sha512: Add comments regarding correctness.
20597         * lib/md5.h (buflen): Add comments regarding range.
20598         * lib/sha1.h (buflen): Likewise.
20599         * lib/sha256.h (buflen): Likewise.
20600         * lib/sha512.h (buflen): Likewise.
20601         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20602         * lib/sha1.c (sha1_process_bytes): Likewise.
20603         * lib/sha256.c (sha256_process_bytes): Likewise.
20604         * lib/sha512.c (sha512_process_bytes): Likewise.
20605         Reported by Coverity via Tim Rühsen.
20607 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20609         getopt: merge from glibc
20610         This does not change anything substantial; it merely simplifies
20611         hypothetical merges back to glibc.
20612         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20613         Change copyright notice to match what is in glibc.
20614         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20615         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20616         __open_memstream rather than open_memstream and __glibc_likely
20617         instead of __builtin_expect.
20618         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20620 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20622         dfa: make [0-9] faster in non-C locales
20623         Problem reported by John P. Linderman (Bug#26193).
20624         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20625         If both ends of the range are ASCII digits, do not worry about
20626         multi-character collating sequences and the like.  Be consistent
20627         about using isalpha as a precondition for setbit_case_fold_c.
20629 2017-03-19  Bruno Haible  <bruno@clisp.org>
20631         lock: Fix compilation error with HP-UX IA64 cc.
20632         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20633         weak on non-glibc platforms.
20635 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20637         stdalign: tweak version# and test for HP-UX IA64
20638         Problems reported by Bruno Haible in:
20639         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20640         * lib/stdalign.in.h (_Alignas):
20641         * m4/stdalign.m4 (gl_STDALIGN_H):
20642         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20643         used octal (as that is how they document it), but it is decimal in
20644         practice now and the ancient implementations no longer matter.
20645         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20647 2017-03-19  Bruno Haible  <bruno@clisp.org>
20649         vma-iter: Add support for Solaris.
20650         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20651         approach.
20652         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20653         * lib/get-rusage-as.c: Update comment about Solaris.
20654         * lib/get-rusage-data.c: Likewise.
20656 2017-03-19  Bruno Haible  <bruno@clisp.org>
20658         vma-iter: Prefer HP-UX specific API on HP-UX.
20659         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20660         * lib/vma-iter.h: Update.
20661         Just in case HP-UX ever implements mquery().
20663 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20665         stdalign: restore previous behavior for HP-UX IA64
20666         See Bruno Haible's email in:
20667         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20668         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20669         * lib/stdalign.in.h (_Alignas):
20670         Assume the '061200' applies to Itanium, not to PA-RISC.
20671         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20673 2017-03-17  Bruno Haible  <bruno@clisp.org>
20675         stat-time, timespec: Support use of the header files in C++ mode.
20676         * lib/stat-time.h: Add "C" linkage declaration.
20677         * lib/timespec.h: Likewise.
20679 2017-03-17  Bruno Haible  <bruno@clisp.org>
20681         stdalign: Make it work with HP-UX cc.
20682         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20683         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20684         for HP-UX cc.
20686 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20688         flexmember: try to detect HP-UX 11.31 cc bug
20689         Problem reported by Bruno Haible in:
20690         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20691         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20692         Attempt to detect bug in HP-UX 11.31 cc.
20694 2017-03-16  Bruno Haible  <bruno@clisp.org>
20696         stdint: Fix test compilation failure with HP-UX 11 cc.
20697         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20698         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20699         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20700         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20702 2017-03-14  Bruno Haible  <bruno@clisp.org>
20704         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20705         * gnulib-tool (func_modules_transitive_closure_separately): If
20706         testsrelated_modules ends up with no "real" modules, aside from
20707         modules with applicability 'all', set it to empty.
20709 2017-03-14  Bruno Haible  <bruno@clisp.org>
20711         vma-iter: Add support for HP-UX.
20712         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20713         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20714         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20715         * lib/get-rusage-as.c: Update comment about HP-UX.
20716         * lib/get-rusage-data.c: Likewise.
20717         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20719 2017-03-14  Bruno Haible  <bruno@clisp.org>
20721         limits-h: Make it work with HP-UX cc.
20722         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
20723         defined.
20725 2017-03-14  Bruno Haible  <bruno@clisp.org>
20727         Fix test failures on DragonFlyBSD.
20728         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
20729         * tests/test-select.h (test_bad_fd): Likewise.
20730         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
20732 2017-03-14  Bruno Haible  <bruno@clisp.org>
20734         freadahead: Silence warning on DragonFlyBSD.
20735         * lib/freadahead.c (__sreadahead): Declare ourselves.
20737 2017-03-14  Bruno Haible  <bruno@clisp.org>
20739         vma-iter: Add comment about AIX.
20740         * lib/vma-iter.c: Add comment about why this module is not implemented
20741         on AIX.
20743 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20745         snippets: move unadjusted snippet sources to lib
20746         Problem reported by Michal Privoznik in:
20747         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
20748         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
20749         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
20750         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
20751         * lib/unused-parameter.h: Rename from
20752         build-aux/snippet/unused-parameter.h.
20753         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
20754         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
20755         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
20756         * modules/snippet/c++defs (Files:, CXXDEFS_H):
20757         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
20758         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
20759         Adjust to file renamings.
20761 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
20763         gnulib-tool: don't automatically distribute files from top/
20764         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
20765         not distribute top/README-release by default, don't distribute files
20766         from top/ unconditionally.
20767         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
20768         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
20770 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20772         gnulib-tool: fix typo in comment output
20773         * gnulib-tool (func_import): Fix typo with previous change.
20775         snippets: work around GNU Make 3.82 VPATH
20776         When using 'gnulib-tool --gnu-make' on Emacs, and building
20777         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
20778         an out-of-source (VPATH) build failed because the sans-copyright
20779         snippet file was not built before the file that used it.
20780         Presumably this is some sort of VPATH thing.  Work around the
20781         problem by using the original snippet, i.e., don’t bother to
20782         remove its copyright notice.
20783         * modules/snippet/_Noreturn, modules/snippet/link-warning:
20784         Don’t assume Automake in comments.  Omit long-incorrect comment.
20785         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
20786         (MOSTLYCLEANFILES):
20787         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
20788         (MOSTLYCLEANFILES):
20789         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
20790         (MOSTLYCLEANFILES):
20791         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
20792         (MOSTLYCLEANFILES):
20793         Remove.
20794         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
20795         * modules/snippet/c++defs (CXXDEFS_H):
20796         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
20797         * modules/snippet/warn-on-use (WARN_ON_USE_H):
20798         Don’t bother to remove the copyright notice; just use the
20799         original snippet as-is.
20801 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20803         gnulib-tool: minor --gnu-make fixups
20804         * gnulib-tool (func_emit_lib_Makefile_am):
20805         Remove useless code that was a blind alley during implementation.
20806         Problem reported by Thien-Thi Nguyen in:
20807         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
20808         (func_import): Note the "--gnu-make" option in the output comment.
20810 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
20812         gnulib-tool: new option --gnu-make
20813         This is for applications like GNU Emacs that use GNU Make
20814         features instead of Automake.
20815         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
20816         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
20817         Do not assume Automake.
20818         * gnulib-tool (func_determine_path_separator)
20819         (func_modules_transitive_closure, func_update_file)
20820         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
20821         (func_import): Add support for --gnu-make.
20823 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20825         gnulib-common.m4: avoid aclocal.m4 bloat
20826         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
20827         Hide AM_PROG_AR from aclocal, so that aclocal does not
20828         install irrelevant macro definitions into aclocal.m4.
20830 2017-03-10  Bruno Haible  <bruno@clisp.org>
20832         vma-iter: Let callers know about error.
20833         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
20834         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
20836 2017-03-05  Bruno Haible  <bruno@clisp.org>
20838         Fix value of LD for 64-bit compilers on AIX.
20839         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
20840         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
20842 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
20844         dtotimespec: simplify
20845         * lib/dtotimespec.c (dtotimespec): Simplify.
20847 2017-03-04  Bruno Haible  <bruno@clisp.org>
20849         test-calloc-gnu: Reenable test also for GCC 7.
20850         * tests/test-calloc-gnu.c (eight): New function.
20851         (main): Don't skip test; use eight() instead.
20853 2017-03-04  Jim Meyering  <meyering@fb.com>
20855         test-calloc-gnu: port to GCC7
20856         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
20857         that attempts to calloc more than SIZE_MAX bytes, because GCC7
20858         and newer would detect that at compilation time.
20860 2017-03-04  Bruno Haible  <bruno@clisp.org>
20862         tests: Avoid compiler warning about uses of null_ptr.
20863         * tests/null-ptr.h: New file.
20864         * tests/test-canonicalize.c: Include null-ptr.h.
20865         (null_ptr): Remove function.
20866         * tests/test-canonicalize-lgpl.c: Likewise.
20867         * tests/test-memmem.c: Likewise.
20868         * tests/test-ptsname_r.c: Likewise.
20869         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
20870         * modules/canonicalize-lgpl-tests: Likewise.
20871         * modules/memmem-tests: Likewise.
20872         * modules/ptsname_r-tests: Likewise.
20873         Reported by Jim Meyering.
20875 2017-03-03  Bruno Haible  <bruno@clisp.org>
20877         doc: Mention Mac OS X deficiencies regarding semaphores.
20878         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
20879         * doc/posix-functions/sem_destroy.texi: Likewise.
20880         * doc/posix-functions/sem_getvalue.texi: Likewise.
20882 2017-03-03  Bruno Haible  <bruno@clisp.org>
20884         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
20885         Reported by Assaf Gordon <assafgordon@gmail.com> via
20886         Pádraig Brady <P@draigBrady.com>.
20887         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
20888         semaphores.
20889         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
20890         (atomic_int_semaphore): New macro.
20892 2017-02-28  Bruno Haible  <bruno@clisp.org>
20894         perror tests: Tweak for z/OS.
20895         Reported by Daniel Richard G. <skunk@iskunk.org>.
20896         * tests/test-perror.sh: Don't fail z/OS style perror output.
20898 2017-02-26  Bruno Haible  <bruno@clisp.org>
20900         nproc: Refactor large function.
20901         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
20902         from num_processors.
20903         (num_processors): In this function, only deal with OMP.
20905 2017-02-26  Pádraig Brady  <P@draigBrady.com>
20907         nproc: adjust handling of OpenMP environment variables
20908         to match the return value from omp_get_num_threads(), i.e.:
20909          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
20910          - Treat 0 as an invalid value and ignore
20911         Also remove the call to omp_get_num_threads() because
20912         it's ineffective without the omp pragmas in place.
20913         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
20914         so that it can be ignored.
20915         (num_processors): Honor OMP_THREAD_LIMIT even without
20916         OMP_NUM_THREADS being set.  Also fix a typo in the environment
20917         variable being checked, from the previous recent commit.
20919 2017-02-26  Pádraig Brady  <P@draigBrady.com>
20921         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
20922         * lib/nproc.c (parse_omp_threads): A new function refactored
20923         from num_processors() to support parsing both of the
20924         above environment variables.
20925         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
20926         to accurately reflect the current OpenMP nesting level.
20927         Also support the OMP_THREAD_LIMIT environment variable
20928         to limit the max value determined from OMP_NUM_THREADS.
20929         * modules/nproc: Depend on minmax header.
20930         Suggested by Oliver Heimlich.
20932 2017-02-25  Bruno Haible  <bruno@clisp.org>
20934         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
20935         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
20937 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20939         ftoastr: port to -Wdouble-promotion
20940         Work around -Wdouble-promotion false alarm in recent GCCs.
20941         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
20942         (ftoastr_snprintf, FTOASTR): Use it.
20944 2017-02-21  Bruno Haible  <bruno@clisp.org>
20946         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
20947         Reported by Rene Saavedra <rennes@openmailbox.org> in
20948         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
20949         * lib/glthread/lock.h: On glibc systems without
20950         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
20951         implementation of rwlocks.
20952         * lib/glthread/lock.c: Likewise.
20954 2017-02-20  Bruno Haible  <bruno@clisp.org>
20956         lock tests: Fix build failure on z/OS.
20957         Reported by Daniel Richard G. <skunk@iskunk.org>.
20958         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
20959         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
20960         exist.
20962 2017-02-19  Bruno Haible  <bruno@clisp.org>
20964         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
20965         This helps when CC=clang.
20966         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
20967         of /usr/bin/gcc.
20969         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
20970         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
20972 2017-02-19  Bruno Haible  <bruno@clisp.org>
20974         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
20975         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
20976         --with-tests --single-configure is specified.
20978 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20980         users.txt: Update links, use HTTPS where possible
20981         * users.txt: Updated to HTTPS where possible,
20982         fixed some links to new locations.
20984 2017-02-16  Bruno Haible  <bruno@clisp.org>
20986         xbinary-io: Fix inlining.
20987         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
20989 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20991         xbinary-io: rename from xsetmode
20992         This patch is taken from suggestions by Bruno Haible in:
20993         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
20994         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
20995         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
20996         not ENOTTY, when it is an inappropriate device.
20997         * lib/binary-io.h (SET_BINARY): Resurrect.
20998         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
20999         (xset_binary_mode_error): Rename from xsetmode_error.
21000         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21001         (xset_binary_mode): Rename from xsetmode.
21002         All uses changed.
21003         * modules/xbinary-io: Rename from modules/xsetmode.
21004         Update file names.
21005         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21006         * NEWS: Update to match revised behavior.
21008 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21010         tests: Adjust to recent SET_BINARY change
21011         * tests/test-binary-io.c (main):
21012         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21013         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21014         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21015         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21017         xsetmode: new module
21018         This is to fix a problem noted by Eric Blake.
21019         Code was using xfreopen to change files to binary mode, but this
21020         fails for stdout when in append mode.  Such code should use
21021         xsetmode instead.
21022         * NEWS: Document incompatible changes to binary-io module.
21023         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21024         New function.
21025         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21026         (set_binary_mode): New function, which also checks for tty.
21027         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21029 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21031         headers: fix begin-end typos
21032         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21033         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21035         selinux-h: port to PGI 16.10
21036         * lib/se-selinux.in.h: Don't assume that include_next skips over
21037         duplicate -I DIR options.
21039         argp: port to PGI 16.10
21040         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21042 2017-02-13  Darshit Shah  <darnir@gnu.org>
21044         unicase: Update function protoype to match definition.
21045         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21046         uses 'size_t' as the datatype for the 'len' parameter in the functions
21047         it generates. Update the prototype specified here to match the newly
21048         generated function.
21050 2017-02-12  Bruno Haible  <bruno@clisp.org>
21052         times test: Avoid gcc warnings on Linux/x32.
21053         * tests/test-times.c (main): Really cast printf arguments from clock_t
21054         to 'long int'.
21056 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21058         glob: port better to emscripten
21059         Problem reported by Bruno Haible in:
21060         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21061         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21063 2017-02-11  Bruno Haible  <bruno@clisp.org>
21065         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21066         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21067         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21068         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21069         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21070         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21071         Distinguish hppa64 from hppa.
21073 2017-02-10  Bruno Haible  <bruno@clisp.org>
21075         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21076         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21077         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21078         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21080 2017-02-09  Bruno Haible  <bruno@clisp.org>
21082         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21083         * doc/gnulib.texi (Libtool and Windows): Recommend
21084         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21085         Reported by Reuben Thomas <rrt@sc3d.org>.
21087 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21089         stddef-tests: port to SIZE_MAX <= INT_MAX
21090         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21091         Do not assume that INT_MAX < SIZE_MAX.
21093 2017-02-01  Bruno Haible  <bruno@clisp.org>
21095         lock tests: Fix link error.
21096         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21099 2017-01-31  Bruno Haible  <bruno@clisp.org>
21101         lock: Fix link error (regression from 2017-01-05).
21102         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21103         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21104         pthread_rwlockattr_destroy weak.
21105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21107 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21109         Port to PGI 16.10 x86-64
21110         This patch fixes one real bug in gl_anylinked_list2.h, along with
21111         some minor glitches that are not bugs.  It does not silence PGI’s
21112         thousands of bogus warnings when compiling test-intprops.c.
21113         Fortunately, the warnings do not cause a failure.
21114         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21115         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21116         My goodness, PGI goes back a long ways - this predates C89!
21117         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21118         For example, ASYNCSAFE (const void *) should expand to
21119         ‘const void *volatile’, not to ‘volatile const void *’.
21120         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21121         * lib/verify.h (verify) [!__GNUC__]:
21122         Use shorter albeit meaningless string to bypass silly compiler limits.
21123         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21124         * tests/nan.h (NaNf, NaNd, NaNl):
21125         Use static functions to avoid misguided compiler diagnostics.
21126         Is there some reason we don’t use static functions on all platforms?
21128 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21130         parse-datetime: handle timezones reentrantly
21131         This API change was prompted by a report by Pádraig Brady in:
21132         https://bug.debian.org/851934#10
21133         To help fix the bug, make parse_datetime2 more reentrant.
21134         * NEWS: Document this incompatible change.
21135         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21136         Add two arguments, the timezone and the timezone name.
21137         All callers changed.  If TZ="..." is specified, use it for
21138         calculating defaults.
21139         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21140         this code should be usable in a library.
21141         (mktime_ok, get_effective_timezone):
21142         Accept timezone arg too.  All callers changed.
21143         (get_tz): Remove.
21144         (get_effective_timezone): Check for failures.
21146 2017-01-20  Eric Blake  <eblake@redhat.com>
21148         localename: port to cygwin 2.6
21149         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21150         Cygwin.
21151         * modules/localename (Depends-on): Add extensions, since
21152         NL_LOCALE_NAME() is not visible without it.
21154 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21156         parse-datetime: fix dependence on AC_PROG_SED
21157         * modules/parse-datetime: Use `sed` directly like all other modules.
21158         Reported by J William Piggott
21160 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21162         intprops: update doc URLs
21163         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21165 2017-01-16  Bruno Haible  <bruno@clisp.org>
21167         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21168         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21169         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21170         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21171         distinguish s390 and s390x.
21172         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21173         * NEWS: Mention the change regarding 'armel'.
21175 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21177         localeinfo: case_folded_counterparts and WEOF
21178         * NEWS: Document this.
21179         * lib/localeinfo.c (case_folded_counterparts):
21180         First arg is now wint_t, not wchar_t.  This generalizes the
21181         function to also work on WEOF, where it returns 0.
21183         dfa: port to gcc -fsanitize=undefined
21184         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21185         as this runs afoul of gcc -fsanitize=undefined.
21187 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21189         strftime: %z is -00 if unknown
21190         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21191         the caller's responsibility to set 'negative_number'.  All uses changed.
21192         (__strftime_internal): Put '-' before a zero UTC offset if the time
21193         zone abbreviation starts with "-", which is the recently-introduced
21194         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21195         * tests/test-strftime.c: Test for this.
21197 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21199         dfa: port to older GCC
21200         Problem reported by Assaf Gordon in:
21201         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21202         * modules/c99: New module.  This merely attempts to use the latest
21203         C version, which should be enough to solve this particular problem.
21204         The idea is to document which Gnulib modules assume C99 or later.
21205         * modules/dfa (Depends-on): Add it.
21207 2017-01-10  Bruno Haible  <bruno@clisp.org>
21209         Update DEPENDENCIES.
21210         * DEPENDENCIES: List only https URLs. Update recommended version for
21211         autoconf, automake, gperf.
21213 2017-01-10  Jim Meyering  <meyering@fb.com>
21215         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21216         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21217         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21219 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21221         dfa: minor simplification with emptyset
21222         * lib/dfa.c (build_state): Simplify by using emptyset.
21224 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21226         dfa: shrink constraints from 4 bits to 3
21227         * lib/dfa.c (newline_constraint, letter_constraint)
21228         (other_constraint, prev_newline_dependent)
21229         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21230         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21231         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21232         Constraints need only 3 bits, not 4.  Using smaller integers
21233         shrinks the code a bit and makes grep a tad faster on x86-64.
21235         dfa: omit unnecessary ptrdiff_t check
21236         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21237         overflow, since xnmalloc does that now.
21239         dfa: omit unnecessary allocation
21240         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21241         an all-zero follow set works just fine.
21243         dfa: omit unused local
21244         * lib/dfa.c (build_state): Fix up recent change.
21246         maint: remove stray .texi files
21247         Although these were superseded by other files like
21248         doc/posix-functions/ctime.texi, the old files were not removed.
21249         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21251 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21253         getprogname: fix port to IRIX
21254         * lib/getprogname.c (getprogname) [__sgi]:
21255         Don't dump core if malloc returns NULL.
21257         dfa: fix reallocation bug when matching newlines
21258         Problem reported for sed by S. Gilles (Bug#25390).
21259         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21260         (dfastate): Reallocate before moving any newline transition ...
21261         (build_state): ... instead of reallocating here, where it is too late.
21263 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21265         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21266         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21268 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21270         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21271         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21273 2017-01-07  Bruno Haible  <bruno@clisp.org>
21275         stdioext: Port to Minix 3.2 and newer.
21276         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21277         * lib/fseeko.c (fseeko): Likewise.
21278         Reported by Nelson Beebe via Paul Eggert.
21280 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21282         getprogname: port to IRIX
21283         * lib/getprogname.c (getprogname): Port to IRIX.
21284         Based on an idea by Bastien Roucariès at:
21285         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21286         via code from Bruno Haible at:
21287         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21289         localename-tests: port to NetBSD 7
21290         Problem reported by Nelson H. F. Beebe.
21291         * tests/test-localename.c:
21292         Test newlocale and uselocale only if both exist.
21294         glob, intprops, xalloc: work around Clang bug
21295         Work around LLVM bug 16404, which is still not fixed.
21296         https://llvm.org/bugs/show_bug.cgi?id=16404
21297         Problem reported by Nelson H. F. Beebe.
21298         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21299         Remove.
21300         * lib/glob.c (size_add_wrapv):
21301         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21302         * lib/xalloc-oversized.h (xalloc_oversized):
21303         Do not use overflow builtins if Clang.
21305         dfa: fix 'return' typo
21306         Problem reported by Nelson H. F. Beebe.
21307         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21309 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21311         parse-datetime: fix generated paths for coverage files
21312         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21313         within parse-datetime.c, so that gcc generates appropriate .gcno
21314         files, allowing lcov to proceed without error.  Previously it
21315         would error trying to find "lib/lib/parse-datetime.y".
21317 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21319         maint.mk: support parallel execution of coverage
21320         * top/maint.mk (coverage): Run dependencies serially,
21321         thus supporting parallel processing of each one,
21322         particularly build-coverage, which builds and runs tests.
21324 2017-01-05  Bruno Haible  <bruno@clisp.org>
21326         lock tests: Prefer semaphore over mutex.
21327         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21328         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21329         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21330         Suggested by Torvald Riegel <triegel@redhat.com>.
21332 2017-01-05  Bruno Haible  <bruno@clisp.org>
21334         lock: Provide guarantee to avoid writer starvation for rwlocks.
21335         The rationale is: 1) Read-preferring read-write locks are prone to
21336         writer starvation if the number of reader threads multiplied by the
21337         percentage of time they have the lock held is too high. 2) Write-
21338         preferring read-write locks are the only reliable way to avoid this.
21339         3) There have been reports of 'test-lock' hanging on glibc systems
21340         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21341         and glibc indeed implements read-preferring rwlocks by default, see
21342         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21343         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21344         * m4/pthread_rwlock_rdlock.m4: New file.
21345         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21346         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21347         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21348         of rwlock initialization on glibc systems without
21349         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21350         of rwlocks altogether on non-glibc systems without
21351         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21352         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21353         * lib/glthread/lock.c [USE_POSIX_THREADS]
21354         (glthread_rwlock_init_for_glibc): New function.
21355         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21356         comment.
21357         [USE_PTH_THREADS]: New implementation of rwlocks.
21358         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21359         readers.
21360         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21361         (Depends-on): Add 'extensions'.
21362         * tests/test-rwlock1.c: New file.
21363         * lock-tests (Files): Add it.
21364         (Depends-on): Add usleep.
21365         (Makefile.am): Add test-rwlock1 to the tests.
21367 2017-01-05  Bruno Haible  <bruno@clisp.org>
21369         thread: Fix pth port.
21370         * lib/glthread/thread.h (pth_init): Declare weak.
21371         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21372         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21373         function.
21375 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21377         parse-datetime: fix debug message on lone year number
21378         Input dates such as
21379           date -d "Apr 11 22:59:00 2011"
21380         are parsed as date (Apr 11, with default year 2016), then time, then a
21381         number (2011). Based on the combination of previously seen tokens,
21382         'digits_to_date_time' determines 2011 to be a year value.
21383         This fixes the debug messages to correctly show the updated year.
21384         Before:
21385             $ date --debug -d 'Apr 11 22:59:00 2011'
21386             date: parsed date part: (Y-M-D) 2016-04-11
21387             date: parsed time part: 22:59:00
21388             date: parsed number part: today/this/now
21389         After:
21390             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21391             date: parsed date part: (Y-M-D) 2016-04-11
21392             date: parsed time part: 22:59:00
21393             date: parsed number part: year: 2011
21394         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21395         'debug_year_seen' member fields.
21396         (digits_to_date_time): Update 'year_seen' as needed.
21397         (debug_print_current_time): Inform about year updates.
21398         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21400         parse-datetime: fix local timezone debug messages
21401         "Local timezones" are strings that affect only DST relative to the
21402         default timezone. The debug messages in parse-datetime.y printed
21403         wrong information when encountering local timezones.
21404         Examples:
21405         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21406              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21407              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21408         When the default timezone relates to the zone strings, EET/EEST are
21409         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21410         value (0/1, respectively):
21411              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21412              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21413         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21414         was seen, inform about DST change, don't print actual timezone.
21415         (debug_strfdatetime): If local timezone was seen, use default timezone
21416         (and adjust as needed) instead of using incorrect timezone.
21417         (parse_datetime2): Use correct time-zone source string, and adjust
21418         default timezone as needed.
21420         parse-datetime: add debug warning about DST changes
21421         Incorrect date arithmetic due to daylight saving time (DST) are a
21422         common (false) bug report in coreutils.
21423         Detect two such cases and print a warning:
21424         1. year/month/day adjustments (performed on 'struct tm'),
21425            where 'mktime' returns a different isdst value.
21426         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21427            where the result of 'localtime(3)' on the value will return a
21428            different isdst value.
21429         Note: DST changes could be harmless or unnoticeable.
21430         Examples (with 'TZ=America/New_York'):
21431         Unnoticeable: result is 2016-Dec-14
21432            $ date -d '2016-06-15 EDT + 6 months' +%b
21433            Dec
21434         Unnoticeable: result is 2016-Dec-15 11:00:00
21435            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21436            2016-12-15
21437         This is unexpected:
21438            $ date -d '2016-06-01 EDT + 6 months' +%F
21439            2016-11-30
21440         The new debug warnings will show:
21441            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21442            ...
21443            date: warning: daylight saving time changed after date adjustment
21444            ...
21445         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21446         print an appropriate warning message.
21448         parse-datetime: add debug warning about date arithmetic
21449         Date arithmetic are done directly on the fields of 'struct tm',
21450         which can result in invalid dates. Normalization with 'mktime(3)'
21451         will then produce a different date - which might cause unexpected
21452         results.
21453         Examples:
21454           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21455           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21456         Note that date normalization is not inherently wrong and not rejected,
21457         as it has legitimate uses:
21458           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21459         If the user asked to adjust months but 'mday' changed,
21460         or user asked to adjust years but 'month' changed - warn about it.
21461             $ ./src/date --debug -d '2016-10-31 - 1 month'
21462             ...
21463             date: warning: when adding relative months/years, \
21464                            it is recommended to specify the 15th of the month
21465             ...
21466             date: warning: month/year adjustment resulted in shifted dates:
21467             date:      adjusted Y M D: 2016 09 31
21468             date:    normalized Y M D: 2010 10 01
21469             ...
21470         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21471         a warning message. Improve recommendation of when to use 15 of the
21472         month or noon for date arithmetic.
21474         parse-datetime: fix debug message of relative part after timezone
21475         Relative part (e.g '+8 days') after a timezone string was not
21476         reported (was only reported after a timezone number). Due to the
21477         parser's structure, timezone strings with numbers were handled
21478         separately.
21479         before:
21480              # Timezone number + relative part: OK
21481              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21482              ...
21483              date: parsed relative part: -8 day(s)
21484              # Timezone string + relative part: missing
21485              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21486              [ missing message ]
21487         After: messages are printed in both cases.
21488         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21490         parse-datetime: fix incorrect debug message on lone number
21491         A lone number is an absolute value, not a relative time part.
21492         before:
21493            $ date --debug -d '20130101'
21494            date: parsed number part: today/this/now
21495         After:
21496            $ ./src/date --debug -d '20130101'
21497            date: parsed number part: (Y-M-D) 2013-01-01
21498         * lib/parse-datetime.y ('item'/'number' tokens): Call
21499         'debug_print_current_time' instead of 'debug_print_relative_time'.
21501 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21503         doc: modernize for C11 etc.
21504         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21505         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21506         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21508         dfa: prefer functions to FETCH_WC macro
21509         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21510         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21511         wint_t result into DFA->lex.wctok instead of to a separate arg.
21512         All callers changed.  Move more local decls closer to where
21513         they're used.
21515         dfa: narrow more local var scopes
21516         * lib/dfa.c: Move more local decls to be more local.
21518         dfa: remove duplicate assignment
21519         Problem reported by Bruno Haible in:
21520         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21521         * lib/dfa.c (parse_bracket_exp): Simplify.
21523 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21525         dfa: simplify constraint-dependency checking
21526         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21527         (prev_other_constraint): Remove.
21528         (prev_newline_dependent, prev_letter_dependent):
21529         Simplify, to avoid an unnecessary bitwise AND operation.
21531         dfa: prefer functions and constants to macros
21532         * lib/dfa.c: Prefer constants to macros where either will do.
21533         (streq, isasciidigit, newline_constraint)
21534         (letter_constraint, other_constraint, succeeds_in_context)
21535         (prev_newline_constraint, prev_letter_constraint)
21536         (prev_other_constraint, prev_newline_dependent)
21537         (prev_letter_dependent, accepting, accepts_in_context):
21538         Now static functions instead of function-like macros.
21539         Use lower-case names accordingly.  All uses changed.
21541         dfa: narrow more local var scopes
21542         * lib/dfa.c: Move some more local decls down to nearer where
21543         they're needed.
21545 2016-12-31  Jim Meyering  <meyering@fb.com>
21547         dfa: narrow the scope of many local variables
21548         * lib/dfa.c: Now that we are no longer constrained to c89, move
21549         declarations of many variables (often indices) "down" into the
21550         scope(s) where used or to the point of definition.  This is a
21551         no-semantic-change diff.
21553 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21555         version-etc: new year
21556         * build-aux/gendocs.sh (version):
21557         * doc/gendocs_template:
21558         * doc/gendocs_template_min:
21559         * doc/gnulib.texi:
21560         * lib/version-etc.c (COPYRIGHT_YEAR):
21561         Update copyright dates by hand in templates and the like.
21562         * all files: Run 'make update-copyright'.
21564 2016-12-31  Eric Blake  <eblake@redhat.com>
21566         do-release-commit-and-tag: avoid shell syntax error
21567         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21568         contain spaces when rebasing.
21570         maint.mk: hoist gnulib_dir definition earlier
21571         * top/maint.mk (gnulib_dir): Move near top of file.
21573 2016-12-31  Jim Meyering  <meyering@fb.com>
21575         maint.mk: do not always evaluate intprops-related shell
21576         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21577         using gnulib_dir undefined (gnulib_dir is defined later in the
21578         file, which will be fixed separately), and besides, there is no
21579         need to incur the cost of this shell invocation for every single
21580         use of this .mk file.  Reported by Eric Blake in
21581         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21583 2016-12-30  Jim Meyering  <meyering@fb.com>
21585         maint.mk: improve sc_prohibit_intprops_without_use
21586         * top/maint.mk (_intprops_names): Don't hard-code the list of
21587         symbol names.  Instead, derive it on the fly.
21589 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21591         dfa: shorten sbit, success
21592         * lib/dfa.c (struct regex_syntax.sbit):
21593         (struct dfa.success): Use char, not int, for array elements, since
21594         they are all in the range 0..7.
21596         dfa: simplify multibyte_prop etc.
21597         This follows up on a change made when dfa.c was in grep, namely grep
21598         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21599         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21600         That earlier simplification allows for some more simplification
21601         and trimming down here.
21602         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21603         (struct lexer_state): New mamber brack.
21604         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21605         since they must be in the range 0..3 now.
21606         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21607         the brack member now supersedes them.
21608         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21609         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21610         (dfaparse): Remove unnecessary initializations of already-0 storage.
21611         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21612         (dfassbuild): No need to clear sup->mbcsets.
21614         dfa: minor performance tweak
21615         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21617         dfa: wrap charclass inside a struct
21618         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21619         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21620         about 5% faster, where list.txt is generated by 'aspell dump
21621         master | head -n 100000 >list.txt'.  See Bug#22239.
21622         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21623         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21624         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21625         Adjust to this, e.g., by using charclass * rather than charclass.
21626         All callers changed as needed.
21627         (copyset): Remove.  All uses changed to simple assignment.
21628         (parse_bracket_exp): Use zeroset instead of memset.
21630 2016-12-30  Jim Meyering  <meyering@fb.com>
21632         maint.mk: update list of intprops.h symbol names
21633         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21634         This avoids a false failure of the sc_prohibit_intprops_without_use
21635         rule in grep.
21637 2016-12-29  Eric Blake  <eblake@redhat.com>
21639         getopt: fix parallel test failure
21640         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21641         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21642         * tests/test-getopt-main.h (main): Use different file names
21643         in case test-getopt-gnu and test-getopt-posix run in parallel.
21645 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21647         xalloc: x2nrealloc check for ptrdiff_t overflow
21648         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21649         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21651 2016-12-24  Bruno Haible  <bruno@clisp.org>
21653         lock test: Fix performance problem on multi-core machines.
21654         * tests/test-lock.c (USE_VOLATILE): New macro.
21655         (struct atomic_int): New type.
21656         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21657         functions.
21658         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21659         as 'struct atomic_int'.
21660         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21661         reclock_checker_thread, test_recursive_lock): Use the new functions.
21662         Reported by Eric Blake in
21663         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21664         and by Pádraig Brady in
21665         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21667 2016-12-19  Bruno Haible  <bruno@clisp.org>
21669         vma-iter: Fix endless loop on 64-bit Windows.
21670         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21671         'unsigned long'.
21673 2016-12-19  Bruno Haible  <bruno@clisp.org>
21675         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21676         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21677         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21678         Invoke gt_TYPE_WINT_T instead.
21679         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21680         * modules/stdint (Files): Add m4/wint_t.m4.
21681         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21682         * modules/wctype-h (Makefile.am): Likewise.
21683         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21684         not only on MSVC.
21685         * lib/wctype.in.h (wint_t): Likewise.
21687 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21689         getopt-posix-tests: fix Makefile typo
21690         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21691         Fix typo: the last ‘_’ was missing in the name.
21692         I suspect that the typo explains this build failure:
21693         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21694         although I can’t reproduce the problem on Solaris 10 sparc.
21696 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21698         dfa: improve worst-case 'replace' performance
21699         See my note in Bug#22357#71.
21700         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21701         (merge_constrained): New function, which is like
21702         the old 'merge' function, except with a new argument C2.
21703         Simplify the body by avoiding the need for different sections
21704         of code depending on whether one input is exhausted.
21705         (merge): Use the new function.
21706         (delete): Return the constraint of the deleted position,
21707         not the entire position.  Caller changed.
21708         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21710 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21712         dfa: performance improvement for removal of epsilon closure
21713         See Bug#22357#32.
21714         * lib/dfa.c (delete): Use binary search to find deleted index.
21715         (replace): New function.  It replaces a position with the followed set.
21716         (epsclosure): Replace it with a new algorithm.  Update caller.
21718 2016-12-18  Bruno Haible  <bruno@clisp.org>
21720         Split tests for getopt-posix and getopt-gnu.
21721         * tests/test-getopt-posix.c: New file.
21722         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
21723         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
21724         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
21725         GNULIB_TEST_GETOPT_GNU.
21726         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
21727         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
21728         (Makefile.am): Test test-getopt-posix instead of test-getopt.
21729         * modules/getopt-gnu-tests: New file.
21730         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
21732 2016-12-18  Bruno Haible  <bruno@clisp.org>
21734         posix-modules: Add options for specific platforms.
21735         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
21736         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
21737         Invoke func_tmpdir. Filter out the excludes.
21739 2016-12-18  Bruno Haible  <bruno@clisp.org>
21741         getopt: Fix link error for users of getopt() in <unistd.h>.
21742         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
21743         __need_getopt is defined. Undefine all macros before defining them.
21744         * modules/getopt (Include): Clarify that including <unistd.h> is also
21745         OK.
21746         * tests/test-getopt.c: Add comment.
21748 2016-12-17  Bruno Haible  <bruno@clisp.org>
21750         getaddrinfo tests: Avoid compilation error on MSVC.
21751         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
21752         getaddrinfo on native Windows.
21754 2016-12-17  Bruno Haible  <bruno@clisp.org>
21756         getlogin, getlogin_r: Fix link errors on MSVC.
21757         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
21758         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
21759         (Link): New section.
21760         * modules/getlogin_r (Files): Add m4/getlogin.m4.
21761         (configure.ac): Require gl_LIB_GETLOGIN.
21762         (Link): New section.
21763         * NEWS: Mention the new link requirements.
21764         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
21765         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
21767 2016-12-17  Bruno Haible  <bruno@clisp.org>
21769         Un-deprecate the 'progname' module.
21770         * NEWS: Describe the appropriate use-cases of 'progname' versus
21771         'getprogname'. Based on discussion summary at
21772         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
21774 2016-12-17  Bruno Haible  <bruno@clisp.org>
21776         Reorganize NEWS a bit.
21777         * NEWS: Move some not so important changes away from section
21778         "Important Notes".
21780 2016-12-17  Bruno Haible  <bruno@clisp.org>
21782         tanhf: Avoid redefinition error on MSVC.
21783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
21784         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
21785         may be defined as an inline function.
21786         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
21787         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
21789 2016-12-17  Bruno Haible  <bruno@clisp.org>
21791         tanf: Avoid redefinition error on MSVC.
21792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
21793         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
21794         may be defined as an inline function.
21795         * modules/math (Makefile.am): Substitute REPLACE_TANF.
21796         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
21798 2016-12-17  Bruno Haible  <bruno@clisp.org>
21800         sqrtf: Avoid redefinition error on MSVC.
21801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
21802         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
21803         may be defined as an inline function.
21804         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
21805         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
21807 2016-12-17  Bruno Haible  <bruno@clisp.org>
21809         sinhf: Avoid redefinition error on MSVC.
21810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
21811         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
21812         may be defined as an inline function.
21813         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
21814         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
21816 2016-12-17  Bruno Haible  <bruno@clisp.org>
21818         sinf: Avoid redefinition error on MSVC.
21819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
21820         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
21821         may be defined as an inline function.
21822         * modules/math (Makefile.am): Substitute REPLACE_SINF.
21823         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
21825 2016-12-17  Bruno Haible  <bruno@clisp.org>
21827         logf: Avoid redefinition error on MSVC.
21828         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
21829         may be defined as an inline function.
21831 2016-12-17  Bruno Haible  <bruno@clisp.org>
21833         log10l: Avoid redefinition error on MSVC.
21834         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
21835         may be defined as an inline function.
21837 2016-12-17  Bruno Haible  <bruno@clisp.org>
21839         log10f: Avoid redefinition error on MSVC.
21840         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
21841         may be defined as an inline function.
21843 2016-12-17  Bruno Haible  <bruno@clisp.org>
21845         hypotl: Avoid redefinition error on MSVC.
21846         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
21847         may be defined as an inline function.
21849 2016-12-17  Bruno Haible  <bruno@clisp.org>
21851         hypotf: Avoid redefinition error on MSVC.
21852         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
21853         may be defined as an inline function.
21855 2016-12-17  Bruno Haible  <bruno@clisp.org>
21857         fmodl: Avoid redefinition error on MSVC.
21858         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
21859         may be defined as an inline function.
21861 2016-12-17  Bruno Haible  <bruno@clisp.org>
21863         fmodf: Avoid redefinition error on MSVC.
21864         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
21865         may be defined as an inline function.
21867 2016-12-17  Bruno Haible  <bruno@clisp.org>
21869         expf: Avoid redefinition error on MSVC.
21870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
21871         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
21872         may be defined as an inline function.
21873         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
21874         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
21876 2016-12-17  Bruno Haible  <bruno@clisp.org>
21878         coshf: Avoid redefinition error on MSVC.
21879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
21880         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
21881         may be defined as an inline function.
21882         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
21883         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
21885 2016-12-17  Bruno Haible  <bruno@clisp.org>
21887         cosf: Avoid redefinition error on MSVC.
21888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
21889         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
21890         may be defined as an inline function.
21891         * modules/math (Makefile.am): Substitute REPLACE_COSF.
21892         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
21894 2016-12-17  Bruno Haible  <bruno@clisp.org>
21896         atan2f: Avoid redefinition error on MSVC.
21897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
21898         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
21899         may be defined as an inline function.
21900         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
21901         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
21903 2016-12-17  Bruno Haible  <bruno@clisp.org>
21905         atanf: Avoid redefinition error on MSVC.
21906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
21907         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
21908         may be defined as an inline function.
21909         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
21910         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
21912 2016-12-17  Bruno Haible  <bruno@clisp.org>
21914         asinf: Avoid redefinition error on MSVC.
21915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
21916         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
21917         may be defined as an inline function.
21918         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
21919         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
21921 2016-12-17  Bruno Haible  <bruno@clisp.org>
21923         acosf: Avoid redefinition error on MSVC.
21924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
21925         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
21926         may be defined as an inline function.
21927         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
21928         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
21930 2016-12-17  Bruno Haible  <bruno@clisp.org>
21932         Avoid redefinition errors on MSVC.
21933         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
21934         the function may be defined as an inline function.
21935         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
21936         the function may be defined as an inline function.
21938 2016-12-17  Bruno Haible  <bruno@clisp.org>
21940         Avoid redefinition errors on MSVC.
21941         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
21942         * lib/unistd.in.h: Include <stdio.h> when necessary.
21944 2016-12-17  Bruno Haible  <bruno@clisp.org>
21946         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
21947         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
21948         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21949         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
21950         WINT_MAX.
21952 2016-12-17  Bruno Haible  <bruno@clisp.org>
21954         Avoid autoconf warning.
21955         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
21956         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
21958 2016-12-17  Bruno Haible  <bruno@clisp.org>
21960         fpending: Revert workaround against Emacs bug.
21961         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
21962         The Emacs bug is fixed by Eli Zaretskii in
21963         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
21965 2016-12-17  Bruno Haible  <bruno@clisp.org>
21967         getlogin_r tests: Port to mingw.
21968         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
21969         regression introduced on 2014-05-19.
21971 2016-12-17  Bruno Haible  <bruno@clisp.org>
21973         getlogin: Port to newer mingw.
21974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
21975         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
21976         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
21977         HAVE_GETLOGIN.
21978         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
21979         HAVE_GETLOGIN.
21980         * doc/posix-functions/getlogin.texi: Mention the issue.
21981         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
21982         regression introduced on 2014-05-14.
21984 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21986         builtin-expect: improve port to IBM XL C
21987         Problem reported for z/OS by Daniel Richard G. in:
21988         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
21989         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
21990         Test for <builtins.h> directly.
21992         builtin-expect: port to IBM XL C
21993         Problem reported for z/OS by Daniel Richard G. in:
21994         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
21995         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
21996         Also allow __builtin_expect defined via a standard include file.
21998         regex: fix dependency
21999         Problem reported by Bruno Haible in:
22000         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22001         * modules/regex: Depend on builtin-expect.
22003         builtin-expect: new module
22004         Fix fnmatch to use it.
22005         Problem reported for z/OS by Daniel Richard G.
22006         * lib/fnmatch.c (__builtin_expect):
22007         * lib/glob.c (__builtin_expect):
22008         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22009         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22010         * lib/scandir.c (__builtin_expect):
22011         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22012         Remove macro; config.h now does this.
22013         * lib/gl_anytreehash_list1.h (add_to_bucket):
22014         * lib/regex_internal.h (BE):
22015         Assume __builtin_expect.
22016         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22017         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22018         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22019         * modules/scandir, modules/strstr-simple:
22020         Depend on builtin-expect.
22022 2016-12-15  Bruno Haible  <bruno@clisp.org>
22024         init.sh: Add possibility to not delete temporary files.
22025         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22026         to yes, don't erase the temporary directory.
22028 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22030         regex: fix integer-overflow bug in never-used code
22031         Problem reported by Clément Pit–Claudel in:
22032         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22033         * lib/regex_internal.h: Include intprops.h.
22034         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22035         behavior on integer overflow.
22036         * modules/regex (Depends-on): Add intprops.
22038         fpending: fix port to MinGW on Emacs
22039         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22040         Problem reported by Eli Zaretskii in:
22041         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22042         Is Plan 9 still a valid porting target, anyway?
22044 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22046         safe-alloc: use xalloc-oversized
22047         * lib/safe-alloc.c: Include xalloc-oversized.h.
22048         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22049         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22051         xalloc: do not exceed PTRDIFF_MAX
22052         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22053         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22054         bytes have pointer-subtraction problems.
22056         malloca: do not exceed PTRDIFF_MAX
22057         * lib/malloca.h: Include xalloc-oversized.
22058         (nmalloca): Use xalloc_oversized instead of rolling our own.
22059         * modules/malloca (Depends-on):
22060         * modules/relocatable-prog-wrapper (Depends-on):
22061         Add xalloc-oversized.
22063         quotearg: pacify GCC better
22064         * modules/quotearg (Depends-on): Add minmax, stdint.
22065         * lib/quotearg.c: Include minmax.h, stdint.h.
22066         (nslots): Now int, as there seems little point to going to extra
22067         work merely to support the INT_MAX slot, which nobody ever uses.
22068         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22069         and to catch (mostly-theoretical) ptrdiff_t problems too.
22070         This can be done via one comparison.
22072 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22074         xalloc-oversized: check for PTRDIFF_MAX too
22075         This avoids undefined behavior when subtracting pointers to
22076         objects containing more than PTRDIFF_MAX bytes.
22077         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22078         Also return 1 if the result would exceed PTRDIFF_MAX>
22079         * modules/xalloc-oversized (Depends-on):
22080         Add stdint.
22082         dfa: fix glitches in previous commit
22083         Sorry, I don't know how I managed to commit the wrong version.
22084         * lib/dfa.c (MIN): Move up.
22085         (xpalloc): Now static.
22087         dfa: fix some unlikely integer overflows
22088         I found these while reviewing the recent Coverity-related fix.
22089         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22090         size_t for object counts.  Using ptrdiff_t is the style typically
22091         used in Emacs; although it wastes a sign bit as sizes can never be
22092         negative, it makes -fsanitize=undefined more likely to catch
22093         integer overflows in index calculation, and nowadays the upside is
22094         typically more important than the downside.  Although perhaps the
22095         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22096         of dfa.c already does, since it uses state_num which is signed),
22097         that is a bigger change and is not needed to fix the bugs I found.
22098         * lib/dfa.c: Include stdint.h and intprops.h.
22099         (TOKEN_MAX): New macro.
22100         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22101         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22102         (realloc_trans_if_necessary, free_mbdata):
22103         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22104         This is safe because xpalloc checks that the sizes do not exceed
22105         either SIZE_MAX or PTRDIFF_MAX.
22106         (xpalloc): New function, mostly taken from Emacs.
22107         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22108         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22109         (charclass_index): Check for integer overflow in computing
22110         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22111         added to it later.
22112         (alloc_position_set): Check for integer overflow.  On typical
22113         platforms this check has zero overhead, since the constant
22114         expression is false.
22115         (realloc_trans_if_necessary):
22116         Remove assertion, which I hope Coverity no longer needs.
22118         * modules/dfa (Depends-on): Add intprops, stdint.
22120 2016-12-12  Jim Meyering  <meyering@fb.com>
22122         dfa: add an assertion to avoid coverity false positive
22123         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22124         warned that "newalloc1 - 2" could overflow.
22126 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22128         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22129         * dfa.h (DFA_CASE_FOLD): Remove.
22130         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22132 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22134         link: fix test to declare use of rename()
22135         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22136         -Werror=implicit-function-declaration
22138 2016-12-12  Bruno Haible  <bruno@clisp.org>
22140         fpending: Port to native Windows with MSVC.
22141         * lib/fpending.c: Include stdio-impl.h.
22142         (__fpending): Include all known implementations. Err out if it's not
22143         ported.
22144         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22145         * modules/fpending (Files): Add lib/stdio-impl.h.
22146         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22148 2016-12-12  Bruno Haible  <bruno@clisp.org>
22150         stdioext: Port to native Windows with MSVC.
22151         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22152         (struct _gl_real_FILE): New type.
22153         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22154         Windows.
22155         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22156         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22157         other SystemV derived implementations.
22158         * lib/fpurge.c (fpurge): Likewise.
22159         * lib/freadable.c (freadable): Likewise.
22160         * lib/freadahead.c (freadahead): Likewise.
22161         * lib/freading.c (freading): Likewise.
22162         * lib/freadptr.c (freadptr): Likewise.
22163         * lib/freadseek.c (freadptrinc): Likewise.
22164         * lib/fseeko.c (fseeko): Likewise.
22165         * lib/fseterr.c (fseterr): Likewise.
22166         * lib/fwritable.c (fwritable): Likewise.
22167         * lib/fwriting.c (fwriting): Likewise.
22168         Reported by Gisle Vanem <gvanem@yahoo.no>.
22170 2016-12-11  Jim Meyering  <meyering@fb.com>
22172         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22173         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22174         to work with most shells, but not with the one provided by many
22175         Solaris 10 systems, so running configure with such a /bin/sh evokes
22176         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22177         Reported by Assaf Gordon in
22178         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22180 2016-12-10  Bruno Haible  <bruno@clisp.org>
22182         threadlib: Optimize out runtime test on Solaris >= 10.
22183         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22184         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22185         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22187 2016-12-10  Bruno Haible  <bruno@clisp.org>
22189         stdint: Update doc about Solaris 9.
22190         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22192 2016-12-09  Bruno Haible  <bruno@clisp.org>
22194         c-ctype tests: Fix link error on Solaris 9.
22195         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22196         Reported at <https://savannah.gnu.org/bugs/?46827>.
22198 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22200         dfa: fix performance bug that recomputes trans
22201         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22202         25 on-demand changes.  The bug caused build_state to reset all
22203         d->trans elements to -2 even when d->trans was already non-null.
22204         Use C99 style decls after statements in this function.
22206         same-inode: port to MinGW
22207         Here st_ino is always 0, so change the definition of SAME_INODE so
22208         that 1 means the two files are the same, 0 with st_ino != 0 means
22209         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22210         reported by Bruno Haible (Bug#25146).
22211         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22212         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22214 2016-12-04  Bruno Haible  <bruno@clisp.org>
22216         javacomp-script: Support Java 7 and 8.
22217         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22218         target-version 1.7, 1.8.
22220 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22222         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22223         GPLv2" rewriting.
22225 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22227         * gnulib-tool (func_import): Adhere to the license guideline when
22228         rewriting the license text to "LGPLv3+ or GPLv2":
22229         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22231 2016-12-02  Bruno Haible  <bruno@clisp.org>
22233         localcharset: Avoid theoretical buffer overrun.
22234         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22235         return value from setlocale if it would lead to a buffer overrun.
22237 2016-12-01  Bruno Haible  <bruno@clisp.org>
22239         Relicense some modules under LGPLv2+.
22240         Kevin Cernekee's approval is in
22241         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22242         * modules/fseterr (License): Change to LGPLv2+.
22243         * modules/mbchar (License): Likewise.
22244         * modules/mbiter (License): Likewise.
22245         * modules/mbsnlen (License): Likewise.
22246         * modules/wcwidth (License): Likewise.
22248 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22250         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22251         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22252         OS/2 kLIBC.
22254 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22256         alphasort, scandir: Port to OS/2 kLIBC
22257         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22258         declaration.
22259         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22261 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22263         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22264         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22265         with '/@unixroot'.
22267 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22269         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22270         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22271         OS/2 kLIBC unless TCPV40HDRS is defined.
22273 2016-11-29  Jim Meyering  <meyering@fb.com>
22275         dfa: avoid new infinite loop
22276         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22277         * lib/dfa.c (dfastate): When constructing a new state table, we could
22278         initially declare that we had found a match, and later find that
22279         constraints eliminate that possibility, yet continue to use the
22280         now stale "matched" indicator.  That would lead to an infinite loop.
22281         The solution is to update "matched" when necessary.
22282         Introduced by commit v0.1-983-g403adf1.
22284 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22286         dfa: avoid match middle in multibyte character
22287         * lib/dfa.c (transit_state): If fails in matching single byte characters
22288         on a state including period expression in non-UTF8 multibyte locales,
22289         skip trailing bytes.
22290         (dfa_supported): Revert previous change.
22292 2016-11-27  Jim Meyering  <meyering@fb.com>
22294         dfa: avoid false match in non-UTF8 multibyte locales
22295         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22296         as "not supported" so that callers will resort to using regex-based
22297         matcher.  This will surely hurt performance, but correctness trumps
22298         performance here, and the affected locales are less and less relevant,
22299         these days.  See grep's bug report https://bugs.gnu.org/24975.
22301 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22303         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22304         * lib/ptsname_r.c: Include the appropriate headers.
22305         [__sun]: Delete sys/sysmacros.h include.
22306         [_AIX || __osf__]: Likewise.
22307         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22309 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22311         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22312         * lib/md4.c (md4_process_bytes): The existing define is made internal
22313         in recent versions of glibc, so also use this new public define.
22314         * lib/md5.c (md5_process_bytes): Likewise.
22315         * lib/sha1.c (sha1_process_bytes): Likewise.
22316         * lib/sha256.c (sha256_process_bytes): Likewise.
22317         * lib/sha512.c (sha512_process_bytes): Likewise.
22319 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22321         maint: use a more standard return from mbrtowc test
22322         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22323         from the test program as this often indicates an
22324         unhandled case in the test program.
22325         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22326         (gl_MBRTOWC_SANITYCHECK): Likewise.
22327         (gl_MBRTOWC_NULL_ARG2): Likewise.
22328         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22330 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22332         freopen: work around glibc bug with closed fd
22333         Work around glibc bug#15589, where freopen mishandles the case
22334         where stdin etc. are already closed.
22335         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22336         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22337         instead of __need_FILE, as the latter does not work with glibc.
22338         Include <fcntl.h>, for open flags.
22339         (rpl_freopen): Work around glibc bug.
22340         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22341         * modules/freopen (Depends-on): Add fcntl-h.
22342         * tests/test-freopen.c (main): Test for bug.
22344 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22346         fnmatch: fix typo introduced on 2016-08-17
22347         This fixes the port to non-GCC compilers that lack __builtin_expect.
22348         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22350         dfa: simplify with new function fillset
22351         * lib/dfa.c (fillset): New function.
22352         Use it for clarity when applicable.
22354         dfa: fix glitches with on-demand states
22355         Also, adjust commentary to better match new code.
22356         Some of these glitches predate the recent change.
22357         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22358         only non-initial states.
22359         (dfastate): Rename locals to better match new roles.
22360         Move them into nested scopes if this is easy.
22361         Omit unnecessary calls to zeroset.
22362         Simplify test for whether to throw in the positions of state 0.
22363         Omit C99-ism (decl after statement) since Gawk still wants C89.
22364         (build_state): Omit unnecessary test and assignment.
22365         Fix some confusion that counted transition tables inaccurately
22366         and could cause a memory leak.
22367         (dfaexec_main): Redo to make it clearer to the compiler that
22368         -1 and -2 are the only negative state numbers here.
22370 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22372         dfa: addition of new state on demand
22373         * src/dfa.c (dfastate): Add argument UC, the current input character.
22374         Fill only a group including the character in transition table.
22375         (realloc_trans_if_necessary): Add the dummy state which means that a
22376         transition table is assigned but the next state is not assigned.
22377         (build_state): Return the next state.  All callers updated.
22378         (transit_state_singlebyte): If we get the dummy state,
22379         fill the transition table.
22380         (dfaexec_main): Handle the dummy state.
22381         (free_mbdata, dfafree): Consider the dummy state.
22383 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22385         srclist: sync with released gettext
22386         * config/srclist.txt: Set "release" option to the files under
22387         $GETTEXT.
22389 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22391         srclist: add "release" option
22392         * config/srclist.txt: Change the format so that the first column
22393         of each line points to the top-level directory of the source
22394         archive.
22395         * config/srclist-update: Accept "release" option that checks files
22396         from the most recently tagged revision in the source archive.
22398 2016-11-21  Bruno Haible  <bruno@clisp.org>
22400         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22401         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22402         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22403         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22404         Inline and remove member function 'rpl ()' of the wrapper struct.
22406 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22408         dfa: fix logic typo
22409         Problem reported by Stephane Chazelas (Bug#24973).
22410         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22411         non-simple locales like fr_FR to be treated as simple.
22413 2016-11-20  Jim Meyering  <meyering@fb.com>
22415         fix test driver leaks: exclude, malloc, realloc
22416         * tests/test-exclude.c (main): Fix trivial leak.
22417         * tests/test-malloc-gnu.c (main): Likewise.
22418         * tests/test-realloc-gnu.c (main): Likewise.
22419         With these changes, grep's tests are now leak free.
22420         I.e., running them with ASAN elicits no failure:
22421           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22422             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22424 2016-11-11  Bruno Haible  <bruno@clisp.org>
22426         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22427         * modules/libunistring: (License): Change from LGPL to
22428         "LGPLv3+ or GPLv2".
22429         * modules/libunistring-optional: Likewise.
22430         * modules/unicase/*: Likewise.
22431         * modules/uniconv/*: Likewise.
22432         * modules/unictype/*: Likewise.
22433         * modules/unigbrk/*: Likewise.
22434         * modules/unilbrk/*: Likewise.
22435         * modules/uniname/*: Likewise.
22436         * modules/uninorm/*: Likewise.
22437         * modules/unistdio/*: Likewise.
22438         * modules/unistr/*: Likewise.
22439         * modules/uniwbrk/*: Likewise.
22440         * modules/uniwidth/*: Likewise.
22442 2016-11-12  Bruno Haible  <bruno@clisp.org>
22444         Relicense some modules under LGPLv2+.
22445         Paul Eggert's approval is in
22446         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22447         Eric Blake's approval is in
22448         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22449         Ludovic Courtès's approval is in
22450         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22451         * modules/isnand-nolibm (License): Change to LGPLv2+.
22452         * modules/isnanf-nolibm (License): Likewise.
22453         * modules/isnanl-nolibm (License): Likewise.
22455 2016-11-19  Bruno Haible  <bruno@clisp.org>
22457         Relicense some modules under LGPLv2+.
22458         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22459         modules/vasnprintf.
22460         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22461         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22462         All other significant changes to the files in lib/ of these modules
22463         are from me.
22464         * modules/memcmp2 (License): Change to LGPLv2+.
22465         * modules/amemxfrm (License): Likewise.
22466         * modules/fpieee (License): Likewise.
22467         * modules/fpucw (License): Likewise.
22468         * modules/frexp-nolibm (License): Likewise.
22469         * modules/frexpl-nolibm (License): Likewise.
22470         * modules/printf-frexp (License): Likewise.
22471         * modules/printf-frexpl (License): Likewise.
22472         * modules/printf-safe (License): Likewise.
22473         * modules/signbit (License): Likewise.
22475 2016-11-17  Bruno Haible  <bruno@clisp.org>
22477         Enable Unicode decoder safety unconditionally.
22478         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22479         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22480         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22481         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22482         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22483         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22484         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22485         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22486         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22487         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22488         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22489         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22490         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22491         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22492         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22493         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22494         * lib/unistr/u32-next.c (u32_next): Likewise.
22495         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22496         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22497         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22498         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22499         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22500         CONFIG_UNICODE_SAFETY tests unconditionally.
22501         * tests/unistr/test-u32-mblen.c (main): Likewise.
22502         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22503         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22504         * tests/unistr/test-u32-next.c (main): Likewise.
22505         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22506         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22507         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22508         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22509         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22510         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22511         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22512         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22513         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22514         * lib/unistr/u16-check.c (u16_check): Update comment.
22515         * NEWS: Mention the changes that callers should be aware of.
22517 2016-11-19  Bruno Haible  <bruno@clisp.org>
22519         relocatable-prog-wrapper: Fix breakage on Cygwin.
22520         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22521         (Depends-on): Remove intprops.
22522         * lib/relocwrapper.c: Update dependency tree.
22523         (strerror): Undefine.
22524         * build-aux/install-reloc (func_create_wrapper): Do not compile
22525         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22527 2016-11-19  Bruno Haible  <bruno@clisp.org>
22529         strerror: Make it compile in C++ mode.
22530         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22532 2016-11-15  Pedro Alves  <palves@redhat.com>
22534         sys_time: add gnulib::timeval for C++
22535         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22536         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22537         timeval macro.
22539 2016-11-14  Pedro Alves  <palves@redhat.com>
22541         snippet/c++defs: fix real-floating arg functions in C++ mode
22542         Also, define isfinite, isinf, isnan, signbit in the gnulib
22543         namespace instead of in the global namespace.
22544         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22545         (_GL_END_NAMESPACE): New.
22546         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22547         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22548         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22549         instead of in the global namespace.
22550         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22551         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22552         of in the global namespace.
22554 2016-11-13  Jim Meyering  <meyering@fb.com>
22556         strftime: don't use __THROW
22557         Each use of __THROW would provoke this from gcc-7-to-be:
22559           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22560             on unit local functions [-Wattributes]
22561           static int iso_week_days (int, int) __THROW;
22562           ^~~~~~
22563         * lib/strftime.c (__THROW): Don't define.
22564         Remove each use of __THROW.
22565         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22566         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22568 2016-11-14  Paul Eggert  <eggert@union>
22570         obstack: port to gcc -fcheck-pointer-bounds
22571         Problem found by 'make check' failure on bleeding-edge coreutils
22572         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22573         6.2.0-5ubuntu12), configured via "./configure
22574         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22575         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22576         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22577         New macro, copied from fts_.h.
22578         (struct _obstack_chunk.contents): Use it.
22580 2016-11-14  Eric Blake  <eblake@redhat.com>
22582         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22584         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22586 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22588         strptime: fix compile error in recent change
22589         * lib/strptime.c (__strptime_internal): Fix ported code.
22591 2016-11-11  Bruno Haible  <bruno@clisp.org>
22593         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22594         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22595         (func_import): Extend determination of license_incompatibilities.
22596         (func_create_testdir): Extend table of license compatibility. Handle
22597         also the licenses GPLv3+, GPL, LGPLv3+.
22599 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22601         strftime: tune %q
22602         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22604         Merge strftime.c changes from glibc
22605         This incorporates:
22606         2007-10-16 [BZ #5184] Add tzset_called argument
22607         2008-06-13 [BZ #6612] pass reference to tzset_called around
22608         2009-10-30 Implement Burmese language locale for Myanmar
22609         2010-01-09 Add support for XPG7 testing
22610         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22611         2015-10-20 Convert miscellaneous function definitions to prototype style
22612         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22613         it anyway and this lessens the difference between gnulib and glibc.
22614         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22615         (__THROW): Define if standard headers do not.
22616         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22617         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22618         Declare with __THROW.
22619         (__strftime_internal): Rename from strftime_case_. Add arg for
22620         whether tzset is called.  All uses changed.  Call tzset at most
22621         once.  Allow %OC, for Burmese.
22622         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22623         Don't assume values are in range.
22625 2016-11-12  Eric Blake  <eblake@redhat.com>
22627         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22628         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22629         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22630         different value.
22632 2006-11-12  Pedro Alves  <palves@redhat.com>
22634         Fix gnulib C++ namespace support and std::frexp
22635         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22636         _GL_CXXALIASWARN.
22638 2006-11-12  Pedro Alves  <palves@redhat.com>
22640         GNULIB_NAMESPACE::func need not pull in rpl_func
22641         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22642         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22643         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22644         struct instead of a function pointer.
22646 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22648         manywarnings: fix -Wno-missing-field-initializers detection
22649         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22650         to be independent of -Wunused-variable.  I.E. ensure the latter
22651         warning doesn't occur so that detection of the former is accurate.
22653 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22655         strftime,strptime: support %q to represent the quarter
22656         * lib/strftime.c (strftime_case_): Add %q case.
22657         * lib/strptime.c (__strptime_internal): Likewise.
22658         * tests/test-strftime.c (quarter_test): A new test case.
22660 2016-11-03  Eric Blake  <eblake@redhat.com>
22662         bootstrap: Fix get_version() for AIX 5.3
22663         * build-aux/bootstrap (get_version): Factor out sed script, since
22664         indented comments choke AIX 5.3 sed.
22665         Reported-by: Michael Felt <aixtools@gmail.com>
22667 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22669         intprops: port to older XL C
22670         Problem reported by Alexander Samoilov in:
22671         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22672         http://savannah.nongnu.org/bugs/?49448
22673         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22674         Define to 1 only for XL C 12.1 or later, since this bug
22675         occurs in XL C for AIX 6.0 but not in 12.1.
22677 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22679         backupfile: initialize default suffix within the implementation
22680         * lib/backupfile.c (find_backup_file_name): Initialize the
22681         global variable here, to simplify usage, and to only call
22682         getenv() when needed.
22684 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22686         futimens: remove FIXME for old Linux kernels
22687         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22688         this in 2012" FIXME, like that for utimensat.
22690         utimensat: remove FIXME for old Linux kernels
22691         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22692         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22693         this in 2012" FIXME, by assuming the file system bug is absent
22694         unless demonstrated to be present.  We no longer need to worry
22695         about Linux kernel 2.6.32 when building with newer kernels.
22697 2016-10-16  Bruno Haible  <bruno@clisp.org>
22699         qsort_r: Fix macrology for platforms that lack the function.
22700         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22701         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22702         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22703         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22704         not exist.
22705         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22706         the function exists.
22707         * modules/qsort_r: Add comments.
22709 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22711         sys_types: fix Texinfo typos
22712         * doc/glibc-functions/gnu_dev_major.texi:
22713         * doc/glibc-functions/gnu_dev_makedev.texi:
22714         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22716 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22718         getprogname: port to HP-UX
22719         See Bug#24805.
22720         * lib/getprogname.c (getprogname) [__hpux]: Port.
22721         * tests/test-getprogname.c (STREQ) [__hpux]:
22722         Special-case for HP-UX limitations on program name length.
22724 2016-10-20  Bruno Haible  <bruno@clisp.org>
22726         Update doc about target platforms.
22727         * doc/gnulib-intro.texi (Target Platforms): Update list.
22729 2016-10-15  Bruno Haible  <bruno@clisp.org>
22731         opendir, readdir, closedir: Relicense under LGPLv2+.
22732         * modules/opendir (License): Change to LGPLv2+.
22733         * modules/readdir (License): Likewise.
22734         * modules/closedir (License): Likewise.
22736 2016-10-16  Bruno Haible  <bruno@clisp.org>
22738         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
22740         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
22741         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
22742         HAVE_DECL_STRERROR_R.
22744 2016-10-16  Bruno Haible  <bruno@clisp.org>
22746         Make the 'argp' module work without the 'error' module.
22747         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
22749 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22751         diffseq: restore TOO_EXPENSIVE heuristic
22752         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
22753         (Bug#24715).  The simplest solution is to restore the
22754         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
22755         using a higher threshold to avoid Bug#16848 on smaller files.
22756         * lib/diffseq.h (struct context): Restore member too_expensive.
22757         (struct partition): Restore members lo_minimal, hi_minimal.
22758         (diag, compareseq): Restore arg find_minimal.  All uses changed.
22759         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
22760         1993 to make 'diff' run faster (but not as well) on large inputs,
22761         but use a threshold of 4096 instead of the old 256.
22762         * lib/fstrcmp.c (strcmp_bounded):
22763         * lib/git-merge-changelog.c (compute_differences):
22764         Adjust to diffseq.h changes.
22766 2016-10-22  Bruno Haible  <bruno@clisp.org>
22768         iconv: Avoid compilation error when bootstrapping GNU libiconv.
22769         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
22770         declaration yet, define ICONV_CONST to empty.
22772 2016-10-15  Bruno Haible  <bruno@clisp.org>
22774         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
22775         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
22776         module.
22778 2016-10-16  Bruno Haible  <bruno@clisp.org>
22780         system-quote tests: Avoid compiler warning on AIX.
22781         * tests/test-system-quote-child.c (fopen): Redefine like the system's
22782         <stdio.h> does.
22784 2016-10-16  Bruno Haible  <bruno@clisp.org>
22786         Fix some "gcc -Wall" warnings.
22787         * tests/test-ffsl.c (main): Use variable x, not i.
22788         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
22789         freopen.
22790         * tests/test-sethostname1.c (main): Explicitly ignore the return value
22791         of sethostname.
22793 2016-10-16  Bruno Haible  <bruno@clisp.org>
22795         gnulib-tool: Make --create-testdir on all modules work again.
22796         * gnulib-tool (func_create_testdir): Don't include the
22797         non-recursive-gnulib-prefix-hack module.
22799 2016-10-21  Daiki Ueno  <ueno@gnu.org>
22801         libunistring: change the maintainer to 'all'
22802         * modules/gen-uni-tables, modules/libunistring:
22803         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
22804         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
22805         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
22806         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
22807         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
22808         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
22809         * modules/uniwidth/*: Change the maintainer to 'all'.
22811 2016-10-16  Bruno Haible  <bruno@clisp.org>
22813         Simplify "configure: checking ..." messages.
22814         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
22815         AC_MSG_NOTICE.
22816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22818 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
22820         quotearg-tests: pacify gcc -Wall
22821         Problem reported by Bruno Haible in:
22822         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
22823         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
22824         * tests/test-quotearg.h: ... from here.
22826 2016-10-20  Pádraig Brady  <P@draigBrady.com>
22828         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
22829         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
22830         Needed on Centos <= 4.
22832 2016-10-20  Jim Meyering  <meyering@fb.com>
22834         printf.m4: fix a bug in detecting printf %j support
22835         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
22836         uintmax_t is defined in neither stdint.h nor inttypes.h.
22837         Before, this macro might have mistakenly set
22838         gl_cv_func_printf_sizes_c99=yes on such a system.
22839         Spotted by Zev Weiss.
22841 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22843         sched: substitute HAVE_SYS_CDEFS_H too
22844         Problem reported by Tom G. Christensen in:
22845         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
22846         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
22847         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
22849 2016-10-19  Pádraig Brady  <P@draigBrady.com>
22851         quotearg: never write beyond the returned length
22852         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
22853         scan of the string when we initially encounter a single quote when
22854         shell quoting, so that if we then switch to a more concise quoting method
22855         we will not have written beyond that returned length.
22856         This is significant for sh-quote, which has separate routines
22857         to determine the length and do the actual quoting.
22858         * tests/test-quotearg.h: Reinstate the buffer bounds checking
22859         now that we never write more than the returned length.
22861 2016-10-18  Bruno Haible  <bruno@clisp.org>
22863         getprogname tests: Avoid failure in packages that use libtool.
22864         * tests/test-getprogname.c (main): Strip "lt-" prefix.
22865         Based on a patch by Jim Meyering.
22867 2016-10-16  Bruno Haible  <bruno@clisp.org>
22869         getprogname: Fix test failure on Cygwin. Comments.
22870         * lib/getprogname.h: Add comments.
22871         * lib/getprogname.c: Add comments. Fix #elif indentation.
22872         * tests/test-getprogname.c (main): On Cygwin, expect a result without
22873         ".exe" suffix.
22875 2016-10-16  Bruno Haible  <bruno@clisp.org>
22877         Make sure the libunistring detection rejects older versions with a
22878         known bug.
22879         * modules/unistr/u8-strtok (configure.ac): Bump required version.
22880         * modules/unistr/u16-strtok (configure.ac): Likewise.
22881         * modules/unistr/u32-strtok (configure.ac): Likewise.
22883 2016-10-18  Bruno Haible  <bruno@clisp.org>
22885         sh-quote, system-quote: revert regression of unit test.
22886         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
22887         * tests/test-system-quote-main.c (check_one): Likewise.
22889 2016-10-16  Pádraig Brady  <P@draigBrady.com>
22891         quotearg: fix stale tests
22892         * tests/test-quotearg.c [locale_results]: Add the missing str7
22893         entries to the expected results.
22894         * tests/test-system-quote-main.c (check_one): Don't enforce that we
22895         don't write beyond the returned length, since that's no longer the
22896         case if we switch to a more concise quoting style.
22897         * tests/test-sh-quote.c (check_one): Likewise.
22898         (main): Adjust for the new more concise quoting style.
22899         Reported by Bruno Haible.
22901 2016-10-16  Jim Meyering  <meyering@fb.com>
22903         non-recursive-gnulib-prefix-hack: fix inconsequential typo
22904         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
22905         to "$1".  This macro is always invoked with $1 == lib.
22906         Spotted by Bruno Haible
22908 2016-10-16  Bruno Haible  <bruno@clisp.org>
22910         Fix a test crash.
22911         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
22912         fails.
22914 2016-10-16  Pádraig Brady  <P@draigBrady.com>
22916         test-limits-h: suppress -Woverlength-strings
22917         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
22919 2016-10-15  Bruno Haible  <bruno@clisp.org>
22921         gettime, timespec, utimens: Relicense under LGPL.
22922         * modules/gettime (License): Change to LGPL.
22923         * modules/timespec (License): Likewise.
22924         * modules/utimens (License): Likewise.
22926 2016-10-14  Bruno Haible  <bruno@clisp.org>
22927             Pádraig Brady  <P@draigBrady.com>
22929         canonicalize-lgpl: Support the case path_max > INT_MAX.
22930         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
22931         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
22933 2016-10-13  Jim Meyering  <meyering@fb.com>
22935         getprogname: IBM z/OS: avoid NULL-dereference
22936         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
22937         upon strdup failure.
22939 2016-10-12  Jim Meyering  <meyering@fb.com>
22941         test-stdint: use _GL_VERIFY rather than "verify" for some tests
22942         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
22943         and an abbreviated diagnostic rather than verify with the full one,
22944         because the full-length strings would evoke warnings from gcc with
22945         -Woverlength-strings.
22947 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22949         stdint: port SIZE_MAX to glibc s390
22950         Problem reported by Eric Blake in:
22951         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
22952         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
22953         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
22954         correct type, if possible.
22956 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
22958         getprogname: port to IBM z/OS
22959         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
22961 2016-10-11  Jim Meyering  <meyering@fb.com>
22963         maint: remove stray space after "." in AC_DEFINE comment.
22964         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
22965         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22967 2016-10-05  Jim Meyering  <meyering@fb.com>
22969         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
22970         * lib/long-options.c (parse_long_options): Add a break statement
22971         to avoid this new warning/failure:
22972         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
22973           --create-testdir --dir=/t/x --with-tests --test long-options
22974         ../../gllib/long-options.c: In function 'parse_long_options':
22975         ../../gllib/long-options.c:66:12: error: this statement may \
22976           fall through [-Werror=implicit-fallthrough]
22977                    (*usage_func) (EXIT_SUCCESS);
22978                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
22980 2016-10-05  Jim Meyering  <meyering@fb.com>
22982         utimecmp: avoid new GCC 7 warning from -Wbool-operation
22983         Testing this module would fail when using GCC 7 like this:
22984         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
22985           --dir=/tmp/x --with-tests --test utimecmp
22986         ../../gllib/utimecmp.c: In function ‘utimecmp’:
22987         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
22988           [-Werror=bool-operation]
22989                          time_t s = src_s & ~ (res == 2 * BILLION);
22990                                             ^
22991         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
22992           [-Werror=bool-operation]
22993                src_s &= ~ (res == 2 * BILLION);
22994                         ^
22995         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
22996         Instead, make it explicit that we intend to apply it to 0 or 1.
22998 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23000         dfa: save memory for states
23001         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23002         states if dfa has a lot of caches.
23004 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23006         wchar, wctype-h: fix for MinGW 3.22.2
23007         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23008         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23009         when included from <string.h>.
23010         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23011         convention for MinGW 3.22.2, to solve issues with their
23012         wctype.h when included from <ctype.h>.
23014 2016-10-05  Jim Meyering  <meyering@fb.com>
23016         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23017         * lib/long-options.c (parse_long_options): Add a break statement
23018         to avoid this new warning/failure:
23019         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23020           --create-testdir --dir=/t/x --with-tests --test long-options
23021         ../../gllib/long-options.c: In function ‘parse_long_options’:
23022         ../../gllib/long-options.c:66:12: error: this statement may \
23023           fall through [-Werror=implicit-fallthrough]
23024                    (*usage_func) (EXIT_SUCCESS);
23025                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23027         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23028         Testing this module would fail when using GCC 7 like this:
23029         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23030           --dir=/tmp/x --with-tests --test utimecmp
23031         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23032         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23033           [-Werror=bool-operation]
23034                          time_t s = src_s & ~ (res == 2 * BILLION);
23035                                             ^
23036         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23037           [-Werror=bool-operation]
23038                src_s &= ~ (res == 2 * BILLION);
23039                         ^
23040         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23041         Instead, make it explicit that we intend to apply it to 0 or 1.
23043 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23045         quotearg: minimize shell quoting using double quotes
23046         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23047         quote in encountered then use double quotes (c style quoting)
23048         when possible, as it simplifies the quoting.
23049         * tests/test-quotearg-simple.c: Add test cases.
23050         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23051         for the fact we now may write beyond the returned length.
23053 2016-10-02  Jim Meyering  <meyering@fb.com>
23055         vasnprintf.c: avoid spurious warning from GCC 7
23056         The presence of cpp directives renders this "FALLTHROUGH" comment
23057         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23058         from GCC 7 built from git on 2016-10-02.
23059         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23060         directives, so that it takes effect once again.  This is clearly
23061         not a proper change, and I will revert it once this bug is fixed:
23062         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23064 2016-10-01  Jim Meyering  <meyering@fb.com>
23066         getprogname: correct the test for a __progname variable
23067         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23068         and AC_LINK_IFELSE to check for a global __progname.  If found,
23069         define HAVE_VAR___PROGNAME.
23070         * lib/getprogname.c (getprogname): Reflect the new name of the
23071         feature- checked preprocessor symbol:
23072         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23074 2016-09-28  Jim Meyering  <meyering@fb.com>
23076         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23077         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23078         fall-through case with a /* fallthrough */ comment.
23080         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23081         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23082         /* fallthrough */ comment.
23084         getprogname: avoid __progname vs program_invocation_short_name pitfall
23085         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23086         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23087         not with Fedora 24's glibc-2.23.1-10.
23088         * lib/getprogname.c (__progname): Move this declaration down...
23089         (getprogname): ... into the #elif block where used, and make it
23090         explicitly "extern".
23092         getprogname: port to OpenBSD 5.1
23093         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23094         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23095         * modules/getprogname (configure.ac): Move most of this code...
23096         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23097         increment serial number, and add a test for __progname.
23098         https://bugs.gnu.org/24562
23099         Reported by Nelson H. F. Beebe.
23101 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23103         sched: port to GCC 6.2.1 on macOS Sierra
23104         Problem reported by Denis Davydov in:
23105         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23106         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23107         Include <sys/cdefs.h> before <sched.h>.
23108         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23109         so that we needn’t worry about the sched.h include bug here.
23110         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23111         and include it before <sched.h> if it exists, when
23112         checking for <sched.h>.
23114         tests/init.sh: port Alpine fix to AIX 7.1
23115         * tests/init.sh (compare_): When attempting to use diff -U3,
23116         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23117         diff -u not outputting a space after leading '+', as the users
23118         of 'compare' should not be that picky about its output format.
23119         In the AIX 7.1 case, return with diff exit status (or with 2 if
23120         trouble), instead of some random nonzero exit status.
23121         * tests/test-init.sh (test_compare): Remove space after leading
23122         '+', so that AIX 7.1 'diff' passes the test.
23124 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23126         nl_langinfo: pacify GCC
23127         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23128         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23130         stdint: also set GL_GENERATE_LIMITS_H
23131         Problem reported by Jim Meyering in:
23132         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23133         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23135         limits-h, stdint: Don't assume extensions, fix typo
23136         * m4/limits-h.m4 (gl_LIMITS_H):
23137         * m4/stdint.m4 (gl_STDINT_H):
23138         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23139         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23140         reported by Jim Meyering in:
23141         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23143 2016-09-21  Jim Meyering  <meyering@fb.com>
23145         getprogname: port to AIX
23146         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23147         and strdup to obtain a short program name string.  Using code from
23148         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23149         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23150         Assaf Gordon reported that this new file would fail to compile on
23151         AIX-7.1 32bit.
23153 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23155         extensions: fix typo in comment
23156         * m4/extensions.m4: Sync from Autoconf master.
23158         stdint: support new _WIDTH macros
23159         * doc/posix-headers/stdint.texi: Document this.
23160         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23161         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23162         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23163         * modules/stdint (Depends-on): Add limits-h.
23164         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23165         * modules/stdint-tests (Depends-on): Add extensions, so that
23166         INTMAX_MAX etc. are defined.
23167         * tests/test-stdint.c: Verify the new macros.
23169         limits-h: new module
23170         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23171         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23172         * doc/posix-headers/limits.texi: Document new module.
23173         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23174         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23176         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23177         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23178         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23179         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23181 2016-09-15  Eric Blake  <eblake@redhat.com>
23183         sys_types: avoid glibc 2.25 warnings about major()
23184         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23185         older autoconf.
23186         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23187         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23188         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23189         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23191         mountlist: include sysmacros.h for glibc
23192         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23193         AC_HEADER_MAJOR.
23194         * lib/mountlist.c (includes): Use correct headers.
23196 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23198         extensions: port to more ISO C TSes
23199         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23200         master, to add support for more recent ISO C TRs and TSes.
23202 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23204         intprops: new macro TYPE_WIDTH
23205         * lib/intprops.h (TYPE_WIDTH): New macro.
23206         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23207         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23208         * lib/parse-datetime.y (parse_datetime2):
23209         Use it.
23211         extensions: port to recent ISO C TRs
23212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23213         Sync from Autoconf master, to add support for recent ISO C TRs.
23214         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23215         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23216         the MinGW option is not an extension.
23218 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23220         dfa: port to Solaris 9
23221         Problems reported by Tom G. Christensen in:
23222         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23223         * modules/dfa (Depends-on): Add isblank.
23224         * modules/dfa-tests (dfa_match_aux_LDADD):
23225         Rename from test_stat_LDADD, to fix typo.
23226         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23228 2016-09-10  Jim Meyering  <meyering@fb.com>
23230         strverscmp: avoid link failure on OS X
23231         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23232         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23234 2016-08-16  Jim Meyering  <meyering@fb.com>
23236         dfa: new module, importing grep's DFA matcher
23237         Since grep's DFA matcher is now being used by two gnulib-enabled
23238         projects, grep and sed, it makes sense to version-control its
23239         sources and unit tests in one place: here.
23240         * modules/dfa: New module.
23241         * modules/dfa-tests: New file.
23242         * lib/dfa.c: New file, from grep.
23243         * lib/dfa.h: Likewise.
23244         * lib/localeinfo.c: Likewise.
23245         * lib/localeinfo.h: Likewise.
23246         * tests/dfa-match-aux.c: Likewise.
23247         * tests/dfa-invalid-char-class.sh: Likewise.
23248         * tests/dfa-match.sh: Likewise, with minor changes.
23249         * MODULES.html.sh (Misc): Add "dfa" to this list.
23251 2016-09-09  Jim Meyering  <meyering@fb.com>
23253         getprogname-tests: don't depend on assert-h
23254         * modules/getprogname-tests (Depends-on): Remove assert-h.
23255         It was not needed, and in fact would cause build failure for
23256         coreutils on some systems.  Reported by Assaf Gordon in https:
23257         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23259 2016-09-07  Jim Meyering  <meyering@fb.com>
23261         getprogname-tests: work also when EXEEXT is nonempty
23262         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23263         * tests/test-getprogname.c (main): Use it.
23264         Suggested by Gisle Vanem.
23266 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23268         getprogname: fix errors in previous change
23269         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23270         s/program_invocation_name/base/
23271         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23273 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23275         parse-datetime: restrict debug output to input string
23276         * lib/parse-datetime.y (parse_datetime2): If we parse
23277         all of the input but determine it's invalid, ensure
23278         we don't output the now invalid input pointer.
23279         This issue was seen with `date -d 'now +1'`.
23281 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23283         flexmember: new macro FLEXALIGNOF
23284         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23285         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23286         this macro.  Update comments.
23288 2016-09-07  Jim Meyering  <meyering@fb.com>
23290         getprogname: port to systems with __argv (mingw, msvc)
23291         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23292         last_component: more general than open coding it with hard-coded "/".
23293         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23294         * modules/getprogname (Depends-on): Add dirname-lgpl.
23295         (configure.ac): Check for __argv in <stdlib.h>.
23296         * modules/getprogname-tests: New file.
23297         * tests/test-getprogname.c: New file.
23298         Suggested by Gisle Vanem in
23299         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23301 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23303         flexmember: port better to GCC + valgrind
23304         With a char[] flexible array member in a struct with nontrivial
23305         alignment, GCC-generated code can access past the end of the
23306         array, because GCC assumes there are padding bytes to get the
23307         struct aligned.  So the common idiom of malloc (offsetof (struct
23308         s, m), n) does not properly allocate an n-byte trailing member, as
23309         malloc’s argument should be the next multiple of alignof (struct s).
23310         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23311         Although C11 apparently permits this GCC optimization (i.e., there
23312         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23313         See the thread containing:
23314         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23315         * lib/flexmember.h: New file.
23316         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23317         * lib/localename.c, lib/time_rz.c:
23318         Include flexmember.h.
23319         * lib/fnmatch_loop.c (struct patternlist):
23320         * lib/localename.c (struct hash_node):
23321         Use FLEXIBLE_ARRAY_MEMBER.
23322         * lib/fnmatch_loop.c (EXT):
23323         * lib/fts.c (fts_alloc):
23324         * lib/glob.c (glob_in_dir):
23325         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23326         * lib/localename.c (gl_lock_define_initialized):
23327         * lib/time_rz.c (tzalloc):
23328         Use FLEXSIZEOF instead of offsetof.
23329         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23330         Check that the size of the struct can be taken.
23331         * modules/flexmember (Files): Add lib/flexmember.h.
23332         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23333         Add flexmember.
23335 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23337         getprogname: port to Solaris 10
23338         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23339         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23340         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23342         stdalign: correct mistake in alignof doc
23343         Problem reported by Joseph Myers in:
23344         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23345         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23346         alignof(S) where S is a structure containing a flexible array
23347         member.  The Gnulib substitute does not support this, but C11 does.
23349 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23351         main.mk: remove sc_program_name, since there is no more need to
23352         use set_program_name in tools (getprogname is enough for most
23353         of the cases).
23354         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23355         * top/maint.mk (sc_program_name): Remove.
23357 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23359         Port tests away from progname, since modules that need the
23360         program name already depend on getprogname.
23361         * modules/acl-tests (Depends-on): Remove progname.
23362         * modules/argmatch (Depends-on): Likewise.
23363         * modules/argmatch-tests (Depends-on): Likewise.
23364         * modules/argp-tests (Depends-on): Likewise.
23365         * modules/argp-version-etc-tests (Depends-on): Likewise.
23366         * modules/array-list-tests (Depends-on): Likewise.
23367         * modules/array-oset-tests (Depends-on): Likewise.
23368         * modules/avltree-list-tests (Depends-on): Likewise.
23369         * modules/avltree-oset-tests (Depends-on): Likewise.
23370         * modules/avltreehash-list-tests (Depends-on): Likewise.
23371         * modules/carray-list-tests (Depends-on): Likewise.
23372         * modules/copy-file-tests (Depends-on): Likewise.
23373         * modules/exclude-tests (Depends-on): Likewise.
23374         * modules/fchownat-tests (Depends-on): Likewise.
23375         * modules/fdopendir-tests (Depends-on): Likewise.
23376         * modules/filenamecat-tests (Depends-on): Likewise.
23377         * modules/fstatat-tests (Depends-on): Likewise.
23378         * modules/fstrcmp-tests (Depends-on): Likewise.
23379         * modules/linked-list-tests (Depends-on): Likewise.
23380         * modules/linkedhash-list-tests (Depends-on): Likewise.
23381         * modules/mkdirat-tests (Depends-on): Likewise.
23382         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23383         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23384         * modules/obstack-printf-tests (Depends-on): Likewise.
23385         * modules/openat-tests (Depends-on): Likewise.
23386         * modules/parse-datetime-tests (Depends-on): Likewise.
23387         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23388         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23389         * modules/quotearg-simple-tests (Depends-on): Likewise.
23390         * modules/quotearg-tests (Depends-on): Likewise.
23391         * modules/rbtree-list-tests (Depends-on): Likewise.
23392         * modules/rbtree-oset-tests (Depends-on): Likewise.
23393         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23394         * modules/spawn-pipe-tests (Depends-on): Likewise.
23395         * modules/system-quote-tests (Depends-on): Likewise.
23396         * modules/uniname/uniname-tests (Depends-on): Likewise.
23397         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23398         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23399         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23400         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23401         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23402         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23403         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23404         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23405         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23406         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23407         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23408         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23409         * modules/unlinkat-tests (Depends-on): Likewise.
23410         * modules/version-etc-tests (Depends-on): Likewise.
23411         * modules/xalloc-die-tests (Depends-on): Likewise.
23412         * modules/xmemdup0-tests (Depends-on): Likewise.
23413         * modules/xprintf-posix-tests (Depends-on): Likewise.
23414         * modules/xvasprintf-tests (Depends-on): Likewise.
23415         * tests/test-argmatch.c: Do not include progname.h.
23416         (main) Stop calling set_program_name.
23417         * tests/test-argp-version-etc.c: Likewise.
23418         * tests/test-argp.c: Likewise.
23419         * tests/test-argv-iter.c: Likewise.
23420         * tests/test-array_list.c: Likewise.
23421         * tests/test-array_oset.c: Likewise.
23422         * tests/test-avltree_list.c: Likewise.
23423         * tests/test-avltree_oset.c: Likewise.
23424         * tests/test-avltreehash_list.c: Likewise.
23425         * tests/test-carray_list.c: Likewise.
23426         * tests/test-copy-acl.c: Likewise.
23427         * tests/test-copy-file.c: Likewise.
23428         * tests/test-exclude.c: Likewise.
23429         * tests/test-fchownat.c: Likewise.
23430         * tests/test-fdopendir.c: Likewise.
23431         * tests/test-filenamecat.c: Likewise.
23432         * tests/test-fstatat.c: Likewise.
23433         * tests/test-fstrcmp.c: Likewise.
23434         * tests/test-linked_list.c: Likewise.
23435         * tests/test-linkedhash_list.c: Likewise.
23436         * tests/test-mkdirat.c: Likewise.
23437         * tests/test-nonblocking-pipe-main.c: Likewise.
23438         * tests/test-nonblocking-socket-main.c: Likewise.
23439         * tests/test-obstack-printf.c: Likewise.
23440         * tests/test-openat.c: Likewise.
23441         * tests/test-parse-datetime.c: Likewise.
23442         * tests/test-pipe-filter-gi1.c: Likewise.
23443         * tests/test-pipe-filter-gi2-main.c: Likewise.
23444         * tests/test-pipe-filter-ii1.c: Likewise.
23445         * tests/test-pipe-filter-ii2-main.c: Likewise.
23446         * tests/test-quotearg-simple.c: Likewise.
23447         * tests/test-quotearg.c: Likewise.
23448         * tests/test-rbtree_list.c: Likewise.
23449         * tests/test-rbtree_oset.c: Likewise.
23450         * tests/test-rbtreehash_list.c: Likewise.
23451         * tests/test-sameacls.c: Likewise.
23452         * tests/test-set-mode-acl.c: Likewise.
23453         * tests/test-spawn-pipe-main.c: Likewise.
23454         * tests/test-system-quote-main.c: Likewise.
23455         * tests/test-unlinkat.c: Likewise.
23456         * tests/test-version-etc.c: Likewise.
23457         * tests/test-xalloc-die.c: Likewise.
23458         * tests/test-xfprintf-posix.c: Likewise.
23459         * tests/test-xmemdup0.c: Likewise.
23460         * tests/test-xprintf-posix.c: Likewise.
23461         * tests/test-xvasprintf.c: Likewise.
23462         * tests/uniname/test-uninames.c: Likewise.
23463         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23464         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23465         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23466         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23467         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23468         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23469         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23470         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23471         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23472         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23473         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23474         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23475         * tests/test-c-stack.c: (program_name): Do not define.
23476         (main): Do not set program_name.
23477         * tests/test-closein.c: Likewise.
23478         * tests/test-xstrtol.c: Likewise.
23479         * tests/test-yesno.c: Likewise.
23481 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23483         Port modules to use getprogname explicitly, instead of requiring
23484         progname to be used (or program_name to be provided).
23485         * lib/argmatch.c: Do not include progname.h.
23486         [TEST] (program_name): Do not define.
23487         [TEST] (main): Call getprogname instead of using program_name.
23488         * lib/c-stack.c: Do not include progname.h.
23489         (program_name): Do not define.
23490         (die): Call getprogname instead of using program_name.
23491         * lib/chdir-long.c: Do not include progname.h.
23492         [TEST_CHDIR] (main): Do not set program_name.
23493         * lib/error.c [!_LIBC]: Include progname.h.
23494         [!_LIBC] (program_name): Define using getprogname.
23495         * lib/euidaccess.c: Do not include progname.h.
23496         [TEST] (main): Do not set program_name.
23497         * lib/git-merge-changelog.c: Include getprogname.h instead of
23498         progname.h.
23499         (usage): Call getprogname instead of using program_name.
23500         (main): Likewise.  Stop calling set_program_name.
23501         * lib/group-member.c: Do not include progname.h.
23502         [TEST] (main): Do not set program_name.
23503         * modules/argmatch (Depends-on): Add getprogname.
23504         * modules/c-stack (Depends-on): Likewise.
23505         * modules/error (Depends-on): Likewise.
23506         * modules/git-merge-changelog (Depends-on): Likewise.
23507         Also remove progname.
23509 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23511         * NEWS: Document the deprecation of the 'progname' module.
23513 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23515         getprogname: new module
23516         This provides a LGPL module for getting the name of the current
23517         program, using the same API found on *BSD systems.
23518         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23519         * modules/getprogname: New files.
23520         * MODULES.html.sh (Misc): Add getprogname.
23522 2016-09-02  Jim Meyering  <meyering@fb.com>
23524         manywarnings: add -fno-common
23525         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23526         to the list.  Quoting the manual, "Compiling with -fno-common is
23527         useful on targets for which it provides better performance, or if
23528         you wish to verify that the program will work on other systems that
23529         always treat uninitialized variable declarations this way [putting
23530         it in the data section]."  If diffutils had been using this sooner,
23531         it would have prevented this duplicate declaration issue:
23532         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23534 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23536         parse-datetime: Fix typo.
23537         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23539 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23541         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23542         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23543         GCC 5 and 6 that have __builtin_sub_overflow but not
23544         __builtin_sub_overflow_p.  With the recent changes, these
23545         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23546         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23547         since the former needs just one runtime comparison whereas the
23548         latter needs two.
23550         strverscmp: sync with glibc
23551         Although this doesn't exactly synchronize with glibc
23552         byte-for-byte, it makes the code behave the same as glibc.
23553         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23554         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23555         difference shouldn't matter in practical use.  All uses changed
23556         back to isdigit.
23557         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23558         (next_state): Now unsigned char array; redo elements.
23559         (result_type): Now signed char array; redo elements.
23560         (__strverscmp): Fix glibc bug 9913 by using new states.
23561         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23563 2016-08-29  Jim Meyering  <meyering@fb.com>
23565         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23566         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23567         similarly to how it was done to intprops.h.
23569 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23571         intprops.h: port recent changes to GCC 6.2.0
23572         * lib/intprops.h (__has_builtin): Move earlier.
23573         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23574         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23575         the last argument can be null.  All uses changed.
23576         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23577         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23578         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23579         and it's not clear which GCC versions it works for.
23580         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23581         its definiens.
23583         intprops.h: use __typeof__ with GCC 7
23584         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23585         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23586         This avoids computing the expression's value (which might overflow!).
23588 2016-08-29  Jim Meyering  <meyering@fb.com>
23590         intprops.h, xalloc-oversized.h: work with gcc 7
23591         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23592         __builtin_mul_overflow each accept a NULL pointer as the third
23593         argument.  However in gcc 7, that is no longer accepted.
23594         Instead, one must use the "_p"-suffixed names, with which, the
23595         third parameter is no longer a pointer.
23596         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23597         the definition: not true for gcc 7 and subsequent.
23598         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23599         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23600         Provide new definitions for gcc 7 and subsequent.
23601         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23602         that works with gcc-7.
23604         intprops.h: fix missing-backslash problems
23605         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23606         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23608 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23610         intprops: fix paren typo on old platforms
23611         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23612         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23613         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23614         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23615         && !defined LLONG_MAX]:
23616         Remove stray paren.
23618         intprops: port to OpenVMS
23619         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23620         * doc/posix-headers/limits.texi: Document the problem.
23621         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23622         Define if not already defined.
23624 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23626         parse-datetime: improve debug implementation
23627         Follow-up to commit 12ad79069 ("add optional debug printing").
23628         Improve parse-datetime's debug implementation: remove macros,
23629         replace global debug flag variable with a function parameter,
23630         use nstrftime for formatting.
23631         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23632         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23633         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23634         debug flag. Existing interface 'parse_datetime' left unmodified.
23635         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23636         (struct parser_control): add 'parse_datetime_debug' member variable.
23637         (parse_datetime): Call new function 'parse_datetime2' without debug.
23638         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23639         pc.parse_datetime_debug variable as needed.
23640         (to_year): Accept new flags parameter, instead of using global variable.
23641         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23642         use struct 'debug' variable instead of global variable.
23643         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23644         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23645         correspnding functions directly instead of using macros.
23646         * modules/parse-datetime: Add gnulib's strftime module.
23648 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23650         c-strcase-tests: port to EBCDIC
23651         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23652         which assume ASCII encoding semantics to run only in ASCII
23653         mode, as they fail in EBCDIC.
23655         sigpipe-tests: fix typo
23656         * tests/test-sigpipe.sh: C, not B.
23658 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23660         canonicalize-lgpl: fix errno after malloca fails
23661         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23662         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23663         * lib/canonicalize-lgpl.c (__realpath):
23664         Don't assume malloca sets errno on failure.
23666 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23668         strtod: port errno handling to z/OS
23669         * lib/strtod.c (strtod): Save and restore errno more reliably.
23671 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23673         strtod: port to z/OS
23674         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23675         implementation.
23677 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23679         strtod: port to z/OS
23680         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23681         implementation.
23683         regex, string: rename to avoid '__string'
23684         * lib/regex.h, lib/string.in.h: Do not use the identifier
23685         '__string', as it is effectively reserved by string.h on z/OS.
23687         c-strcase-tests, wcwidth-tests: depend on c-ctype
23688         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23689         Add c-ctype.
23691 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23693         thread: port to z/OS
23694         * lib/glthread/thread.c, lib/glthread/thread.h:
23695         Rudimentary gl_thread support for z/OS.
23697         maint: port tests to z/OS errno behavior
23698         * tests/test-nonblocking-reader.h:
23699         * tests/test-nonblocking-writer.h:
23700         Accommodate z/OS errno code preferences. (I believe this should
23701         still be within spec; IBM is good at following the letter if not
23702         the spirit of such things.)
23704         maint: preprocessor changes to support z/OS
23705         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23706         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23707         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23708         * tests/test-nonblocking-pipe.h:
23710         fclose, strstr-simple, wchar: port to z/OS
23711         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23712         Changes to the Autoconf M4 code to support z/OS.  Note that
23713         fclose() is broken in a different way on z/OS than it is on other
23714         systems, thus the special-case in fclose.m4.
23716         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23717         * tests/test-iconv-utf.c, tests/test-iconv.c:
23718         Added appropriately conditional #pragmas so that the test strings
23719         in test-iconv-utf.c are correctly interpreted in ASCII instead of
23720         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
23721         addressed in a more portable way by simply rewriting all the ASCII
23722         literal characters as octal escapes, but then you would lose the
23723         partial readability that the strings have now. Also, iconv_open()
23724         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
23726         c-strcase-tests, wcwidth-tests: port to EBCDIC
23727         * tests/test-c-strcasecmp.c: Include c-ctype.h.
23728         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
23729         * tests/test-wcwidth.c: Likewise.
23731 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23733         stdbool: don't require _Bool for C++
23734         Problem reported by David Seifert in:
23735         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
23736         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
23737         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
23738         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
23739         stricter about checking that bool and _Bool are compatible in C.
23741 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23743         getdelim: remove dependency on realloc-posix
23744         * lib/canonicalize-lgpl.c (alloc_failed)
23745         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
23746         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
23747         Use __set_errno where needed, for consistency.
23748         * lib/getdelim.c (alloc_failed): New function.
23749         (getdelim): Use it.
23751 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
23753         parse-datetime: add optional debug printing
23754         Print parsing information, warnings, and errors to stderr.
23755         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
23756         * lib/parse-datetime.y:
23757         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
23758         (PROGRESS*): Same as DEBUG, for progress reporting.
23759         (dbg_printf): Print message to stderr, with 'date' prefix.
23760         (struct parser_control): Add 'debug_*_seen' variables.
23761         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
23762         (debug_print_current_time, debug_print_relateive_time): Prints the
23763         current/relative date/time value of parser_control.
23764         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
23765         (to_year): Warn about 2-digit year parsing.
23766         (yylex):   Warn about unrecognized words.
23767         (get_effective_timezone): Returns current timezone in minutes.
23768         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
23769         clearly and unambigiously as possible.
23770         (debug_mktime_not_ok): Print detailed information about failed
23771         date/time values.
23772         (parse_datetime): Add DEBUG messages for failures, warnings. Add
23773         PROGRESS messages for status messages.
23774         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
23776 2016-08-06  Jim Meyering  <meyering@fb.com>
23778         tests/init.sh: exclude dash with bad "local" semantics
23779         * tests/init.sh (gl_shell_test_script_): Add a function to
23780         eliminate a shell like "dash" (unlike bash, zsh) that has
23781         surprising/risky "local var='...'" semantics.  Inspired by
23782         the problem and discussion in https://bugs.gnu.org/24116#11.
23784 2016-08-02  Ján Tomko  <jtomko@redhat.com>
23786         maint.mk: expand the prohibit_doubled_word regex
23787         This check has a static list of words that are checked for
23788         repetitions.  Expand it before running the perl script to
23789         avoid using expensive captures.  This decreases the cost
23790         for libvirt from 1.66s to 0.66s.
23791         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
23792         (sc_prohibit_doubled_word): Use it.
23794 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23796         useless-if-before-free: skip non-matching lines early
23797         * build-aux/useless-if-before-free: First match each line with the
23798         simple/quick /\bif\b/ and reject if there is no match. This often
23799         saves the cost of the much more involved regular expression.
23800         For libvirt, this decreases the cost from 1.44s to 1.02s.
23802 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23804         maint.mk: speed up sc_po_check
23805         sc_po_check would skip files based on their names, or on the
23806         existence of files with derived names. Rewrite it to use perl
23807         instead of shell to make the check faster.
23808         * top/maint.mk (perl_translatable_files_list_): Define.
23809         (sc_po_check): Use it.
23811 2016-07-30  Ján Tomko  <jtomko@redhat.com>
23813         maint.mk: speed up require_config_h_first
23814         Instead of spawning three processes per file,
23815         rewrite the check in perl and run it once for all the files.
23816         * top/maint.mk (perl_config_h_first_): Define.
23817         (sc_require_config_h_first): Use it in place of shell code.
23819 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23821         maint.mk: speed up sc_po_check
23822         sc_po_check would skip files based on their names, or on the
23823         existence of files with derived names. Rewrite it to use perl
23824         instead of shell to make the check faster.
23825         * top/maint.mk (perl_translatable_files_list_): Define.
23826         (sc_po_check): Use it.
23828 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23830         obstack: pacify GCC 6 with -Wnull-dereference
23831         Problem reported by Assaf Gordon in:
23832         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
23833         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
23834         Declare with __attribute_noreturn__.
23835         * lib/obstack.h (__attribute_noreturn__): New macro.
23837 2016-07-13  Eric Blake  <eblake@redhat.com>
23839         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
23840         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
23841         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
23843 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
23845         doc: mention glibc SSIZE_MAX buglet
23846         * doc/posix-headers/limits.texi (limits.h): Document the bug.
23848 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
23850         printf-posix: Fix mingw build
23851         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
23852         expression for detecting C symbol prefixes but forgot to qoute square
23853         brackets in the command line arguments for grep.  That way when
23854         building with mingw the condition was false although it ought to be
23855         true instead.  In particular scenarios this led to the following
23856         compile error:
23858             Cannot export rpl_printf: symbol not found
23859             Cannot export rpl_scanf: symbol not found
23860             collect2: error: ld returned 1 exit status
23862         Fix this by properly quoting square brackets.
23864 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23866         mktime: call tzset as per POSIX
23867         Problem reported by Ludovic Courtès in:
23868         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
23869         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
23870         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
23872 2016-06-26  Pádraig Brady  <P@draigBrady.com>
23874         fts: handle readdir() errors
23875         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
23876         but also upon error when it will also set errno.  Therefore
23877         flag the error case from readdir().  We treat the case where
23878         no items are read the same as if the dir can't be accessed,
23879         i.e. by setting fts_errno to FTS_DNR.
23881 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23883         intprops: port better to GCC 7
23884         GCC 7 __builtin_add_overflow supports a new usage form, where the
23885         last argument is a null pointer, and which merely returns 1 if an
23886         overflow would occur.  This is a constant expression if all
23887         arguments are constants, and should generate faster code when code
23888         needs to be generated.
23889         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
23890         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23891         Use builtin operations if available.
23892         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
23893         operations are available, as it's almost surely faster.
23895 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23897         intprops-test: port to GCC 6
23898         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
23899         since the bug is not fixed in GCC 6.1.
23901 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
23903         xalloc-oversized: port to GCC 7; fewer warnings
23904         GCC 7 will have a better way to deal with integer overflow.
23905         Plus, fix a warnings problem reported by Tim Ruehsen in:
23906         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
23907         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
23908         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
23909         For GCC 5, use __xalloc_oversized if both args are constants,
23910         or if pedantic.
23912 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23914         regex: port to Sun C
23915         Reported by Daiki Ueno.
23916         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
23917         __restrict, in prototype.  This fixes a problem I introduced in
23918         the 2016-02-19 merge from glibc.
23920 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23922         stdbool: Restore __bool_true_false_are_defined check
23923         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
23924         __bool_true_false_are_defined is still defined, even with C++11.
23926 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
23928         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
23929         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
23931 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23933         Use GCC_LINT, not lint
23934         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
23935         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
23936         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
23937         Document problem with lint and _Noreturn.
23938         * lib/diffseq.h (IF_LINT, IF_LINT2):
23939         * lib/fts.c (sccsid):
23940         * lib/getndelim2.c (IF_LINT):
23941         * lib/gl_anylinked_list2.h (gl_linked_iterator)
23942         (gl_linked_iterator_from_to):
23943         * lib/gl_anytree_list2.h (gl_tree_iterator)
23944         (gl_tree_iterator_from_to):
23945         * lib/gl_anytree_oset.h (gl_tree_iterator):
23946         * lib/gl_array_list.c (gl_array_iterator)
23947         (gl_array_iterator_from_to):
23948         * lib/gl_array_oset.c (gl_array_iterator):
23949         * lib/gl_carray_list.c (gl_carray_iterator)
23950         (gl_carray_iterator_from_to):
23951         * lib/idcache.c:
23952         * lib/inet_ntop.c (IF_LINT):
23953         * lib/regcomp.c (build_charclass_op, create_tree):
23954         * lib/regex_internal.c (re_acquire_state)
23955         (re_acquire_state_context):
23956         * lib/trigl.c (rcsid):
23957         * lib/trim.c (IF_LINT):
23958         * lib/vasnprintf.c (IF_LINT):
23959         * lib/verify.h (assume):
23960         Treat GCC_LINT like lint.
23962 2016-05-29  Bruno Haible  <bruno@clisp.org>
23964         secure_getenv: Port to many more platforms.
23965         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
23966         functions.
23967         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
23968         for non-BSD Unix platforms and for native Windows.
23969         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
23970         Prompted by a request from Nikos Mavrogiannopoulos.
23972 2016-05-27  Eric Blake  <eblake@redhat.com>
23974         canonicalize: Fix broken probe for realpath.
23975         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
23976         in logic introduced in 54615b95.
23978 2016-05-26  Eric Blake  <eblake@redhat.com>
23980         unsetenv: relax to LGPLv2+
23981         * modules/unsetenv (License): Match setenv license.
23983 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
23985         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
23986         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
23987         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
23988         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
23989         (commonarg, dirargs, dirs, infoarg, generate_ascii)
23990         (generate_html, generate_info, generate_tex, outdir)
23991         (source_extra, split, srcfile, texarg): Move above 'version'.
23992         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
23994 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23996         manywarnings: update for GCC 6.1
23997         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23998         Add GCC 6.1 options that apply to C.
23999         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24000         do not apply to C, are obsolescent, etc.
24002 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24004         glob: size_t overflow checks
24005         * lib/glob.c (__has_builtin): New macro.
24006         (size_add_wrapv, glob_use_alloca): New static functions.
24007         (glob, glob_in_dir): Check for size_t overflow in several places,
24008         and fix some size_t checks that were not quite right.
24010         glob: don't assume INT_MAX < SIZE_MAX
24011         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24012         latter is not portable to (probably theoretical) hosts where
24013         SIZE_MAX <= INT_MAX.
24015 2016-05-09  Bruno Haible  <bruno@clisp.org>
24017         Fix undefined behaviour in gettext.h.
24018         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24019         pointer's value after the storage it points to has been freed.
24020         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24021         Spotted by Coverity.
24023 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24025         git-version-gen: avoid undefined shift
24026         Problem reported by Mosè Giordano in:
24027         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24028         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24029         with --prefix or --fallback but without a later argument.  While
24030         we're at it, omit unnecessary quotes.
24032 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24034         glob: merge glibc changes into lib/glob.c
24035         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24036         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24037         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24038           struct dirent [BZ #19779]
24039         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24040           callback gl_readdir
24041         2015-10-20 Convert miscellaneous function definitions to prototype style
24042         2015-10-20 Convert 113 more function definitions to prototype style
24043           (files with assertions)
24044         2015-06-12 Fix getlogin_r namespace (bug 18527).
24045         2014-02-10 Use glibc_likely instead __builtin_expect.
24046         2013-10-20 When glob pattern contains a trailing slash match only
24047           directories. Fixes bug 10278.
24048         2013-09-04 glob: silence -Wattribute warnings
24049         2013-06-07 Avoid use of "register" as optimization hint.
24050         2012-09-25 Use size_t instead of int for internal variables in glob
24051           (bug 14621)
24052         2011-07-20 Check for overflows in expressions
24053         2011-05-28 Remove unused variable
24054         2011-05-22 Add a few more alloca size checks
24055         2010-03-27 Whitespace fixes
24056         2010-03-27 Fix one more issue with the glob patch
24057         2010-03-24 Fix glob with empty pattern
24058         2008-05-27 Remove useless more "if" tests before "free"
24059         * modules/glob (Depends-on): Add stdint.
24061 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24063         mktime: port to stricter signed overflow checking
24064         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24065         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24066         instead of merely for INT_MAX * 2.  In practice platforms that
24067         do the latter also do the former.
24068         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24069         (shr): New static function, replacing SHR.  All uses changed.
24070         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24071         and TIME_T_MAX.  All uses changed.
24072         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24073         Use long_int, not time_t.
24074         (long_int_avg): New static function, replacing time_t_avg.
24075         All uses changed.  Round toward positive infinity, as that
24076         generates slightly better code.
24077         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24078         by INT_ADD_WRAPV.
24079         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24080         (convert_time): New static function.
24081         (ranged_convert): Use it
24082         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24083         Use simpler test for loop exit.
24084         (__mktime_internal): Store negative of guessed offset, to simplify
24085         overflow checking.  Remove no-longer-needed test for small time_t
24086         overflows.
24088         mktime: speed up DEBUG_MKTIME benchmarks
24089         Call tzset just once, at the start, rather than for every test
24090         case.  This lets us measure the CPU cost of mktime as opposed to
24091         that of tzset.  This is relevant when TZ is not set and glibc is
24092         being used.  This speeds up tests by a factor of 40 on my Fedora
24093         23 x86-64 platform.
24094         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24095         to call tzset and as a sanity check.  Later on, use localtime_r
24096         instead of localtime.
24098         mktime: resurrect DEBUG_MKTIME testing
24099         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24100         Include <string.h>, for strcmp.
24102         mktime: simplify DEBUG_MKTIME
24103         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24104         Simplify later usage accordingly.
24106         Port mktime_internal offset to unsigned time_t
24107         This avoids some assumptions about wraparound arithmetic on
24108         signed integer overflow.
24109         * lib/mktime-internal.h (mktime_offset_t): New type.
24110         (mktime_internal): Use it in decl.
24111         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24113         * lib/mktime.c (__mktime_internal, localtime_offset):
24114         * lib/timegm.c (timegm): Use it.
24115         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24116         (gl_FUNC_MKTIME): Require it.
24118 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24120         xstrtol: prohibit monstrosities like "1bB"
24121         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24122         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24123         "B" only if the first suffix needs a base.
24124         * tests/test-xstrtol.sh: Test this.
24126 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24128         xstrtod: reinstate setting of *result upon ERANGE
24129         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24130         the returned limits upon ERANGE, so allow and document that.
24132 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24134         xstrtod: modify *result only if no errors
24135         * lib/xstrtod.c (XSTRTOD).
24137 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24139         btowc: document problems in C locale
24140         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24141         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24143 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24145         mktime: improve integer overflow checking
24146         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24147         (WRAPV): Remove; no longer needed.
24148         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24149         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24150         Remove.  Use intprops.h defns instead.
24151         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24152         Use bool for Boolean, for clarity.
24153         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24154         detect integer overflow.
24155         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24157         intprops: check two's complement assumption
24158         Suggested by Eric Blake in:
24159         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24160         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24161         short, int, long, and (if available) long long are two's complement.
24162         * modules/intprops (Depends-on): Add 'verify'.
24164         intprops, mktime, strtol: assume two's complement
24165         These macros were not portable to every conforming C11 ones'
24166         complement platform.  It's not worth the hassle of porting to some
24167         platforms that use ones' complement or signed magnitude, as such
24168         platforms are almost purely theoretical nowadays and porting even
24169         to some of them makes the code harder to review for little
24170         practical benefit.  Problem reported by Florian Weimer in:
24171         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24172         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24173         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24174         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24175         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24176         (TYPE_SIGNED_MAGNITUDE):
24177         Remove.  All uses rewritten to assume two's complement, which is
24178         all we can reasonably test nowadays anyway.
24179         * top/maint.mk (_intprops_names): Remove the removed macros.
24181 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24183         stdint: port to strict C11 left shift
24184         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24185         Pacify clang -Wshift-negative-value, which should be an issue only
24186         on clang setups where stdint.h does not conform to C11 or to C++11.
24187         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24189 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24191         mbrtowc: work around glibc bug#19932
24192         Fix mbrtowc so that it never returns -1 in the C locale,
24193         as this conflicts with a future version of POSIX
24194         http://austingroupbugs.net/view.php?id=663#c2738
24195         and causes problems with GNU grep: http://bugs.gnu.org/23234
24196         See glibc bug 19932:
24197         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24198         * doc/posix-functions/mbrlen.texi (mbrlen):
24199         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24200         Document the glibc bug.
24201         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24202         Include hard-locale.h, locale.h.
24203         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24204         if the bug is possible.
24205         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24206         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24207         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24208         * modules/mbrtowc (Depends-on): Add hard-locale.
24209         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24210         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24211         * tests/test-mbrtowc5.sh: New file.
24213 2016-04-03  Pedro Alves  <palves@redhat.com>
24215         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24216         When gnulib is configured in C++ mode for a system with a working C99
24217         implementation of stdint.h that predates C++11, gnulib ends up
24218         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24219         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24220         MinGW is LLP64.  Instead of trying to detect the right types, detect
24221         good-enough-pre-C++11 stdint.h and in such case define
24222         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24223         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24224         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24225         conforms to C99.  If it does, check whether it hides symbols
24226         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24227         does, define those macros in config.h.
24229 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24231         argp: merge changes from glibc
24232         Among other things, this should fix problems found by a Coverity
24233         scan and reported by Andrei Borzenkov:
24234         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24235         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24236         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24237         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24238         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24239         * lib/argp.h:
24240         Merge changes from glibc.
24241         * tests/test-argp-2.sh: Adjust to match new behavior.
24243 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24245         stddef: support configuring with g++
24246         Problem reported by Ángel González in:
24247         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24248         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24249         Do not define if _GCC_MAX_ALIGN_T is defined.
24251 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24253         test-framework-sh: minor cleanups
24254         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24255         since strictly speaking POSIX requires this.
24256         (setup_): Do not use the variable 'fail', as that makes the
24257         trace output harder to read ('fail' is typically used by
24258         tests to mean the test failed).  Treat // portably.
24259         Check that new directory is not merely a sibling of the tmp dir.
24260         Avoid unnecessary invocation of tr.
24262         test-framework-sh: revert port to NetBSD 7.0
24263         It was a false alarm; I misinterpreted Assaf Gordon's report.
24264         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24265         Restore.
24266         (test_dir_): Adjust to mktempd_ change.
24267         (mktempd_): Restore 2nd arg.  Use -t again.
24268         (base_template_, template_, nx_): Resurrect old code.
24270         Port better to Alpine Linux
24271         Its diff implementation does not support -c, but does support -U3.
24272         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24273         * tests/init.sh (diff_opt_): New var.
24274         (compare_): Prefer diff -U3 to diff -c to plain diff.
24276 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24278         test-framework-sh: port to NetBSD 7.0
24279         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24280         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24281         Remove.  All uses removed.
24282         (test_dir_): Adjust to mktempd_ change.
24283         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24284         (base_template_, template_, nx_): Simplify by hardcoding.
24286 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24288         gitlog-to-changelog: suppress ignored chatter
24289         * build-aux/gitlog-to-changelog: Do not warn about skipping
24290         an SHA if it would have been ignored anyway.
24292 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24294         setlocale: add "sv" to Windows language table
24295         * lib/setlocale.c (language_table) [W32]: Add "sv".
24296         Reported in <https://savannah.gnu.org/bugs/?44588>.
24298 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24300         sys_select: port to new Cygwin
24301         Problem reported by Ken Brown in:
24302         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24303         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24304         diagnostics.
24306 2016-03-17  Jim Meyering  <meyering@fb.com>
24308         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24309         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24310         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24311           test-userspec.c:176:9: error: statement is indented as if it were \
24312             guarded by... [-Werror=misleading-indentation]
24313                    {
24314                    ^
24315           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24316                  if (!diag && !T[i].result)
24317                  ^~
24319 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24321         time_rz: port to clang -Wunused-const-variable
24322         * lib/time_rz.c (TZ): Remove.  All uses removed.
24324         std-gnu11: improve clang support
24325         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24326         2016-03-15 Also try clang
24327         2016-03-15 Port C11 and C++11 testing to clang
24329         select: port more to Intel 2016.1.150 compiler
24330         Problem reported by Balázs Hajgató in:
24331         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24332         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24334 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24336         select: try to port to 2016.1.150 compiler
24337         Problem reported by Balázs Hajgató in:
24338         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24339         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24340         POSIX specifies 'restrict'.
24342 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24344         localename-tests: memory allocation fixes
24345         * tests/test-localename.c (test_locale_name)
24346         (test_locale_name_thread): Don't call freelocale on a locale
24347         that was the base of a successful newlocale, as that
24348         results in a double free.  Problem reported by Assaf Gordon.
24349         (test_locale_name_thread): Free saved names after use, to pacify
24350         gcc -fsanitize=address.
24352 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24354         intprops: make .h file license match module
24355         * lib/intprops.h: Change the license wording to match glibc format.
24356         This is what is in modules/intprops anyway.  See:
24357         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24359 2016-03-08  Eric Blake  <eblake@redhat.com>
24361         acl: fix missing return on Cygwin
24362         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24363         fall off end of function. Fixes http://bugs.gnu.org/22949
24365 2016-03-05  Bruno Haible  <bruno@clisp.org>
24367         extern-inline: port to PGI CC
24368         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24369         keyword 'inline'.
24370         Reported by Adam James Stewart in:
24371         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24373 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24375         signbit: port back to pre-C++11 GCC
24376         * lib/math.in.h (signbit): Do previous change only if
24377         __cplusplus < 201103.  See Jonathan Wakely in:
24378         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24380 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24382         mountlist: recognize autofs-mounted remote file systems, too
24383         Originally reported at: https://bugzilla.redhat.com/1309247
24384         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24385         "-hosts" because it is used by autofs to mount remote file systems.
24387 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24389         signbit: port to C++ with GCC 6
24390         * lib/math.in.h (signbit) [__cplusplus]:
24391         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24392         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24394         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24396         regex: make it closer to libc
24397         Make Idx a signed type, rather than possibly unsigned.
24398         The unsignedness was not really buying us anything, since the code
24399         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24400         it signed allows us to use -1 and -2 with abandon, like libc does,
24401         thus lessening the number of differences between gnulib and libc.
24402         Also, it should help avoid gratuitous warnings like the one
24403         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24404         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24407         regex: merge patches from libc
24409         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24410         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24411         Convert miscellaneous function definitions to prototype style.
24412         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24413         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24414         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24415         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24416         (re_search_internal):
24417         Convert to prototype-style function definition.
24418         Use internal_function for internal functions.
24420 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24422         stdalign: port to older HP and IBM cc
24423         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24424         C compilers, by checking their version numbers.  These version
24425         numbers appear in MariaDB and in Qt code that dates way back and
24426         that conditiionally uses the 'aligned' attribute.
24428 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24430         stdalign: port to clang 3.7.0
24431         Problem reported by Herbert J. Skuhra in:
24432         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24433         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24434         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24435         https://llvm.org/bugs/show_bug.cgi?id=26547
24437 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24439         readdir_r: now obsolescent
24440         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24441         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24443 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24445         misc: port better to gcc -fsanitize=address
24446         Without these patches, ./configure CFLAGS='-fsanitize=address'
24447         would compute incorrect values.  This patch fixes some (but not all)
24448         test failures with recent glibc, with this configuration.
24449         * m4/acl.m4 (gl_ACL_GET_FILE):
24450         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24451         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24452         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24453         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24454         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24455         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24456         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24457         * m4/getline.m4 (gl_FUNC_GETLINE):
24458         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24459         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24460         * m4/regex.m4 (gl_REGEX):
24461         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24462         * tests/test-calloc-gnu.c (main):
24463         * tests/test-duplocale.c (main):
24464         * tests/test-getgroups.c (main):
24465         * tests/test-getline.c (main):
24466         * tests/test-inttostr.c (main):
24467         * tests/test-localename.c (test_locale_name)
24468         (test_locale_name_thread, test_locale_name_environ)
24469         (test_locale_name_default):
24470         * tests/test-regex.c (main):
24471         * tests/test-setlocale1.c (main):
24472         * tests/test-stat.h (test_stat_func):
24473         Free heap-allocated storage before exiting.
24474         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24475         Don't match *_foo symbols inserted by AddressSanitizer.
24476         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24478 2016-02-02  Jim Meyering  <meyering@fb.com>
24480         verify-tests: also remove stray test-verify.Tpo
24481         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24482         to remove the test-verify.Tpo file that is left behind by
24483         the automake-generated rule upon compilation failure.
24484         Otherwise, that .Tpo file would cause a failed "make distcheck"
24485         at least for grep.
24487 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24489         std-gnu11: new module
24490         This makes it easier for applications to prefer C11 and C++11
24491         to older variants, when compiling C and C++ code.
24492         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24493         a nontrivial chunk of GPLed Autoconf source code.
24494         * COPYING: Mention the m4/*.m4 copyright situation.
24495         * MODULES.html.sh (std-gnu11): New module.
24496         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24498 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24500         get-permissions, strftime: fix grammar in comments
24501         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24502         some grammar fixes Alan Mackenzie made to GNU Emacs.
24504 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24506         gettext: mark as obsolete
24507         Suggested by Paul Eggert in:
24508         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24509         * modules/gettext (Status): Mark as obsolete.
24510         (Notice): Suggest to use 'gettext-h' instead.
24511         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24512         the 'gettext' module.
24514 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24516         gnulib-tool: don't give up on ln -s so easily
24517         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24518         because an earlier one failed.  The targets could be on different
24519         file systems.  Problem reported by KO Myung-Hun in:
24520         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24522         closedir: fix OS/2-related typos
24523         Problem reported by KO Myung-Hun in:
24524         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24525         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24526         in the last couple of changes.
24528 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24530         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24531         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24532         copying a directory.
24534 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24536         regex: treat [x] as x if x is a unibyte encoding error
24537         Problem reported by Aharon Robbins in:
24538         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24539         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24540         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24542         closedir, dirfd, opendir: port to OpenSolaris 5.10
24543         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24544         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24545         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24546         Don't use ${word##pat} substitution, as it doesn't work in
24547         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24548         http://bugs.gnu.org/22443#11
24550 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24552         bootstrap: use American spelling
24553         * build-aux/bootstrap: Honor American spelling.
24555 2016-01-22  Karl Berry  <karl@freefriends.org>
24557         * doc/posix-functions/localtime.texi,
24558         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24560 2016-01-21  Bruno Haible  <bruno@clisp.org>
24562         hash-pjw-bare: fix comment
24563         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24565         wcwidth: Replace also on OpenBSD 5.8
24566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24567         * doc/posix-functions/wcwidth.texi: Update.
24569 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24571         gnu-web-doc-update: fix addition of new files
24572         If there were already added (emnpty) dirs,
24573         then cvs aborts the add with the message:
24574           cvs [add aborted]: there is a version in <./dirname> already
24575         * build-aux/gnu-web-doc-update: Add directories separately
24576         to the addition of files, to avoid the above issue
24577         impacting the addition of files.
24579 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24581         utimens-tests: avoid pulling gettext .m4 files
24582         Although this is not the right fix to the original problem:
24583         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24584         it makes it possible again for consumer projects to use arbitrary
24585         version of gettext, through the steps described at:
24586         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24587         See here for details:
24588         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24589         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24590         'gettext'.
24591         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24592         'gettext'.
24594 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24596         regex: pacify static checkers
24597         Problem and draft fix reported by Aharon Robbins in:
24598         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24599         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24600         Clear memory to pacify static checkers.
24602         regex: fix [ diagnostic
24603         Problem and fix reported by Aharon Robbins in:
24604         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24605         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24607         regex: fix memory leaks
24608         Problem and draft fix reported by Aharon Robbins in:
24609         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24610         * lib/regcomp.c (build_range_exp, build_charclass_op)
24611         * lib/regex_internal.c (re_dfa_add_node):
24612         Fix memory leak on failure.
24614 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24616         fts: don't unconditionally use leaf optimization for NFS
24617         NFS st_nlink are not accurate on all implementations,
24618         leading to aborts() if that assumption is made.
24619         See <https://bugzilla.redhat.com/1299169>
24620         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24621         the white list, and document the issue.
24623 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24624             KO Myung-Hun  <komh@chollian.net>
24626         gnulib-tool: don't assume ln -s works
24627         * gnulib-tool (func_ln_s): New function.
24628         (func_ln): Use it.
24630 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24632         utimes: detect utimes() correctly on OS/2 kLIBC
24633         utimes() of OS/2 kLIBC has some limitations.
24634         1. OS/2 itself supports a file date since 1980 year in local time.
24635         2. OS/2 itself supports only even seconds for a file time.
24636         3. utimes() of OS/2 kLIBC does not work on an opened file.
24637         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24638         * doc/posix-functions/utimes.texi: Document the above limitations of
24639         utimes() on OS/2 kLIBC.
24641 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24642             KO Myung-Hun  <komh@chollian.net>
24644         openat_proc_name: port to OS/2 kLIBC
24645         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24646         instead of /proc/self/fd.
24647         * lib/openat-proc.c (openat_proc_name):
24648         Don't assume file name length is less than INT_MAX.
24649         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24651 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24653         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24654         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24655         definitions of intptr_t and uintptr_t (which use int and unsigned)
24656         to avoid clashes with declarations of system functions like sbrk.
24657         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24658         _INTPTR_T_DECLARED before defining them.
24660         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24661         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24662         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24663         Declare on kLIBC.
24664         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24665         fd associated with dirp.
24666         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24667         dirp_fd_list.
24668         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24669         (dirfd): Implemented for kLIBC.
24670         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24671         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24672         succeeds.
24673         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24674         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24675         (REPLACE_DIRFD): Define to 1 if replaced.
24676         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24677         * modules/closedir (Depends-on): Add dirfd.
24678         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24679         condition.
24680         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24681         * modules/opendir (Depends-on): Add dirfd.
24683         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24684         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24685         * lib/dup.c (dup_nothrow): New.
24686         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24687         (klibc_dup2): New.
24688         * lib/fcntl.c (klibc_fcntl): New.
24689         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24690         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24691         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24692         fd.
24694         pipe_filter_ii_execute: port to OS/2 kLIBC
24695         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24696         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24697         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24698         Reuse Win32 code on OS/2 kLIBC.
24699         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24700         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24702         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24703         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24704         static inline function.  The implementation of wcwidth in wcwidth.c
24705         causes a "conflicting types" error.
24706         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24708         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24709         spawn() on OS/2 kLIBC is not silly like one on Windows
24710         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24711         empty string on OS/2 kLIBC.
24713         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24714         On OS/2 kLIBC, select() works only on sockets.
24715         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24717         binary-io: don't put fd in binary mode if it is a console on EMX
24718         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24719         a console on EMX.
24721 2016-01-15  Pádraig Brady  <P@draigBrady.com>
24723         doc: mention unfixed issues with unsupported localtime() values
24724         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
24725         returns nonsense for localtime(2^56).
24726         * doc/posix-functions/localtime_r.texi: Likewise.
24728 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24730         doc: mention setlocale() issues on OpenBSD
24731         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
24732         never fails, and the need to check categories individually.
24734 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24736         sig2str: list all signals on FreeBSD >= 7
24737         FreeBSD >= 7 is contravening POSIX by not defining NSIG
24738         to the maximal statically defined signal value.
24739         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
24740         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
24741         where available, even when NSIG is defined.
24743 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24745         acl-permissions: port to USE_ACL==0 platforms
24746         I ran into this problem when building bleeding-edge GNU Emacs
24747         with gcc -fsanitize=address on Fedora 23.  On this platform
24748         the ACL library does not pass the 'configure' test and Emacs
24749         then does not build due in part to what appear to be typos in the
24750         ACL part of Gnulib.
24751         * lib/acl-internal.c (free_permission_context):
24752         * lib/acl-internal.h (struct permission_context):
24753         Test whether USE_ACL is nonzero, not whether it is defined.
24755 2016-01-12  Martin Sebor  <msebor@redhat.com>
24757         mktime: rename macro to avoid glibc clash
24758         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
24759         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
24761 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24763         Port "$@" to OpenIndiana ksh93
24764         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
24765         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
24766         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
24767         bug long-dead shells, so remove the workaround.
24768         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
24769         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24770         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
24771         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
24772         Use "$@" instead of ${1+"$@"}.
24774         Port Universal Time settings to strict POSIX
24775         * build-aux/announce-gen, build-aux/bootstrap:
24776         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
24777         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24778         * build-aux/gnupload, build-aux/mkinstalldirs:
24779         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
24780         * build-aux/update-copyright, build-aux/useless-if-before-free:
24781         * build-aux/vc-list-files, tests/test-strftime.c:
24782         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
24783         but POSIX says the behavior of TZ="UTC" is undefined.
24785 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24787         msvc-inval: fix problem with unset shell var
24788         Problem reported by Karl Berry in:
24789         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
24790         * modules/msvc-inval (Depends-on):
24791         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
24792         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
24794 2016-01-01  Pádraig Brady  <P@draigBrady.com>
24796         tests: for compare_(), use cmp -s where available
24797         * tests/init.sh (compare_): Only fall back to cmp without
24798         the POSIX defined -s option, where this is not available.
24800 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24802         version-etc: new year
24803         * build-aux/gendocs.sh (version):
24804         * doc/gendocs_template:
24805         * doc/gendocs_template_min:
24806         * doc/gnulib.texi:
24807         * lib/version-etc.c (COPYRIGHT_YEAR):
24808         Update copyright dates by hand in templates and the like.
24809         * all files: Run 'make update-copyright'.
24811 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24813         human: fix output buffer overrun by 1
24814         * lib/human.c (human_readable): Fix off-by-one typo in buffer
24815         calculation that could lead to a one-byte buffer overrun.
24817 2015-12-28  Daiki Ueno  <ueno@gnu.org>
24819         maint: fix operator precedence in mbrtowc test
24820         This is a fix for test breakage introduced by commit 45228d96; the
24821         equality expression must be parenthesized when negated with '!',
24822         otherwise we always get:
24824           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
24826         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
24827         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24829 2015-12-23  James Youngman  <jay@gnu.org>
24831         regexprops-generic: update from regex.h
24832         * doc/regexprops-generic.texi: update by running the regexprops binary
24833         from findutils (the command line is 'regexprops "Regular Expressions"
24834         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
24835         gnulib with GNU grep had made this document out-of-date.
24837 2015-12-23  Pádraig Brady  <P@draigBrady.com>
24839         strftime-tests: avoid false failure on OS X
24840         * tests/test-strftime.c (struct localtime_rz_test): Add an
24841         ahistorical member which is used to warn rather than fail
24842         when tm_isdst isn't set for such entries.  This is the case for
24843         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
24845 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
24847         fts: ensure leaf optimization is used for NFS
24848         NFS provides usable dirent.d_type but not necessarily for all entries
24849         of large directories.  See <https://bugzilla.redhat.com/1252549>
24850         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
24852 2015-12-20  Pádraig Brady  <P@draigBrady.com>
24854         fts: enable leaf optimization for XFS
24855         XFS provides usable dirent.d_type only for DT_DIR,
24856         but the noleaf optimization still applies.
24857         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
24859 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
24861         intprops: comment fix
24862         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
24863         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
24865         intprops-test: work around GCC bug 68971
24866         Problem reported by Pádraig Brady in:
24867         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
24868         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
24869         (main): Add a case that better tests 64-bit long in this area.
24871 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
24873         gnulib-tool: allow multiple --local-dir usage
24874         * gnulib-tool: Use --local-dir to construct compound
24875         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
24876         PATH_SEPARATOR early.
24877         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
24878         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
24879         func_determine_path_separator because that needs to be detected
24880         earlier now.
24881         (func_determine_path_separator): New function.
24882         (func_path_foreach, func_path_foreach_inner): New functions.
24883         (func_path_prepend, func_path_append): Likewise.
24884         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
24885         (func_lookup_file, func_all_modules): Use new functions to work
24886         with local_gnulib_path.
24887         (func_modules_in_dir, func_exists_module): New callbacks for
24888         func_path_foreach.
24889         (func_exists_module, func_get_tests_module): Likewise.
24890         (func_is_local_file, func_should_symlink): New helper methods.
24891         (func_add_file, func_update_file): Use new func_should_symlink
24892         instead, DRY.
24893         (func_reconstruct_cached_local_gnulib_path): New helper.
24894         (func_reconstruct_cached_dir): New callback.
24895         (func_import): The cached_local_gnulib_dir renamed to
24896         cached_local_gnulib_path similarly to local_gnulib_dir.
24897         Use new func_reconstruct_cached_local_gnulib_path.
24898         (func_count_relative_local_gnulib_path): New sub-method.
24899         (func_create_testdir): Use func_should_symlink, DRY.
24900         (func_create_megatestdir): Use new functions to work with
24901         local_gnulib_path correctly.
24902         (func_append_local_dir): New helper.
24904 2015-12-08  Pádraig Brady  <P@draigBrady.com>
24906         fix freadptr to work with ungetc on all uClibc configs
24907         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
24908         where GNU coreutils cut(1) generates invalid output on uClibc
24909         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
24910         * lib/freadptr.c (freadptr): Return NULL if there are
24911         ungotten chars.  In this case freadseek() will iterate
24912         again to process the ungotten character.
24914 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
24916         xalloc-oversized: improve performance with GCC 5
24917         * lib/xalloc-oversized.h (xalloc_oversized):
24918         Improve performance with GCC 5 by using __builtin_mul_overflow.
24920 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24922         intprops: new public macro EXPR_SIGNED
24923         Emacs can use this macro, so make it public.
24924         * doc/intprops.texi (Arithmetic Type Properties): Rename from
24925         'Integer Type Determination', since some of these macros apply
24926         to non-integer types.  Clarify what kinds of constant expressions
24927         these macros return.  Say when the arguments can be non-integers.
24928         Mention newly published macro EXPR_SIGNED.
24929         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
24930         make it public.  All uses changed.
24932         intprops: fix typo in clang port
24933         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
24934         '__builtin_add_overflow' that is not caught by compiler.
24936 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
24938         test-timespec: fix typo in previous change
24939         * tests/test-timespec.c (main): Fix typo that reduced test quality.
24941         timespec-sub: fix overflow bug; add tests
24942         * lib/timespec-add.c (timespec_add):
24943         * lib/timespec-sub.c (timespec_sub):
24944         Work even if time_t is narrower than int (a theoretical
24945         possibility).  Redo code for a bit more clarity.
24946         * lib/timespec-sub.c (timespec_sub):
24947         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
24948         * modules/timespec-tests, tests/test-timespec.c: New files.
24950         intprops-test: suppress -Woverlength-strings
24951         Problem reported by Pádraig Brady in:
24952         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
24953         It is not worth the hassle to port this test to compilers that
24954         cannot handle long strings in diagnostics.
24955         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
24957 2015-11-03  Pádraig Brady  <P@draigBrady.com>
24959         quotearg: add quotearg_n_style_colon()
24960         This quotes with default options of the specified style,
24961         but with quoting enabled for instances of ':'.
24962         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
24963         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
24965 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
24967         intprops: revise _WRAPV macros, revert _OVERFLOW
24968         The incompatible changes to the _OVERFLOW macros were too much of
24969         a hassle in practice, so revert them.  Instead, change the new
24970         _WRAPV macros to make them closer in behavior to GCC 5's new
24971         builtin_add_overflow etc. functions.  No other software was using
24972         these newly-added macros yet, so this should be OK.
24973         * NEWS: Revert previous change, since the incompatible change
24974         has been reverted, and nobody used the incompatible version.
24975         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
24976         Document revised behavior.
24977         (Integer Range Overflow): Adjust example to match above revisions.
24978         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
24979         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
24980         these can be used in integer constant expressions again.
24981         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
24982         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
24983         needed.
24984         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
24985         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
24986         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
24987         Remove, as they did not seem that useful.
24988         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
24989         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
24990         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24991         Support new semantics.
24992         (__has_builtin): New macro, if not alreay defined.
24993         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
24994         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
24995         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
24996         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
24997         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
24998         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
24999         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25000         New macros.
25001         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25003 2015-11-03  Jim Meyering  <meyering@fb.com>
25005         intprops: add parentheses for when OP has precedence lower than "-"
25006         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25007         "a OP b" must be parenthesized for when OP is like "<<", which has
25008         lower precedence than the following "-". Reported by Pádraig Brady.
25010 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25012         quotearg: constify get_quoting_style parameters
25013         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25014         * lib/quotearg.c (get_quoting_style): Likewise.
25016 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25018         quotearg: add support for $'' shell escaping
25019         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25020         items and descriptions.
25021         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25022         above types by quoting like "shell", but using $'...' syntax
25023         for non printable characters, which should provide unambiguous
25024         printable output for any input.
25025         * tests/test-quotearg-simple.c: Update accordingly.
25027 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25029         maint: use a more standard return from mbrtowc test
25030         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25031         from the test program as this is non standard and often
25032         indicates an unhandled case in the test program.
25033         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25035 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25037         intprops: add WRAPV and const flavors for GCC 5
25038         If available, use GCC 5's builtin functions for efficient integer
25039         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25040         and safely compute the low-order bits of the correct answer.
25041         A downside of these efficient functions is that they cannot be
25042         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25043         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25044         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25045         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25046         Document the changes.
25047         (Wraparound Arithmetic): New section.
25048         (Integer Range Overflow):
25049         Put this subsection last, since it's least useful.
25050         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25051         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25052         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25053         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25054         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25055         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25056         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25057         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25058         New macros.
25059         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25060         Generate calls to GCC builtins if available, for speed.
25061         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25062         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25063         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25064         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25065         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25066         (CHECK_QUOTIENT, CHECK_REMAINDER):
25067         Test WRAPV and CONST flavors (when available) too.
25069 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25071         doc: use extended timezone format in iso-8601 example
25072         * doc/parse-datetime.texi: The standard states that extended format
25073         is to be used consistently throughout.
25074         Note that lib/parse-datetime.y can handle either tz format.
25076 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25078         stdalign: port to Sun C 5.9
25079         * doc/posix-headers/stdalign.texi: Document this.
25080         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25081         __attribute__ ((__aligned__ (...))).
25083 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25085         time_rz: fix comment about tzalloc
25086         * lib/time_rz.c (tzalloc): Fix comment.
25088 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25090         stdalign: work around pre-4.9 GCC x86 bug
25091         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25092         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25093         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25095 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25097         maint.mk: sc_tight_scope: remove extraneous expressions
25098         * top/maint.mk (tight_scope): This is not really required since
25099         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25100         that matches all nm entries.  But it does remove extraneous entries
25101         that may be confusing or cause issue in future maintenance.
25103 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25105         time_rz: return NULL if localtime_r fails
25106         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25107         while still attempting to pacify bleeding-edge GCC.
25109         fts: port to C11 alignof
25110         * doc/posix-headers/stdalign.texi (stdalign.h):
25111         Document the C11 restriction.
25112         * lib/fts.c: Include stddef.h, for max_align_t.
25113         (fts_alloc): Align using max_align_t, not FTSENT.
25114         * modules/fts (Depends-on): Add stddef.
25116 2015-10-18  Jim Meyering  <meyering@fb.com>
25118         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25119         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25120         would see this:
25122         lib/time_rz.c: In function 'localtime_rz':
25123         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25124           [-Werror=nonnull]
25125                    if (tm && !save_abbr (tz, tm))
25126                        ^
25128         That was complaining about "tm" because it is a parameter that was
25129         declared with the __nonnull__ attribute.
25130         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25131         result of localtime_r.
25133 2015-10-17  Jim Meyering  <meyering@fb.com>
25135         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25136         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25137         name-extraction regexp mistakenly used \S+, and would mistakenly
25138         extract "*F" from "extern int *F()" rather than the desired "F".
25139         Use \w+ instead.
25141 2015-10-17  Jim Meyering  <meyering@fb.com>
25143         maint.mk: sc_tight_scope: factor and support OS X
25144         * top/maint.mk (_gl_tight_scope): Address three issues:
25145         - factor out four instances of code that wraps a string in "^...$"
25146         - allow nm-reported symbol names to have an optional leading "_"
25147         - add "main" to the list of ignored variable names, because on os x,
25148         "main" has nm-reported type "S" in the variable-checking section.
25150 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25152         safe-alloc-tests: fix typo in license header
25153         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25155 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25157         copy-file: fix mem leak in error case
25158         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25159         upon error opening or performing I/O to the src and dest files.
25161 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25163         localename: control langinfo.h inclusion
25164         This header is only used to work around buggy behavior in old
25165         versions of glibc, so do not include it all the time.  Otherwise
25166         we get build failures on systems that do not provide langinfo.h.
25167         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25168         in the source later on.
25169         The patch was originally submitted to gettext as:
25170         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25172 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25174         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25175         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25176         * lib/u64.c, lib/unistd.c:
25177         Append 'typedef int dummy;', to pacify compilers that are picky
25178         about empty translation units.
25180 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25182         accept4-tests: fix to avoid non portable flags
25183         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25184         as they are the only documented ones, and passing others may trigger
25185         EINVAL (seen on FreeBSD 10.1-RELEASE).
25186         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25187         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25189 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25191         gnulib-tool: fix tests of 'extensions' module
25192         This complements f8fe25fab60e3c687a124 commit.
25193         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25194         emitting of initial gl_EARLY macros.
25195         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25196         replaced with func_emit_pre_early_macros call.
25198 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25200         unicase/locale-language: fix typo in utf-8 cookie
25201         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25202         Problem reported by Zbigniew Jędrzejewski-Szmek.
25204 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25206         xalloc: do not worry about GCC 5 warning on 32 bit
25207         * lib/xalloc.h: Revert previous change.
25208         I found a better way to fix this in coreutils.
25210 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25212         xalloc: avoid GCC 5.1 warning on 32 bit
25213         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25214         xalloc_oversized(), which was seen to give this warning
25215         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25216         when simplifying conditional".
25218 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25220         uniname/uniname-tests: avoid compiler warnings
25221         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25222         unused local variables.
25223         (test_alias_lookup): Fix alias name display in failure cases.
25225 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25227         c-ctype: do not worry about EBCDIC + char signed
25228         Drop support for EBCDIC with char being signed, as this breaks too
25229         many programs.  Problem reported by Ben Pfaff in:
25230         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25231         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25232         char being signed.
25233         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25234         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25235         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25236         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25237         * tests/test-c-ctype.c (test_all):
25238         Simplify by assuming standard char values cannot be negative.
25239         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25241 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25243         c-ctype: port better to z/OS EBCDIC
25244         Problems reported by Daniel Richard G. in:
25245         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25246         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25247         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25248         (_C_CTYPE_OTHER_CNTRL): New macro.
25249         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25250         from SCHAR_MIN, as the functions are defined only from values
25251         promoted from char or from unsigned char, not necessarily from
25252         signed char.
25254 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25256         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25258         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25259         and ARFLAGS variables.  Doing this unconditionally could break
25260         later Automake's AM_PROG_AR invocation (at least it's
25261         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25263         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25264         Amsterdam Compiler Kit, so make the previous code to have effects
25265         only on ACK, and rather automatically call the Automake's
25266         AM_PROG_AR as soon as possible to decide other cases.
25268         References:
25269         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25271         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25272         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25273         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25274         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25275         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25276         'extensions' module is used.
25277         * modules/extensions (configure.ac-early): Remove as this snippet
25278         is added to gnulib-comp.m4 earlier anyway.
25280 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25282         sockets: MS Windows initalization fixes
25283         Problem reported by Test User in:
25284         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25285         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25286         Correct the endianness.
25287         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25288         number mismatch, not just on <.  Cleanup before any such failure.
25290 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25292         gc: fix detection of installed libgcrypt version
25293         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25294         at least as recent as 1.4.4.  The previously used macro is not
25295         available now, since modules were removed in version 1.6.0.
25297 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25299         c-ctype: rewrite to use inline functions
25300         This simplifies maintenance, since it makes for just one
25301         implementation of each function, letting the compiler have the fun
25302         of optimization.  In practice this works well nowadays with GCC.
25303         E.g., c_isascii might need only three instructions even though the
25304         source code lists every ASCII character individually in a large
25305         switch statement.
25306         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25307         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25308         * NEWS: Document the API change.
25309         * lib/c-ctype.c: Drastically simplify, since this now just expands
25310         inline functions.
25311         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25312         (C_CTYPE_INLINE): New macro.
25313         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25314         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25315         Verify that either ASCII or EBCDIC is being used.
25316         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25317         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25318         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25319         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25320         New private macros.
25321         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25322         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25323         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25324         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25325         (c_tolower, c_toupper): When converting, return the unsigned char,
25326         as that is what z/OS does.
25327         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25328         of some c-ctype.h macros.
25329         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25330         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25331         c_tolower promotion to be compatible with z/OS.
25333 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25335         gitlog-to-changelog: trim only trailing whitespaces
25336         This is fix for --format regression introduced by commit
25337         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25338         doubled %n string) had no effect anymore.  This format
25339         specification has been used e.g. by GNU paxuitils (commit
25340         edfd8bcc3).
25342         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25343         newlines in commmit messages.
25345 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25347         Test that c_iscntrl agrees with iscntrl, etc.
25348         Suggested by Daniel Richard G. in:
25349         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25350         * modules/c-ctype-tests (Depends-on): Add ctype.
25351         * tests/test-c-ctype.c: Include <ctype.h>.
25352         (NCHARS): New constant.
25353         (test_agree_with_C_locale): New function.
25354         (main): Use it.
25355         (test_all): Use named constants.
25357         c-ctype: improve c_isascii testing
25358         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25359         Add a test to count the number of ASCII characters.
25361 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25363         savewd: remove SAVEWD_CHDIR_READABLE
25364         It was problematic in the light of file systems that ignore umask.
25365         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25366         * NEWS: Document this.
25367         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25368         successful, -1 (setting errno) on failure, rather than something
25369         more complicated than that.
25370         * lib/mkdir-p.c (make_dir_parents):
25371         Do not use SAVEWD_CHDIR_READABLE.
25372         * lib/savewd.c (savewd_chdir):
25373         Remove support for SAVEWD_CHDIR_READABLE.
25374         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25376         c-ctype: port better to EBCDIC
25377         Problems reported by Daniel Richard G. in
25378         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25379         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25380         Include "verify.h".
25381         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25382         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25383         Define as enum constants with value false, if not defined, so that
25384         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25385         code more portable, as both branches of the 'if' are compiled on
25386         all platforms.
25387         (C_CTYPE_EBCDIC): New constant.
25388         Verify that the character set is either ASCII or EBCDIC.
25389         (to_char): New static function.
25390         (c_isascii, c_iscntrl):
25391         Assume standard control-character assignments for EBCDIC.
25392         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25393         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25394         Rewrite to use 'if' instead of 'ifdef'.
25395         Use to_char if non-ASCII.  Prefer <= to >=.
25396         Prefer true and false to 1 and 0, for booleans.
25397         (c_iscntrl): Use 'if', not 'ifdef'.
25398         * modules/c-ctype (Depends-on): Add verify.
25399         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25400         (to_char): New function.
25401         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25403 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25405         nanosleep: fix return code for interrupted replacement
25406         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25407         that we return -1 in the case the call is interrupted by a signal,
25408         rather than the current value of 1.
25409         Diagnosed and tested by Daniel Richard G.
25411 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25413         Diagnose ERE '()|\1'
25414         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25415         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25416         track of the set of previously-completed subexpressions available
25417         before the first alternative, and restore this set just before
25418         parsing each subsequent alternative.  This lets us diagnose the
25419         invalid back-reference in the ERE '()|\1'.
25421         regex: merge patches from libc
25423         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25424         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25425         * lib/regex_internal.h:
25426         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25428         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25429         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25430         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25431         wcscoll.
25432         * lib/regexec.c (check_node_accept_bytes): Likewise.
25434         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25435         Fix regex wcrtomb namespace (bug 18496).
25436         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25437         instead of wcrtomb.
25439         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25440         Fix regex wctype namespace (bug 18495).
25441         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25442         instead of towlower.
25443         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25444         instead of iswlower.  Call __towupper instead of towupper.
25445         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25446         instead of iswalnum.
25448         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25449         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25450         COLL_SYM in a couple of places to avoid uninitialized variable
25451         wanings on tilegx gcc 4.8.2.
25453         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25454         * lib/regex_internal.h: Remove NOT_IN_libc.
25456         2014-11-17  Andreas Schwab  <schwab@suse.de>
25457         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25459         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25460         Move findidx nested functions to top-level.
25461         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25462         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25463         Pass new arguments to findidx.
25464         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25465         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25466         Don't #include it inside the function.  Pass new arguments to findidx.
25467         * lib/regex_internal.h:
25468         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25469         (re_string_elem_size_at): Don't #include it inside the function.
25470         Pass new arguments to findidx.
25472         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25473         Check if DEBUG is defined in regex_internal.c
25474         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25476 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25478         ceill: detect buggy OpenBSD implementation
25479         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25480         which returns zero for small values.  Discussed here:
25481         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25483 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25485         mountlist: add me_mntroot field on Linux machines
25486         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25487         mount_entry so Linux machines based on /proc/self/mountinfo can
25488         distinguish between bind mounts and original mounts.  In reality bind
25489         mounts aren't treated differently than mountroot=/ mounts by the
25490         kernel, but the user often wants these bind mounts distinguished.
25491         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25492         More details at https://pad.lv/1432871
25494 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25496         doc: Describe to use multiple instances of gnulib
25497         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25498         instances of gnulib with different modules can be used, for example one
25499         for a lib and another one for associated tools.
25501 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25503         base32: mark function as __attribute__ const
25504         * lib/base32.h (isbase32): Mark __attribute__ const as
25505         suggested by GCC, and consistent with the base64 module.
25507 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25509         gnulib-tool: don't transform binary files with sed
25510         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25511         .mo and .class files.
25512         Reported by Denis Denisov.
25514 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25516         gperf: respect silent rules
25517         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25518         V_GPERF_0 for silent rules.
25519         * modules/iconv_open (Makefile.am): Use V_GPERF.
25520         * modules/unicase/locale-language (Makefile.am): Likewise.
25521         * modules/unicase/special-casing (Makefile.am): Likewise.
25522         * modules/unictype/category-byname (Makefile.am): Likewise.
25523         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25524         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25525         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25526         * modules/unictype/property-byname (Makefile.am): Likewise.
25527         * modules/unictype/scripts (Makefile.am): Likewise.
25528         * modules/uninorm/composition (Makefile.am): Likewise.
25530 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25532         Improve port of stdalign to C++11
25533         Problem reported by Sundaram in:
25534         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25535         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25536         (__alignas_is_defined): Define if C++11 or newer.
25538 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25540         pmccabe2html: fix gawk regex escaping
25541         * build-aux/pmccabe2html: Add one more backslash to properly
25542         escape the gsub replacement value.  Fixes this error:
25543         gawk: ./build-aux/pmccabe2html:425: \
25544         warning: escape sequence `\&' treated as plain `&'
25546 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25548         time_rz: port to pedantic memcpy
25549         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25550         that reject memcpy (..., NULL, 0).
25552 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25554         time_rz: port better to MinGW
25555         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25556         Instead, store the tzname copy in the struct tm_zone object.
25557         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25558         * lib/strftime.c [!_LIBC]:
25559         * lib/time_rz.c: Include time-internal.h.
25560         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25561         name from *TZ rather than from TZNAME, doable because *TZ now has
25562         a tzname_copy member.
25563         * lib/time-internal.h: New file, with contents taken from
25564         lib/time_rz.c.  It's separate because strftime.c now accesses
25565         struct tm_zone members.
25566         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25567         New member tzname_copy.
25568         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25569         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25570         Initialize tzname_copy member.
25571         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25572         in tzname_copy member.
25573         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25574         (restore_tzname): Remove; no longer needed.  All calls removed.
25575         * modules/time_rz (Files): Add lib/time-internal.h.
25577         time: port __need_time_t to MinGW
25578         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25579         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25581 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25583         strftime: fix newly-introduced bug on Solaris
25584         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25585         consistently at the start, rather than doing some of the setup at
25586         the start and some in the %Z format spec.  This is cleaner, and
25587         works better with time_rz on platforms like Solaris where struct
25588         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25589         mktime_z and localtime_rz can mess up the tzname cache.
25591         test-strftime: test for Solaris bug
25592         * modules/strftime-tests (Depends-on): Add strerror.
25593         * tests/test-strftime.c: Include <errno.h>.
25594         (posixtm_test): New function, containing the old 'main'.
25595         (struct tzalloc_test, struct localtime_rz_test): New types.
25596         (TZ, LT): New static vars.
25597         (tzalloc_test): New function.
25598         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25600         time_rz: port to Solaris etc.
25601         Works around a tzname problem on platforms like Solaris that have
25602         tzname but not tm_zone, by setting tzname at the appropriate time
25603         and restoring it later.
25604         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25605         New static vars.
25606         (save_abbr) [HAVE_TZNAME]: Set them.
25607         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25608         (restore_tzname): New function.
25609         (localtime_rz, mktime_z): Use it.
25611         time_rz: now LGPL
25612         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25614         time_rz: make a constant 'const'
25615         * lib/time_rz.c (local_tz): Now const.
25617         time_rz: fix off-by-one typo
25618         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25620 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25622         fprintftime, strftime: use timezone_t args
25623         * NEWS: Document the change.
25624         * lib/fprintftime.h (fprintftime):
25625         * lib/strftime.c (extra_args) [my_strftime]:
25626         * lib/strftime.h (nstrftime):
25627         Time zone arg is now of type timezone_t, not int.
25628         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25629         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25630         (my_strftime) [emacs && !my_strftime]:
25631         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25632         Remove; Emacs doesn't need this any more.
25633         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25634         fprintftime and nstrftime to call tzset.
25635         (ut) [!my_strftime]: Remove, replacing with ...
25636         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25637         (strftime_case_): Use localtime_rz and mktime_z instead
25638         of localtime_r and mktime.
25639         * modules/fprintftime (Depends-on): Add time_rz.
25640         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25641         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25643         time_rz: new module
25644         * MODULES.html.sh: Add time_rz.
25645         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25646         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25647         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25648         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25649         New var HAVE_TIMEZONE_T (default 0).
25650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25651         New var GNULIB_TIME_RZ (default 0).
25652         * modules/time (time.h): Substitute the new vars.
25654         flexmember: license is now unlimited
25655         * modules/flexmember (License): Change to unlimited,
25656         since its only source file gives an unlimited license.
25658 2015-07-15  Eric Blake  <eblake@redhat.com>
25660         maint: update copyright paper procedures
25661         * config/srclist.txt: Drop outdated files.
25662         * doc/Copyright/conditions.txt: Update to latest.
25663         * doc/Copyright/assign.changes.manual: Delete.
25664         * doc/Copyright/assign.future.manual: Likewise.
25665         * doc/Copyright/assign.manual: Likewise.
25666         * doc/Copyright/assign.translation.manual: Likewise.
25667         * doc/Copyright/disclaim.changes.manual: Likewise.
25668         * doc/Copyright/disclaim.manual: Likewise.
25669         * doc/Copyright/disclaim.program: Likewise.
25671 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25673         localename: fix link error on Illumos
25674         Illumos defines __sun, but does not have getlocalename_l nor the
25675         equivalent.  This partially reverts commit 387c214.
25676         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25677         available, as well as uselocale.
25678         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25679         use getlocalename_l if it is not available.
25681 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25683         unistr/uN-strtok-tests: avoid a trivial leak
25684         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25685         input and delim after the multibyte delimiter tests.
25687 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25689         file-has-acl, acl-permissions: fix HP-UX typos
25690         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25691         * lib/file-has-acl.c (file_has_acl):
25692         * lib/set-permissions.c (context_acl_from_mode)
25693         (context_aclv_from_mode, set_acls):
25694         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25695         They were introduced by the recent ACL changes.
25697         regex: match current GNU grep behavior
25698         These symbols have not matched GNU grep behavior for quite some time.
25699         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25700         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25701         Change to match current GNU behavior.
25702         Simplify by expressing it as differences from POSIX BREs and EREs.
25703         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25705 2015-07-03  Jim Meyering  <meyering@fb.com>
25707         set-permissions.c: adjust acl_from_mode's cpp guard
25708         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25709         directives identical to those guarding the sole use.
25710         Otherwise, on some systems, we'd get a warning about
25711         the function being defined but not used.
25712         Also, filter through cppi to correct misleading indentation
25713         of cpp directives.
25715 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25717         tests: restrict shells to those that support 'local'
25718         The local keyword is very widely supported and used
25719         in tests in coreutils and grep at least.  Therefore
25720         restrict to testing with shells that support it.
25721         This mainly excludes /bin/sh on Solaris.
25722         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
25724 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
25725         and Daiki Ueno  <ueno@gnu.org>
25727         unistr/uN-strtok: handle multibyte delimiters
25728         Previously, uN_strtok moved PTR to the next unit to the token end.
25729         When DELIM contained a multibyte character, the new position could
25730         be a middle of a multibyte character.
25731         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
25732         after the token.
25733         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
25734         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
25735         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
25736         * modules/unistr/u8-strtok (Depends-on): Depend on
25737         unistr/u8-strmblen.
25738         * modules/unistr/u16-strtok (Depends-on): Depend on
25739         unistr/u16-strmblen.
25740         * modules/unistr/u32-strtok (Depends-on): Depend on
25741         unistr/u32-strmblen.
25742         * tests/unistr/test-u-strtok.h: New file.
25743         * tests/unistr/test-u8-strtok.c: New file.
25744         * tests/unistr/test-u16-strtok.c: New file.
25745         * tests/unistr/test-u32-strtok.c: New file.
25746         * modules/unistr/u8-strtok-tests: New file.
25747         * modules/unistr/u32-strtok-tests: New file.
25748         * modules/unistr/u16-strtok-tests: New file.
25750 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
25752         update-copyright: fix test failure with perl >= 5.22 (trivial)
25753         * build-aux/update-copyright: Escape a literal left curly bracket,
25754         required with perl >= 5.22
25756 2015-07-02  Daiki Ueno  <ueno@gnu.org>
25758         u{16,32}-strstr-tests: relax timeout condition
25759         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
25760         tests can take longer than 5 seconds to complete.
25761         Reported by Dagobert Michelsen in:
25762         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
25763         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
25764         seconds to 10 seconds.
25765         * tests/unistr/test-u32-strstr.c (main): Likewise.
25767 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25769         gnulib-common.m4: change the ARFLAGS default to 'cr'
25770         In some GNU/Linux distributions people started to compile 'ar'
25771         binary with --enable-deterministic-archives (binutils project).
25772         That, however, in combination with previous autotools long time
25773         working default AR{_,}FLAGS=cru causes warnings on such
25774         installations:
25775         ar: `u' modifier ignored since `D' is the default (see `U')
25776         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
25777         set already.
25779 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25781         selinux-h: avoid double free after *getfilecon()
25782         Originally reported by Ben Shelton on bug-tar:
25783         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
25784         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
25785         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
25786         param should be freed by freecon(3) (regardless the return value).
25788 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
25790         fix pty related tests issues on Windows (trivial)
25791         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
25792         however it's still present in tests/ subdirectory of the final project.
25793         Therefore avoid it to pass `make check`.
25794         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
25795         will just return -ENOSYS, so avoid this non applicable test allowing
25796         the build to proceed.
25798 2015-07-01  Pádraig Brady  <P@draigBrady.com>
25800         acl: fix definition of acl_from_mode on FreeBSD
25801         This was causing basic coreutils copy operations to fail
25802         with ENOTSUP or ENOENT error messages.
25803         * lib/acl-internal.h (acl_from_mode): Only define when
25804         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
25805         of acl_from_mode() defined in lib/set-permissions.c to
25806         be used on FreeBSD at least.
25807         * lib/set-permissions.c: Fix up comment spelling,
25808         and a redundant variable assignment; noticed in passing.
25810 2015-06-30  Pádraig Brady  <P@draigBrady.com>
25812         readutmp: port to FreeBSD >= 9
25813         * lib/readutmp.h: Map utmpxname() to setutxdb().
25814         With that coreutils who(1) and pinky(1) tests pass.
25816 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25818         mgetgroups: port to strict OS X
25819         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
25820         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
25821         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
25822         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
25824 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
25826         mgetgroups: port to strict OS X
25827         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
25828         Document the getgrouplist problem.
25829         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
25830         New macro.
25831         (mgetgroups): Use it.
25832         * m4/mgetgroups.m4 (gl_MGETGROUPS):
25833         Check for OS X signature for getgrouplist.
25835 2015-06-29  Jim Meyering  <meyering@fb.com>
25837         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
25838         It started like this when building coreutils' latest on OS X,
25839         invoking ./configure with a nonempty --cache=.cache:
25841           lib/linkat.c:46:42: error: operator '||' has no right operand
25842           lib/linkat.c: In function 'rpl_linkat':
25843           lib/linkat.c:330:27: error: #if with no expression
25845         Here's linkat.c's line 46:
25847           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
25849         Here's some context:
25851           $ grep linkat_nofoll .cache
25852           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
25853           $ grep LINKAT_SYM lib/config.h
25854           #define LINKAT_SYMLINK_NOTSUP
25856         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
25857         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
25858         but that violates a tenet of AC_CACHE_CHECK: it must
25859         have no side effect other than setting its cache variable.
25861         What happens is that when the cache is set, we'd skip the
25862         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
25863         defined to whatever value it happened to have in configure's
25864         environment.  In my case, it was not defined, so this later code:
25866           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
25867             [Define to 1 if linkat can create hardlinks to symlinks])
25869         would emit code with an empty RHS.
25871         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
25872         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
25874 2015-06-28  Jim Meyering  <meyering@fb.com>
25876         mountlist: avoid an unused-label warning on OS X
25877         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
25878         Building on OS X, I saw a warning about the "free_then_fail" label
25879         being unused.  Give it the _GL_UNUSED_LABEL attribute.
25881         error.c: correct printf-style format: %d -> %u
25882         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
25883         rather than %d, to match the type of "line_number", unsigned int.
25885 2015-06-25  Pádraig Brady  <P@draigBrady.com>
25887         fts: avoid reading beyond the heap allocation
25888         GCC 5.1.1 with -O2 and -fsanitize=address reports
25889         a read of size 4 from a heap object of size 3 is indeed invalid,
25890         though this may be due to incorrect padding assumptions by GCC, see:
25891         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
25892         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
25893         * modules/fts: Depend on stdalign.
25895 2015-06-24  Pádraig Brady  <P@draigBrady.com>
25897         savedir: avoid undefined behavior in qsort call
25898         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
25899         "runtime error: null pointer passed as argument 1,
25900          which is declared to never be null"
25901         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
25903 2015-06-24  Pádraig Brady  <P@draigBrady.com>
25905         userspec: avoid undefined behavior in gettext call
25906         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
25907         "runtime error: null pointer passed as argument 2,
25908          which is declared to never be null"
25909         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
25911 2015-06-20  Glenn Morris  <rgm@gnu.org>
25913         gitlog-to-changelog: improve gitmerge.el commits
25914         Let the Emacs ChangeLog generation process exclude "skipped"
25915         messages from merge commits (Bug#20717).
25916         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
25918 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
25920         wchar: fix MinGW compilation warnings
25921         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
25922         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
25923         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
25925 2015-06-20  Daiki Ueno  <ueno@gnu.org>
25927         uniname/uniname-tests: use pristine data files
25928         For copyright and maintenance reasons, use the data files from UCD
25929         without modification.
25930         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
25931         (getfield): Remove.
25932         (aliases_count): New global variable.
25933         (fill_names): Skip comments and empty lines in the input.  Don't
25934         use getfield.
25935         (fill_aliases): Likewise.
25936         (main): Change the expected command line arguments to:
25937         NAMES... ["--" ALIASES...].
25938         * tests/uniname/test-uninames.sh: Adjust to the change in
25939         test-uninames.c.
25940         * tests/uniname/UnicodeDataNames.txt: Remove.
25941         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
25942         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
25943         file from Unicode 8.0.0.
25945 2015-06-19  Pádraig Brady  <P@draigBrady.com>
25947         linked-list, linkedhash-list: avoid compiler warnings
25948         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
25949         -Werror=suggest-attribute=pure (from GCC 5.1.1).
25951 2015-06-19  Daiki Ueno  <ueno@gnu.org>
25953         libunistring: bump minimum version to 0.9.6
25954         * all modules depending on updated Unicode data: Regenerate.
25955         The modules are listed by a script that does:
25956         - for each file listed by: git show --oneline --name-only 705f4efc
25957           - deduce the containing modules, based on "Files:"
25958         - deduce the modules which depend on the containing modules, based
25959           on "Depends-on:"
25961 2015-06-18  Daiki Ueno  <ueno@gnu.org>
25963         uniname/uniname: update to Unicode 8.0.0
25964         * lib/uniname/uninames.h: Regenerate.
25965         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
25966         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
25968 2015-06-18  Daiki Ueno  <ueno@gnu.org>
25970         libunistring: update to Unicode 8.0.0
25971         * lib/gen-uni-tables.c (SIZEOF): New macro.
25972         (output_numeric): Increase the maximum number of fractions from
25973         128 to 160.  Increase the level3 value width from 7 bits to 8
25974         bits.  Use SIZEOF instead of a hard-coded integer.
25975         (output_blocks): Decrease the cut-off threshold from 0x30000 to
25976         0x28000.
25977         (fill_blocks): Increase the maximum number of blocks from 256 to
25978         384.  Use SIZEOF instead of a hard-coded integer.
25979         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
25980         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
25981         value width.
25982         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
25983         a new case added to LBP22.
25984         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
25985         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
25986         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
25987         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
25988         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
25989         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25990         lib/uniwidth/width.c.
25991         * all generated files under lib/uni* and tests/uni*: Regenerate.
25993 2015-06-16  Pádraig Brady  <P@draigBrady.com>
25995         gnu-web-doc-update: add --mirror to remove stale files
25996         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
25997         out of date files from the CVS server.  Since this is usually
25998         appropriate, a prompt is given when the option is not specified,
25999         along with the `cvs remove` command that would be run.
26001 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26003         acl-permissions: pacify -Wsuggest-attribute=const
26004         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26005         * lib/acl-internal.h (free_permission_context):
26006         Declare with attribute const if ! (defined USE_ACL &&
26007         (HAVE_ACL_GET_FILE || defined GETACL)).
26009         fsync: document AIX misbehavior
26010         * doc/posix-functions/fsync.texi (fsync):
26011         Document failure on AIX with read-only file descriptor.
26013 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26015         stdio: Don't redefine gets when using C++
26016         * lib/stdio.in.h (gets): Disable warning on C++.
26018 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26020         acl-permissions: port to AIX, C89 HP-UX
26021         Problems reported by Michael Felt.
26022         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26023         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26024         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26025         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26026         Add cast for AIX, whose system calls are declared to accept
26027         char * even though the arguments are really char const *.
26028         * lib/get-permissions.c (get_permissions):
26029         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26030         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26031         that broke a build.
26032         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26033         Rework types to pacify xlc.
26035 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26037         vasprintf-posix: avoid compiling vasnprintf where possible
26038         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26039         module where not required.  For example on a GNU/Linux system
26040         when gnulib-tool is run with the --conditional-dependencies option.
26042 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26044         file-has-acl: fix build on Mac OS X 10
26045         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26046         which has an incompatible 6 parameter getxattr() call.
26047         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26048         call on Mac OS X >= 10.4.
26049         * doc/glibc-functions/fgetxattr.texi: Likewise.
26050         * lib/file-has-acl.c: Revert to more complete combined check.
26051         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26052         Reported by Jack Howarth.
26054 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26056         prefix-gnulib-mk: remove no longer needed special case
26057         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26058         continued lib_SOURCES lines are no longer present,
26059         so special case handling of such entries is not required.
26061 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26063         acl: don't depend on the deprecated qacl module
26064         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26066 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26068         gnulib-tool: concatenate lib_SOURCES to a single line
26069         * gnulib-tool: Refactor the line merging sed logic,
26070         and use that to output a single lib_SOURCES line for each module.
26071         gnulib using projects often postprocess this output to prepend
26072         subdir paths to each item, and having a single line simplifies this
26073         processing allowing better decoupling from the gnulib-tool output.
26075 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26077         pthread_sigmask: discount system version if a simple macro (trivial)
26078         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26079         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26080         function to ensure it's available.
26082 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26084         readlinkat: avoid OS X 10.10 trailing slash bug
26085         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26086         has this bug.
26087         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26088         that OS X 10.10 has this function.
26089         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26090         as done for readlink().
26091         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26092         trailing slash bug, and assume readlinkat() has the same issue.
26093         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26094         rather than the correct $gl_cv_decl_readlinkat_works.
26096 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26098         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26099         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26100         module rewrite.
26102         acl-permissions: Fix build on Solaris and Cygwin
26103         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26104         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26105         ace_entries variables have moved into struct permission_context but
26106         they were still accessed as local variables here.
26108 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26110         linkat: avoid OS X 10.10 trailing slash with symlink bug
26111         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26112         causes the symlink to be dereferenced, and if it points
26113         to a non existent file, that file will be created as
26114         a hard link to "path1".
26115         This fixes a test failure in test-linkat.c.
26116         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26117         this case.  The existing workaround in linkat.c for
26118         trailing slash issues, suffices for this case.
26119         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26120         the list of platforms with trailing slash issues.
26122 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26124         unlinkat: handle ignoring of ".." on Darwin 14
26125         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26126         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26127         so handle in the same manner.
26128         * m4/unlinkat.m4: Comment on this Darwin issue.
26129         * doc/posix-functions/unlink.texi: Update the latest version
26130         where the issue was seen.
26131         * doc/posix-functions/unlinkat.texi: Mention this issue.
26132         Fixes a test failure in test-unlinkat.c.
26134 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26136         qacl: split into qcopy-acl and qset-acl
26137         Emacs needs the former, but not the latter.
26138         * modules/acl-permissions: New file, containing most of the old qacl.
26139         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26140         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26141         * modules/qcopy-acl, modules/qset-acl: New files.
26142         * MODULES.html.sh (File system functions):
26143         Mention the new modules, and mention qacl while we're at it.
26145 2015-05-27  Glenn Morris  <rgm@gnu.org>
26147         gitlog-to-changelog: new option --ignore-line
26148         (This patch is imported from the GNU Emacs master.)
26149         This option ignores individual commit lines matching a pattern.
26150         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26152 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26154         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26155         Implement get_permissions and set_permissions primitives for getting all
26156         the permissions of a file, storing them, and later setting them. (In the
26157         minimal case, the permissions consist only of a file mode.) Reimplement
26158         qset_acl and qcopy_acl based on these new primitives: this avoids code
26159         duplication and makes error handling more consistent.
26160         The Solaris and Cygwin code still uses duplicate code paths for setting
26161         a file mode while making sure that no acls exist and setting an explicit
26162         acl; this is no worse than before, but could be cleaned up.  The AIX
26163         code still doesn't read ACLs, it only makes sure that acls don't get in
26164         the way when setting a file mode.
26165         * lib/acl-internal.h (struct permission_context): New data structure.
26166         (get_permissions, set_permissions, free_permission_context): Declare.
26167         * lib/acl-internal.c (free_permission_context): New helper function.
26168         * lib/get-permissions.c (get_permissions): New helper function split off
26169         from qcopy_acl.
26170         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26171         AIX, set a file's permissions based only on a file mode.
26172         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26173         other platforms construct a temporary acl from the file mode and set
26174         that acl in the same way as setting an acl read from the source file.
26175         This should help avoid code duplication and inconsistent / buggy
26176         behavior.
26177         (set_acls): New helper function Split off from qcopy_acl.
26178         (chmod_or_fchmod): Moved here from qset-acl.c.
26179         (set_permissions): New helper function.
26180         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26181         set_permissions.
26182         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26183         * modules/qacl: Add get-permissions.c and set-permissions.c.
26185         file-has-acl: Split feature tests again (Bug#20667)
26186         * lib/file-has-acl.c: Instead of testing for
26187         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26188         define them when needed.
26189         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26190         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26192 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26194         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26195         This avoids a conflict with "FORTIFY_SOURCE" variants
26196         of the string functions when they're replaced on NetBSD-6.0.1
26197         and Darwin-14.3.0 at least.
26198         * lib/string.in.h: Avoid including our "lib/string.h" while
26199         including the system <string.h>.
26201 2015-05-26  Eric Blake  <eblake@redhat.com>
26203         stdio: limit __gnu_printf__ witness to gcc 4.4+
26204         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26205         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26207         error: use correct printf attributes on mingw
26208         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26210         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26211         * modules/inttypes (Depends-on): Require extensions, so that mingw
26212         always uses GNU style inttypes.
26213         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26215         stdio: fix probe on mingw under gcc 5.1
26216         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26217         around new gcc preprocessor rules.
26219 2015-05-07  Glenn Morris  <rgm@gnu.org>
26221         gitlog-to-changelog: parse "Tiny-change"
26222         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26223         "Copyright-paperwork-exempt".  (Bug#20324)
26225 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26227         doc: document glibc posix_fallocate() issues
26228         * doc/posix-functions/posix_fallocate.texi: Mention the
26229         glibc efficiency problems and issues with NFS.
26231 2015-05-05  Karl Berry  <karl@freefriends.org>
26233         * build-aux/gendocs.sh (usage): document new css default
26234         for HTML (--htmlarg).
26236 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26238         extern-inline: no need for workaround in GCC 5.1
26239         * doc/extern-inline.texi (extern inline):
26240         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26241         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26242         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26243         two we can remove these workarounds.
26245 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26247         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26248         Avoid [-Wunknown-attributes] warnings like:
26249         warning: unknown attribute '__alloc_size__' ignored
26250         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26251         with clang, as support has been fully removed as of clang 3.5:
26252         https://github.com/llvm-mirror/clang/commit/c047507a
26253         * lib/eealloc.h: Likewise.
26254         * lib/pagealign_alloc.h: Likewise.
26256 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26258         tests: pacify GCC 5.1's stricter printf checking
26259         * tests/test-dirname.c (main):
26260         * tests/test-getaddrinfo.c (simple):
26261         * tests/test-getlogin.c (main):
26262         * tests/test-getndelim2.c (main):
26263         * tests/test-inttostr.c (CK):
26264         * tests/test-md5.c (main):
26265         * tests/test-read-file.c (main):
26266         * tests/test-sha1.c (main):
26267         Fix mismatches between printf format and value signedness.
26268         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26269         Remove, as CAST_VAL always returned a value of type uintmax_t.
26271         fts: port to GCC 5.1 with --enable-gcc-warnings
26272         Without this fix, GCC 5.1 (correctly) warns about a subscript
26273         error on the fts_name component of FTSENT.  It's actually a
26274         flexible member, so define it that way on C99 or later hosts.
26275         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26276         structure that now has a flexible array member.
26277         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26278         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26279         * modules/fts (Depends-on): Add flexmember.
26281 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26283         file-has-acl: port to CentOS 6
26284         Problem reported by Tom G. Christensen in:
26285         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26286         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26287         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26288         HAVE_GETXATTR.
26289         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26290         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26291         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26292         file-has-acl.c actually needs.
26294 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26296         file-has-acl: always return false when ACLs aren't supported
26297         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26298         change the GNU/Linux getxattr path, to transform "not supported"
26299         errors to a false return rather than an error.  This is handled
26300         within file_has_acl() due to the platform specific tests to
26301         determine if ACLs are not supported.
26303 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26305         gettext: propagate po/Makefile.in.in too
26306         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26307         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26308         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26309         between Makefile.in.in and the gettext-runtime m4 files.
26311 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26313         file-has-acl: new module, split from acl
26314         And add a new module file-has-acl-tests to match.
26315         I ran into a problem with the recent changes to the acl module,
26316         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26317         When using the fixed version with Emacs, I discovered that
26318         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26319         had multiple libraries, but needed only one), so I fixed that too.
26320         * NEWS: Document this incompatible change.
26321         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26322         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26323         Initialize gl_need_lib_has_acl.
26324         (gl_FUNC_ACL): Require it.
26325         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26326         Move the file-has-acl.c-relevant stuff to ...
26327         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26328         use_xattrs = 0' typo, and omit some needless work.  Set
26329         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26330         when gl_FUNC_ACL is called.
26331         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26332         (Link): Remove $(LIB_HAS_ACL).
26333         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26334         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26335         modules/file-has-acl-tests.
26336         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26338         manywarnings: add GCC 5.1 warnings
26339         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26340         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26341         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26342         -Wsuggest-override, -Wuse-without-only.  Change
26343         -Wnormalized=... operands to match 5.1.
26344         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26345         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26346         -Wdiscarded-qualifiers, -Wformat-signedness,
26347         -Wincompatible-pointer-types, -Wint-conversion,
26348         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26349         -Wshift-count-negative, -Wshift-count-overflow,
26350         -Wsizeof-array-argument, -Wsuggest-final-methods,
26351         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26352         and add -Warray-bounds=2 as a special case.
26354 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26356         doc: update FDL template to match FDL examples.
26357         * doc/alloca-opt.texi:
26358         * doc/alloca.texi:
26359         * doc/c-ctype.texi:
26360         * doc/c-strcase.texi:
26361         * doc/c-strcaseeq.texi:
26362         * doc/c-strcasestr.texi:
26363         * doc/c-strstr.texi:
26364         * doc/c-strtod.texi:
26365         * doc/c-strtold.texi:
26366         * doc/ctime.texi:
26367         * doc/error.texi:
26368         * doc/gcd.texi:
26369         * doc/gnulib-tool.texi:
26370         * doc/inet_ntoa.texi:
26371         * doc/intprops.texi:
26372         * doc/lib-symbol-visibility.texi:
26373         * doc/maintain.texi:
26374         * doc/parse-datetime.texi:
26375         * doc/quote.texi:
26376         * doc/regexprops-generic.texi:
26377         * doc/standards.texi: Remove spurious 'with' in FDL license
26378         template.
26380 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26382         lstat: fix cross-compilation 'ln -s' problem
26383         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26384         Have the test program call 'symlink' rather than a separate
26385         script run 'ln -s'; this is more likely to work in
26386         cross-compilation environments.  Reported by Pavel Fedin in:
26387         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26389 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26391         gendocs.sh: default to a common CSS style sheet for HTML output
26392         * build-aux/gendocs.sh (htmlarg): Change default value.
26394 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26396         gnulib-tool: output bold attribute more portably
26397         * gnulib-tool (func_show_module_list): Change hexadecimal
26398         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26399         encoded numbers as arguments to `printf' is not portable,
26400         and is not claimed by POSIX.  This is the case with FreeBSD.
26402 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26404         qacl: Simplify HP-UX acl_nontrivial check
26405         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26406         acl_nontrivial. Check if the acl has at most three entries instead (it must
26407         have exactly three entries according to the HP-UX documentation). Ignore
26408         uids and gids as long as an entry is either for a user (i.e., the owner),
26409         a group (i.e., the owning group), or others.
26410         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26411         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26413 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26415         acl: On Linux, check for acls without libacl
26416         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26417         library function to check for the presence of acls, avoiding a library.
26418         * lib/file-has-acl.c: Include xattr headers if we have them.
26419         (file_has_acl): On Linux, use getxattr().
26420         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26421         file_has_acl(). Check for xattr headers and getxattr().
26423 2015-04-14  Ángel González  <keisial@gmail.com>
26425         tempname: avoid unused parameter warnings (trivial)
26426         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26427         (try_nocreate): Likewise.
26429 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26431         fseeko: fix build failure on NetBSD >= 6 (trivial)
26432         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26433         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26435 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26437         gitlog-to-changelog: port to MS-Windows
26438         * build-aux/gitlog-to-changelog (git_dir_option):
26439         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26440         MS-Windows Perl.  Reported by Eli Zaretskii in:
26441         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26443 2015-04-07  Karl Berry  <karl@gnu.org>
26445         gendocs: new option --tex for passing args to texi2dvi.
26446         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26447         (TEXI2DVI): cut to just command name.
26448         (usage): mention new option, and update copyright.
26449         <generate_tex>: use it.
26451 2015-04-07  Karl Berry  <karl@gnu.org>
26453         * config/srclistvars.sh (GETTEXT): new definition.
26454         * config/srclist.txt: use it for gettext .m4 files.
26455         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26456         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26457         and continuing into April.
26459 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26461         uniname/uniname-tests: fix failure due to alias
26462         Reported by Jack Howarth in:
26463         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26464         * tests/uniname/test-uninames.c (name_has_alias): New function.
26465         (test_inverse_lookup): Exclude character name with valid alias,
26466         from randomly generated character names.
26467         (main): Fill unicode_aliases before calling test functions.
26469 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26471         hash: remove deprecated hash_insert0 function
26472         * lib/hash.h (hash_insert0): Remove deprecated function.
26473         * lib/hash.c (hash_insert0): Likewise.
26475 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26477         mountlist: remove dependency on libmount
26478         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26479         directly, rather than depending on libmount, which has many
26480         dependencies due to its dependence on libselinux, as detailed at:
26481         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26482         Note we restrict this to __linux__ as that's probably where this
26483         interface will remain.  If ever porting, it would be best
26484         to first pull the makedev() wrapper from coreutils to a gnulib module.
26485         Note also we don't add a getline dependency to the mountlist module,
26486         as all Linux versions are sufficient.
26488 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26490         stddef: port to pre-C11 GCC on x86
26491         On this platform, max_align_t should have an alignment of 8 even
26492         though the storage alignments of double, long, etc. max out at 4.
26493         Inspired by a comment of Andreas Schwab's here:
26494         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26495         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26496         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26497         * tests/test-stddef.c: Test __alignof__ too, if available.
26499 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26501         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26502         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26504 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26506         yesno: make EOL optional in ENABLE_NLS case also (trival)
26507         * lib/yesno.c (yesno): Check for EOL before replacing.
26508         * tests/test-yesno.sh: Add a test case (test along with gettext).
26510 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26512         fdopendir-tests: test it does not close its arg
26513         * tests/test-fdopendir.c (main): Test that fdopendir does not
26514         close its argument.  From a suggestion by David Grayson in:
26515         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26517 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26519         gitlog-to-changelog: trim trailing white space
26520         * build-aux/gitlog-to-changelog (main):
26521         Trim trailing white space from commit message lines.
26522         This is helpful for processing the GNU Emacs repository,
26523         which dates back to 1985 and contains a lot of such lines.
26525         gitlog-to-changelog: new option --ignore-matching
26526         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26527         Support new option --ignore-matching=PAT, which ignores all
26528         commit messages whose first line matches PAT.
26530 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26532         fdopendir: port better to MinGW
26533         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26534         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26535         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26536         * modules/fdopendir (Depends-on): Add dirfd.
26538 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26540         fdopendir: fix typo in comment
26541         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26543 2015-03-09  Eric Blake  <eblake@redhat.com>
26545         error: document all entry points provided
26546         * doc/glibc-functions/error_print_progname.texi
26547         (error_print_progname): Mention the error module.
26548         * doc/glibc-functions/error_at_line.texi (error_at_line):
26549         Likewise.
26550         * doc/glibc-functions/error_message_count.texi
26551         (error_message_count): Likewise.
26552         * doc/glibc-functions/error_one_per_line.texi
26553         (error_one_per_line): Likewise.
26555 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26557         vasnprintf: pacify clang 3.5.0
26558         Problem reported by Werner Lemberg in:
26559         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26560         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26561         The casts aren't needed, since the characters in question are ASCII.
26563 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26565         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26566         * lib/dirent--.h (GNULIB_defined_opendir):
26567         * lib/dirent.in.h (GNULIB_defined_opendir)
26568         (GNULIB_defined_closedir):
26569         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26570         #undef only if Gnulib defined it.
26572         poll: port to MSVC v18 on MS-Windows 8.1
26573         Problem reported by Gisle Vanem in:
26574         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26575         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26576         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26577         Add sys_socket.
26579 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26581         tests: support stderr verification with returns_()
26582         * tests/init.sh (returns_): Disable tracing for this wrapper
26583         function, so that stderr of the wrapped command is unchanged,
26584         allowing for verification of the contents.
26586 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26588         passfd: avoid valgrind uninitalised data warning
26589         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26590         to include just the fd we've initialized, rather than including
26591         the extra space used for alignment.
26593 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26595         uniwbrk/u32-wordbreaks-tests: fix copyright
26596         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26598         dup2: doc and test for Android bug
26599         Reported by Kevin Cernekee in:
26600         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26601         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26602         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26604 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26606         Replace dup2() on Android
26607         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26608         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26609         fails.  Using rpl_dup2() fixes this because it has an explicit test
26610         for this condition.
26612 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26614         Android doesn't define RLIM_SAVED_*
26615         Portability problem reported by Kevin Cernekee in:
26616         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26617         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26618         Mention the portability problem.
26619         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26620         Define if not defined.
26621         * m4/dup2.m4 (gl_FUNC_DUP2):
26622         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26623         Likewise.
26625 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26627         vasnprintf-posix-tests: use consistent test
26628         * tests/test-vasnprintf-posix.c (test_function):
26629         Use "<" in assert instead of "<=", for consistency with other tests.
26631 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26633         printf, isinf, etc.: noncanonical != NaN
26634         Do not require that isinf, printf, etc. treat noncanonical
26635         values as NaNs.  Instead, require only that they do not crash.
26636         Problem reported by Joseph Myers in:
26637         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26638         * doc/posix-functions/dprintf.texi (dprintf):
26639         * doc/posix-functions/fprintf.texi (fprintf):
26640         * doc/posix-functions/isfinite.texi (isfinite):
26641         * doc/posix-functions/isinf.texi (isinf):
26642         * doc/posix-functions/isnan.texi (isnan):
26643         * doc/posix-functions/printf.texi (printf):
26644         * doc/posix-functions/snprintf.texi (snprintf):
26645         * doc/posix-functions/sprintf.texi (sprintf):
26646         * doc/posix-functions/vdprintf.texi (vdprintf):
26647         * doc/posix-functions/vfprintf.texi (vfprintf):
26648         * doc/posix-functions/vprintf.texi (vprintf):
26649         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26650         * doc/posix-functions/vsprintf.texi (vsprintf):
26651         Document this.
26652         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26653         * m4/isinf.m4 (gl_ISINFL_WORKS):
26654         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26655         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26656         * tests/test-isfinite.c (test_isfinitel):
26657         * tests/test-isinf.c (test_isinfl):
26658         * tests/test-isnan.c (test_long_double):
26659         * tests/test-isnanl.h (main):
26660         * tests/test-snprintf-posix.h (test_function):
26661         * tests/test-sprintf-posix.h (test_function):
26662         * tests/test-vasnprintf-posix.c (test_function):
26663         * tests/test-vasprintf-posix.c (test_function):
26664         Test only that noncanonical values do not cause crashes, not that
26665         they are treated as NaNs.  In some cases this means a larger
26666         output buffer is needed.
26668 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26670         fts: remove redundant close() (trivial)
26671         * lib/fts.c (fts_read): Remove redundant call to close().
26672         Spotted by coverity.
26674 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26676         getdtablesize: port better for Android
26677         Problem reported by Kevin Cernekee in:
26678         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26679         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26680         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26681         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26683         poll: fixes for large fds
26684         * lib/poll.c (poll): Don't check directly for NFD too large.
26685         Don't rely on undefined behavior in FD_SET when an arg exceeds
26686         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26687         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26688         as that makes the test a bit stricter.
26690 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26692         fcntl: Fix cross compiling
26693         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26694         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26696 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26698         dup2, fcntl: cross-compile better for Android
26699         Problem reported by Kevin Cernekee in:
26700         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26701         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26702         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26703         there's little need to cross-compile for older kernels nowadays.
26704         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26705         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26707 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26709         getopt: don't crash on memory exhaustion
26710         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26711         memory exhaustion.  In the _LIBC case we use alloca() as is
26712         already done in glibc, so we don't need to consider the separate
26713         error path in that awkward case.  Also fix a memory leak when
26714         ambiguous options are present.
26715         Reported by Tobias Stoeckmann
26717 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26719         tempname: allow compilation with C++ (trivial)
26720         * lib/tempname.h [C++]: Specify extern "C" linkage.
26721         * lib/tempname.h (try_tempname):
26722         * lib/tempname.c (__try_tempname, __gen_tempname):
26723         Rename 'try' to 'tryfunc'.
26725 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
26727         dup2, fcntl: port to AIX
26728         * m4/dup2.m4 (gl_FUNC_DUP2):
26729         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26730         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
26731         The former works on AIX 7.1 but the latter does not.
26732         Also, this may work better with Android; see:
26733         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
26735 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26737         getdtablesize, dup2, fcntl: port to Android
26738         Problem reported by Kevin Cernekee in:
26739         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
26740         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
26741         Mention that getdtablesize doesn't work on Android.
26742         * lib/getdtablesize.c: Use getrlimit substitute only if
26743         getdtablesize is declared.  This should suffice for Cygwin
26744         while not breaking Android.
26745         * m4/dup2.m4 (gl_FUNC_DUP2):
26746         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26747         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
26748         standardized but the latter is not, and sysconf works on Android.
26749         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
26750         Also check that getdtablesize is declared.
26751         This removes the need for a special case for Android.
26753 2015-02-16  Kevin Cernekee  <cernekee@google.com>
26755         localename: Implement gl_locale_name_thread_unsafe for Android
26756         * lib/localename.c: Android API level >= 21 supports two hardcoded
26757         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
26758         the internal __locale_t struct.
26760 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
26762         fts: avoid crash when a cycle is added while traversing
26763         This could be triggered by auto-mounting a recursive bind mount.
26764         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
26765         * lib/fts.c (fts_read): Avoid removing the original hash table item
26766         when leaving a directory that caused a cycle, and preserve the FTS_DC
26767         flag.
26769 2015-02-16  Daiki Ueno  <ueno@gnu.org>
26771         uniname/uniname: support character alias
26772         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
26773         Generate one-way mapping from aliases to codepoints in the
26774         generated tables.  Special case variation selectors to reduce
26775         table size.
26776         * lib/uniname/uniname.c (unicode_character_name): Special case
26777         variation selectors.
26778         (unicode_name_character): Special case variation selectors and
26779         their aliases.
26780         * lib/uniname/uninames.h: Regenerate.
26781         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
26782         * modules/uniname/uniname-tests (Files): Add
26783         tests/uniname/NameAliases.txt.
26784         * tests/uniname/test-uninames.c: Mark as static.
26785         (ALIASLEN): Define.
26786         (struct unicode_alias): New struct.
26787         (unicode_aliases): New variable.
26788         (fill_aliases): New function.
26789         (test_alias_lookup): New test function.
26790         (main): Run the 'test_alias_lookup' test if the second argument is
26791         given.
26792         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
26793         second argument.
26795 2015-02-11  Kevin Cernekee  <cernekee@google.com>
26797         Fix FILE struct compatibility with Android API level >= 21
26798         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
26799         __sferror.  Recent versions of Bionic's stdio.h no longer define
26800         __sferror.
26801         * lib/fbufmode.c: Likewise.
26802         * lib/fflush.c: Likewise.
26803         * lib/fpurge.c: Likewise.
26804         * lib/freadable.c: Likewise.
26805         * lib/freadahead.c: Likewise.
26806         * lib/freading.c: Likewise.
26807         * lib/freadptr.c: Likewise.
26808         * lib/freadseek.c: Likewise.
26809         * lib/fseeko.c: Likewise.
26810         * lib/fseterr.c: Likewise.
26811         * lib/fwritable.c: Likewise.
26813         Assume unbroken ungetc() on Android
26814         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
26815         test case passed when running on an Android host, and the code
26816         hasn't really changed since 2009.
26818         getdtablesize: Fix Android build
26819         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
26820         versions have this symbol in the .so library (at least 32-bit
26821         platforms) but are missing the declaration in the header file,
26822         causing the m4 logic to guess incorrectly.
26824         localename: Fix Android build
26825         * modules/localename (Depends-on): Add langinfo.
26827         getugroups: Fix Android build
26828         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
26829         functions.
26831         euidaccess: Fix Android build
26832         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
26833         AT_EACCESS gets declared.
26835         linkat_nofollow: Add fallback case for cross compiling
26836         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
26838         net_if: Handle content-free <net/if.h> system headers
26839         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
26840         struct if_nameindex.  If not, enable the replacement header.
26842         signal_h: Fix Android build
26843         * lib/signal.in.h: Add Android to the list of platforms that declare
26844         pthread_sigmask() in <pthread.h> instead of <signal.h>.
26846         duplocale: Fix Android build of duplocale-tests
26847         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
26848         is included by test-duplocale.c (but not by duplocale.c).
26849         * modules/duplocale-tests (configure.ac): Check for monetary.h.
26850         * tests/test-duplocale.c: Skip test if monetary.h is absent.
26851         * doc/posix-headers/monetary.texi: Add Android to the list of
26852         platforms missing monetary.h.
26854 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26856         tests: avoid recent -Werror=unused-variable regression in test-locale
26857         * tests/test-locale.c (main): Reference the variable to avoid the
26858         "unused variable" warning.
26860 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26862         maint: various whitespace cleanups in tempname
26863         * lib/tempname.c: Normalize spacing and line length.
26864         * lib/tempname.h: Likewise.
26865         * modules/tempname: Likewise.
26867 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26869         tests: provide returns_() to simplify exit status checking
26870         * tests/init.sh (returns_): A new function for use in tests,
26871         to allow for easier checking of return values, where you expect
26872         a command to exit with failure status.  By checking for a particular
26873         exit code, you don't hide any crashes for example.
26875 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26877         mountlist: only use libmount when specified
26878         There are currently many shared libs dependencies introduced by
26879         libmount with associated runtime and virt mem overhead.
26880         Therefore don't enable by default.
26881         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
26883 2015-02-08  Daiki Ueno  <ueno@gnu.org>
26885         uniname/unimame-tests: don't link with -lunistring
26886         * modules/uniname/uniname-tests (Makefile.am): Don't link against
26887         $(LIBUNISTRING).  Document the rationale why we need to
26888         conditionalize the test.
26890 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26892         fstrcmp: don't assume strlen < INT_MAX
26893         * lib/fstrcmp.c: Include stddef.h and stdint.h.
26894         (uintptr_t): Remove, as we're now assuming stdint.
26895         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
26896         Prefer ptrdiff_t to int when the value could exceed INT_MAX
26897         if the input string is long.
26898         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
26899         uintptr_t to size_t when the underlying value is a pointer casted
26900         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
26901         * modules/fstrcmp (Depends-on): Add stdint.
26903         diffseq: prefer ptrdiff_t to ssize_t
26904         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
26905         ptrdiff_t is the natural type for signed indexes.
26906         On a few older platforms, ssize_t is narrower than size_t.
26908         xalloc: fix typo that suppressed warnings
26909         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
26910         This typo, introduced a couple of years ago, mistakenly suppressed
26911         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
26912         -Wmissing-declarations warnings.
26914         full-read: fix license notice typo
26915         * lib/full-read.h: Remove a stray line in the license notice.
26916         Reported by Sam Ellis in: http://bugs.gnu.org/19808
26918         crypto/gc: fix a -Wswitch warning
26919         Reported by Bruce Korb in:
26920         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
26921         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
26923 2015-02-03  Pádraig Brady  <P@draigBrady.com>
26925         gnulib-tool: fix handling of patch(1) diagnostics
26926         * gnulib-tool: Send diagnostics from patch(1) to stderr,
26927         as otherwise gnulib-tool will reparse that output and attempt
26928         to lookup modules.
26930 2015-02-03  Pádraig Brady  <P@draigBrady.com>
26932         bootstrap: exit immediately upon gnulib-tool failure
26933         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
26934         This was noticed when gnulib-tool exited early due to failure
26935         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
26936         but various confusing errors were then given as the build proceeded.
26938 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
26940         symlinkat: include all required header files
26941         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
26942         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
26943         Reported at https://savannah.gnu.org/bugs/index.php?44151
26944         and by Jack Howarth.
26946 2015-01-29  Pádraig Brady  <P@draigBrady.com>
26948         localename: support Solaris 12 and illumos
26949         * lib/localename.c (gl_locale_name_thread_unsafe): call
26950         getlocalename_l() on newer __sun platforms.
26951         Reported by Alexander Pyhalov.
26952         Fix suggested by Rich Burridge.
26954 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
26956         locale: fix tests on illumos (trivial)
26957         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
26958         so move from global scope to main().
26960 2015-01-24  Daiki Ueno  <ueno@gnu.org>
26962         unictype: avoid undefined left-shift behavior
26963         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
26964         gcc's -fsanitize=shift and running its tests triggered:
26965           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
26966             places cannot be represented in type 'int'
26967         Cast LHS to 'unsigned int' after integer promotion.
26968         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
26969         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
26971 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26973         libunistring: bump version of unitypes dependants
26974         Due to the header file search order, all the headers which depend
26975         on unitypes.h need to be generated, when the preinstalled
26976         libunistring is older.
26977         * modules/unicase/base (configure.ac): Bump minimum version to
26978         0.9.4.
26979         * modules/uniconv/base (configure.ac): Likewise.
26980         * modules/unilbrk/base (configure.ac): Likewise.
26981         * modules/uninorm/base (configure.ac): Likewise.
26982         * modules/unistdio/base (configure.ac): Likewise.
26983         * modules/unistr/base (configure.ac): Likewise.
26984         * modules/uniwbrk/base (configure.ac): Likewise.
26985         * modules/uniwidth/base (configure.ac): Likewise.
26987 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26989         unictype/category-none: fix link with libunistring
26990         Since _UC_CATEGORY_NONE is not a public symbol, it will be
26991         prefixed with "libstring_" when compiled as part of libunistring.
26992         To avoid undefined symbol at link time, increase the minimum
26993         version when the dependant modules are updated.
26994         * modules/unictype/category-none (configure.ac): Bump minimum
26995         version to 0.9.5.
26997 2015-01-20  Daiki Ueno  <ueno@gnu.org>
26999         unitypes: fix build with installed libunistring
27000         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27001         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27002         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27004 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27006         time: port to MinGW32 3.21
27007         Problem reported by Eli Zaretskii in:
27008         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27009         * lib/time.in.h:
27010         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27011         * modules/time (Depends-on):
27012         Fall back on unistd.h if the other include files don't define
27013         struct timespec.
27015         update-copyright: apply to self
27016         * build-aux/update-copyright: Fix copyright date.  How ironic!
27018 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27020         libunistring: update to Unicode 7.0.0
27021         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27022         Manichaean names.
27023         * lib/unictype/joininggroup_name.h: Likewise.
27024         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27025         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27026         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27027         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27028         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27029         enum values.
27030         (is_property_alphabetic): Accept newly added characters to
27031         cuneiform numeric signs.
27032         (is_property_default_ignorable_code_point): Reject U+0605.
27033         (FIELDLEN): Increase from 120 to 160.
27034         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27035         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27036         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27037         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27038         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27039         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27040         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27041         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27042         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27043         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27044         U+1E8D0..U+1E8D6.
27045         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27046         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27047         lib/uniwidth/width.c.
27048         * all generated files under lib/uni* and tests/uni*: Regenerate.
27050 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27052         libunistring: update to Unicode 6.3.0
27053         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27054         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27055         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27056         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27057         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27058         Update WB5, WB9, WB10, WB13a, and WB13b.
27059         * tests/uniwbrk/test-uc-wordbreaks.c
27060         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27061         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27062         (UC_BIDI_PDI): New enumeration values.
27063         (bidi_category_byname): Support those enum values.
27064         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27065         dedicated property assigned.
27066         (is_property_case_ignorable): Check 0x0027.
27067         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27068         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27069         (output_wbp): Support those enum values.
27070         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27071         (UC_BIDI_PDI): New enumeration values.
27072         * lib/unictype/bidi_byname.gperf: Add those property names.
27073         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27074         U+180E, U+1A1B, and U+2066..U+2069.
27075         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27076         lib/uniwidth/width.c.
27077         * all generated files under lib/uni* and tests/uni*: Regenerate.
27079 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27081         libunistring: update to Unicode 6.2.0
27082         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27083         (unilbrk_table): Adjust table size.
27084         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27085         for LBP_RI.
27086         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27087         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27088         Normalize table index skipping ignored properties.
27089         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27090         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27091         the table.
27092         * lib/uniwbrk/wbrktable.h: Adjust table size.
27093         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27094         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27095         Support rule GB8a.
27096         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27097         * tests/unigbrk/test-uc-is-grapheme-break.c
27098         (graphemebreakproperty_to_string): Support GBP_RI.
27099         * tests/uniwbrk/test-uc-wordbreaks.c
27100         (wordbreakproperty_to_string): Support WBP_RI.
27101         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27102         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27103         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27104         LBP_AL to LBP_ID.
27105         (output_lbp): Support LBP_RI.
27106         (WBP_RI): New enumeration value.
27107         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27108         (output_wbp): Support WBP_RI.
27109         (GBP_RI): New enumeration value.
27110         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27111         * all generated files under lib/uni* and tests/uni*: Regenerate.
27113 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27115         libunistring: update to Unicode 6.1.0
27116         * lib/gen-uni-tables.c (output_joining_group): Switch to
27117         3-level table to accommodate joining groups defined with higher
27118         codepoint value.  Since there are only 88 groups defined in
27119         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27120         (get_lbp): Update for Unicode 6.1.0.
27121         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27122         3-level table.
27123         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27124         joining group name.
27125         * lib/unictype/joininggroup_name.h: Likewise.
27126         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27127         (unilbrk_table): Adjust table size.
27128         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27129         for LBP_HL.
27130         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27131         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27132         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27133         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27134         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27135         U+302E..U+302F.
27136         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27137         lib/uniwidth/width.c.
27138         * all generated files under lib/uni* and tests/uni*: Regenerate.
27139         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27141 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27143         uniwbrk/u32-wordbreaks-tests: add conformance test
27144         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27145         tests/uniwbrk/test-uc-wordbreaks.c,
27146         tests/uniwbrk/test-uc-wordbreaks.sh, and
27147         tests/uniwbrk/WordBreakTest.txt.
27148         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27149         test-uc-wordbreaks to $(check_PROGRAMS), and define
27150         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27151         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27152         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27154 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27156         uniwbrk: ignore Extended/Format characters at BOL not BOS
27157         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27158         characters if the previous character property is one of
27159         WBP_NEWLINE, WBP_CR, and WBP_LF.
27161 2015-01-11  Jim Meyering  <meyering@fb.com>
27163         test-strstr.c: avoid a trivial leak
27164         * tests/test-strstr.c (main): Free haystack.
27166         update-copyright: recognize groff's \(co marker
27167         * build-aux/update-copyright (circle_c_re): Also accept
27168         uses of \(co, as found in gzip.1.
27170 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27172         maint.mk: fix compatibility with OS X nm
27173         * top/maint.mk (_gl_tight_scope): Use the -g option to
27174         show exported items rather than the -e option which is
27175         ignored on all platforms except OS X where it gives an error.
27176         Reported by Assaf Gordon.
27178 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27180         localcharset: improve charset detection on OS/2
27181         Use system codepage when appropriate.  Map OS/2 codepages to
27182         GNU canonical charset names if possible.
27183         * lib/config.charset: Don't output aliases if "$os" is os2*.
27184         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27185         result for OS/2.
27186         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27187         from the locale name which is neither "C" nor "POSIX".
27189 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27191         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27192         This reverts the last patch but one, as it shouldn't be needed now
27193         that the typo is fixed.
27194         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27195         * lib/count-trailing-zeros.h:
27196         * lib/count-one-bits.h:
27197         Go back to using 64-bit intrinsics.
27199         count-leading-zeros: fix pragma typos
27200         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27201         Fix typos in declaration of intrinsics when _MSC_VER.
27203 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27205         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27206         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27207         intrinsics in this case.
27208         * lib/count-trailing-zeros.h: Likewise.
27209         * lib/count-one-bits.h: Likewise.
27211 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27213         uniname/uniname: update to Unicode 7.0.0
27214         To accommodate new characters added since Unicode 5.1.0, this
27215         changes the internal representation of codepoint ranges.
27216         Previously, we grouped codepoint ranges by manually assigned 4-bit
27217         tag, which only allowed 16 groups.  This removes the limitation by
27218         switching to binary search on a table.  For the detail rationale
27219         and the benchmark results, see:
27220         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27221         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27222         to INDEX, as it no longer represents a codepoint.
27223         (range): New struct.
27224         (main): Switch to intervals list from a bit-pattern based
27225         classification.
27226         * lib/uniname/uninames.h: Regenerate.
27227         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27228         * modules/uniname/base (configure.ac): Bump minimum version to
27229         0.9.5.
27230         * modules/uniname/uniname (configure.ac): Bump minimum version to
27231         0.9.5.
27233 2015-01-05  Eric Blake  <eblake@redhat.com>
27235         doc: update INSTALL from autoconf
27236         * doc/install.texi: Resync from autoconf.
27237         * doc/INSTALL: Reflect recent autoconf update.
27238         * doc/INSTALL.ISO: Likewise.
27239         * doc/INSTALL.UTF-8: Likewise.
27241         stdio: fix use of PRIdMAX on modern mingw
27242         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27243         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27244         to work with modern mingw.
27246 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27248         pthread: detect git mingw builds with only partial pollution
27249         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27250         pollution, as seen temporarily in Fedora 21.
27252 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27254         lib-symbol-versions: cache script check
27255         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27256         Cache the check for linker version scripts.
27257         From a suggestion by Christophe Curis in:
27258         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27260 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27262         maint: fix grammar nits in propername (trivial change)
27263         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27264         and use an adequate verb and tense.
27266 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27268         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27269         * module/gendocs: Add 'doc/gendocs_template_min'.
27271         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27272         from to Gnulib's.
27273         (scripturl, templateurl): Adjust accordingly.
27275 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27277         gendocs: copyright date and version fix
27278         Reported by Karl Berry in:
27279         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27280         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27281         Fix copyright date.
27282         * build-aux/gendocs.sh (scriptversion): Update.
27284 2015-01-01  Karl Berry  <karl@gnu.org>
27286         * doc/install.texi,
27287         * build-aux/mdate-sh,
27288         * build-aux/depcomp,
27289         * build-aux/config.guess,
27290         * build-aux/config.sub,
27291         * build-aux/ar-lib,
27292         * build-aux/compile: revert copyright updates (some from last
27293         year) in slaved files.
27295 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27297         version-etc: new year
27298         * doc/gnulib.texi:
27299         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27300         * all files: Run 'make update-copyright'.
27302 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27304         xstrtol: ensure errno is reset
27305         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27306         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27308         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27310 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27312         utimens: fix dependency typo
27313         * modules/utimens (Depends-on): Remove 'assure'.
27314         This bug was introduced in the recent 'assure' patch.
27316 2014-12-22  Eric Blake  <eblake@redhat.com>
27318         docs: mention why libgen.h is bad
27319         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27321 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27323         assure: new module
27324         This works better than 'assert' when compiling with -DNDEBUG,
27325         as it avoids some compiler diagnostics in that case.
27326         Reported by Norihiro Tanaka in:
27327         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27328         * MODULES.html.sh (func_all_modules): Add 'assure'.
27329         * lib/assure.h, modules/assure: New files.
27330         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27331         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27332         Prefer 'assure' to 'assert'.
27333         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27334         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27335         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27336         Depend on 'assure'.
27338 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27340         stdalign: port better to HP compilers
27341         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27342         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27344         stdalign: work around Apple GCC 4.0 bug
27345         Reported by David Fang in:
27346         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27347         * lib/stdalign.in.h (_Alignas):
27348         * m4/stdalign.m4 (gl_STDALIGN_H):
27349         Do not use aligned attribute with GCC 4.0 on Apple.
27351 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27353         getcwd: fix test failure on OS X 10.9
27354         * m4/getcwd-path-max.m4: Avoid the replacement if it
27355         won't be effective due to the PATH_MAX limitation of lstat().
27356         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27357         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27358         for this case for use in tests, and also exclude this
27359         case when setting REPLACE_GETCWD.
27360         * tests/test-getcwd.c (test_long_name): Restrict the
27361         tested path length so that lstat() will not be passed
27362         a path greater than PATH_MAX.
27363         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27364         than AT_FDCWD, since the latter is set unconditionally
27365         since Sep 2009 in commit 52c658e9.
27367 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27369         parse-datetime: avoid a compiler warning with byacc (trivial)
27370         * lib/parse-datetime.y (yylex): Use the same prototype in the
27371         function definition as the declaration, to avoid a -Wstrict-prototypes
27372         warning seen when using byacc.
27374 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27376         unicase/locale-language-tests: fix LOCALE_FR test
27377         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27378         a French locale with traditional encoding.
27379         Reported by umerqayam in:
27380         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27382 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27384         stddef: support C11's max_align_t
27385         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27386         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27387         Do not undef, as that might cause max_align_t to be defined twice.
27388         Instead, change use to check for _GL_STDDEF_WINT_T too.
27389         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27390         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27391         Check for max_align_t.
27392         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27393         * modules/stddef-tests (Depends-on): Add stdalign.
27394         * tests/test-stddef.c: Test max_align_t.
27396 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27398         unistd: fix iOS check conditional
27399         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27400         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27401         yielded true on non-iOS environment.
27402         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27403         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27404         they are defined.
27406 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27408         posixtm: avoid compiler warning in a better way
27409         * lib/posixtm.c (IF_LINT): Remove.
27410         (year, posix_time_parse):
27411         Return true (not 0) if successful.  All callers changed.
27412         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27414 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27416         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27417         started with '/' on EMX.
27419 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27421         freopen: workaround freopen() on OS/2 kLIBC
27422         * lib/freopen.c (rpl_freopen): Workaround.
27423         * m4/freopen.m4: Add os2* case.
27425         get_shared_library_fullname: port to EMX
27426         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27427         on EMX, respectively.
27428         (_DLL_InitTerm): New on EMX.
27429         (get_shared_library_fullname): Implement on EMX.
27431         find_executable: port to EMX
27432         * lib/progreloc.c (find_executable): Implement on EMX.
27434         sched: check struct sched_param in spawn.h as well
27435         * lib/sched.in.h: Include spawn.h on kLIBC.
27436         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27438 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27440         bootstrap: Allow perl modules in $buildreq
27441         * build-aux/bootstrap: Add case for perl modules.
27443 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27445         apply _GL_ATTRIBUTE_PURE to some inline functions
27446         clang 3.4.2 flagged these inline functions as pure
27447         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27448         * lib/sig-handler.h (get_handler): Likewise.
27449         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27450         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27452 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27454         vasnprintf: fix potential use after free
27455         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27456         flagged by clang-analyzer 3.4.2.
27458 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27460         filevercmp, posixtm: avoid compiler warnings with -O3
27461         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27462         * lib/posixtm.c: (IF_LINT): Define.
27463         (posix_time_parse): Use it to void a "may be used uninitialized"
27464         warning, seen only with -O3.
27466 2014-12-05  Bruno Haible  <bruno@clisp.org>
27468         Fix LDBL80_WORDS macro on big endian platforms.
27469         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27470         LDBL80_WORDS macro.
27471         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27472         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27473         * tests/test-isfinite.c (test_isfinitel): Likewise.
27474         * tests/test-isinf.c (test_isinfl): Likewise.
27475         * tests/test-isnan.c (test_long_double): Likewise.
27476         * tests/test-isnanl.h (main): Likewise.
27477         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27478         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27479         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27480         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27481         Reported by Pádraig Brady.
27483 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27485         git-version-gen: do not print new line characters
27486         * build-aux/git-version-gen: Use printf instead of echo and tr.
27488         gnulib-tool: recognize x:* as an absolute path
27489         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27490         (func_relconcat): Likewise.
27492 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27494         argp: avoid extraneous translation and mem leak with empty pre doc
27495         * lib/argp-help.c (argp_doc): Never translate the empty string,
27496         when "\v" is the first or last character of the string, as that
27497         has a reserved meaning to return the header info from a po file.
27498         This also fixes a small memory leak in the !post case.
27499         The issue can be seen with this command for example:
27500         LC_MESSAGES=en_US grub2-mknetdir --help
27502 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27504         uniname/uniname-tests: skip if system's libunistring is used
27505         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27506         uniname/uniname module is not compiled.
27508 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27510         printf: fix configure check on big endian systems
27511         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27513 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27515         pipe-filter-gi, pipe-filter-ii: port to AIX
27516         On AIX 7.1, 'select' is defined as static and cannot be referred
27517         to from inline function.
27518         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27519         the definition...
27520         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27521         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27523 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27525         gitlog-to-changelog: add --until
27526         * build-aux/gitlog-to-changelog: Support new --until option.
27527         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27529 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27531         extern-inline: update commentary about GCC bugs
27532         * m4/extern-inline.m4: Add another GCC bug number to comments.
27534 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27536         gen-uni-tables: untabify
27537         * lib/gen-uni-tables.c: Untabify.
27539 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27541         gen-uni-tables: check out-of-range values added to 3-level tables
27542         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27543         (output_joining_type, output_ident_category): Check out-of-range
27544         values added to 3-level tables.
27546 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27548         gen-uni-tables: utilize 'assert'
27549         * lib/gen-uni-tables.c: Include <assert.h>.
27550         (output_category, output_combclass, output_decimal_digit_test)
27551         (output_decimal_digit, output_digit_test, output_digit)
27552         (output_numeric, get_mirror_value, fill_properties)
27553         (fill_property30, is_property_alphabetic)
27554         (is_property_default_ignorable_code_point)
27555         (is_property_uppercase, is_property_lowercase)
27556         (is_property_cased, is_property_case_ignorable)
27557         (is_property_changes_when_lowercased, is_property_iso_control)
27558         (is_property_math, fill_arabicshaping, output_joining_group)
27559         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27560         (output_wbp, fill_org_gbp, get_decomposition)
27561         (output_decomposition, fill_composition_exclusions)
27562         (debug_output_composition_tables, output_composition_tables)
27563         (redistribute_casefolding_rules, output_casing_rules): Use
27564         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27565         reporting.
27567 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27569         gen-uni-tables: cosmetic improvements
27570         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27571         variables specification.
27572         (is_outdigit): Remove unused function.
27574 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27576         fcntl-h-tests: port to PA-RISC GNU/Linux
27577         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27579 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27581         fts: port to C89
27582         Problem reported for MSVC 16 by Gisle Vanem in:
27583         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27584         * lib/fts.c (fts_build): Avoid declaration before statement.
27586 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27588         unistd: port to iOS
27589         Problem reported by André Klitzing in:
27590         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27591         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27593 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27595         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27596         Problem reported by Alan Modra in:
27597         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27598         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27599         Always cast the function arg, reverting this part of the previous
27600         change.
27602 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27604         obstack: avoid potentially-nonportable function casts
27605         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27606         Remove, replacing with ...
27607         (call_chunkfun, call_freefun): New static functions.
27608         All uses changed.  Avoid potentially-nonportable casts.
27609         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27610         (_obstack_begin_worker): Omit last two args, since they
27611         rely on potentially-nonportable casts.  All callers changed.
27612         * lib/obstack.h (_OBSTACK_CAST): New macro.
27613         Use it everywhere the old API used a potentially-nonportable cast.
27614         The new API doesn't cast.
27615         (struct obstack): Use unions rather than requiring
27616         potentially-nonportable casts.
27617         (obstack_chunkfun, obstack_freefun): Return void.
27619 2014-11-03  Alan Modra  <amodra@gmail.com>
27621         obstack: fix macro return values
27622         * lib/obstack.h (obstack_next_free): Return void *.
27623         (obstack_1grow_fast, obstack_blank_fast): Return void.
27624         For __GNUC__ macros:
27625         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27626         For !__GNUC__ macros:
27627         (obstack_make_room, obstack_grow, obstack_grow0)
27628         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27630 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27632         obstack: do not assume system-supplied obstack is size_t safe
27633         * m4/obstack.m4: New file.
27634         * modules/obstack (Files): Add it.
27636         obstack: port to platforms that #define __alignof__
27637         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27638         not if !_LIBC.  We don't know of any platforms that #define
27639         __alignof__, but it might be useful in tests.  Conversely,
27640         glibc assumes GCC.
27642 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27644         linkat: don't unconditionally replace on GNU/Linux
27645         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27646         was redundant for a few reasons.  It was present to support compiling
27647         on new systems but running on the old narrow window of Linux 2.6.1[67].
27648         It setup and cleaned up test files which weren't actually used.
27649         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27650         implicit in the following check.
27652 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27654         linkat: wrap to handle symlinks on OS X 10.10
27655         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27656         but not usable because it doesn't support creating hardlinks
27657         to symlinks.  Therefore add a generic test for this capability
27658         and fallback to our emulation if linkat() fails with ENOTSUP.
27660 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27662         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27663         * doc/posix-functions/open.texi (open):
27664         * doc/posix-functions/openat.texi (openat):
27665         Document that these functions do not set errno to ELOOP when
27666         a symlink is opened with O_NOFOLLOW.
27668 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27670         obstack: add NEWS entry for recent incompatible changes
27671         * NEWS: Describe recent changes.
27673 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27675         mountlist: don't use libmount to decide on dummy/remote
27676         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27677         routines to determine whether a file system is dummy or remote,
27678         as they're not currently compatible.  For example the remoteness
27679         is determined on file system type (for which the list seems incomplete),
27680         rather than simply checking for a ':' in the device name.
27681         Also libmount currently determines that 'tmpfs' is a dummy file system
27682         even though it has associated storage.
27684 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27686         obstack: prefer __alignof__ to alignof
27687         This is for portability to pre-4.7 GCC when compiling glibc.
27688         See Joseph S. Myers in:
27689         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27690         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27691         New macro, defined by including and using <alignof.h>.
27692         (MAX): New macro.
27693         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27694         Do not use enums as they are not portable to some broken compilers.
27695         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27697         obstack: prefer alignof to calculating alignments by hand
27698         * lib/obstack.c: Include <stdalign.h>.
27699         (struct fooalign): Remove.
27700         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27701         * modules/obstack (Depends-on): Add stdalign.
27703 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27705         obstack: use size_t alignments and check for overflow
27706         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27707         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27708         * lib/obstack.h (struct obstack.alignment_mask):
27709         Use _OBSTACK_SIZE_T, not int, for alignments.
27710         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27711         overflows, e.g., when adding the alignment.
27713 2014-10-29  Alan Modra  <amodra@gmail.com>
27715         obstack: 64-bit obstack support, part 3
27716         This finally enables full 64-bit obstack support.  The glibc
27717         shared library specific code is removed from obstack.c too, and
27718         the error handling code conditionally compiled under control of
27719         another macro, _OBSTACK_NO_ERROR_HANDLER.
27720         * lib/obstack.h: Include string.h earlier.
27721         (_OBSTACK_INTERFACE_VERSION): Define.
27722         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
27723         * lib/obstack.c: Don't include shlib-compat.h.
27724         (OBSTACK_INTERFACE_VERSION): Delete.
27725         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
27726         glibc code is compatible with version 2.  Don't include stdio.h for
27727         __GNU_LIBRARY.
27728         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
27729         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
27730         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
27731         glibc shared library specific source.
27733         obstack: 64-bit obstack support, part 2
27734         This gets us 4G obstack support, without changing ABI
27735         compatibility, apart from possibly introducing some
27736         signed/unsigned comparison warnings in code that uses obstack.h.
27737         a) Replace "int" size parameters, return values, and macro local vars
27738            with _OBSTACK_SIZE_T, an "unsigned int" for now.
27739         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
27740         c) Make all obstack macros checking available room use obstack_room.
27741            "next_free + desired > chunk_limit" may wrap the lhs for chunks
27742            allocated near the top of memory.
27743         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
27744         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
27745         in place of "int" size parameters, return values and local vars.
27746         (_CHUNK_SIZE_T): Define.
27747         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
27748         union use an _OBSTACK_SIZE_T integer type.
27749         For __GNUC__ versions of the following macros...
27750         (obstack_room): Rename local var.
27751         (obstack_make_room): Use obstack_room.
27752         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27753         obstack_int_grow, obstack_blank): Likewise.
27754         (obstack_finish): Use unsigned comparison when comparing aligned
27755         next_free against chunk_limit.
27756         (obstack_free): Cast OBJ to remove possible const qualifier.
27757         For !__GNUC__ versions of the following macros...
27758         (obstack_make_room): Use obstack_room.
27759         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27760         obstack_int_grow, obstack_blank): Likewise.
27761         (obstack_finish): Use unsigned comparision when comparing aligned
27762         next_free against chunk_limit.
27763         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
27764         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
27765         _OBSTACK_SIZE_T.
27766         (_obstack_begin, _obstack_begin_1): Likewise.
27767         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
27768         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
27770         obstack: 64-bit obstack support, part 1
27771         a) Correct calls to alloc function, to use a size_t arg.  "long" is
27772            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
27773            and "size_t" 64 bits.
27774         b) Consolidate _obstack_begin and _obstack_begin1 code.
27775         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
27776         use "size_t" rather than "long".
27777         (_obstack_begin, _obstack_begin1): Likewise.
27778         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
27779         obstack_chunkfun): Update alloc function casts.
27780         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
27781         (chunkfun_type, freefun_type): New typdefs.
27782         (_obstack_begin_worker): Split out from ..
27783         (_obstack_begin, _obstack_begin_1): ..here.
27785         obstack: tidy part 2
27786         a) Don't be concerned about "not polluting the namespace with stddef.h
27787            symbols" in obstack.h, since gnulib string.h includes stddef.h
27788            anyway, and it seems unlikely that anyone would care.
27789         b) Don't roll our own slow memcpy in _obstack_newchunk.
27790         c) Rename obstack_free to _obstack_free.  This makes the naming
27791            consistent with other obstack functions and obviates the need for
27792            __obstack_free.  Ancient obstack.c defined both obstack_free and
27793            _obstack_free.  We continue to do that for _LIBC via an alias.
27794         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
27795            is clever, but nowadays gcc warns on undefined macros.  You'll get
27796            an undefined macro warning if simulating an old gcc with -U__GNUC__
27797            -U__GNUC_MINOR__ -D__GNUC__=1.
27798         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
27799         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
27800         (__obstack_free): Delete, update refs.
27801         (_obstack_free): Rename from obstack_free.
27802         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
27803         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
27804         * lib/obstack.c: Don't include stddef.h.
27805         (COPYING_UNIT): Delete.
27806         (_obstack_begin): Formatting fix.
27807         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
27808         (_obstack_free): Rename from __obstack_free, update alias.  Move
27809         undef of obstack_free to where it is needed.
27811         obstack: tidy part 1
27812         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
27813            to me, and result in overlong lines after later patches.
27814         b) Move error handling code, to avoid a forward declaration and to
27815            simplify later patches in this series.
27816         * lib/obstack.h (struct obstack <temp>): Rename fields of union
27817         and update all uses.
27818         * lib/obstack.c: Include stdlib.h earlier.
27819         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
27820         in file.
27821         (print_and_abort): Remove now redundant forward declaration.
27823 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27825         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
27826         Without this change, in bleeding-edge fileutils Autoconf complains
27827         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
27828         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
27829         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
27830         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
27832 2014-10-24  Daiki Ueno  <ueno@gnu.org>
27834         iconv: avoid false detection of non-working iconv
27835         The INBUF arguments of iconv can be either 'const char **'
27836         or 'char **'.  If CC is g++, the difference causes a compile error
27837         and thus leads to a false detection of non-working iconv.
27838         Reported by Eli Zaretskii and Werner LEMBERG in:
27839         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
27840         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
27841         iconv.  Bump serial number.
27843 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27845         bootstrap: print more diagnostics for missing programs
27846         * build-aux/bootstrap: only suppress stderr when checking for
27847         alternative program names.  This supports programs issuing non
27848         standard error messages.
27850 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27852         bootstrap: only update the gnulib submodule
27853         * build-aux/bootstrap: Restrict the "submodule update" command
27854         to the gnulib path.
27856 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27858         symlinkat: port to AIX 7.1
27859         * doc/posix-functions/symlinkat.texi (symlinkat):
27860         Mention AIX porting problem.
27861         * lib/symlinkat.c: Always include errno.h.
27862         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
27863         * lib/unistd.in.h (symlinkat): Add replacement machinery.
27864         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
27865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
27866         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
27867         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
27868         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
27870         readlinkat: port to AIX 7.1
27871         * doc/posix-functions/readlink.texi (readlink):
27872         * doc/posix-functions/readlinkat.texi (readlinkat):
27873         Mention AIX porting problem.
27874         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
27875         New function.
27876         * lib/unistd.in.h (readlinkat): Add replacement machinery.
27877         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
27878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
27879         * modules/readlinkat (configure.ac): Also compile replacement
27880         if REPLACE_READLINKAT.
27881         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
27883 2014-10-12  Karl Berry  <karl@gnu.org>
27885         * doc/posix-functions/dirname.texi: remove spurious {.
27887 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
27889         basename, dirname: Improve documentation.
27890         * doc/posix-functions/basename.texi: Mention dirname module and
27891         base_name() function.
27892         * doc/posix-functions/dirname.texi: Mention dir_name() and
27893         mdir_name() functions.
27894         Suggested by Werner LEMBERG <wl@gnu.org>.
27896 2014-09-24  Jim Meyering  <meyering@fb.com>
27898         exclude: declare exclude_patopts static
27899         * lib/exclude.c (exclude_patopts): Declare static,
27900         to avoid triggering a -Wmissing-prototypes warning.
27901         The alternative (declaring it in the .h file) would
27902         require publicizing the private "struct patopts".
27904 2014-09-21  Werner Lemberg  <wl@gnu.org>
27906         dirname: support compilation with C++
27907         * lib/dirname.h: Add necessary C linkage declarations.
27909 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27911         qsort_r: include <config.h>
27912         Problem reported by Tom G. Christensen in:
27913         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
27914         * lib/qsort.c [!_LIBC]: Include <config.h> first.
27916 2014-09-16  Dylan Cali  <calid1984@gmail.com>
27918         avltree-list: avoid compiler warnings (trivial)
27919         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27920         -Werror=suggest-attribute=pure.
27921         * lib/gl_array_list.c: Likewise.
27922         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
27923         declaration to avoid -Werror=missing-prototypes.  This is not added
27924         to a header as only exported for tests.  Add (void) to the
27925         check_invariants() call to indicate we're discarding the result
27926         in this context which avoids -Werror=unused-value.  Note we don't
27927         use ignore_value here to avoid a dependency as we know we'll not
27928         be adding __attribute__((warn_unused_result)) to check_invariants().
27929         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
27931 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27933         qsort_r: new module, for GNU-style qsort_r
27934         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
27936 2014-09-15  Werner LEMBERG  <wl@gnu.org>
27938         strerror_r-posix: support compilation with C++
27939         * lib/strerror_r.c: Add necessary C linkage declarations.
27941 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
27943         fcntl-h: fix compilation with Intel C++ compiler (trivial)
27944         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
27946 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
27948         mountlist: use /proc/self/mountinfo when available
27949         Use libmount to propagate device IDs provided by Linux in
27950         /proc/self/mountinfo.  This will give more accurate output when
27951         using df in chroot'ed environments as the device IDs are not
27952         determined by stat() which may be inaccurate within the chroot.
27953         * lib/mountlist.c (read_file_system_list): Use the libmount routines
27954         from util-linux to parse "/proc/self/mountinfo" or fall back to
27955         standard getmntent() processing.
27956         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
27957         getmntent() is used, as is the case on GNU/Linux.
27959 2014-09-07  Eric Wong  <normalperson@yhbt.net>
27961         users.txt: add cmogstored
27962         cmogstored has used gnulib since the beginning in 2012 to support
27963         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
27965 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
27967         Trivial change.
27968         * gnulib-tool: Use same options as build-aux/bootstrap to download
27969         PO files.
27971 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
27973         Trivial change.
27974         * gnulib-tool: Fallback to wget when rsync of PO files fails.
27976 2014-09-04  Eric Blake  <eblake@redhat.com>
27978         maintainer-makefile: add syntax check for useless ';;'
27979         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
27981 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
27983         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
27984         Problem reported by Assaf Gordon in:
27985         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
27986         Apparently Ubuntu is doing some fancy link-time optimization
27987         that doesn't work with -lpthread but does work with -pthread.
27988         Work around the bug by preferring -pthread to -lpthread.
27989         * m4/pthread.m4 (gl_PTHREAD_CHECK):
27990         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
27991         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27992         Treat -pthread like -lpthread.
27994 2014-09-04  Eric Blake  <eblake@redhat.com>
27996         error: drop spurious semicolon
27997         * lib/error.c (__error_at_line): Fix ';;'.
27999 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28001         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28002         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28003         Override AC_C_RESTRICT unconditionally.
28004         Update from autoconf, incorporating:
28005         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28006         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28008 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28010         manywarnings: add GCC 4.9 warnings
28011         Also, make it easier to maintain this in the future.
28012         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28013         -Wconditionally-supported, -Wdelete-incomplete,
28014         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28015         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28016         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28017         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28018         only for older GCC versions that need them.  Handle
28019         -Wnormalized=nfc specially, so that the 'comm' command used
28020         for maintenance doesn't get confused.
28022 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28024         vasnprintf: fix bugs in width computation
28025         * lib/vasnprintf.c (VASNPRINTF):
28026         Rework previous change, which introduced a bug,
28027         to avoid the warning in a different way.
28028         Avoid undefined behavior if the width arg is less than -INT_MAX.
28029         Avoid unnecessary use of HAS_WIDTH local.
28031 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28033         vasnprintf: Avoid signed/unsigned comparison warning.
28034         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28035         compare end addr of generated string w/ maximum end addr.
28037 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28039         parse-datetime: Avoid pointer difference.
28040         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28041         instead of calculating difference of pointers.  This removes an
28042         annoying warning, devoid of any use.
28044 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28046         qsort_r: new module, for GNU-style qsort_r
28047         This works even on FreeBSD, which has an incompatible qsort_r API.
28048         * MODULES.html.sh: Add it.
28049         * doc/glibc-functions/qsort_r.texi: It's now supported.
28050         * lib/qsort.c: New file, taken from glibc with minor changes
28051         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28052         removed.
28053         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28054         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28056         * modules/qsort_r, modules/qsort_r-tests: New files.
28057         * modules/stdlib (Makefile): Set up its defaults.
28058         * tests/test-qsort_r.c: New file.
28060 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28062         vla: new module
28063         GNU RCS can use this, mostly for documentation I expect.  See:
28064         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28065         * MODULES.html.sh: Add vla.
28066         * lib/vla.h, modules/vla: New files.
28068 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28070         localename: make gl_locale_name_thread really thread-safe on Windows
28071         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28072         "glthread/lock.h".
28073         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28074         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28076 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28078         getpass: don't assume struct termios
28079         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28080         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28081         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28083         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28084         Problem reported by Jonas 'Sortie' Termansen in:
28085         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28086         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28087         Implement via sysconf for platforms that lack getdtablesize.
28089         vararrays: modernize AC_C_VARARRAYS for C11
28090         This backports a change I recently made to Autoconf.
28091         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28092         VLAs are not supported, as this is what C11 does.  The old macro
28093         HAVE_C_VARARRAYS is still defined if they are supported, but is
28094         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28096 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28098         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28099         * build-aux/install-reloc (func_create_wrapper): Also wrap
28100         strerror-override, stat, stat.
28102 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28104         sys_select: fix FD_ZERO problem on Solaris 10
28105         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28106         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28107         to expand to an expression that invoked memset without necessarily
28108         including <string.h>.  The problem was that the first include
28109         defined _SYS_TIME_H, causing the second include to short-circuit.
28110         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28111         Also, fix what appears to be a cut-and-paste typo, by replacing
28112         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28113         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28115         accept: document Solaris 10 type glitch
28116         * doc/posix-functions/accept.texi (accept): Mention that
28117         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28119 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28121         extern-inline: port to FreeBSD, DragonFly
28122         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28123         is present if either __DragonFly__ or __FreeBSD__ is defined.
28124         FreeBSD problem reported by Andrey Borzenkov in:
28125         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28126         Also, worry about __APPLE__ only if __MACH__ is also defined,
28127         as this is more consistent with the rest of gnulib.
28128         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28129         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28131 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28133         regex: Make #if/#ifdef usage consistent for DEBUG
28134         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28135         of the inconsistent usage of #if and #ifdef as that works with
28136         both Glibc and Gnulib's style.
28138 2014-07-31  Eric Blake  <eblake@redhat.com>
28140         openat-die: use _Noreturn markup
28141         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28142         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28143         _Noreturn.
28145 2014-07-30  Eric Blake  <eblake@redhat.com>
28147         test-open: port to cygwin, which lacks Fortify
28148         * tests/test-open.h (ALWAYS_INLINE): New macro.
28149         (__always_inline): Don't abuse internal symbol on non-glibc.
28151 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28153         localename: Enforce declarations before statements.
28154         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28155         first statement.
28157 2014-07-18  Jim Meyering  <meyering@fb.com>
28159         test-userspec: don't look up numeric user names
28160         * tests/test-userspec.c: I found a system for which getpwnam("0")
28161         returned a pointer to a non-root user's entry, and that made the
28162         test fail.
28163         (T): Prefix each numeric input with "+", to inhibit lookup.
28165 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28167         localcharset, localename: MS-Windows support for non-default locales
28168         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28169         falling back on the default system codepage, try extracting
28170         the codepage from what 'setlocale' returns.  This allows to
28171         take into account changes of the codeset due to non-default
28172         locale set by a previous call to 'setlocale'.
28173         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28174         Define if not already defined.
28175         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28176         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28177         current locale by calling 'setlocale', then converting the
28178         locale name into LCID by calling 'get_lcid'.  This allows to
28179         take into account changes in the current locale from the
28180         default one, in contrast to GetThreadLocale.
28182 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28184         announce-gen: avoid failure when Digest::SHA is installed
28185         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28186         Digest::SHA1->new in print_checksums fails.
28187         * build-aux/announce-gen (digest_classes): New associative array
28188         for available message digest implementations.
28189         (print_locations): Use it.
28191 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28193         gettext: revert "update macros to version 0.19"
28194         This reverts commit 9b9370ca, as it currently requires that
28195         developers of any project that explicitly uses the gettext module
28196         or implicitly uses it through the utimens-tests or
28197         futimens-tests modules, use gettext >= 0.19.
28198         However there are some stability and availablity issues with
28199         that version at present.  We can reinstate this soon, when stability
28200         is addressed and packages are more readily available.
28202 2014-07-12  Jim Meyering  <meyering@fb.com>
28204         regex: don't deref NULL upon heap allocation failure
28205         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28206         failure in one more place.
28207         To trigger the segfault, configure grep -with-included-regex,
28208         build it, and run these commands:
28209         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28210         I discovered this while replying to a private report from
28211         Jens Schleusener about excessive memory consumption by grep
28212         when using a regular expression like the one above.
28214 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28216         regex: fix memory leak in compiler
28217         Fix by Andreas Schwab in:
28218         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28219         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28220         constructed tree before returning error.
28222 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28224         announce-gen: avoid perl warnings
28225         * build-aux/announce-gen: add two minor checks to avoid
28226         "use of uninitialized value" warnings when command-line parameters are
28227         missing.
28229 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28231         localename: avoid -Wsuggest-attribute={const,pure} warnings
28232         * lib/localename.c (string_has): Tag internal function as pure.
28233         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28234         as const when appropriate.
28236 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28238         nl_langinfo: Fix last change.
28239         * lib/nl_langinfo.c (includes): Drop redundant include.
28241 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28243         error: Fix -Wundef warnings in glibc
28244         * lib/error.c [_LIBC]: Define default macros for
28245         glibc.
28246         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28247         Check _LIBC before STRERROR_R_CHAR_P.
28249         error: Sync from glibc master
28250         * lib/error.c [_LIBC]: Remove INTUSE usage.
28251         (error_tail): Remove unused macro ALLOCA_LIMIT.
28252         Fix potential buffer overflow.  Fix potential NULL dereference
28253         in strcmp.
28255 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28257         nl_langinfo: fix build under mingw
28258         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28260 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28262         mountlist: do not classify a bind-mounted dir entry as "dummy"
28263         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28264         1-argument getmntent() (instead of assuming absence).
28266 2014-07-08  Eric Blake  <eblake@redhat.com>
28268         maint.mk: less syntax-check noise when SIGPIPE is ignored
28269         * top/maint.mk (_sc_header_without_use)
28270         (sc_require_config_h_first): Parse full list.
28272 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28273             Paul Eggert  <eggert@cs.ucla.edu>
28275         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28276         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28277         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28278         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28279         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28280         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28281         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28282         Include <stdio.h> if Microsoft Windows.
28283         Include <time.h> if !REPLACE_NL_LANGINFO.
28284         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28285         and with improvements for Microsoft Windows.
28286         (rpl_nl_langinfo): Use it.
28287         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28288         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28289         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28290         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28291         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28292         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28293         corresponding values returned by 'localeconv'.  Compute the values
28294         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28295         'strftime' with a suitable struct tm value.
28297 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28299         Bruno Haible has stepped down as maintainer.
28300         See Karl Berry in:
28301         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28302         Daiki Ueno has volunteered to maintain libunistring; see:
28303         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28304         * modules/gen-uni-tables, modules/libunistring:
28305         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28306         * modules/unicase/base, modules/unicase/cased:
28307         * modules/unicase/empty-prefix-context:
28308         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28309         * modules/unicase/locale-language, modules/unicase/special-casing:
28310         * modules/unicase/tocasefold, modules/unicase/tolower:
28311         * modules/unicase/totitle, modules/unicase/toupper:
28312         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28313         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28314         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28315         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28316         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28317         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28318         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28319         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28320         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28321         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28322         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28323         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28324         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28325         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28326         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28327         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28328         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28329         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28330         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28331         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28332         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28333         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28334         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28335         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28336         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28337         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28338         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28339         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28340         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28341         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28342         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28343         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28344         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28345         * modules/uniconv/u16-conv-to-enc:
28346         * modules/uniconv/u16-strconv-from-enc:
28347         * modules/uniconv/u16-strconv-from-locale:
28348         * modules/uniconv/u16-strconv-to-enc:
28349         * modules/uniconv/u16-strconv-to-locale:
28350         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28351         * modules/uniconv/u32-strconv-from-enc:
28352         * modules/uniconv/u32-strconv-from-locale:
28353         * modules/uniconv/u32-strconv-to-enc:
28354         * modules/uniconv/u32-strconv-to-locale:
28355         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28356         * modules/uniconv/u8-strconv-from-enc:
28357         * modules/uniconv/u8-strconv-from-locale:
28358         * modules/uniconv/u8-strconv-to-enc:
28359         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28360         * modules/unictype/bidicategory-all:
28361         * modules/unictype/bidicategory-byname:
28362         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28363         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28364         * modules/unictype/bidiclass-byname:
28365         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28366         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28367         * modules/unictype/block-all, modules/unictype/block-list:
28368         * modules/unictype/block-of, modules/unictype/block-test:
28369         * modules/unictype/category-C, modules/unictype/category-Cc:
28370         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28371         * modules/unictype/category-Co, modules/unictype/category-Cs:
28372         * modules/unictype/category-L, modules/unictype/category-LC:
28373         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28374         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28375         * modules/unictype/category-Lu, modules/unictype/category-M:
28376         * modules/unictype/category-Mc, modules/unictype/category-Me:
28377         * modules/unictype/category-Mn, modules/unictype/category-N:
28378         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28379         * modules/unictype/category-No, modules/unictype/category-P:
28380         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28381         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28382         * modules/unictype/category-Pi, modules/unictype/category-Po:
28383         * modules/unictype/category-Ps, modules/unictype/category-S:
28384         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28385         * modules/unictype/category-Sm, modules/unictype/category-So:
28386         * modules/unictype/category-Z, modules/unictype/category-Zl:
28387         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28388         * modules/unictype/category-all, modules/unictype/category-and:
28389         * modules/unictype/category-and-not, modules/unictype/category-byname:
28390         * modules/unictype/category-longname, modules/unictype/category-name:
28391         * modules/unictype/category-none, modules/unictype/category-of:
28392         * modules/unictype/category-or, modules/unictype/category-test:
28393         * modules/unictype/category-test-withtable:
28394         * modules/unictype/combining-class:
28395         * modules/unictype/combining-class-all:
28396         * modules/unictype/combining-class-byname:
28397         * modules/unictype/combining-class-longname:
28398         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28399         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28400         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28401         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28402         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28403         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28404         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28405         * modules/unictype/digit, modules/unictype/joininggroup-all:
28406         * modules/unictype/joininggroup-byname:
28407         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28408         * modules/unictype/joiningtype-all:
28409         * modules/unictype/joiningtype-byname:
28410         * modules/unictype/joiningtype-longname:
28411         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28412         * modules/unictype/mirror, modules/unictype/numeric:
28413         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28414         * modules/unictype/property-ascii-hex-digit:
28415         * modules/unictype/property-bidi-arabic-digit:
28416         * modules/unictype/property-bidi-arabic-right-to-left:
28417         * modules/unictype/property-bidi-block-separator:
28418         * modules/unictype/property-bidi-boundary-neutral:
28419         * modules/unictype/property-bidi-common-separator:
28420         * modules/unictype/property-bidi-control:
28421         * modules/unictype/property-bidi-embedding-or-override:
28422         * modules/unictype/property-bidi-eur-num-separator:
28423         * modules/unictype/property-bidi-eur-num-terminator:
28424         * modules/unictype/property-bidi-european-digit:
28425         * modules/unictype/property-bidi-hebrew-right-to-left:
28426         * modules/unictype/property-bidi-left-to-right:
28427         * modules/unictype/property-bidi-non-spacing-mark:
28428         * modules/unictype/property-bidi-other-neutral:
28429         * modules/unictype/property-bidi-pdf:
28430         * modules/unictype/property-bidi-segment-separator:
28431         * modules/unictype/property-bidi-whitespace:
28432         * modules/unictype/property-byname:
28433         * modules/unictype/property-case-ignorable:
28434         * modules/unictype/property-cased:
28435         * modules/unictype/property-changes-when-casefolded:
28436         * modules/unictype/property-changes-when-casemapped:
28437         * modules/unictype/property-changes-when-lowercased:
28438         * modules/unictype/property-changes-when-titlecased:
28439         * modules/unictype/property-changes-when-uppercased:
28440         * modules/unictype/property-combining:
28441         * modules/unictype/property-composite:
28442         * modules/unictype/property-currency-symbol:
28443         * modules/unictype/property-dash:
28444         * modules/unictype/property-decimal-digit:
28445         * modules/unictype/property-default-ignorable-code-point:
28446         * modules/unictype/property-deprecated:
28447         * modules/unictype/property-diacritic:
28448         * modules/unictype/property-extender:
28449         * modules/unictype/property-format-control:
28450         * modules/unictype/property-grapheme-base:
28451         * modules/unictype/property-grapheme-extend:
28452         * modules/unictype/property-grapheme-link:
28453         * modules/unictype/property-hex-digit:
28454         * modules/unictype/property-hyphen:
28455         * modules/unictype/property-id-continue:
28456         * modules/unictype/property-id-start:
28457         * modules/unictype/property-ideographic:
28458         * modules/unictype/property-ids-binary-operator:
28459         * modules/unictype/property-ids-trinary-operator:
28460         * modules/unictype/property-ignorable-control:
28461         * modules/unictype/property-iso-control:
28462         * modules/unictype/property-join-control:
28463         * modules/unictype/property-left-of-pair:
28464         * modules/unictype/property-line-separator:
28465         * modules/unictype/property-logical-order-exception:
28466         * modules/unictype/property-lowercase, modules/unictype/property-math:
28467         * modules/unictype/property-non-break:
28468         * modules/unictype/property-not-a-character:
28469         * modules/unictype/property-numeric:
28470         * modules/unictype/property-other-alphabetic:
28471         * modules/unictype/property-other-default-ignorable-code-point:
28472         * modules/unictype/property-other-grapheme-extend:
28473         * modules/unictype/property-other-id-continue:
28474         * modules/unictype/property-other-id-start:
28475         * modules/unictype/property-other-lowercase:
28476         * modules/unictype/property-other-math:
28477         * modules/unictype/property-other-uppercase:
28478         * modules/unictype/property-paired-punctuation:
28479         * modules/unictype/property-paragraph-separator:
28480         * modules/unictype/property-pattern-syntax:
28481         * modules/unictype/property-pattern-white-space:
28482         * modules/unictype/property-private-use:
28483         * modules/unictype/property-punctuation:
28484         * modules/unictype/property-quotation-mark:
28485         * modules/unictype/property-radical:
28486         * modules/unictype/property-sentence-terminal:
28487         * modules/unictype/property-soft-dotted:
28488         * modules/unictype/property-space:
28489         * modules/unictype/property-terminal-punctuation:
28490         * modules/unictype/property-test, modules/unictype/property-titlecase:
28491         * modules/unictype/property-unassigned-code-value:
28492         * modules/unictype/property-unified-ideograph:
28493         * modules/unictype/property-uppercase:
28494         * modules/unictype/property-variation-selector:
28495         * modules/unictype/property-white-space:
28496         * modules/unictype/property-xid-continue:
28497         * modules/unictype/property-xid-start:
28498         * modules/unictype/property-zero-width, modules/unictype/scripts:
28499         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28500         * modules/unictype/syntax-c-whitespace:
28501         * modules/unictype/syntax-java-ident:
28502         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28503         * modules/unigbrk/u16-grapheme-breaks:
28504         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28505         * modules/unigbrk/u32-grapheme-breaks:
28506         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28507         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28508         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28509         * modules/unigbrk/uc-is-grapheme-break:
28510         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28511         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28512         * modules/unilbrk/u16-width-linebreaks:
28513         * modules/unilbrk/u32-possible-linebreaks:
28514         * modules/unilbrk/u32-width-linebreaks:
28515         * modules/unilbrk/u8-possible-linebreaks:
28516         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28517         * modules/unilbrk/ulc-possible-linebreaks:
28518         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28519         * modules/uniname/uniname, modules/uninorm/base:
28520         * modules/uninorm/canonical-decomposition:
28521         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28522         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28523         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28524         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28525         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28526         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28527         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28528         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28529         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28530         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28531         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28532         * modules/unistdio/base, modules/unistdio/u-printf-args:
28533         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28534         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28535         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28536         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28537         * modules/unistdio/u16-u16-sprintf:
28538         * modules/unistdio/u16-u16-vasnprintf:
28539         * modules/unistdio/u16-u16-vasprintf:
28540         * modules/unistdio/u16-u16-vsnprintf:
28541         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28542         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28543         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28544         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28545         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28546         * modules/unistdio/u32-u32-asnprintf:
28547         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28548         * modules/unistdio/u32-u32-sprintf:
28549         * modules/unistdio/u32-u32-vasnprintf:
28550         * modules/unistdio/u32-u32-vasprintf:
28551         * modules/unistdio/u32-u32-vsnprintf:
28552         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28553         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28554         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28555         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28556         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28557         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28558         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28559         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28560         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28561         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28562         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28563         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28564         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28565         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28566         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28567         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28568         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28569         * modules/unistr/u16-check, modules/unistr/u16-chr:
28570         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28571         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28572         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28573         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28574         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28575         * modules/unistr/u16-move, modules/unistr/u16-next:
28576         * modules/unistr/u16-prev, modules/unistr/u16-set:
28577         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28578         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28579         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28580         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28581         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28582         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28583         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28584         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28585         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28586         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28587         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28588         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28589         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28590         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28591         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28592         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28593         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28594         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28595         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28596         * modules/unistr/u32-next, modules/unistr/u32-prev:
28597         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28598         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28599         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28600         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28601         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28602         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28603         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28604         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28605         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28606         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28607         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28608         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28609         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28610         * modules/unistr/u8-check, modules/unistr/u8-chr:
28611         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28612         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28613         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28614         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28615         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28616         * modules/unistr/u8-next, modules/unistr/u8-prev:
28617         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28618         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28619         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28620         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28621         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28622         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28623         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28624         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28625         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28626         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28627         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28628         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28629         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28630         * modules/uniwbrk/base, modules/uniwbrk/table:
28631         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28632         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28633         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28634         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28635         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28636         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28637         * modules/uniwidth/width, modules/utf16-ucs4:
28638         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28639         * modules/utf8-ucs4-unsafe:
28640         Change maintainer from Bruno Haible to Daiki Ueno.
28641         This is my guess at the libunistring modules; please feel free
28642         to fix if I guessed incorrectly.
28643         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28644         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28645         * modules/areadlink, modules/array-list, modules/array-mergesort:
28646         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28647         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28648         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28649         * modules/binary-io, modules/bison-i18n, modules/btowc:
28650         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28651         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28652         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28653         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28654         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28655         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28656         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28657         * modules/closedir, modules/concat-filename, modules/copy-file:
28658         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28659         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28660         * modules/csharpcomp-script, modules/csharpexec:
28661         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28662         * modules/dprintf, modules/dprintf-posix, modules/dup:
28663         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28664         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28665         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28666         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28667         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28668         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28669         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28670         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28671         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28672         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28673         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28674         * modules/findprog, modules/findprog-lgpl, modules/floor:
28675         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28676         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28677         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28678         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28679         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28680         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28681         * modules/freadable, modules/freadahead, modules/freadptr:
28682         * modules/freadseek, modules/freopen, modules/frexp:
28683         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28684         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28685         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28686         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28687         * modules/ftello, modules/full-read, modules/full-write:
28688         * modules/fwritable, modules/fwriteerror, modules/gcd:
28689         * modules/get-rusage-as, modules/get-rusage-data:
28690         * modules/getdtablesize, modules/getrusage, modules/gettext:
28691         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28692         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28693         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28694         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28695         * modules/iconv, modules/iconv-h, modules/iconv_open:
28696         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28697         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28698         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28699         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28700         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28701         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28702         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28703         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28704         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28705         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28706         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28707         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28708         * modules/lib-symbol-visibility, modules/libsigsegv:
28709         * modules/linked-list, modules/linkedhash-list, modules/list:
28710         * modules/localcharset, modules/locale, modules/localeconv:
28711         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28712         * modules/log10, modules/log10-ieee, modules/log10f:
28713         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28714         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28715         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28716         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28717         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28718         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28719         * modules/logf, modules/logf-ieee, modules/login_tty:
28720         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
28721         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
28722         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
28723         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
28724         * modules/mbscspn, modules/mbsinit, modules/mbslen:
28725         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
28726         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
28727         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
28728         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
28729         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
28730         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
28731         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
28732         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
28733         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
28734         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
28735         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
28736         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
28737         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
28738         * modules/posix_spawn, modules/posix_spawn-internal:
28739         * modules/posix_spawn_file_actions_addclose:
28740         * modules/posix_spawn_file_actions_adddup2:
28741         * modules/posix_spawn_file_actions_addopen:
28742         * modules/posix_spawn_file_actions_destroy:
28743         * modules/posix_spawn_file_actions_init:
28744         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
28745         * modules/posix_spawnattr_getpgroup:
28746         * modules/posix_spawnattr_getschedparam:
28747         * modules/posix_spawnattr_getschedpolicy:
28748         * modules/posix_spawnattr_getsigdefault:
28749         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
28750         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
28751         * modules/posix_spawnattr_setschedparam:
28752         * modules/posix_spawnattr_setschedpolicy:
28753         * modules/posix_spawnattr_setsigdefault:
28754         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
28755         * modules/pow, modules/powf, modules/printf-frexp:
28756         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
28757         * modules/progname, modules/propername, modules/pselect:
28758         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
28759         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
28760         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
28761         * modules/read, modules/readdir, modules/readlink:
28762         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
28763         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
28764         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
28765         * modules/relocatable-script, modules/remainder:
28766         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
28767         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
28768         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
28769         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
28770         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
28771         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
28772         * modules/setlocale, modules/sh-quote, modules/shutdown:
28773         * modules/signal, modules/signbit, modules/sigpipe:
28774         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
28775         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
28776         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
28777         * modules/snippet/link-warning, modules/snippet/unused-parameter:
28778         * modules/snprintf, modules/snprintf-posix, modules/spawn:
28779         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
28780         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
28781         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
28782         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
28783         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
28784         * modules/streq, modules/strerror_r-posix, modules/striconv:
28785         * modules/striconveh, modules/striconveha, modules/strncat:
28786         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
28787         * modules/sublist, modules/sys_resource, modules/sys_utsname:
28788         * modules/sys_wait, modules/system-posix, modules/system-quote:
28789         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
28790         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
28791         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
28792         * modules/truncf, modules/truncf-ieee, modules/truncl:
28793         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
28794         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
28795         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
28796         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
28797         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
28798         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
28799         * modules/wait-process, modules/waitpid, modules/wcpcpy:
28800         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
28801         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
28802         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
28803         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
28804         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
28805         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
28806         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
28807         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
28808         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
28809         * modules/write, modules/xconcat-filename, modules/xlist:
28810         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
28811         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
28812         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
28813         * modules/y0, modules/y1, modules/yn:
28814         Remove Bruno Haible as maintainer; if he's the sole maintainer,
28815         change the maintainer to 'all'.  Let's hope someone volunteers.
28817 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
28819         mktime: merge #if/#ifdef usage from glibc
28820         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28821         as that works with both Glibc's and Gnulib's style.
28822         See thread starting at Siddhesh Poyarekar's bug report at:
28823         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
28825 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
28827         git-version-gen: improve option descriptions
28828         * build-aux/git-version-gen: Mention that --prefix and --fallback
28829         have a mandatory argument.
28831 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28833         regex: fix memory leak in compiler
28834         Fix by Andreas Schwab in:
28835         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
28836         * lib/regcomp.c (parse_expression): Deallocate partially
28837         constructed tree before returning error.
28839         regex: merge patch from libc
28840         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
28841         Combine __USE_BSD and __USE_SVID into __USE_MISC.
28842         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
28844 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28846         acl: port to gcc -Wredundant-decls
28847         From a request by Dmitry Antipov in:
28848         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
28849         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
28850         "#ifndef _GL_ACL_H".
28852 2014-06-11  Bruce Korb  <bkorb@gnu.org>
28853         Jim Meyering  <meyering@fb.com>
28855         parse-duration: eliminate 68-year duration limit
28856         * lib/parse-duration.c: Include "intprops.h".
28857         (TIME_MAX): Rename to MAX_DURATION and define to
28858         TYPE_MAXIMUM(time_t).
28859         * modules/parse-duration (Depends-on): Add intprops.
28860         Reported by Jonas 'Sortie' Termansen.
28862 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28864         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
28865         * modules/pthread (Depends-on): Add 'extensions', as it defines
28866         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
28867         (configure.ac-early): New section.
28868         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
28869         it is no longer needed.
28871 2014-06-14  Pádraig Brady  <P@draigBrady.com>
28873         pthread: define thread-safe macros on some platforms
28874         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
28875         for thread-safe operation on some platforms.
28877 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28879         regex: don't be multithreaded if USE_UNLOCKED_IO.
28880         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
28881         * lib/regex_internal.h: Do not use multithreaded version if
28882         USE_UNLOCKED_IO is defined.  This is a hack, but it works
28883         around a porting bug with coreutils 8.22 on AIX 7.1.
28885 2014-06-11  Daiki Ueno  <ueno@gnu.org>
28887         gettext: update macros to version 0.19
28888         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
28889         depend on gl_EXTERN_INLINE and drop support for older Bison
28890         versions.
28892 2014-06-10  Pádraig Brady  <P@draigBrady.com>
28894         select,poll: fix console handle check on windows 8
28895         lib/poll.c (IsConsoleHandle): Change from testing the lower
28896         2 bits of the handle to the more expensive but accurate syscall.
28897         lib/select.c: Likewise.
28899 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
28901         select: fix waiting on anonymous pipes on MS-Windows
28902         * lib/select.c (rpl_select): Fall back to polling when select()
28903         indicates there is nothing to check, while due to the timeout not
28904         expiring, activity is indicated on one of the handles.
28905         Also clear the TIMEOUT argument if the timer does expire.
28907 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
28909         times: fix to return non constant value on MS-Windows
28910         * lib/times.c (times): Don't use the process creation time,
28911         rather clock() which on windows returns the number of
28912         clock ticks since the process started.
28914 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
28916         isatty: fix to work on windows 8
28917         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
28918         2 bits of the handle to the more expensive but accurate syscall.
28920 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
28922         maint: fix typo in fdl.texi
28923         * doc/fdl.texi: Fix typo (missing '@').
28924         Somehow this was in fdl.texi but not fdl-1.3.texi.
28926 2014-06-06  Ben Walton  <bdwalton@gmail.com>
28928         mountlist: avoid hasmntopt const type warning on solaris
28929         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
28930         with char * instead of const char *.  Passing the constant string
28931         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
28932         to avoid the warning.
28934 2014-06-04  Eric Blake  <eblake@redhat.com>
28936         maintainer-makefile: delete obsolete code
28937         * top/maint.mk (build_aux): Drop old code, as threatened.
28939         maintainer-makefile: avoid spurious error messages
28940         * top/maint.mk (syntax-check): Guard definition and use of
28941         $(shell) by whether Makefile is present.
28943 2014-06-03  Ben Walton  <bdwalton@gmail.com>
28945         rename: avoid unused-but-set-variable compiler warning
28946         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
28947         it is possible that dst_exists may be set but not used.  Mark it with
28948         the unused attribute to avoid compiler warnings.
28950 2014-06-02  Ben Walton  <bdwalton@gmail.com>
28952         rename: mark a label as potentially unused
28953         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
28954         by marking the out label as potentially unused.
28955         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
28957 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
28959         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
28960         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
28962 2014-06-02  Ben Walton  <bdwalton@gmail.com>
28964         acl: apply pure attribute to two functions
28965         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
28966         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
28968 2014-06-01  Pádraig Brady  <P@draigBrady.com>
28970         gnulib-common.m4: add _GL_UNUSED_LABEL
28971         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
28972         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
28974 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28976         dup2, fcntl, fcntl-h: port to AIX 7.1
28977         This fixes some porting problems discovered when testing the latest
28978         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
28979         in grep but it could be important for other applications.
28980         * doc/posix-functions/dup2.texi:
28981         * doc/posix-functions/fcntl.texi:
28982         * doc/posix-headers/fcntl.texi:
28983         Document AIX bugs.
28984         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
28985         Define to 0 if outside 'int' range.
28986         * m4/dup2.m4 (gl_FUNC_DUP2):
28987         * m4/fcntl.m4 (gl_FUNC_FCNTL):
28988         Check for getdtablesize.  If it's available, test a value just
28989         outside its range instead of testing 1000000.  When cross-compiling,
28990         guess that AIX will fail this improved test.
28992 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28994         printf, config.rpath: Port to FreeBSD 10.
28995         Problem reported by Tijl Coosemans in:
28996         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
28997         * build-aux/config.rpath (hardcode_libdir_flag_spec)
28998         (hardcode_direct): Simplify FreeBSD configuration.
28999         (library_names_spec): Don't mishandle FreeBSD 10+.
29000         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29001         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29002         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29003         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29004         Don't mishandle FreeBSD 10+ when cross-compiling.
29006         ftoastr: work around compiler bug in IBM xlc 12.1
29007         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29008         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29009         around a compiler bug in IBM xlc 12.1.0.0: it complains
29010         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29011         _GL_FLT_PREC_BOUND.'
29013 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29015         valgrind-tests: fixed misleading help message
29016         * m4/valgrind-tests.m4: The help message generated by configure
29017         implied that valgrind was disabled by default, which it wasn't.
29018         Adjusted the help message using s/enable/disable/ to clarify.
29020 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29022         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29023         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29024         first double of a PowerPC "double double" pair.
29025         * tests/test-isinf.c (test_isinfl): Likewise.
29026         * tests/test-isnan.c (test_long_double): Likewise.
29027         * tests/test-isnanl.h (main): Likewise.
29028         * tests/test-signbit.c (test_signbitl): Likewise.
29030 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29032         exclude-tests: port to AIX 7.1
29033         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29034         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29035         the regex code uses locks.
29037 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29039         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29040         Without this fix, Emacs would sometimes call sigprocmask instead
29041         of pthread_sigmask, which is a no-no in multithreaded applications.
29042         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29044         Suppress check for pthread_sigmask working without -lpthread if
29045         the application always links with -lpthread.  Do not link with
29046         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29047         * m4/timer_time.m4 (gl_TIMER_TIME):
29048         Require gl_THREADLIB only if it is defined.  Do not append
29049         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29051 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29053         gnulib-tool: wget translations using --no-verbose rather than --quiet
29054         This allows the user to see error messages if any (--quiet hides them)
29055         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29057 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29059         gnulib-tool: adjust translation wget to avoid a https redirection
29060         Context: http://translationproject.org/latest/gnulib redirects to
29061            https://translationproject.org/latest/gnulib/
29062         Rationale: if the user falls back to wget, she doesn't have rsync and
29063         is probably in a minimal build environment, where packages such as
29064         'ca-certificates' are missing as well, resulting in a failed (and
29065         difficult to detect since ignored) translation initial fetch.
29066         Consequently let's avoid https if possible, and add the missing
29067         trailing slash.  This also avoids an unnecessary 302 redirection.
29068         * gnulib-tool: Add trailing slash to gnulib URL.
29070 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29072         getlogin_r-tests: check return value rather than errno
29073         * tests/test-getlogin_r.c (main): As per POSIX we should be
29074         verifying the return value from getlogin_r() rather than errno.
29076 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29078         getlogin_r-tests: fix various issues in recent change
29079         * tests/test-getlogin_r.c: Include required headers that were
29080         missed in recent commit eec20b4e.
29081         Also consistently check the errno rather than the return value from
29082         getlogin_r as POSIX only specifies that non zero is returned on error.
29083         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29085 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29087         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29088         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29089         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29090         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29091         * lib/spawn-pipe.c:
29092         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29093         and then 'int open64(const char *, int, ...);', which means the
29094         declaration for 'open' gets lost if we later '#undef open'.
29095         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29096         where the compilation reported the non-fatal error "In function
29097         'openat_proc_name' ... warning: implicit declaration of function
29098         'open'".  In this case the error is relatively harmless, but in
29099         other cases it might not be so minor.
29101 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29103         xalloc: don't potentially generate invalid code for xmemdup calls
29104         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29105         this function can initialize the newly-allocated storage with new
29106         pointers, which means this function is not malloc-like.  See:
29107         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29109 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29111         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29112         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29113         changes from commit 97249cf29 to not depend on environment variables.
29115 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29117         getlogin-tests: avoid false failure under cron
29118         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29119         since that's not what's under test.  Centos 6 was seen to return
29120         EINVAL for ttyname() when run from cron.
29122 2014-05-16  Jim Meyering  <meyering@fb.com>
29124         mbrtowc.m4: fix a comment typo
29125         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29126         emitted documentation string.
29128 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29130         mbrlen, mbrtowc: fix bug with empty input
29131         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29132         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29133         so this is mainly for documentation.
29134         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29135         (gl_FUNC_MBRTOWC): Use it.
29136         * tests/test-mbrtowc.c (main): Test for the bug.
29138 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29140         doc: document mbrtowc and mbrlen problem with empty input
29141         * doc/posix-functions/mbrlen.texi (mbrlen):
29142         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29143         Document portability problem when the input string is empty.  See:
29144         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29146         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29147         Problem reported by Eli Zaretskii in:
29148         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29149         * doc/posix-functions/execl.texi (execl):
29150         * doc/posix-functions/execle.texi (execle):
29151         * doc/posix-functions/execlp.texi (execlp):
29152         * doc/posix-functions/execv.texi (execv):
29153         * doc/posix-functions/execve.texi (execve):
29154         * doc/posix-functions/execvp.texi (execvp):
29155         Mention spawn+exit problem on non-Cygwin Windows platforms.
29157 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29159         getlogin-tests: avoid false failure under sudo/ssh etc.
29160         * modules/getlogin-tests (configure.ac): Check for ttyname().
29161         * tests/test-getlogin.c (main): Don't depend on environment variables
29162         to correlate with getlogin(), since sudo and ssh etc. can tamper
29163         with the LOGNAME and USER env vars.  Instead lookup the name from
29164         the uid associated with the stdin tty.
29166 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29168         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29169         These were found when building the latest grep snapshot on IRIX 6.5.
29170         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29171         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29172         never used later.
29173         * lib/quotearg.c (quoting_options_from_style):
29174         * lib/xstrtol.c (__xstrtol):
29175         Use enum instead of 0, to pacify IRIX 6.5 cc.
29177 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29179         gitlog-to-changelog: revert inclusion of git-log-fix file
29180         * build-aux/git-log-fix: Delete dummy file.
29181         * modules/gitlog-to-changelog: Don't reference (overwrite)
29182         the project specific git-log-fix file.
29184 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29186         maint.mk: Relax the copyright check to cater for non FSF projects
29187         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29188         to not require the "Free" suffix after the copyright years.
29190 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29192         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29193         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29194         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29195         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29196         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29198 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29200         exclude: port to strict C99
29201         Strict C does not allow converting a function pointer to void *
29202         and vice versa.  Pass a pointer to a function pointer instead.
29203         * lib/exclude.c (add_exclude_file):
29204         Pass the address of the function pointer.
29205         (call_addfn): And deference the address here, to match.
29207 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29209         regex: do not depend on malloc-gnu
29210         * modules/regex (Depends-on): Remove malloc-gnu.
29211         It's no longer needed, because of the 2012-12-29 patch
29212         "regex: port to hosts where malloc (0) == NULL".
29213         Reported by Nathan Kennedy in:
29214         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29216 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29218         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29219         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29220         * doc/posix-functions/expl.texi: Mention the workaround.
29222 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29224         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29225         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29226         size to be zero even when the pointer is nonnull.  This
29227         accommodates the use case where P is malloc (0) and *PN is 0 on a
29228         host where malloc (0) yields nonnull.
29230 2014-04-09  Eric Blake  <eblake@redhat.com>
29232         fts: avoid unnecessary strlen calls
29233         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29235 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29237         fts: avoid unnecessary strlen calls
29238         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29239         when that can be faster than strlen.
29241 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29243         fts: avoid unnecessary strlen calls
29244         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29245         (fts_build): Store the length of the dp->d_name entry in a local variable
29246         instead of calling strlen() several times via the above, removed macro.
29247         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29248         run by ~4%, yet this reduces the execution time by about a third if run
29249         via "ltrace -c rm -rf some-dir".
29251 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29253         obstack: Remove ancient NeXTSTEP gcc support conditional
29254         This change will ease merging with glibc.  The "#if ... __NEXT__"
29255         causes a warning with -Wundef which glibc now enables by default.
29256         Problem reported by Will Newton in
29257         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29258         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29259         so go with that.
29260         * lib/obstack.h (__extension__):
29262 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29264         obstack: merge with glibc changes
29265         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29266         This is mostly indenting and commentary changes.
29267         Instances of 'register' have been removed.
29269 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29271         strftime: wrap macros in "do {...} while(0)"
29272         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29273         this macro in "do {...} while(0)" to prevent false use as a
29274         single statement, e.g., in an un-braced "{}" else-block.
29275         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29276         (strftime_case_): Remove 'else' after 'goto' - which was the
29277         only non-fatal, un-braced use of one of the above macros.
29278         Spotted by coverity (NESTING_INDENT_MISMATCH).
29280 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29282         modechange: avoid memory leaks for invalid octal modes
29283         * lib/modechange.c (mode_compile): During the parsing of
29284         notations like +40, free the 'mc' buffer for invalid mode
29285         strings like +17777 (greater than the maximum octal mode),
29286         =18 (bad octal mode characters) or u=1 ('affected' with
29287         octal modes).
29288         Reproducer, e.g.:
29289             $ valgrind --leak-check=full chmod +17777 file
29290         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29291         add notations +40, 00440, etc.".
29292         Spotted by coverity (RESOURCE_LEAK).
29294 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29296         gitlog-to-changelog: include a dummy git-log-fix file
29297         Problem reported by Nathan Stratton Treadway in:
29298         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29299         * build-aux/git-log-fix: New file.
29301 2014-03-13  Jim Meyering  <meyering@fb.com>
29303         gitlog-to-changelog: also include the file, git-log-fix
29304         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29305         Reported by Assaf Gordon.
29307 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29309         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29310         This fixes a bug when ignoring case and when comparing the
29311         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29312         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29313         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29314         titlecase letter is neither lowercase nor uppercase, but
29315         uppercasing the titlecase letter (via towupper) yields the
29316         uppercase letter, so the two letters should match when ignoring case.
29317         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29318         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29319         Don't test whether a character is lowercase before uppercasing it.
29321 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29323         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29324         This is basically one of the options Bruno Haible proposed in:
29325         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29326         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29327         * lib/stdint.in.h: Use it.
29328         * modules/stdint (Depends-on): Add sys_types.
29330 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29332         parse-datetime: fix crash or infloop in TZ="" parsing
29333         * lib/parse-datetime.y (parse_datetime): Break out of the
29334         TZ="" parsing loop once the second significant " is found.
29335         Also skip over any subsequent whitespace to be consistent
29336         with the non TZ= case.
29337         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29339 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29341         savedir: new symbol for fast-read version
29342         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29343         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29344         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29345         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29347 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29349         unistd: port readlink to Mac OS X 10.3.9
29350         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29351         around self-include problem in Mac OS X 10.3.9 when combined with
29352         readlink module.  Problem reported by Klaus Zietler in
29353         <http://bugs.gnu.org/16825>.
29355 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29357         diffseq: remove TOO_EXPENSIVE heuristic
29358         Problem with diffutils reported by Vincent Lefevre in
29359         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29360         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29361         Although appropriate for circa-1993 hardware, these days the heuristic
29362         seems to be more trouble than it's worth.
29363         * lib/diffseq.h: Modernize citations.
29364         (struct context): Remove member too_expensive.
29365         All uses changed.
29366         (struct partition): Remove members lo_minimal, hi_minimal.
29367         All uses changed.
29368         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29369         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29370         1993 to make 'diff' run faster (but not as well) on large inputs.
29371         These days, computers are fast enough that it's typically better
29372         to run slower but more accurately.
29373         * lib/fstrcmp.c: Remove duplicate comment.
29374         * lib/fstrcmp.c (strcmp_bounded):
29375         * lib/git-merge-changelog.c (compute_differences):
29376         Adjust to diffseq.h changes.
29377         * NEWS: Document the change.
29379         savedir: simplify by using stpcpy
29380         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29381         (streamsavedir): Use stpcpy instead.
29382         * modules/savedir (Depends-on): Add stpcpy.
29384 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29386         spawn: fix link error on uclibc
29387         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29388         to incorporate -lrt if needed (on uclibc for example).
29389         * modules/posix_spawn: Reference the substituted LIB.
29391 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29392         timer: fix uClibc detection of threading
29393         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29394         enabled in uClibc.
29396 2014-02-21  Eric Blake  <eblake@redhat.com>
29398         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29399         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29401 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29403         exclude: add support for posix regexps
29405         This commit adds support for POSIX extended regular expressions
29406         and fixes a long-standing memory leak (pattern buffer was never
29407         freed).  It also implements a new interface function to read
29408         exclude patterns from a FILE, which passes an additional parameter
29409         to its callback function, thereby allowing to preserve its state
29410         between invocations.
29412         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29413         (pattern_buffer): New struct.
29414         (exclude): New member patbuf.
29415         (exclude_add_pattern_buffer): New function.
29416         (free_exclude_segment): Free regexps.
29417         (free_exclude): Free allocated pattern buffers.
29418         (exclude_patopts): New function.
29419         (file_pattern_matches): Use exclude_patopts.
29420         (add_exclude): support regexps.
29421         (add_exclude_fp): New function.
29422         (add_exclude_file): Rewrite using add_exclude_fp.
29423         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29424         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29425         (add_exclude_fp)
29426         (add_exclude_file): Rewrite using add_exclude_fp.
29427         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29428         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29429         (add_exclude_fp)
29430         (exclude_add_pattern_buffer): New prototypes.
29431         * modules/exclude: Depends on regex and filename.
29433 2014-02-20  Eric Blake  <eblake@redhat.com>
29435         maintainer-makefiles: use $(SED) for syntax check
29436         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29437         * top/maint.mk: Change sed to $(SED).
29439 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29440             Paul Eggert  <eggert@cs.ucla.edu>
29442         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29443         Patch based on an idea by Dick Streefland in
29444         <https://savannah.gnu.org/patch/?7892>.
29445         * NEWS: Document this.
29446         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29447         (direntry_t, comparison_function): New types.
29448         (direntry_cmp_name): New function.
29449         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29450         (streamsavedir, savedir): New arg OPTION.
29451         (streamsavedir): Simplify memory allocation.
29452         (fdsavedir): Remove.
29453         * lib/savedir.h (enum savedir_option): New type.
29454         (streamsavedir, savedir): New arg OPTION.
29455         (fdsavedir): Remove.
29457 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29459         file-type: add support for doors and other less-common file types
29460         Problem with S_ISDOOR reported by Rich Burridge.
29461         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29462         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29463         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29465 2014-01-23  Eric Blake  <eblake@redhat.com>
29467         pthread: work around winpthread header pollution on mingw
29468         * lib/time.in.h: Move pthread workarounds...
29469         * lib/pthread.in.h: ...here.
29470         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29471         detect macro pollution on mingw.
29472         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29474 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29476         qacl: check for fchmod
29477         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29478         and qset-acl.c both use HAVE_FCHMOD.
29480 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29482         fdopen-tests: port to Tru64
29483         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29484         descriptor that is not open, as POSIX doesn't specify the
29485         resulting behavior and the test does not work on Tru64.
29486         Problem reported by Steven M. Schweda in:
29487         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29489         stdalign: port to HP-UX compilers
29490         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29491         if __HP_cc or __HP_aCC are nonzero.
29493 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29495         strtoimax: port to platforms lacking 'long long'
29496         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29497         check whether strtoll is declared, which causes the C file to
29498         wrongly report an error.  Problem reported by Steven M. Schweda in:
29499         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29500         * lib/strtoimax.c (strtoull):
29501         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29502         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29504 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29506         relocatable-perl: fix texi syntax
29507         * doc/relocatable-maint.texi: Escape braces.
29509 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29511         relocatable-perl: like relocatable-script, but for Perl scripts
29512         * build-aux/relocatable.pl.in: Add.
29513         * doc/relocatable-maint.texi: Add documentation.
29514         * modules/relocatable-perl: Add.
29516 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29518         tests: fix export bug in previous patch
29519         Problem reported by Jim Meyering.
29520         * tests/init.sh (re_shell): New var, which is exported instead of
29521         re_shell_.
29523         tests: simplify porting to Solaris 10 /bin/sh
29524         Some test cases in 'grep' need a shell that groks '$(';
29525         export re_shell_ for their benefit.  Problem reported for 'grep'
29526         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29527         * tests/init.sh (re_shell_): Export if it's used.
29529 2014-01-06  Eric Blake  <eblake@redhat.com>
29531         md5, sha1, sha256, sha512: support older autoconf
29532         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29533         for autoconf < 2.63b.
29535         include_next: port to autoconf 2.63
29536         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29538 2014-01-04  Jim Meyering  <meyering@fb.com>
29540         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29541         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29542         so that "make sc_maint" will ding anyone who puts non-ascii
29543         in any of gnulib's .texi files.
29545 2014-01-03  Jim Meyering  <meyering@fb.com>
29547         freadable, fwritable, fwriting: declare with the "pure" attribute
29548         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29549         * lib/fwritable.h (fwritable): Likewise.
29550         * lib/fwriting.h (fwriting): Likewise.
29551         Suggested by Bruno Haible.
29553         maint.mk: adapt openat.h-include-without-use test
29554         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29555         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29556         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29557         With this change, running "make sc_maint" in gnulib's top-level
29558         directory now passes for me.
29560 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29562         doc: use ASCII in .texi files where UTF-8 isn't needed
29563         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29564         * doc/posix-functions/setkey.texi, doc/regex.texi:
29565         Use ASCII input, not UTF-8.
29567 2014-01-02  Jim Meyering  <meyering@fb.com>
29569         freading: declare with the "pure" attribute
29570         * lib/freading.h (freading): Declare with the "pure" attribute.
29572         manywarnings: remove -Wmudflap
29573         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29574         it is no longer supported in gcc-4.9-to-be.
29576 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29578         relocatable-script: remove unused code
29579         Problem reported by Reuben Thomas in:
29580         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29581         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29583 2014-01-01  Jim Meyering  <meyering@fb.com>
29585         maint: fix public-submodule-commit to work with newer git
29586         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29587         We were over-quoting the test arguments, and somewhere prior to
29588         version 1.8.5.2.229, git stopped removing those excess quotes,
29589         which made the test fail, since the unexpanded strings would
29590         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29591         command wasn't even being run.
29593 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29595         doc: update main copyright year
29596         * doc/gnulib.texi: Update copyright date.
29598 2014-01-01  Eric Blake  <eblake@redhat.com>
29600         version-etc: new year
29601         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29602         * all files: run 'make update-copyright'
29604 2013-12-24  Eric Blake  <eblake@redhat.com>
29606         passfd: give nicer error for recvfd at eof
29607         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29608         * tests/test-passfd.c (main): Enhance test to cover this.
29610 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29612         gettimeofday: port recent C++ fix to Emacs
29613         Without this further patch, Emacs won't build due to
29614         the portcheck failing.  Also, this simplifies the patch a bit.
29615         * lib/time.in.h (localtime, gmtime): Don't replace unless
29616         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29617         * lib/time.in.h (localtime, gmtime):
29618         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29619         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29620         * modules/time (time.h):
29621         Don't worry about the possibility of localtime and gmtime
29622         being absent; they're present in all C libraries we know about.
29623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29624         Don't assume sys_time is present and has been initialized.
29625         Instead, use a hack that should work even if it hasn't been.
29626         Don't use a portcheck for gmtime or localtime; this supports
29627         the hack.
29628         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29630 2013-12-17  John W. Eaton  <jwe@gnu.org>
29632         gettimeofday: fix C++ crosscompilation
29634         Never replace gmtime and localtime by macros when compiling with
29635         C++, this prevents <ctime> from being included.
29637         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29638         define gmtime and localtime as preprocessor macros.  Instead
29639         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29640         REPLACE_LOCALTIME substitutions.
29641         * lib/time.in.h: Declare gmtime and localtime when needed.
29642         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29643         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29644         * modules/time: Depend on gettimeofday, and substitute the above
29645         variables in time.h.
29647 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29649         qacl: port to Windows better
29650         See Eli Zaretskii in
29651         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29652         * lib/file-has-acl.c (acl_access_nontrivial):
29653         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29654         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29656 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29658         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29659         * lib/gl_openssl.h: Cast void pointers to a specific type.
29661 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29663         open-tests: fix build failure with -Werror=old-style-declaration
29664         * tests/test-open.h: Reorder the inline to avoid the issue.
29666 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29668         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29669         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29670         init time, so that if early checks find crypto routines,
29671         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29672         avoiding link failures.
29674 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29676         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29677         This provides a new way to specify the default for
29678         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29679         Emacs uses this, as well as the old way.
29680         This attempts to implement a suggestion by Pádraig Brady in
29681         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29682         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29683         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29685         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29686         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29687         Add support for a new option, --with-openssl=auto, which causes
29688         the library to be used if available and silently ignored if not.
29689         Add support to allow configure.ac to specify its own
29690         default, by setting with_openssl_default before invoking gl_INIT.
29692 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29694         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29695         Problem reported by Daiki Ueno in:
29696         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29697         * tests/test-open.h (__always_inline):
29698         New macro, if not already defined.
29699         (test_open): Use it.
29701 2013-12-04  Eric Blake  <eblake@redhat.com>
29703         include_next: minimize code duplication
29704         * modules/include_next (Depends-on): Add absolute-header.
29705         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29706         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29708 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29710         getcwd: fix compile error in configure check
29711         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29713 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29715         regex: suppress core dumps from detection code
29716         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29717         to suppress core dumps that may well occur on glibc systems.
29718         These core dumps might not be cleaned up automatically, or could
29719         trigger some system core dump handling logic.
29721 2013-12-03  Pádraig Brady  <P@draigBrady.com>
29723         md5, sha1, sha256, sha512: support mandating use of openssl
29724         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
29725         description, to list the now 3 separate options.  also don't
29726         mention the default=no, since this is implicit given the option
29727         is described as --with-openssl rather than --without-openssl.
29728         If projects change the default they're free to document that.
29729         with --with-openssl[=yes] we now error out when the specified
29730         hash algorithm is not available in libcrypto.
29732 2013-12-03  Ivailo  <xakepa10@gmail.com>
29734         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
29735         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
29736         -Wformat-nonliteral checks, as these edge cases are part of the test.
29738 2013-12-03  Eric Blake  <eblake@redhat.com>
29740         regex: avoid glibc deadlock during configure
29741         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
29742         glibc bug 15078 in turn triggers bug 16159.
29743         Reported by Michal Privoznik.
29745 2013-12-02  Pádraig Brady  <P@draigBrady.com>
29747         md5, sha1, sha256, sha512: use openssl routines if available.
29748         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
29749         routines will be used if available, requiring apps to link @LIB_CRYPTO@
29750         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
29751         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
29752         in the standard system location.
29753         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
29754         * m4/sha256.m4: Likewise with SHA256.
29755         * m4/sha512.m4: Likewise with SHA512.
29756         * m4/md5.m4: Likewise with MD5.
29757         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
29758         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
29759         * lib/sha256.h: Likewise with SHA256.
29760         * lib/sha512.h: Likewise with SHA512.
29761         * lib/md5.h: Likewise with MD5.
29762         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
29763         * lib/sha256.c: Likewise with SHA256.
29764         * lib/sha512.c: Likewise with SHA512.
29765         * lib/md5.c: Likewise with MD5.
29766         * modules/crypto/sha1 (Link:): Add the new optional lib.
29767         (Depends-on:): Add dependency on extern-inline.
29768         * modules/crypto/sha256: Likewise.
29769         * modules/crypto/sha512: Likewise.
29770         * modules/crypto/md5: Likewise.
29771         * modules/crypto/sha1-tests: Reference the lib here too.
29772         * modules/crypto/md5-tests: Likewise.
29773         * modules/crypto/gc-des-tests: Likewise.
29774         * modules/crypto/gc-hmac-md5-tests: Likewise.
29775         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29776         * modules/crypto/gc-hmac-sha256-tests: Likewise.
29777         * modules/crypto/gc-hmac-sha512-tests: Likewise.
29778         * modules/crypto/gc-md5-tests: Likewise.
29779         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29780         * modules/crypto/gc-sha1-tests: Likewise.
29781         * modules/crypto/gc-tests: Likewise.
29782         * modules/crypto/hmac-md5-tests: Likewise.
29783         * modules/crypto/hmac-sha1-tests: Likewise.
29784         * modules/crypto/hmac-sha256-tests: Likewise.
29785         * modules/crypto/hmac-sha512-tests: Likewise.
29787 2013-11-29  RV1971  <rv1971@web.de>
29789         base64: (trivial) fix compilation regression on some compilers
29790         * lib/base64.c: Don't return the void function,
29791         instead split to a separate return statement.
29793 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29795         ignore-value: revert previous code change
29796         * lib/ignore-value.h (ignore_value): Use __extension__ and
29797         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
29798         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
29799         Change the comment to try to explain this better.
29801 2013-11-27  Pádraig Brady  <P@draigBrady.com>
29803         selinux-h: improve stub types and add more stub functions
29805         * lib/se-selinux.in.h: Change security_context_t to a typedef
29806         rather than a define, as it's a pointer type and so is better
29807         as a typedef to avoid issues declaring multiple variables
29808         with the comma operator.  Also add stub for string_to_security_class().
29809         * lib/se-context.in.h: Add stub functions for
29810         context_{type,range,role,user}_get().
29812 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29814         ignore-value: prefer GCC version back through 2.0
29815         The code didn't match the comments, so I did a bit of software
29816         archaeology.  GCC 2.0 seems to support __extension__ and
29817         __typeof__, so fix both code and comments to use 2.0.
29818         * lib/ignore-value.h (ignore_value): Use __extension__ and
29819         __typeof__ for GCC 2.0 through 3.3, too.
29821 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
29823         pty: Activate the signature wrapper of forkpty.
29824         The intended preprocessor macro HAVE_FORKPTY is
29825         never defined, yet `lib/forkpty.c' depends on it.
29827         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
29828         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
29829         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
29831 2013-11-18  Jim Meyering  <meyering@fb.com>
29832         and Paul Eggert  <eggert@cs.ucla.edu>
29834         quotearg: don't attempt to store 1 << 31 into an "int"
29835         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
29836         gcc's new -fsanitize=undefined and running its tests triggered some
29837         new test failures due to undefined behavior, all with this diagnostic:
29838           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
29839             cannot be represented in type int
29840         Rather than shifting "1" left to form a mask, shift the bits right and
29841         simply use "1" as the mask.
29843 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
29845         error: depend on stdio
29846         Problem reported by Nikos Mavrogiannopoulos in
29847         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
29848         * modules/error (Depends-on): Add stdio.
29850 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
29852         * doc/relocatable-maint.texi (Supporting Relocation): Improve
29853         wording.
29854         Reported by Reuben Thomas <rrt@sc3d.org>.
29856 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29858         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
29859         New function and macro, to work around _DARWIN_C_SOURCE problem.
29860         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
29862 2013-11-11  Pádraig Brady  <P@draigBrady.com>
29864         base64: provide a fast path for encoding well sized buffers
29865         Avoid conditionals in the base64 encoding loop,
29866         which was seen to give 60% better throughput.
29867         * lib/base64.c (base64_encode_fast): A new function to be called
29868         when we don't want to NUL terminate, and we have enough space
29869         in the output to encode the given input.
29870         (base64_encode): Call the _fast() version when appropriate.
29871         Also remove a redundant mask with 0x3F on the first encoded byte.
29873 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
29875         extern-inline: port better to OS X 10.9
29876         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
29877         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
29878         OS X 10.9, except for g++ where the bug is still present.
29879         See <http://trac.macports.org/ticket/41033>.
29881 2013-11-08  Eric Blake  <eblake@redhat.com>
29883         fpending: fix regression on DragonFly BSD
29884         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
29885         * lib/fpending.h (__fpending): Don't declare twice.
29886         Reported by GW in
29887         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
29889 2013-11-05  Jim Meyering  <meyering@fb.com>
29891         hash: relax license to LGPLv2+, for libguestfs
29892         * modules/hash (License): Change from GPL to LGPLv2+.
29894 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29896         intprops: port to Oracle Studio c99
29897         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
29898         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
29900 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29902         obstack: pacify HP C
29903         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
29904         warning "conversion from pointer to smaller integer" from HP
29905         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
29906         C89 or later nowadays, so cast to void instead of int.  Privately
29907         reported by H.Merijn Brand.  Also, change header to match glibc's,
29908         to make checking against glibc easier.
29910 2013-10-29  Jim Meyering  <meyering@fb.com>
29912         maint.mk: prefer gpgv2 over gpgv
29913         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
29914         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
29915         Reported by Gary Vaughan.
29917 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29919         isnan: port to VAX
29920         Reported by John Klos for NetBSD-5/VAX in
29921         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
29922         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
29923         (FUNC): Use it.
29925 2013-10-28  Jim Meyering  <meyering@fb.com>
29927         gnulib-tool: protect against CDPATH
29928         * gnulib-tool: Many "cd" built-in functions print a directory name
29929         to stdout when CDPATH is set, e.g.,
29930           $ bash -c 'CDPATH=/; cd tmp'
29931           /tmp
29932         Unset it, when possible.  Prompted by a comment from Bruce Korb.
29934         maint.mk: restore functionality removed by recent change...
29935         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
29936         the context of a shallow-cloned gnulib repository: "git describe"
29937         would fail in such a directory.  However, that change made it so
29938         the reported gnulib revision no longer includes the version number
29939         or a commit count, even when run from a full clone.
29940         * top/maint.mk (gnulib-version): Use the full "git describe"
29941         output when possible, e.g., the form above, rather than the
29942         abbreviated, no-tag, no-commit-count string, and fall back to
29943         using a 10-byte hash, rather than the default minimal-length
29944         hash prefix, since while the minimal-length one may be fine today,
29945         it is likely not to be unique for very long.
29947 2013-10-26  Jim Meyering  <meyering@fb.com>
29949         maint.mk: fix "release" target to build _version
29950         This fixes a bug in README-release whereby following the outlined
29951         steps, one would publish a tarball whose programs would report
29952         --version output not consistent with the package version number.
29953         This bug caused grep-2.15 to produce a grep program whose
29954         --version option made it print 2.14.56-1e3d rather than 2.15.
29955         * top/maint.mk (release): Making this target build "_version"
29956         ensures that the new version number is reflected in configure.
29958 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
29960         install-reloc: Support multi-binary installation.
29961         * build-aux/install-reloc: Support installing multiple programs in
29962         one invocation, as done by Automake starting with commit
29963         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
29964         Haible <bruno@clisp.org>, archived at
29965         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
29966         Reported by Sylvain <beuc@gnu.org>.
29968 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29970         selinux-h: Really build without selinux when library is missing.
29971         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
29972         continue without selinux, as already told in the warning message.
29974 2013-10-21  Jim Meyering  <meyering@fb.com>
29976         regex: also remove dependency on HAVE_WCSCOLL
29977         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
29979 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
29981         xfreopen: Fix typo. s/frepoen/freopen/
29982         * lib/xfreopen.c: Fix description.
29983         * modules/xfreopen: Likewise.
29985 2013-10-21  Jim Meyering  <meyering@fb.com>
29987         regex: don't depend on wcscoll
29988         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
29989         It is no longer used.
29991 2013-10-20  Jim Meyering  <meyering@fb.com>
29993         error: add the printf attribute to a static function
29994         * lib/error.c (error_tail): Add the printf attribute, to placate
29995         gcc's -Werror=suggest-attribute=format option.
29997 2013-09-30  Jim Meyering  <meyering@fb.com>
29999         fpending, obstack, strerror-override: use pure+const function attrs
30000         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30001         * lib/obstack.c (_obstack_allocated_p): Likewise.
30002         * lib/obstack.h (_obstack_memory_used): Likewise.
30003         (_obstack_memory_used): Likewise.
30004         * lib/strerror-override.h (strerror_override): Declare with
30005         the "const" attribute.
30007 2013-10-18  Eric Blake  <eblake@redhat.com>
30009         extern-inline: make safe for -Wundef usage
30010         Reported by Vladimir 'phcoder' Serbinenko in
30011         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30012         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30014 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30016         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30017         Problem reported by Daniel Richard G. in
30018         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30019         * doc/posix-functions/mkfifo.texi (mkfifo):
30020         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30021         * doc/posix-functions/mknod.texi (mknod):
30022         * doc/posix-functions/mknodat.texi (mknodat):
30023         Document the HP-UX 11.11 bug.
30024         * tests/test-mkfifo.h (test_mkfifo):
30025         Allow the HP-UX 11.11 bug.
30027 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30029         acl: allow cross-compilation to Gentoo
30030         Problem reported by Gabriel Marcano in
30031         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30032         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30033         test only whether it links.
30035 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30037         mgetgroups: remove dependency on realloc-gnu
30038         The dependency violates the comment in realloc-gnu, which
30039         says that tests can't depend on realloc-gnu; some tests depend
30040         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30041         Problem reported by Daniel Richard G. in
30042         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30043         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30044         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30045         not realloc-gnu.
30047 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30049         regex-tests: port to HP-UX 11.11
30050         Problem reported by Daniel Richard G. in
30051         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30052         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30054 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30056         verify: document some 'assume' pitfalls
30057         * doc/verify.texi (Compile-time Assertions):
30058         Mention that 'assume (E)' can sometimes slow things down.
30059         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30061 2013-10-10  Eric Blake  <eblake@redhat.com>
30063         strtoumax: fix typo in previous commit.
30064         * modules/strtoumax (Depends-on): Fix typo.
30065         * modules/strtoimax (Depends-on): Likewise.
30067 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30069         strtoumax: port to Solaris 8
30070         This problem was introduced in the recent HP-UX patch.
30071         Reported by Tom G. Christensen in
30072         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30073         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30074         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30076 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30078         strtoimax, strtoumax: port to HP-UX 11.11
30079         Problem reported by Daniel Richard G. in
30080         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30081         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30082         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30083         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30084         REPLACE_STRTOUMAX.
30085         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30086         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30087         Replace the function if defined as a macro but not as a function.
30088         * modules/inttypes-incomplete (inttypes.h): Substitute
30089         REPLACE_STRTOUMAX.
30090         * modules/strtoumax (configure.ac): Replace strtoumax if
30091         REPLACE_STRTOUMAX.
30093 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30095         strtoimax: port to HP-UX 11.11
30096         Problem reported by Daniel Richard G.
30097         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30098         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30099         they might clash with inttypes.h.
30101 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30103         New module 'count-trailing-zeros'.
30104         * MODULES.html.sh: Mention it.
30105         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30106         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30107         * modules/count-trailing-zeros-tests:
30108         * tests/test-count-trailing-zeros.c:
30109         New files.
30111         count-leading-zeros: port to MSC; support types wider than 64 bits
30112         The ideas behind the MSC port are stolen from Emacs.
30113         * lib/count-leading-zeros.h:
30114         Don't include verify.h: it's no longer needed, as types wider than
30115         64 bits are now supported.
30116         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30117         performance with MSC.  All uses changed.  Do not assume that TYPE
30118         has at most 64 bits.
30119         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30120         All uses changed.  Fold the subtraction from 31 into the table.
30122         count-one-bits: port to MSC; support types wider than 64 bits
30123         The ideas behind the MSC port are stolen from Emacs.
30124         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30125         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30126         Don't include verify.h: it's no longer needed, as types wider than
30127         64 bits are now supported.
30128         (COUNT_ONE_BITS_GENERIC): New macro.
30129         (popcount_supported) [_MSC_VER]: New inline function.
30130         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30131         performance with MSC.  All uses changed.  Do not assume that TYPE
30132         has at most 64 bits.
30133         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30135 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30137         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30138         * lib/mountlist.c (read_file_system_list): fix leak of directory
30139         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30141 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30143         tests: improve diagnostic when an assertion fails
30144         * tests/macros.h (ASSERT): Report the assertion that failed.
30146 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30148         verify: new macro 'assume'
30149         This is taken from Emacs, and should be generally useful.
30150         * doc/verify.texi (assume): Document it.
30151         * lib/verify.h (assume): New macro.
30152         (__has_builtin): Expand to 0 if not defined.
30154 2013-09-26  Eric Blake  <eblake@redhat.com>
30156         dup2, dup3: work around another cygwin crasher
30157         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30158         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30159         * tests/test-dup2.c (main): Likewise.
30160         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30161         * lib/dup3.c (dup3): Likewise.
30162         * doc/posix-functions/dup2.texi (dup2): Document it.
30163         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30165         getdtablesize: work around cygwin issue
30166         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30167         * modules/getdtablesize (configure.ac): Build replacement.
30168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30169         * modules/unistd (Makefile.am): Expose the witness.
30170         * lib/unistd.in.h (getdtablesize): Declare replacement.
30171         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30172         * tests/test-getdtablesize.c (main): Test it.
30173         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30175 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30177         pmccabe2html: escaping of special characters
30178         Escape all '<', '>', and '&' in HTML output.
30179         * build-aux/pmccabe2html (html_fnc): Call gsub()
30180         instead of sub() to capture all '<', '>', and '&'.
30181         Neither of '<' and '>' is special in a regexp,
30182         so first arguments to gsub() are corrected. Also,
30183         in replacement strings, ampersand must be escaped.
30184         Finally, '&' must be handled first, then '<' and '>'.
30186 2013-09-24  Eric Blake  <eblake@redhat.com>
30188         manywarnings: enable nicer gcc warning messages
30189         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30190         some -f options for optimal warnings.
30192 2013-09-21  Jim Meyering  <meyering@fb.com>
30194         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30195         * lib/timespec-add.c (timespec_add): Also replace 999999999
30196         with TIMESPEC_RESOLUTION - 1.
30197         * lib/timespec-sub.c (timespec_sub): Likewise.
30199 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30201         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30202         Problem reported by Dagobert Michelsen via Eric Blake in
30203         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30204         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30205         not AC_COMPILE_IFELSE.
30207 2013-09-23  Eric Blake  <eblake@redhat.com>
30209         configmake: support new --runstatedir option
30210         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30211         even if autoconf was too old to provide the command line option.
30212         * modules/configmake (Makefile.am): Propagate it to .h file.
30214 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30216         ctype, string: depend on extern-inline
30217         This is needed to complete the recent OS X fixes.
30218         Also, fix related documentation as suggested by Eric Blake.
30219         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30220         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30221         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30222         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30223         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30224         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30225         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30226         * doc/posix-functions/toupper.texi:
30227         List the 'ctype' gnulib module.
30228         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30229         * doc/posix-functions/strncpy.texi:
30230         List the 'string' gnulib module.
30231         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30232         Add string.
30233         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30235 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30237         userspec: support optional parameters to parse_user_spec()
30238         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30239         then avoid group processing and treat the full spec as a user.
30240         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30241         be optional params (NULL), in which case they're ignored.
30243 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30245         timespec: new function make_timespec, and new constants
30246         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30247         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30248         (make_timespec): New function.
30249         * lib/dtotimespec.c (dtotimespec):
30250         * lib/timespec-add.c (timespec_add):
30251         * lib/timespec-sub.c (timespec_sub):
30252         * lib/utimens.c (validate_timespec):
30253         * lib/utimensat.c (rpl_utimensat):
30254         Use these new constants and functions.
30256         stdio: OS X port of putc_unlocked + extern inline
30257         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30258         * doc/posix-functions/putc_unlocked.texi:
30259         * doc/posix-functions/putchar_unlocked.texi:
30260         Document this portability problem.
30262         signal: OS X port of sigaddset etc. + extern inline
30263         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30264         (sigismember): #undef on problematic Apple platforms.
30265         * doc/posix-functions/sigaddset.texi:
30266         * doc/posix-functions/sigdelset.texi:
30267         * doc/posix-functions/sigemptyset.texi:
30268         * doc/posix-functions/sigfillset.texi:
30269         * doc/posix-functions/sigismember.texi:
30270         Document this portability problem.
30272         extern-inline: do not always suppress extern inline on OS X
30273         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30274         extern inline on Apple only if the particular compile-time
30275         configuration is known to have the problem.
30276         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30277         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30278         other Gnulib modules.
30280         extern-inline: document fixes for ctype and wctype macros
30281         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30282         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30283         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30284         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30285         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30286         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30287         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30288         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30289         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30290         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30291         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30292         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30293         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30294         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30295         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30296         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30297         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30298         * doc/posix-functions/strncpy.texi:
30299         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30300         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30301         Document that Gnulib fixes portability problems with these
30302         functions on OS X 10.8 and earlier when called from plain inline
30303         or extern inline functions.
30305 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30307         fflush, freadahead, fseeko: Fix for Android
30308         Suggested by Bruno Haible in:
30309         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30310         * lib/stdio-impl.h: Use local __sfileext definition.
30312 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30314         pmccabe2html: Portability to other awk versions.
30315         The functions systime() and strftime() are available
30316         in Gawk only.  Properly close two HTML-tags 'style'
30317         and 'span'.
30318         * build-aux/pmccabe2html (BEGIN): Store timing
30319         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30320         systime() in HTML_COMMENT.
30321         (html_header): Correctly close tag 'style'.
30322         (END): Replace strftime() by CHRONOS_TIME.  Close
30323         tag 'span' correctly, not as 'div'.
30325 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30327         getgroups: statement without effect
30328         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30329         Change equality conditional to expected assignment.
30331 2013-09-09  Eric Blake  <eblake@redhat.com>
30333         glob: fix compilation
30334         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30336 2013-09-07  Eric Blake  <eblake@redhat.com>
30338         glob: fix build for platforms without __THROW
30339         * lib/glob.in.h (__THROW): Add definition again.
30341 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30343         regex-quote: fix buffer access out of bounds
30344         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30345         * lib/regex-quote.c (regex_quote_spec_pcre):
30346         Fix typo that resulted in an out-of-bounds read.
30348 2013-09-04  Eric Blake  <eblake@redhat.com>
30350         glob: avoid -Wattribute warnings on glibc
30351         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30352         __THROWNL, not __THROW, on static functions.
30353         * lib/glob.in.h (__THROW): Adjust...
30354         (__THROWNL): ...accordingly.
30356 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30358         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30359         Suggested by Bruce Korb in:
30360         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30361         * doc/extern-inline.texi (extern inline):
30362         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30363         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30364         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30365         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30366         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30367         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30368         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30369         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30370         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30371         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30372         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30373         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30374         * lib/xtime.h:
30375         Check that _GL_INLINE_HEADER_BEGIN is defined.
30377 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30379         bootstrap: remove the --version requirement from ancillary tools
30380         * build-aux/bootstrap (check_exists): A new refactored function to
30381         determine if a command exists.
30382         (find_tool): Use the new function which does not require the
30383         --version option to be supported.
30384         (check_versions): Use the new function.
30386 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30388         gc: support HMAC-SHA256 and HMAC-SHA512.
30389         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30390         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30391         functions.
30392         (gc_hmac_md5): Use symbolic constant.
30393         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30394         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30395         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30396         * m4/sha256.m4: Protect against empty expansion.
30397         * m4/sha512.m4: Likewise.
30398         * lib/hmac-sha256.c: New file.
30399         * lib/hmac-sha512.c: Likewise.
30400         * m4/gc-hmac-sha256.m4: Likewise.
30401         * m4/gc-hmac-sha512.m4: Likewise.
30402         * m4/gc-sha256.m4: Likewise.
30403         * m4/gc-sha512.m4: Likewise.
30404         * modules/crypto/gc-hmac-sha256: Likewise.
30405         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30406         * modules/crypto/gc-hmac-sha512: Likewise.
30407         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30408         * modules/crypto/hmac-sha256: Likewise.
30409         * modules/crypto/hmac-sha256-tests: Likewise.
30410         * modules/crypto/hmac-sha512: Likewise.
30411         * modules/crypto/hmac-sha512-tests: Likewise.
30412         * tests/test-gc-hmac-sha256.c: Likewise.
30413         * tests/test-gc-hmac-sha512.c: Likewise
30414         * tests/test-hmac-sha256.c: Likewise.
30415         * tests/test-hmac-sha512.c: Likewise
30417 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30419         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30420         of AC_CHECK_DECLS.
30422 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30424         selinux-at: omit unnecessary include
30425         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30426         this source file doesn't use its macros, and subsidiary files that
30427         use the macros already include it.
30429 2013-08-21  Eric Blake  <eblake@redhat.com>
30431         d-ino: avoid false negative on symlink
30432         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30433         Reported by Stephane Chazelas.
30435 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30437         bootstrap: port to OpenBSD sed
30438         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30439         does not interpret `-' as a file argument to mean stdin.
30441 2013-08-15  Eric Blake  <eblake@redhat.com>
30443         warnings: minor optimization
30444         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30446         warnings: check -Wfoo rather than -Wno-foo
30447         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30448         -Wno-, test if the compiler recognizes the positive form instead.
30450 2013-08-15  Karl Berry  <karl@gnu.org>
30452         * config/srclist-update: add option "doclicense" to placate
30453         pulling *.texi files from Emacs.  Write terse usage
30454         documentation at the top.
30456 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30458         xvasprintf-tests: port to GCC with hardening flags
30459         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30460         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30461         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30463 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30465         fpending: port to recent Cygwin change to stdio_ext.h
30466         Reported by LRN in
30467         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30468         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30469         just declare __fpending unless it's a macro.
30470         A duplicate decl shouldn't hurt.
30471         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30472         call compiles and links, instead of separately checking for
30473         decl and lib function.
30474         * modules/fpending (configure-ac):
30475         Adjust to fpending.m4's renaming of shell variable.
30477 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30479         sys_time: port to OpenBSD
30480         * lib/sys_time.in.h: Simply delegate to the system's header
30481         in the BSDish cases as well.  Problem reported by Mike Miller in
30482         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30483         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30484         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30485         wider than time_t.
30487 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30489         bootstrap: support checksum utils having -c but not --status
30490         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30491         Add sha1 to the list of supported checksum utils since it's now
30492         supported through adjustments below.
30493         (update_po_files): Remove the use of --status
30494         in a way that will suppress all error messages, but since this is
30495         only used to minimize updates, it shouldn't cause an issue.
30496         Exit early if there is a problem updating the po file checksums.
30497         (find_tool): Remove the check for --version support as this
30498         is optional as per commit 86186b17.  Don't even check for the
30499         presence of the command as if that is needed, it's supported
30500         through configuring prerequisites in bootstrap.conf.
30501         Prompt that when a tool isn't found, one can define an environment
30502         variable to add to the hardcoded search list.
30504 2013-08-05  Jim Meyering  <meyering@fb.com>
30506         regex: port to non-glibc/lock-using systems
30507         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30508         system with GNULIB_LOCK would fail due to absence of the
30509         included "glthread/lock.h".  This would affect any package
30510         for which the "lock" module is used only by the regex module,
30511         and not explicitly used.
30512         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30513         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30514         Add a dependency on the "lock" module.
30516 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30518         localecharset: make locale_charset thread-safe on Mac OS X
30519         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30520         instead of MB_CUR_MAX.
30522 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30524         gettext: update to version 0.18.3
30525         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30526         require AC_PROG_SED to allow user to specify custom sed command when
30527         generating en@quot PO file.
30529 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30531         bootstrap: use correct source when copying build-aux files
30532         * build-aux/bootstrap (gnulib_extra_files): This variable is
30533         relative to upstream gnulib layout, not downstream.
30535 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30537         tmpdir: fix bug in VMS port
30538         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30539         See Steven M. Schweda in
30540         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30542 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30544         tmpdir: port to VMS, to // != /, and to long dirs
30545         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30546         __secure_getenv, so that we're more like the glibc version.
30547         All uses changed.
30548         (path_search): Don't put slash after directory if __VMS.
30549         Problem reported by Steven M. Schweda in
30550         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30551         Simplify code to add slash; no need for a loop.
30552         Do not remove trailing slash from "//".
30553         Do not assume dlen <= INT_MAX.
30555 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30557         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30558         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30559         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30560         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30562         accept4, dup3, pipe2: port to Cygwin
30563         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30564         * lib/accept4.c (accept4) [O_BINARY]:
30565         * lib/dup3.c (dup3) [O_BINARY]:
30566         * lib/pipe2.c (pipe2) [O_BINARY]:
30567         Use set_binary_mode, not setmode.
30568         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30569         * modules/binary-io (Depends-on): Remove module indicator.
30570         These last two bits undo the previous change to pipe2 and binary-io.
30572 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30574         mountlist: add support for deallocating returned list entries
30575         * lib/mountlist.c (free_mount_entry): A new exported function
30576         to deallocate a mount list entry.
30577         (read_file_system_list): Refactor to use the new deallocation function.
30578         Suggested by Anton Ovchinnikov.
30580 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30582         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30583         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30584         * lib/stdalign.in.h (_Alignas, _Alignof):
30585         Port to FreeBSD 9.1, and to C11 and C++11.
30586         (_Alignas): Also support ICC.
30587         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30588         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30590 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30592         fnmatch: don't goto over declaration
30593         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30594         undefined behavior for goto over a declaration.
30595         Problem reported by Charlie Brown in
30596         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30598         pipe2: decouple from binary-io a bit
30599         This is for Emacs, which needs pipe2 but not binary-io.
30600         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30601         * modules/binary-io (Depends-on): Add module indicator.
30603 2013-07-03  Eric Blake  <eblake@redhat.com>
30605         mgetgroups: relax license to LGPLv2+
30606         * modules/getugroups (License): Change from GPLv3+.
30607         * modules/mgetgroups (License): Likewise.
30608         * modules/getgroups (License): Change from LGPLv3+.
30610         xalloc-oversized: relax license to LGPLv2+
30611         * modules/xalloc-oversized (License): Change from GPLv3+.
30613         nproc: relax license to LGPLv2+
30614         * modules/nproc (License): Change from LGPLv3+.
30616         bootstrap: honor --no-git
30617         * build-aux/bootstrap: Don't even try to use git when user is
30618         pointing to a static checkout.
30620 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30622         ignore-value: port to gcc -pedantic
30623         * lib/ignore-value.h (ignore_value):
30624         Port to gcc -pedantic, by using __extension__.
30625         Reindent as per usual gnulib style nowadays.
30626         Simplify GCC version check.
30628 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30630         extern-inline: port to gcc -std=c89
30631         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30632         Do not use __gnu_inline__ if pedantic and pre-C99.
30634 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30636         doc: document extern-inline
30637         * doc/extern-inline.texi: New file.
30638         * doc/gnulib.texi (alloca-opt): Include it.
30639         * m4/extern-inline.m4: Move some comments to documentation,
30640         and others closer to what they describe.
30642         doc: chatter less
30643         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30644         (updated-stamp): Use it.  This causes 'make' to output just
30645         one file name rather than zillions.
30647         fflush, fseeko: port to musl cross-compiles
30648         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30649         on some implementation that (1) is not known to be buggy,
30650         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30651         cross-compiled to so we can't easily check for lack of
30652         conformance.  This is for cross-compiling to musl.
30653         Reported by Rich Felker in
30654         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30655         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30656         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30657         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30658         Adjust to above change.
30659         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30660         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30661         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30662         known not to work, or unknown.
30664 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30666         msvc-inval: port to mingw-w64
30667         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30668         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30669         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30671 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30673         getcwd-lgpl: port to Tru64
30674         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30675         Problem reported by Steven M. Schweda in
30676         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30678         tests: port large-fd POSIX spawn tests to OS X
30679         Problem reported by Daiki Ueno in
30680         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30681         * tests/test-posix_spawn_file_actions_addclose.c:
30682         * tests/test-posix_spawn_file_actions_adddup2.c:
30683         * tests/test-posix_spawn_file_actions_addopen.c:
30684         Include <limits.h>, for OPEN_MAX, if available.
30685         (big_fd): New static function.
30686         (main): Use it.
30688 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30690         tests/nap.h: use an adaptive delay to avoid ctime update issues
30691         The recent change in nap.h (5191133e) decreased the probability of lost
30692         races to about a third, however such problems could still be observed
30693         in virtual machines and openSUSE's OBS.
30694         Before, nap() detected the needed time once empirically and then used
30695         that delay (together with a small correction multiplier) in further
30696         calls.  This problem has been reported and discussed several times,
30697         including guesses about possible kernel issues:
30698         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30699         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30700         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30701         http://bugs.gnu.org/12820
30702         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30703         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30704         Now, nap() avoids the race alltogether by verifying on a reference
30705         file whether a timestamp difference has happened.
30706         * tests/nap.h (nap_fd): Define file descriptor variable for the
30707         witness file.
30708         (nap_works): Change return value to bool.  Change passing
30709         the old file's status by value instead of by reference as this function
30710         does no longer update that timestamp; rename the function argument from
30711         st to old_st.  Remove the local variables cdiff and mdiff because that
30712         function now returns true/false instead of the precise delay.
30713         (guess_delay): Remove function.
30714         (clear_tmp_file): Add new function to close and unlink the witness file.
30715         (nap): Instead of re-using the delay which has been calculated during
30716         the first call, avoid the race by actually verifying that a timestamp
30717         difference can be observed on the current file system.  Use an adaptive
30718         approach for the delay to minimize execution time.  Assert that the
30719         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
30720         = 2^31 - 1 = 2.1s.
30721         Use atexit to call clear_tmp_file when the process terminates.
30723 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30725         sig2str: port to C++
30726         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
30727         Reported by Daniel J Sebald in
30728         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
30730 2013-05-30  Eric Blake  <eblake@redhat.com>
30732         docs: mention cygwin shortcoming in <sys/un.h>
30733         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
30735         vasnprintf: silence mingw compiler warning
30736         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
30738 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30740         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
30741         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
30742         This fixes a porting bug I recently reintroduced in regex, and
30743         some other instances that I discovered while testing the fix.
30744         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
30745         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
30746         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
30747         with an empty argument if this is a pedantic pre-C99 GCC.
30748         * lib/verify.h: Do not use _Static_assert if this is a pedantic
30749         pre-C11 GCC.
30751         regex: adapt to locking regime instead of depending on pthread
30752         Instead of depending on pthread, adapt to whatever thread
30753         modules are in use.  Problem reported by Ludovic Courtès in
30754         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
30755         and by Mats Erik Andersson in
30756         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
30757         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30758         Support either the 'lock' module, or the 'pthread' module, or
30759         no module.
30760         (lock_lock, lock_unlock): New macros.
30761         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
30762         * modules/lock, modules/pthread (configure.ac): Add module indicator.
30763         * modules/regex (Depends-on): Remove pthread.
30765 2013-05-22  Eric Blake  <eblake@redhat.com>
30767         getgroups: document portability issues
30768         * doc/glibc-functions/initgroups.texi (initgroups): Mention
30769         multithread safety.
30770         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
30771         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
30772         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
30773         getugroups.
30774         * doc/posix-functions/getgroups.texi (getgroups): Mention
30775         multithread safety and mgetgroups.
30777 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
30779         test-lchown, test-chown: also skip test if chown fails with EPERM
30780         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
30781         skip this test, to handle FAT file systems.
30782         * tests/test-chown.h (test_chown): Likewise.
30784 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30786         regex: fix dfa race in multithreaded uses
30787         Problem reported by Ludovic Courtès in
30788         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
30789         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30790         New macros.  All uses of __libc_lock_define, __libc_lock_init
30791         changed to use the first two of these.
30792         (__libc_lock_lock, __libc_lock_unlock): New macros, for
30793         non-glibc platforms.
30794         (struct re_dfa_t): Define the lock unconditionally.
30795         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
30796         '#ifdef _LIBC"s.
30797         * modules/regex (Depends-on): Add pthread, if we use the
30798         included regex.
30800         * lib/regcomp.c: Do actions that are not needed for glibc,
30801         but may be needed elsewhere.
30802         (regfree, re_compile_internal): Destroy the lock.
30803         (re_compile_internal): Check for lock-initialization failure.
30805         malloca: port to compilers that reject size-zero arrays
30806         This fixes a bug introduced in my previous patch.
30807         * lib/malloca.c (struct preliminary_header): Use an int
30808         rather than a character array of size int; that's simpler.
30809         (struct header): Remove, replacing with ...
30810         (union header): New type.  This avoids the need for declaring a
30811         character array of size zero, which is not allowed on some platforms.
30812         All uses changed.
30814 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30816         parse-datetime, tests: don't use "string" + int
30817         Recent versions of 'clang' complain about C source code that
30818         uses expressions of the form '"string literal" + integer',
30819         I guess on the theory that it's confusing for readers who are
30820         used to C++.  On those grounds I suppose it's OK to make this
30821         minor style change.
30822         * lib/parse-datetime.y (parse_datetime):
30823         * tests/test-fchdir.c (main):
30824         * tests/test-snprintf-posix.h (test_function):
30825         * tests/test-snprintf.c (main):
30826         * tests/test-vasnprintf-posix.c (test_function):
30827         * tests/test-vasnprintf.c (test_function):
30828         * tests/test-vsnprintf.c (main):
30829         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
30830         Rewrite '"str" + E' to '&"str"[E]'.
30832 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30834         argmatch: port to C++
30835         * lib/argmatch.h [__cplusplus]: Add extern "C".
30837         argp: typo fix
30838         * lib/argp-help.c: Typo in comment.
30840 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30842         manywarnings: update for GCC 4.8.0
30843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
30844         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
30845         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
30846         -Wmissing-noreturn, as they are duplicates of other warnings.
30847         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
30848         was documented to be flaky in earlier versions of GCC.
30850         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
30851         * tests/test-spawn.c (main):
30852         * tests/test-sys_socket.c (main):
30853         * tests/test-sys_wait.c (main):
30854         Don't have a switch value that isn't covered by a case.
30856         getaddrinfo-tests: port --enable-gcc-warnings to clang
30857         * tests/test-getaddrinfo.c (simple):
30858         Avoid casts from looser to stricter-aligned pointers.
30860         thread: port --enable-gcc-warnings to clang
30861         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
30862         Include <signal.h>, to pacify a warning about pthread_sigmask.
30864         stdio: use __REDIRECT for fwrite, fwrite_unlocked
30865         * lib/stdio.in.h (fwrite):
30866         When working around bug 11959, use __REDIRECT rather than '#define
30867         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
30868         fix the -Wunused-value issue with clang, and it works with GCC too.
30869         Problem with targeting reported by Eric Blake in
30870         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
30871         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
30872         debugging the fwrite issue.
30874         stdio: port --enable-gcc-warnings to clang
30875         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
30876         since the GCC workaround for fwrite does not pacify clang.
30878         sig2str: port --enable-gcc-warnings to clang
30879         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
30881         obstack: port --enable-gcc-warnings to clang
30882         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
30883         Avoid casts from looser to stricter-aligned pointers.
30885         memchr2: port --enable-gcc-warnings to clang
30886         * lib/memchr2.c (memchr2):
30887         Avoid casts from looser to stricter-aligned pointers.
30889         mbsstr: port --enable-gcc-warnings to clang
30890         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
30891         Avoid casts from looser to stricter-aligned pointers.
30893         malloca: port --enable-gcc-warnings to clang
30894         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
30895         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
30897         inttostr: port --enable-gcc-warnings to clang
30898         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
30900         warnings: port to clang
30901         Problem reported by Daniel P. Berrange via Eric Blake in
30902         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
30903         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
30904         (gl_WARN_ADD): Use it.
30906 2013-05-11  Jim Meyering  <meyering@fb.com>
30908         quotearg: do not read beyond end of buffer
30909         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
30910         end of an ARG for which no length was specified.  With an N-byte
30911         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
30912         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
30913         via coreutils' misc/sort-debug-keys.sh test and detected by running
30914         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
30915         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
30916         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
30917         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
30918         characters correctly."
30920 2013-05-11  Daiki Ueno  <ueno@gnu.org>
30922         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
30923         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
30924         compilation target is Mac OS X 10.6.
30925         Problem reported by parafin and Andoni Morales in
30926         <http://savannah.gnu.org/bugs/?37844> and
30927         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
30929 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30931         mkdir-p: remove assumptions about umask and mode
30932         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
30933         umask is 0, or that MODE is a subset of MODE_BITS.
30935 2013-05-10  Eric Blake  <eblake@redhat.com>
30937         maint.mk: catch more abuse of HAVE_DECL in syntax-check
30938         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
30940 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
30942         deps: require Automake >= 1.9.6 in generated Makefile fragments
30944         That is the same minimal version required in the DEPENDENCIES file.
30945         Moreover, the old code generated a requirement of Automake >= 1.5,
30946         and that is an insanely outdated version.
30948         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
30949         * tests/havelib/rpathlx/Makefile.am: Likewise.
30950         * tests/havelib/rpathly/Makefile.am: Likewise.
30951         * tests/havelib/rpathlyx/Makefile.am: Likewise.
30952         * tests/havelib/rpathlz/Makefile.am: Likewise.
30953         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
30954         * tests/havelib/rpathx/Makefile.am: Likewise.
30955         * tests/havelib/rpathy/Makefile.am: Likewise.
30956         * tests/havelib/rpathz/Makefile.am: Likewise.
30958 2013-05-08  Eric Blake  <eblake@redhat.com>
30960         bootstrap: AC_INIT may have more than four parameters
30961         * build-aux/bootstrap (extract_package_name): Correctly extract
30962         non-empty tarname field.  Avoid range in regex.
30963         Based on a report by Sami Kerola <kerolasa@iki.fi>.
30965 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
30967         qacl: port to MS-Windows port of GNU Emacs
30968         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
30969         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
30970         port of GNU Emacs.  Problem reported by Eli Zaretskii in
30971         <http://bugs.gnu.org/14295#14>.
30973 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
30975         acl: include quote.h
30976         * lib/copy-acl.c: Include quote.h.
30977         * lib/set-acl.c: Likewise.
30979 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
30981         fchownat, renameat, unlinkat: update statat dependencies
30982         These modules use statat and lstatat, not fstatat; so depend on
30983         the statat module, which was split out recently from fstatat.
30984         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
30985         * modules/renameat: Likewise.  Also delete fstat.
30986         URL: http://bugs.gentoo.org/468790
30988 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
30990         Assume gnulib is checked out from Git, not CVS
30992         In fact, access to the gnulib repository through CVS has been
30993         disabled, or more precisely, got broken and was never restored; see:
30994         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
30996         Note that support for CVS is not removed completely and unthinkingly
30997         by this change: only support for CVS checkouts of gnulib itself is
30998         removed.  For example, the 'bootstrap' script still cater to .cvsingore
30999         files and CVS directories, for the benefit of those poor gnulib clients
31000         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31002         * gnulib-tool: Simplify accordingly.
31003         * posix-modules: Likewise.
31004         * MODULES.html.sh: Likewise.
31005         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31006         repository.
31007         * doc/gnulib-intro.texi: Likewise.
31008         * doc/gnulib-readme.texi: Likewise.
31009         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31010         sample '.gitignore' file rather than a sample '.cvsignore'.
31011         * NEWS: Update.
31012         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31013         to "CVS Autoconf" rather than "git Autoconf".
31015 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31017         utimensat-tests, etc.: try to fix some races
31018         Problem reported by Bernhard Voelker in
31019         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31020         I don't know whether this patch fixes that race condition, but it
31021         fixes *some* race conditions, so it should be a win.
31022         * modules/chown-tests (Depends-on):
31023         * modules/fchownat-tests (Depends-on):
31024         * modules/fdutimensat-tests (Depends-on):
31025         * modules/futimens-tests (Depends-on):
31026         * modules/lchown-tests (Depends-on):
31027         * modules/stat-time-tests (Depends-on):
31028         * modules/utimens-tests (Depends-on):
31029         * modules/utimensat-tests (Depends-on):
31030         Depend on nanosleep, not usleep.
31031         * modules/chown-tests (test_chown_LDADD):
31032         * modules/lchown-tests (test_lchown_LDADD):
31033         * modules/stat-time-tests (test_stat_time_LDADD):
31034         New macro.
31035         * modules/fchownat-tests (test_fchownat_LDADD):
31036         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31037         * modules/futimens-tests (test_futimens_LDADD):
31038         * modules/utimens-tests (test_utimens_LDADD):
31039         * modules/utimensat-tests (test_utimensat_LDADD):
31040         Add $(LIB_NANOSLEEP).
31041         * modules/stat-time-tests (Files): Add tests/nap.h.
31042         * tests/nap.h: Include <limits.h>, for INT_MAX.
31043         (lt_mtime): Remove.
31044         (diff_timespec): New function.
31045         (get_stat): Rename from get_mtime.  All callers changed.
31046         (nap_works): Determine the needed delay by inspecting the
31047         file system's timestamp jumps; this should be more reliable.
31048         Look at both mtime and ctime, and take the maximum of the two jumps.
31049         (nap_works, guess_delay):
31050         Return a nanosecond count, not a microsecond count.
31051         All callers changed.
31052         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31053         failure.
31054         (nap): Multiply the guess by 1.125, to accommodate the case where
31055         the file system's clock is a bit slower than nanosleep's clock.
31056         * tests/test-stat-time.c (BASE): New macro.
31057         Include nap.h.
31058         (nap): Remove; nap.h now defines this.  This removes a duplicate
31059         implementation of 'nap'.
31061         utimens, utimensat: work around Solaris UTIME_OMIT bug
31062         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31063         Linux kernel 2.6.32 does.  Work around it in the same way.
31064         * doc/posix-functions/futimens.texi (futimens):
31065         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31066         * lib/utimens.c (fdutimens, lutimens):
31067         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31069         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31070         Formerly, it was your responsibility to do this for all Makefile.ams
31071         other than Gnulib's.  Now it's your responsibility to do it for
31072         Gnulib's Makefile.am, too.
31073         * NEWS: Document this.
31074         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31076         acl: include errno.h to get errno
31077         Reported by Daiki Ueno in
31078         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31079         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31081 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31083         tests: don't assume getdtablesize () <= 10000000
31084         * modules/cloexec-tests:
31085         * modules/dup2-tests:
31086         * modules/dup3-tests:
31087         * modules/nonblocking-tests:
31088         * modules/posix_spawn_file_actions_addclose-tests:
31089         * modules/posix_spawn_file_actions_adddup2-tests:
31090         * modules/posix_spawn_file_actions_addopen-tests:
31091         * modules/unistd-safer-tests:
31092         Depend on the getdtablesize module.
31093         * tests/test-cloexec.c:
31094         * tests/test-dup-safer.c:
31095         * tests/test-dup2.c:
31096         * tests/test-dup3.c:
31097         * tests/test-fcntl.c:
31098         * tests/test-nonblocking.c:
31099         * tests/test-posix_spawn_file_actions_addclose.c:
31100         * tests/test-posix_spawn_file_actions_adddup2.c:
31101         * tests/test-posix_spawn_file_actions_addopen.c:
31102         Don't assume getdtablesize () <= 10000000.
31104 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31106         extern-inline: work around bug in Sun c99
31107         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31108         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31110 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31112         qacl: new module, broken out from the acl module
31113         This is for GNU Emacs, which wants the acl functions but does
31114         not want 'error' invoked when they fail.
31115         * lib/acl-internal.h: Do not include error.h, quote.h.
31116         (ENOSYS, ENOTSUP): Remove; no longer needed.
31117         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31118         * lib/acl.h: Include <stdbool.h>.
31119         (acl_errno_valid): New function.
31120         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31121         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31122         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31123         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31124         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31125         * lib/file-has-acl.c (file_has_acl):
31126         * lib/qcopy-acl.c (qcopy_acl):
31127         * lib/qset-acl.c (qset_acl):
31128         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31129         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31130         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31131         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31132         Add lib/set-acl.c.
31133         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31134         Add qacl.
31135         (configure.ac): Move gl_FUNC_ACL to qacl module.
31136         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31137         Rename set-mode-acl.c to set-acl.c.
31138         * lib/acl-errno-valid.c: New file.
31139         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31140         copy_acl function remains in copy-acl.c.
31141         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31142         (_): Remove; not needed.
31143         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31144         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31145         * modules/qacl: New file, moved from the old modules/acl.
31146         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31147         Remove set-mode-acl.c, copy-acl.c.
31148         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31150         alignof, intprops, malloca: port better to IBM's C compiler
31151         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31152         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31153         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31155 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31157         wctype-h: fix gettext link error on mingw
31158         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31159         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31160         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31161         rpl_towupper and rpl_towupper.
31163 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31165         regex-tests, regex: allow glibc re_search behavior
31166         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31167         re_search input data to make the multi-character collating element
31168         in it clearly visible, and treat re_search return code 0 as valid.
31169         * m4/regex.m4 (gl_REGEX): Likewise.
31171 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31173         stdalign: doc fix
31174         * doc/posix-headers/stdalign.texi (stdalign.h):
31175         Gnulib doesn't support '_Alignof expr'.
31177 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31179         stdalign: port to stricter ISO C11
31180         ISO C11 says that _Alignof's operand must be a parenthesized type.
31181         Problem reported by Eli Zaretskii in
31182         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31183         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31184         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31186 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31188         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31189         Problem reported by Marco Atzeri in
31190         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31191         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31192         Simply delegate to the system <sys/select.h> in this case too.
31193         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31194         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31195         be needed on Solaris either.
31196         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31197         Simply delegate to the system <sys/time.h> in this case.
31199 2013-03-19  Karl Berry  <karl@gnu.org>
31201         * build-aux/gnupload: check for erroneous (with gnupload) use of
31202         ftp-upload.gnu.org, tweak help.
31204 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31206         copy-file, rpmatch: fix problems found by cppcheck
31207         Reported by Arno Onken in
31208         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31209         * lib/rpmatch.c (try): Fix memory leak.
31210         * lib/copy-file.c: Include "ignore-value.h".
31211         (qcopy_file_preserving): Ignore chown value.
31212         * modules/copy-file (Depends-on): Add ignore-value.
31214 2013-01-27  Jim Meyering  <jim@meyering.net>
31216         prefix-gnulib-mk: give better diagnostics
31217         * build-aux/prefix-gnulib-mk: Don't just "die".
31218         Give better diagnostics upon failure.
31220 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31222         putenv: port to Solaris 10
31223         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31224         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31225         is not what is wanted here.
31226         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31227         declaration, not for its existence.
31229 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31231         mktime: fix configure typo
31232         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31234 2013-03-12  Eric Blake  <eblake@redhat.com>
31236         regex-tests: skip UTF-8 test on mingw
31237         * modules/regex-tests (Depends-on): Add localcharset.
31238         * tests/test-regex.c (main): Use it to skip test on mingw.
31240 2013-03-11  Eric Blake  <eblake@redhat.com>
31242         tests: make it easier to bypass alarm time in debugger
31243         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31244         * tests/test-memmem.c (main): Likewise.
31245         * tests/test-passfd.c (main): Likewise.
31246         * tests/test-ptsname.c (main): Likewise.
31247         * tests/test-ptsname_r.c (main): Likewise.
31248         * tests/test-strcasestr.c (main): Likewise.
31249         * tests/test-strstr.c (main): Likewise.
31251         regex: port to mingw's recent addition of undeclared alarm
31252         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31253         exists but still doesn't work in newer mingw.
31254         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31255         not existence.  Ensure SIGALRM is not trapped.
31256         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31257         * m4/regex.m4 (gl_REGEX): Likewise.
31258         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31259         * tests/test-regex.c (main): Use correct probe for alarm.
31261         putenv: avoid compilation warning on mingw
31262         * lib/putenv.c (_unsetenv): Protect variable declaration.
31263         (putenv): Fix indentation.
31265 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31267         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31268         * lib/unistd.in.h: be careful not to include un-needed system
31269         stdlib.h from here, because that prevents gnulib stdlib.h from
31270         defining rpl_strtod correctly.
31272 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31274         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31275         changesets, but for the 'precision 0' test.
31276         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31277         round-to-even, since POSIX says rounding is implementation-defined
31278         and OS X 10.8.2 rounds 1.51 to 1 here.
31280         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31281         changeset.
31282         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31283         round-to-even, since POSIX says rounding is implementation-defined
31284         and OS X 10.8.2 rounds 1.5 to 1 here.
31286 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31288         vasnprintf-posix-tests: allow rounding 1.5 to 1
31289         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31290         round-to-even, since POSIX says rounding is implementation-defined
31291         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31292         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31294         bootstrap: port to FreeBSD
31295         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31296         that treat '--' differently.  Reported by Mats Erik Andersson in
31297         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31299 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31301         regex: rename remaining __attribute calls to __attribute__.
31302         2012-02-25 changed definition of __attribute, but left some uses
31303         unchanged, preventing compilation of regex module on most non-gcc
31304         environments.
31305         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31306         (lookup_collation_sequence_value, build_range_exp)
31307         (build_collating_symbol): Set attributes with newly renamed
31308         __attribute__ decorator.
31309         * lib/regex_internal.c (re_string_peek_byte_case)
31310         (re_node_set_compare, re_node_set_contains): Likewise.
31311         * lib/regexec.c (acquire_init_state_context): Likewise.
31313 2013-03-06  Bruno Haible  <bruno@clisp.org>
31315         execute: Revert last change, but use a different condition.
31316         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31317         on Windows.
31319 2013-03-05  Eric Blake  <eblake@redhat.com>
31321         execute: drop dead code
31322         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31324 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31326         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31327         * m4/non-recursive-gnulib-prefix-hack.m4
31328         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31329         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31330         <http://bugs.gnu.org/10305#237>.
31332 2013-03-04  Eric Blake  <eblake@redhat.com>
31334         test-getsockopt: avoid compiler warning
31335         * tests/test-getsockopt.c (includes): Ensure close is declared.
31337 2013-03-02  Bruno Haible  <bruno@clisp.org>
31339         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31340         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31342 2013-03-02  Bruno Haible  <bruno@clisp.org>
31344         gettext: Update to version 0.18.2.
31345         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31346         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31347                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31349 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31351         regex: merge patches from libc
31353         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31354         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31355         All uses changed.
31356         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31357         (re_string_wchar_at, re_string_elem_size_at):
31358         Mark function as possibly unused.
31360         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31361         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31362         elements compare against the byte sequence of it, not its name.
31364 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31366         putenv: port better to native Windows
31367         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31368         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31369         (_unsetenv): Use _putenv if available.
31370         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31371         a bit less likely to cause damage.
31372         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31373         Fix the wrong value with SetEnvironmentVariable.
31374         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31375         code better.
31377 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31379         regex: ignore old-style-definition warnings
31380         * lib/regex.c: Add pragma to ignore these warnings.
31381         Problem reported for GNU tar by Pavel Raiskup.
31383 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31385         getcwd: support coreutils better
31386         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31387         but this might not be correct in coreutils, which disables
31388         the raw decl checks.  Problem reported by Nagendra in
31389         <http://bugs.gnu.org/10305#192>.
31390         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31391         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31392         Test the getcwd function, not any macro, since getcwd.c wants the
31393         function.
31394         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31395         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31396         compile, as might happen if there's a macro but no function.
31398         strtod: support coreutils better
31399         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31400         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31401         disables the raw decl checks.  This assumes there is an underlying
31402         strtod, but that's a safe assumption these days.
31403         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31405         mountlist: port to HP NonStop
31406         Reported by Joachim Schmitz in
31407         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31408         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31409         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31411 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31413         extern-inline: avoid compilation error with HP-UX cc
31414         Reported by Richard Lloyd in
31415         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31416         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31417         Suppress extern inline with HP-UX cc.  This should be safe,
31418         though it may hurt performance.  Perhaps someone with some HP-UX
31419         experience can come up with a higher-performance fix.
31421 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31423         putenv: fix heap corruption with mixed putenv/_putenv
31424         Problem reported by Michael Goffioul in
31425         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31426         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31427         Rely on _putenv to allocate the new environment.
31428         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31429         * modules/putenv (configure.ac): Use it.
31431 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31433         unsetenv etc.: port to Solaris 11 + GNU Emacs
31434         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31435         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31436         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31437         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31438         idea but is too painful to fix right now), and without this gnulib
31439         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31440         compiling unsetenv.c on Solaris 11.  Fix the problem for
31441         unsetenv.c, and fix other similar occurrences.
31443 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31445         secure_getenv: fix C++ declaration typo
31446         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31447         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31448         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31450 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31452         careadlinkat: stop exporting careadlinkatcwd
31453         Only Emacs used it directly, and Emacs no longer needs it.
31454         * NEWS: Document this simplification.
31455         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31456         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31457         for readlink.
31458         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31459         Don't include stdlib.h; no longer needed.
31460         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31461         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31462         * modules/areadlink (Depends-on): Add readlink.
31463         (Maintainer): Add self.
31464         * modules/careadlinkat (Depends-on): Remove readlink.
31466         extensions: port better to HP-UX
31467         This is merged from git Autoconf.
31468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31469         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31470         so that it's compatible with the value used when compiling.
31472         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31473         Problem reported by Mats Erik Andersson in
31474         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31475         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31476         openpty function exists, not merely when we intend to replace it.
31477         This corrects the 2013-01-31 patch, which mistakenly defined
31478         HAVE_OPENPTY even on hosts that lacked it.
31480 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31482         secure_getenv: fix include typo
31483         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31485         secure_getenv: port better to FreeBSD and Solaris
31486         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31487         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31488         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31489         This works better on BSDish platforms.
31490         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31491         Test for issetugid if __secure_getenv is missing.
31493 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31495         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31496         Some of these changes are merged in from git Autoconf.
31497         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31498         When deciding whether to define _XOPEN_SOURCE, inspect the
31499         preprocessor macro __hpux instead of the more-heavyweight
31500         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31501         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31502         as the key for __EXTENSIONS__.
31504         unistd: avoid namespace pollution on non-glibc systems
31505         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31506         This avoids namespace pollution on non-glibc systems, by causing
31507         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31508         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31509         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31511 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31513         tmpdir: use secure_getenv
31514         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31515         Define to secure_getenv, not getenv.
31516         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31517         as that's now secure_getenv's job.
31518         * modules/tmpdir (Depends-on): Add secure_getenv.
31520         tempname: use secure_getenv
31521         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31522         Define to secure_getenv, not getenv.
31523         * modules/tempname (Depends-on):
31524         Add secure_getenv.
31526         secure_getenv: new module
31527         * MODULES.html.sh (Extra functions based on ANSI C 89):
31528         Add secure_getenv.
31529         * doc/glibc-functions/secure_getenv.texi: New file.
31530         * doc/gnulib.texi: Include it.
31531         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31532         New files.
31533         * lib/stdlib.in.h (secure_getenv): New decl.
31534         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31535         * modules/stdlib (stdlib.h):
31536         Add secure_getenv checks.
31538 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31540         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31541         Reported for OS X 10.8.2 by Assaf Gordon in
31542         <http://bugs.gnu.org/13516>.
31543         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31544         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31545         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31546         so that they can be kept in sync more easily.  Avoid PATH_MAX
31547         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31548         mkdir or chdir failure.
31549         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31550         lib/getcwd.c.
31551         (test_abort_bug): Do not test for the deep directory bug unless we
31552         have openat support.  Avoid PATH_MAX test on the Hurd.
31554         regex-tests, regex: fix bug: memset undeclared
31555         * tests/test-regex.c: Don't include regex.h twice.  Include
31556         string.h, to declare memset.  Christensen's report also mentioned
31557         this issue.
31558         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31559         test-regex.c, to avoid future problems like this.  Remove
31560         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31561         twice.
31563         regex-tests: fix link errors on older Solaris
31564         These need to link with @LIBINTL@ to get libintl_gettext.
31565         Problem reported by Tom G. Christensen in
31566         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31567         * modules/regex-tests (test_regex_LDADD): New macro.
31569 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31571         regex-tests: new module
31572         * modules/regex-tests, tests/test-regex.c: New files.
31574         regex: fix off-by-one error in configure test
31575         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31577 2013-01-31  Eric Blake  <eblake@redhat.com>
31579         regex: avoid infinite configure test
31580         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31582 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31584         openpty: fix bug where HAVE_OPENPTY wasn't defined
31585         See the thread starting at:
31586         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31587         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31588         openpty function exists, not merely when we intend to replace it.
31590 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31592         sys_time: port to Solaris 2.6
31593         There is a circularity problem on Solaris 2.6, where <time.h> includes
31594         <sys/time.h> for struct timespec.  The include nesting is gnulib
31595         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31596         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31597         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31598         <sys/siginfo.h>; the last, innermost file needs struct
31599         timestruc_t, which is defined in <sys/time.h>, which has not been
31600         fully parsed.  Problem reported by Tom G. Christensen in
31601         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31602         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31603         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31604         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31605         uses split double-inclusion guards.
31607 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31609         regex: test for buffer overrun
31610         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31611         for the just-fixed regex bug.
31613 2013-01-29  Andreas Schwab  <schwab@suse.de>
31615         regex: fix buffer overrun in regexp matcher [BZ #15078]
31616         * lib/regexec.c (extend_buffers): Add parameter min_len.
31617         (check_matching): Pass minimum needed length.
31618         (clean_state_log_if_needed): Likewise.
31619         (get_subexp): Likewise.
31621 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31623         mountlist: don't consider "devtmpfs" as dummy
31624         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31625         as there is storage associcated with it.
31627 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31629         futimens-tests, utimens-tests: Depend on gettext.
31630         This works around a problem introduced in my 2013-01-12 patch,
31631         which added @LIBINTL@ to these modules.
31632         * modules/futimens-tests (Depends-on):
31633         * modules/utimens-tests (Depends-on): Add gettext.
31635 2013-01-26  Eric Blake  <eblake@redhat.com>
31637         test-getpeername: fix typo
31638         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31640 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31642         bootstrap: remove the need for a sorted .gitignore file
31643         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31644         rename to insert_if_absent(), so that we don't need or generate
31645         a sorted .gitignore file.  We do require a .gitignore with no
31646         existing duplicate entries and enforce that.
31647         (sort_patterns): Remove this function as we now use the simpler
31648         technigue of inserting blacklist entries at the top of the file,
31649         assuming gnulib won't be inserting !whitelist entries.
31651 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31653         readlinkat: don't depend on gl_FUNC_OPENAT
31654         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31655         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31656         renameat.m4, symlinkat.m4; but one thing at a time.
31658         statat: new module, split out from fstatat
31659         GNU Emacs needs the POSIX-specified fstatat, but not the
31660         gnulib-specified statat and lstat.  Split the latter two into a
31661         new module 'statat'.
31662         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31663         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31664         Rename from FSTATAT_INLINE. All uses changed.
31665         * modules/fstatat (Files): Remove lib/statat.c.
31666         (gl_MODULE_INDICATOR([fstatat])): Remove.
31667         (lib_SOURCES): Remove.
31668         (Maintainer): Add self.
31669         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31670         * tests/test-fstatat.c (BASE): Don't define if already defined.
31671         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31673 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31675         tests: don't assume fd 99 is closed
31676         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31677         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31678         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31679         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31680         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31681         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31682         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31683         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31684         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31685         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31686         * tests/test-fwrite.c, tests/test-getpeername.c:
31687         * tests/test-getsockname.c, tests/test-getsockopt.c:
31688         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31689         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31690         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31691         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31692         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31693         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31694         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31695         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31696         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31697         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31698         Close file descriptor 99, instead of assuming it's already closed.
31700 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31702         stpncpy: port to OS X 10.8
31703         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31704         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31706 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31708         unistd: port to recent mingw
31709         * lib/unistd.in.h: Remove special invocation convention for mingw,
31710         which breaks for the latest mingw version.  See John W. Eaton in
31711         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31713         largefile: port better to Mac OS X 10.5
31714         This patch is backported from Autoconf git.
31715         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31716         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31717         with ino_t size being different for configuration time versus
31718         build/run time.  Problem reported by PHO in
31719         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
31721 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31723         doc: clarify -Werror
31724         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
31725         clarify that it's intended for developers, not for ordinary builds,
31726         and mention --enable-gcc-warnings as one possible use.
31728 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
31730         stdint: fix build with Android's Bionic fox x86
31731         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
31732         was already included as _SSIZE_T_DEFINED_ might also be defined
31733         in include/machine/_types.h, which is included by stdio.h
31735 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
31737         net_if-tests: port to Solaris 7 + GCC 3.4.6
31738         Problem reported by Tom G. Christensen in
31739         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
31740         * tests/test-net_if.c (ni): Move to next the code that uses it,
31741         so that it's declared only if needed.
31743 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31745         net_if-tests: port to older Solaris
31746         Problem reported by Tom G. Christensen in
31747         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31748         * modules/net_if-tests (NET_IF_LIB): New substitution.
31749         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
31750         (HAVE_IF_NAMEINDEX): New C macro.
31751         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
31753         system-quote-tests: port to older Solaris
31754         Problem reported by Tom G. Christensen in
31755         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31756         * tests/test-system-quote-child.c (fopen, fread): Undef.
31758         c-xvasprintf etc.: fix link errors on older Solaris
31759         These need to link with @LIBINTL@ to get libintl_gettext.
31760         Problem reported by Tom G. Christensen in
31761         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31762         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
31763         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
31764         * modules/futimens-tests (test_futimens_LDADD):
31765         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
31767 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31769         locale: port to Solaris 2.6 and 7 + GNU gettext
31770         * lib/locale.in.h: Just include_next <locale.h> when
31771         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
31772         when combining the localename module with GNU gettext 0.18.2.
31773         Problem reported by Tom G. Christensen in
31774         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
31776 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31778         stdlib: port to Solaris 2.6
31779         Also, the code worked on Solaris 7 through 9 only by accident.
31780         Problem reported by Tom G. Christensen in
31781         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
31782         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
31783         simply include the system stdlib.h.
31784         * lib/getopt.in.h (__need_system_stdlib_h):
31785         * lib/pthread.in.h (__need_system_stdlib_h):
31786         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
31787         Define when including <stdlib.h>, to avoid problems at least for
31788         the pthread case on Solaris 2.6 and 7.  These .h files can get by
31789         with the system stdlib.h.
31791 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31793         doc: update main copyright year
31794         * doc/gnulib.texi: Update copyright date.
31796         doc: improve ISO 8601 discussion
31797         * doc/parse-datetime.texi (Combined date and time of day items):
31798         Specify more carefully what formats are supported and what is
31799         done with excess precision.
31801 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31803         doc: avoid small caps
31804         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
31805         they're more trouble than they're worth.  Suggested by Karl Berry
31806         in <http://bugs.gnu.org/13360>.
31808         regex: conform to strict C
31809         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
31810         From Aharon Robbins.
31812         gnulib-tool: fix incompatibility with autopoint 0.18.2
31813         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
31814         Problem reported by Tom G. Christensen in
31815         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
31817 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31819         fprintftime: bring back and reword fwrite comment
31820         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
31822         stdio: remove now-unnecessary stdio.c
31823         Since stdio.in.h no longer uses inline functions, we no longer
31824         need to compile the extern versions.
31825         * lib/stdio.c: Remove.
31826         * modules/stdio (Files): Remove lib/stdio.c.
31827         (lib_SOURCES): Remove.
31829         unicodeio: depend on stdio, not ignore-value
31830         * lib/unicodeio.c: Do not include ignore-value.h.
31831         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
31832         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
31834         fprintftime: depend on stdio, not ignore-value
31835         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
31836         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
31837         since the stdio module arranges to silence that warning now.
31838         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
31840 2012-10-04  Simon Josefsson  <simon@josefsson.org>
31842         stdint-tests: Fix expanded-before-required-warning.
31843         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
31845 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31847         fwrite: silence __wur only for older glibc versions
31848         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
31849         This will help us remove this workaround some time in the far future.
31851 2013-01-03  Eric Blake  <eblake@redhat.com>
31853         fwrite: silence __wur without using inline
31854         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
31855         just gcc, and in a way that avoids inline issues.
31856         * modules/stdio (Depends-on): Drop extern-inline.
31858 2013-01-03  Jim Meyering  <jim@meyering.net>
31860         update-copyright: avoid copyright notice date corruption
31861         Given a sequence of copyright year numbers in which the final
31862         one was a two-digit number that happened to be a substring of
31863         a preceding four-digit year number, we would mistakenly update
31864         the substring (from two- to four-digit) rather than the two-digit
31865         number at the end, which, combined with the addition of the current
31866         4-digit year number would yield two 5-digit year numbers, e.g.,
31867         here, it would convert the first "99" to "1999, 2013" rather than
31868         the final one:
31869           1991, 99
31870           11999, 20131, 1999
31871         * build-aux/update-copyright: Tighten a regexp.
31872         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
31873         Reported by Joseph Myers in
31874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
31876 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31878         regex: omit needless signed-pointer casts
31879         * lib/regcomp.c (build_charclass, build_charclass_op):
31880         Use char *, not unsigned char *, for class name and extra.
31881         The char values are always nonnegative so there's no need to
31882         insist on unsigned char * here, and using char * removes the need
31883         for casts.  Reported by Aharon Robbins in
31884         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31886         regex: support Gawk, which never uses alloca
31887         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
31888         Do not include in this case.  Gawk doesn't supply a substitute
31889         alloca.h and doesn't need one.
31891         regex: port __libc_lock_define usage to C89
31892         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
31893         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
31894         does not conform to C89, as it has an empty macro argument.
31895         Reported by Aharon Robbins in
31896         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31898 2013-01-01  Eric Blake  <eblake@redhat.com>
31900         maint: update all copyright year number ranges
31901         Run "make update-copyright".
31903         version-etc: bump copyright year reported in --version
31904         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
31906 2012-12-31  Eric Blake  <eblake@redhat.com>
31908         sigprocmask-tests: skip test if pid is unexpectedly large
31909         * tests/test-sigprocmask.c (main): Add range check.
31911         git-version-gen: avoid test -z portability glitch
31912         * build-aux/git-version-gen: Prefer portable test spelling, since
31913         git-version-gen is run on more than just developer machines.
31915 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
31917         git-version-gen: add --fallback option to use if git is not present
31918         * build-aux/git-version-gen: Add support for the new option --fallback,
31919         which comes into play when there is no $tarball_version_file and
31920         git is not working.
31921         (scriptversion): Update.
31923         maint.mk: handle missing git with more grace
31924         * top/maint.mk (no-submodule-changes, public-submodule-commit):
31925         Quietly proceed if git is not present.
31927 2012-12-31  Eric Blake  <eblake@redhat.com>
31929         dup2: work around cygwin bug
31930         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
31931         * lib/dup2.c (rpl_dup2): Work around it.
31932         * doc/posix-functions/dup2.texi (dup2): Document it.
31934 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
31936         regex: remove unnecessary dependency on localcharset.h
31937         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
31938         hasn't been needed for years.
31939         * modules/regex (Depends-on): Remove localcharset.
31941         regex: revert single-byte change
31942         * lib/regexec.c (check_node_accept_bytes): Revert previous change
31943         to this function.  This was alredy fixed in a different way, at
31944         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
31945         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
31946         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
31948         regex: simplify based on Gawk version
31949         * lib/regex_internal.c (re_dfa_add_node): Simplify.
31950         Reported by Aharon Robbins in
31951         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31953 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31955         regex: check that pattern char is single-byte
31956         Reported by Aharon Robbins in
31957         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31958         * lib/regexec.c (check_node_accept_bytes):
31959         Return 0 if the pattern string has a multibyte character here.
31961         regex: implement rational ranges
31962         Reported by Aharon Robbins in
31963         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31964         * lib/regcomp.c (build_range_exp) [!_LIBC]:
31965         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
31966         Implement rational ranges.
31968         regex: avoid redefining __wctype
31969         Reported by Aharon Robbins in
31970         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31971         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
31972         #undef before defining.
31974         regex: port to hosts where malloc (0) == NULL
31975         Reported by Aharon Robbins in
31976         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31977         * lib/regex_internal.c (re_node_set_alloc):
31978         Don't assume that malloc (0) yields nonnull.
31979         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
31980         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
31981         * modules/regex (Files): Add m4/eealloc.m4.
31983         regex: port to C89
31984         Reported by Aharon Robbins in
31985         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
31986         * lib/regcomp.c (init_word_char): Declaration before statement.
31988         regex: merge glibc changes
31989         Also, copy the license wording from glibc.  This simplifies
31990         merging changes.  gnulib-tool will change the wording to GPL as
31991         appropriate, when importing it to other packages.  The only
31992         glibc change made since the last merge, which needs merging, is:
31993         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
31994         * lib/regex_internal.h (gettext): Remove use of INTUSE.
31996         * users.txt: Add Emacs.
31998         doc: omit mention of version when not needed
31999         * doc/gnulib-intro.texi (Portability and Application Code):
32000         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32001         Don't mention particular dates or versions when not necessary, so
32002         that the documentation won't go out of date so quickly.
32004         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32006 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32008         bootstrap: pass --force to autoreconf.
32009         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32010         Add "--force" so that Automake's ylwrap and other such tools
32011         be updated at each bootstrap invocation.
32012         Use it.
32014 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32016         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32017         The earlier patch forgot to update one of the #if conditions, causing
32018         a problem on Debian testing i386 reported by Mats Erik Andersson
32019         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32020         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32021         (__argp_fmtstream_puts, argp_fmtstream_puts)
32022         (__argp_fmtstream_write, argp_fmtstream_write)
32023         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32025         * doc/gnulib-readme.texi: Minor fixups.
32026         (Portability guidelines): Modernize URLs.  Remove some repetition.
32027         (Indent with spaces not TABs): Reword to avoid too-long lines.
32028         Remove some '@ifset standalone' stuff that isn't used.
32030         * doc/gnulib-readme.texi (Portability guidelines):
32031         ctype.h, not ctime.h.
32033         Correct name of POSIX.1-2001.
32034         * doc/posix-functions/fgetc.texi (fgetc):
32035         * doc/posix-functions/fgets.texi (fgets):
32036         * doc/posix-functions/fread.texi (fread):
32037         * doc/posix-functions/fscanf.texi (fscanf):
32038         * doc/posix-functions/getc.texi (getc):
32039         * doc/posix-functions/getchar.texi (getchar):
32040         * doc/posix-functions/scanf.texi (scanf):
32041         POSIX.1-2001, not POSIX-2001.
32043         doc: move README into manual
32044         * README: Move contents to new file doc/gnulib-readme.texi.
32045         Replace with a one-line summary.
32046         * doc/gnulib.texi (Brief Overview): New section,
32047         with old intro preface.  Include gnulib-readme.texi for contents.
32048         (Philosophy): Rename from "Introduction", since this
32049         section no longer introduces the rest.  Write a new preface.
32050         * doc/gnulib-readme.texi: New file, with the old contents of
32051         README texinfo-ized.  This way, the README info appears
32052         in the online and printed manual.
32054 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32056         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32057         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32058         c_vasprintf() prototype.
32060 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32062         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32063         * lib/c-vasprintf.h: Remove stray semicolon.
32065 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32067         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32068         It is obsolete and is planned to be removed from Automake 1.14; see
32069         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32070         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32071         (installdirs-data, installdirs-data-yes):
32072         Use $(MKDIR_P), not $(mkdir_p).
32073         * m4/intl.m4 (AM_INTL_SUBDIR):
32074         * m4/po.m4 (AM_PO_SUBDIRS):
32075         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32077 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32079         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32080         On this platform, we are not optimizing but we are using
32081         the substitute for extern inlines, so compile as if
32082         C99-style extern inline, or a substitute, is available.
32083         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32084         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32085         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32086         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32087         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32088         Declare as ARGP_FS_EI, not as extern.
32089         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32090         (__option_is_short, _option_is_end, __option_is_end)
32091         [!_LIBC && __USE_EXTERN_INLINES]:
32092         Declare as ARGP_EI, not as extern.
32094 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32096         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32097         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32098         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32099         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32100         ...), as the latter is fatal with older Autoconfs.
32101         Problem reported and fix suggested by Eric Blake in thread starting at
32102         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32104 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32106         AC_PROG_MKDIR_P: don't workaround if not buggy
32107         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32108         Define only for Autoconf versions before 2.62.
32109         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32110         undocumented m4_PACKAGE_VERSION, for consistency with the
32111         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32112         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32113         was introduced in 2.62.
32115 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32117         New 'c-*printf' modules for formatted output in C locale.
32119         New module 'c-vasnprintf'.
32120         * modules/c-vasnprintf: New file.
32121         * lib/c-vasnprintf.c: New file.
32122         * lib/c-vasnprintf.h: New file.
32124         New module 'c-snprintf'.
32125         * modules/c-snprintf: New file.
32126         * modules/c-snprintf-tests: New file.
32127         * lib/c-snprintf.c: New file.
32128         * lib/c-snprintf.h: New file.
32129         * tests/test-c-snprintf.c: New file.
32130         * tests/test-c-snprintf.sh: New file.
32132         New module 'c-vsnprintf'.
32133         * modules/c-vsnprintf: New file.
32134         * modules/c-vsnprintf-tests: New file.
32135         * lib/c-vsnprintf.c: New file.
32136         * lib/c-vsnprintf.h: New file.
32137         * tests/test-c-vsnprintf.c: New file.
32138         * tests/test-c-vsnprintf.sh: New file.
32140         New module 'c-vasprintf'.
32141         * modules/c-vasprintf: New file.
32142         * modules/c-vasprintf-tests: New file.
32143         * lib/c-asprintf.c: New file.
32144         * lib/c-vasprintf.c: New file.
32145         * lib/c-vasprintf.h: New file.
32146         * tests/test-c-vasprintf.c  +: New file.
32147         * tests/test-c-vasprintf.sh: New file.
32149         New module 'c-xvasprintf'.
32150         * modules/c-xvasprintf: New file.
32151         * modules/c-xvasprintf-tests: New file.
32152         * lib/c-xasprintf.c: New file.
32153         * lib/c-xvasprintf.c: New file.
32154         * lib/c-xvasprintf.h: New file.
32155         * tests/test-c-xvasprintf.c: New file.
32156         * tests/test-c-xvasprintf.sh: New file.
32158 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32160         argp: better 'inline'
32161         Use extern-inline module to declare extern inline functions.
32162         This avoids some bogus warning diagnostics.  Problem discovered
32163         when modifying GNU tar to use the manywarnings module.
32164         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32165         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32166         Define based on extern-inline.
32167         * modules/argp (Depends-on): Add extern-inline.
32169 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32171         filemode, sys_stat: Handle MPX files a la AIX.
32172         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32173         * lib/sys_stat.in.h (S_ISMPX): New macro.
32174         * tests/test-sys_stat.c: Add tests for MPX files.
32176 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32178         x-to-1: honor $PERL
32179         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32180         a chance to use his preferred version of Perl.  This is typically
32181         required by Darwin users whose default /usr/bin/perl does not have all
32182         the libraries required by help2man, and who need to use their MacPorts
32183         installation of Perl instead.
32185 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32187         gnu-web-doc-update: add all the new files, even in new directories
32188         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32189         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32190         Use it.
32191         (main): Don't use cvsutils to get the list of unknown files,
32192         just add all the existing files and directories.
32194 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32196         gnu-web-doc-update: improve --help
32197         * build-aux/gnu-web-doc-update: Move comments into --help.
32199 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32201         mountlist: recognize more "dummy" file systems
32202         * lib/mountlist.c (ME_DUMMY_0):
32203         Add these dummy FS names to the list:
32204         - "debugfs" virtual filesystem for kernel debugging
32205         - "devpts" PTY slave filesystem
32206         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32207         - "fusectl" control filesystem for FUSE
32208         - "mqueue" enumerates POSIX message queues
32209         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32210         - "sysfs" is for exporting kernel objects
32211         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32213 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32215         extern-inline: avoid incompatibility with Darwin Libc
32216         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32217         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32218         Problem reported by Akim Demaille in
32219         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32221 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32223         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32224         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32225         let it handle password prompting.
32227 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32229         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32230         * lib/canonicalize.c (canonicalize_filename_mode):
32231         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32232         fetching the current directory.  Don't overrun the beginning of
32233         rpath if there's no slashes after the MS-Windows drive letter.
32235 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32237         maint.mk: avoid extra forks
32238         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32239         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32240         So use that instead of "$(shell test -f FILE && echo FILE)".
32242 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32244         vasnprintf: fix ASCII_ONLY typo
32245         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32246         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32247         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32248         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32249         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32251 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32253         list, oset, xlist, xoset: fix extern inline issue with C99
32254         This was introduced by my recent changes for 'inline'.
32255         Problem reported for gettext by Daiki Ueno in
32256         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32257         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32258         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32259         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32260         (gl_list_previous_node, gl_list_get_at)
32261         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32262         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32263         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32264         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32265         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32266         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32267         (gl_list_iterator_free, gl_sortedlist_search)
32268         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32269         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32270         (gl_sortedlist_remove):
32271         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32272         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32273         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32274         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32275         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32276         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32277         (gl_list_add_at, gl_sortedlist_add):
32278         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32279         Wrap these extern decls inside "#if 0", because they are implemented
32280         as inline functions, and extern inline is not what's wanted here.
32281         It would simplify these .h files to remove the extern decls entirely,
32282         although a downside would be less-clear separation between
32283         specification and implementation.
32285 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32287         sys_stat: no 'static inline'
32288         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32291         extern-inline: no 'static inline'
32292         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32293         Do not require AC_C_INLINE.
32294         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32295         'static inline', for older compilers.
32297         snippet/warn-on-use: no 'static inline'
32298         * build-aux/snippet/warn-on-use.h:
32299         Remove unnecessary 'inline' in comment.
32301         rbtree-list, rbtreehash-list: no 'static inline'
32302         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32303         * lib/gl_anytree_list2.h (node_at):
32304         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32305         (gl_oset_first, add_nodes_to_buckets):
32306         Now static, not static inline.
32308         regex: no 'static inline'
32309         * lib/regex_internal.c (calc_state_hash):
32310         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32311         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32312         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32313         Now static, not static inline.
32314         (inline) [__GNUC__ < 3 && _LIBC]:
32315         Remove macro; no longer needed.
32317         xvasprintf: no 'static inline'
32318         * lib/xvasprintf.c (xstrcat):
32319         Now static, not static inline.
32320         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32321         Do not require AC_C_INLINE.
32323         parse-datetime, parse-duration: no 'static inline'
32324         * lib/parse-datetime.y (to_uchar):
32325         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32326         (scale_n_add):
32327         Now static, not static inline.
32328         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32329         * modules/parse-duration (configure.ac):
32330         Do not require AC_C_INLINE.
32332         getaddrinfo: no 'static inline'
32333         * lib/getaddrinfo.c (validate_family):
32334         Now static, not static inline.
32335         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32336         Do not require AC_C_INLINE.
32338         ftruncate, fts, lstat, openat, raise: no 'static inline'
32339         * lib/ftruncate.c (chsize_nothrow):
32340         * lib/fts.c (opendirat, diropen):
32341         * lib/lstat.c (orig_lstat):
32342         * lib/openat.c (orig_openat):
32343         * lib/raise.c (raise_nothrow):
32344         Now static, not static inline.
32345         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32346         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32347         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32348         * m4/openat.m4 (gl_PREREQ_OPENAT):
32349         * m4/raise.m4 (gl_PREREQ_RAISE):
32350         Do not require AC_C_INLINE.
32352         fflush, stat: no 'static inline'
32353         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32354         (clear_ungetc_buffer, disable_seek_optimization)
32355         (restore_seek_optimization, update_fpos_cache):
32356         * lib/stat.c (orig_stat):
32357         Now static, not static inline.
32358         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32359         (update_fpos_cache):
32360         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32361         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32362         * m4/stat.m4 (gl_PREREQ_STAT):
32363         Do not require AC_C_INLINE.
32365         error, filevercmp: no 'static inline'
32366         * lib/error.c (is_open, flush_stdout):
32367         * lib/filevercmp.c (order):
32368         Now static, not static inline.
32369         * m4/error.m4 (gl_PREREQ_ERROR):
32370         * modules/filevercmp (configure.ac):
32371         Do not require AC_C_INLINE.
32373         dup, execute, fatal-signal, etc.: no 'static inline'
32374         * lib/dup.c (dup_nothrow):
32375         * lib/execute.c (nonintr_close, nonintr_open):
32376         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32377         * lib/fopen.c (orig_fopen):
32378         * lib/freadseek.c (freadptrinc):
32379         * lib/freopen.c (orig_freopen):
32380         * lib/fstat.c (orig_fstat, fstat_nothrow):
32381         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32382         (get_rusage_as_via_iterator):
32383         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32384         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32385         * lib/isatty.c (_isatty_nothrow):
32386         * lib/open.c (orig_open):
32387         * lib/read.c (read_nothrow):
32388         * lib/sigprocmask.c (signal_nothrow):
32389         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32390         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32391         * lib/wait-process.c (unregister_slave_subprocess):
32392         * lib/write.c (write_nothrow):
32393         Now static, not static inline.
32394         * lib/spawn-pipe.c (nonintr_open): Define only if
32395         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32396         * m4/dup.m4 (gl_PREREQ_DUP):
32397         * m4/execute.m4 (gl_EXECUTE):
32398         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32399         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32400         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32401         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32402         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32403         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32404         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32405         * m4/open.m4 (gl_PREREQ_OPEN):
32406         * m4/read.m4 (gl_PREREQ_READ):
32407         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32408         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32410         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32411         * m4/write.m4 (gl_PREREQ_WRITE):
32412         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32413         Do not require AC_C_INLINE.
32415         c-strtod, memcoll, readutmp: no 'static inline'
32416         * lib/c-strtod.c (c_locale):
32417         * lib/memcoll.c (strcoll_loop):
32418         * lib/readutmp.c (desirable_utmp_entry):
32419         Now static, not static inline.
32420         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32421         * m4/memcoll.m4 (gl_MEMCOLL):
32422         * m4/readutmp.m4 (gl_READUTMP):
32423         Do not require AC_C_INLINE.
32425         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32426         * lib/arctwo.c (to_uchar):
32427         * lib/md4.c (set_uint32):
32428         * lib/md5.c (set_uint32):
32429         * lib/sha1.c (set_uint32):
32430         * lib/sha256.c (set_uint32):
32431         * lib/sha512.c (set_uint64):
32432         Now static, not static inline.  This is a bit simpler, and doesn't
32433         affect performance with GCC and default optimization.
32434         * m4/arctwo.m4 (gl_ARCTWO):
32435         * m4/md4.m4 (gl_MD4):
32436         * m4/md5.m4 (gl_MD5):
32437         * m4/sha1.m4 (gl_SHA1):
32438         * m4/sha256.m4 (gl_SHA256):
32439         * m4/sha512.m4 (gl_SHA512):
32440         Do not require AC_C_INLINE.
32442         cond, lock, thread: better 'inline'
32443         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32444         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32445         New macros.  Use them instead of static inline, for header functions.
32446         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32447         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32448         * lib/glthread/lock.c (gl_waitqueue_init)
32449         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32450         * lib/glthread/thread.c (get_current_thread_handle):
32451         Change 'static inline' to 'inline'.
32452         * lib/glthread/cond.h, lib/glthread/thread.h:
32453         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32454         * m4/cond.m4 (gl_COND):
32455         * m4/lock.m4 (gl_PREREQ_LOCK):
32456         * m4/thread.m4 (gl_THREAD):
32457         Do not require AC_C_INLINE.
32458         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32460         chdir-long, cycle-check, savewd: better 'inline'
32461         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32462         (find_non_slash):
32463         * lib/cycle-check.c (is_zero_or_power_of_two):
32464         * lib/savewd.c (savewd_delegating):
32465         Change 'static inline' to 'inline'.
32466         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32467         Replace all remaining uses of 'static inline' with it.
32468         * lib/savewd.h:
32469         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32470         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32471         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32472         * m4/savewd.m4 (gl_SAVEWD):
32473         Do not require AC_C_INLINE.
32474         * modules/savewd (Depends-on): Add extern-inline.
32476         base32, base64: no need for 'inline'
32477         * lib/base32.c (to_uchar, get_8, decode_8):
32478         * lib/base64.c (to_uchar, get_4, decode_4):
32479         Change 'static inline' to 'inline'.
32480         * m4/base32.m4 (gl_PREREQ_BASE32):
32481         * m4/base64.m4 (gl_PREREQ_BASE64):
32482         Do not require AC_C_INLINE.
32484         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32485         * lib/gl_array_oset.c (gl_array_nx_add_at):
32486         (gl_array_remove_at):
32487         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32488         (add_to_bucket, remove_from_bucket):
32489         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32490         Change 'static inline' to 'static', as it's simpler to omit
32491         'inline' unless there's a significant performance advantage.
32493         list, oset, xlist, xoset, xsublist: simplify via extern inline
32494         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32495         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32496         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32497         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32498         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32499         New macro.  Replace all uses of 'static inline' with it.
32500         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32501         instead of as macros FOO that are defined to static inline
32502         functions FOO_inline.
32503         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32504         * lib/gl_xsublist.c:
32505         Reimplement from scratch, by defining the corresponding *_INLINE
32506         macro and including the corresponding .h file.  This is simpler.
32507         * modules/list, modules/oset, modules/xlist, modules/xoset:
32508         (Files): Remove m4/gl_list.m4.
32509         (configure.ac): Remove gl_LIST.
32510         * m4/gl_list.m4: Remove.
32511         * modules/list, modules/oset, modules/xlist, modules/xoset:
32512         * modules/xsublist:
32513         (Depends-on): Depend on extern-inline, not inline.
32515         xalloc: better 'inline'
32516         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32517         New macro.  Replace all uses of 'static inline' with it.
32518         (static_inline): Remove.
32519         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32520         Let 'extern inline' do the work automatically, instead of doing
32521         it by hand.
32522         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32523         Remove.  All uses removed.
32524         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32526         gethrxtime: better 'inline'
32527         * lib/xtime.c: New file.
32528         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32529         * lib/xtime.h (XTIME_INCLUDE):
32530         New macros.  Replace all uses of 'static inline' with them.
32531         * lib/gethrxtime.c (gethrxtime): Define only if
32532         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32533         this source file is now always compiled, because of the extern inline.
32534         * lib/gethrxtime.h, lib/xtime.h:
32535         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32536         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32537         if gethrtime works, as they're not needed in that case.
32538         (gl_XTIME): Do not require AC_C_INLINE.
32539         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32540         compiled now.  Move the check into gl_GETHRXTIME.
32541         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32542         (Depends-on): Add extern-inline.
32543         (configure.ac): gethrxtime is always compiled now.
32544         (lib_SOURCES): Add gethrxtime.c.
32546         wctype-h: better 'inline'
32547         * lib/wctype-h.c: New file.
32548         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32549         New macro.  Replace all uses of 'static inline' with it.
32550         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32551         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32552         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32553         (Depends-on): Add extern-inline.
32555         unistd: better 'inline'
32556         * lib/unistd.c: New file.
32557         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32558         New macro.  Replace all uses of 'static inline' with it.
32559         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32560         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32561         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32562         (Depends-on): Add extern-inline.
32564         sys_socket: better 'inline'
32565         * lib/sys_socket.c: New file.
32566         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32567         New macro.  Replace all uses of 'static inline' with it.
32568         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32569         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32570         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32571         (Depends-on): Add extern-inline.
32573         stdio: better 'inline'
32574         * lib/stdio.c: New file.
32575         * lib/stdio.in.h (_GL_STDIO_INLINE):
32576         New macro.  Replace all uses of 'static inline' with it.
32577         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32578         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32579         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32580         (Depends-on): Add extern-inline.
32582         sigaction: better 'inline'
32583         * lib/sig-handler.c: New file.
32584         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32585         New macro.  Replace all uses of 'static inline' with it.
32586         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32587         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32588         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32589         (Depends-on): Add extern-inline.
32591         selinux-h: better 'inline'
32592         * lib/se-context.c, lib/se-selinux.c: New files.
32593         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32594         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32595         New macro.  Replace all uses of 'static inline' with it.
32596         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32597         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32598         New macro.  Replace all uses of 'static inline' with it.
32599         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32600         * modules/selinux-h (Files, lib_SOURCES):
32601         Add lib/se-context.c, lib/se-selinux.c.
32602         (Depends-on): Add extern-inline.
32603         (configure.ac): Do not require AC_C_INLINE.
32605         pthread: better 'inline'
32606         * lib/pthread.c: New file.
32607         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32608         New macro.  Replace all uses of 'static inline' with it.
32609         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32610         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32611         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32612         * modules/pthread (Files): Add lib/pthread.c.
32613         (Depends-on): Add extern-inline.
32615         math: better 'inline'
32616         * lib/math.c: New file.
32617         * lib/math.in.h (_GL_MATH_INLINE):
32618         New macro.  Replace all uses of 'static inline' with it.
32619         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32620         * m4/math_h.m4 (gl_MATH_H):
32621         Do not require AC_C_INLINE.
32622         * modules/math (Files, lib_SOURCES):
32623         Add lib/math.c.
32624         (Depends-on): Add extern-inline.
32626         count-one-bits: better 'inline'
32627         * lib/count-one-bits.c: New file.
32628         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32629         New macro.  Replace all uses of 'static inline' with it.
32630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32631         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32632         Do not require AC_C_INLINE.
32633         * modules/count-one-bits (Files, lib_SOURCES):
32634         Add lib/count-one-bits.c.
32635         (Depends-on): Add extern-inline.
32637         count-leading-zeros: better 'inline'
32638         * lib/count-leading-zeros.c: New file.
32639         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32640         New macro.  Replace all uses of 'static inline' with it.
32641         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32642         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32643         Do not require AC_C_INLINE.
32644         * modules/count-leading-zeros (Files, lib_SOURCES):
32645         Add lib/count-leading-zeros.c.
32646         (Depends-on): Add extern-inline.
32648         bitrotate: better 'inline'
32649         * lib/bitrotate.c: New file.
32650         * lib/bitrotate.h (BITROTATE_INLINE):
32651         New macros.
32652         Replace all uses of 'static inline' with them.
32653         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32654         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32655         (Depends-on): Add extern-inline.
32656         (configure.ac): Do not require AC_C_INLINE.
32658 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32660         maint.mk: avoid gratuitous failure
32661         Reported by Stefano Lattarini in
32662         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32663         * top/maint.mk (public-submodule-commit): Quote more safely.
32665 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32667         canonicalize, canonicalize-lgpl: support MS-Windows file names
32668         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32669         for test cases, which it'd be nice to add at some point.
32670         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32671         * lib/canonicalize.c (canonicalize_filename_mode):
32672         * lib/canonicalize-lgpl.c (__realpath):
32673         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32674         slash is at the beginning of the file name.  Use ISSLASH, instead
32675         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32676         the first character with '/'.  Test for
32677         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32678         with a drive letter.
32679         * lib/canonicalize.c (SLASHES): New macro.
32680         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32682 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32684         fts: introduce FTS_VERBATIM
32685         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32686         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32687         * lib/fts.c (fts_open): Honor it.
32689 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32691         getlogin-tests: allow errno == ENXIO
32692         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32693         with errno == ENXIO (No controlling tty).
32694         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32695         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32696         with errno == ENOENT.  This was reported to happen in various
32697         situations on GNU/Linux.
32699 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32701         getlogin-tests: allow errno == ENOENT
32702         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32703         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32704         when running a test in an Emacs shell buffer.
32706 2012-11-08  Jim Meyering  <jim@meyering.net>
32708         tests/nap.h: avoid warning about unused variable
32709         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32711         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32712         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32713         white space before each of the special-cased file names, to avoid
32714         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32715         in http://bugs.gnu.org/12830.
32717 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32719         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
32720         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
32721         fails with errno == EBADF when fd is opened with O_PATH.
32722         Reported by Jim Meyering in
32723         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
32724         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32725         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
32727 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32729         test-utimens: speed up by taking shorter naps
32730         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
32731         New functions.
32732         (nap): Use them, to do a better job of guessing the delay.
32733         On Fedora 17 with ext4 atop md atop hard disks, this made
32734         test-utimens run 10x faster, because the test napped for
32735         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
32736         <http://bugs.gnu.org/12820#11>.
32738 2012-11-07  Jim Meyering  <jim@meyering.net>
32740         mountlist.c: fix a compilation failure
32741         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
32742         I introduced while transforming commit v0.0-7683-g613bcb6
32744 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32746         errno: port to LynxOS 178 2.2.2
32747         Problem reported by Joel Brobecker in
32748         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
32749         * doc/posix-headers/errno.texi (errno.h): Document this.
32750         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
32751         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
32752         Supply a string for EILSEQ.
32753         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
32755 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32757         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
32758         Linux kernel 2.6.39 introduced O_PATH (see
32759         <http://lwn.net/Articles/433854/>) and this is a better fallback
32760         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
32761         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32762         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
32763         * lib/fcntl.in.h (O_ACCMODE):
32764         * tests/test-fcntl-h.c (main):
32765         Do not reject O_ACCMODE merely because it has more than the
32766         minimal number of bits, as POSIX allows extensions here.
32768 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
32770         mountlist: do not classify a bind-mounted dir entry as "dummy"
32771         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
32772         the "none"-testing clause.
32773         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
32774         exception for bind-mounted directories.
32776 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
32778         quote: provide a means to escape strings with nul characters
32779         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
32780         (quote, quote_n): Rename formal arguments for consistency with
32781         quotearg.
32783 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32785         test-raise: don't assume 199 is an invalid signal
32786         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
32788         sh-quote-tests: port to Solaris 9
32789         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
32790         Problem reported by Dagobert Michelsen in
32791         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
32793 2012-10-28  Jim Meyering  <jim@meyering.net>
32795         maint.mk: rename a new configurable variable
32796         * top/maint.mk (_gl_translatable_string_re): Rename from
32797         translation-markers: _gl_ prefix to insulate from user Makefile code,
32798         and the _re suffix to inform that it's a regular expression.
32800 2012-10-26  Eric Blake  <eblake@redhat.com>
32802         maint.mk: let packages tweak sc_po_check pattern
32803         * top/maint.mk (sc_po_check): Add translation-markers, to allow
32804         finding files with other translation markers.
32806 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32808         euidaccess: speed up 'configure' on GNU hosts
32809         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
32810         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
32811         it's needed only in this case.  Use AC_CHECK_DECLS, not
32812         AC_CHECK_DECLS_ONCE.
32813         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
32814         or AC_REQUIRE for AC_FUNC_GETGROUPS.
32816         * lib/regexec.c (re_search_internal): Fix grammar in comment.
32818 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32820         fchmodat, fchownat, fstatat: port to non-inlining compilers
32821         Problem reported for FreeBSD 9 by Jim Meyering in
32822         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
32823         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
32824         New files, which define FCHMODAT_INLINE etc.
32825         * lib/fchmodat.c (FCHMODAT_INLINE):
32826         * lib/fchownat.c (FCHOWNAT_INLINE):
32827         * lib/fstatat.c (FSTATAT_INLINE):
32828         Remove, as chmodat.c etc. now do this.
32829         * modules/fchmodat (Files): Add lib/chmodat.c.
32830         * modules/fchownat (Files): Add lib/chownat.c.
32831         * modules/fstatat (Files): Add lib/statat.c.
32833 2012-10-15  Jim Meyering  <jim@meyering.net>
32835         fchmodat.c, fchownat.c: compile-impeding typos
32836         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
32837         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
32838         Introduced in commit v0.0-7636-gd202279.
32840 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32842         fcntl-h: support GNU flags like O_IGNORE_CTTY
32843         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
32844         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
32845         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
32846         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
32847         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
32848         Define to 0 if not already defined.
32849         * tests/test-fcntl-h.c: Test these new flags.
32851 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32853         faccessat, etc.: support AT_FDCWD-only use
32854         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
32855         this function only if its first argument is AT_FDCWD.
32856         Emacs wants faccessat for AT_EACCESS but not for any first-arg
32857         values other than AT_FDCWD, so it doesn't want all the openat
32858         machinery with fchdir etc.
32859         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
32860         * modules/fstatat, modules/mkdirat, modules/openat (Files):
32861         * modules/unlinkat (Files):
32862         Remove lib/openat-priv.h, as at-internal supplies this file.
32863         Removing this file here allows us to support programs like Emacs
32864         that avoid at-internal.
32866         faccessat: speed up 'configure' on mainstream hosts
32867         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
32868         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
32869         since it's only on unusual platforms that we need to check for
32870         'access', and it's better not to slow 'configure' down on all
32871         platforms.
32873         faccessat: port to Solaris 10
32874         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
32875         Needed on Solaris 10, which doesn't have AT_EACCESS,
32876         so we need the Gnulib fcntl.h, which defines it.
32878 2012-10-14  Pádraig Brady  <P@draigBrady.com>
32879         canonicalize: fix C89 compilation
32880         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
32881         declarations so C89 is supported.  Also remove the comment
32882         referencing memorty allocation as the suggested feature could
32883         not be implemented as suggested.
32884         Reported by Michael Goffioul.
32886 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
32888         group-member: omit unnecessary dependencies
32889         This is for Emacs, which has its own allocator and where we
32890         don't want to use xalloc.
32891         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
32892         since we no longer use xmalloc.  Do not include stdbool.h, since
32893         the changes below happen to remove the only use of bool.
32894         (GROUPBUF_SIZE): New constant.
32895         (struct group_info): Remove n_groups member.  Add groupbuf member.
32896         This lets us get the groups without using malloc, usually.
32897         (free_group_info, get_group_info): Adjust to this.
32898         (get_group_info): Return the number of groups found, or -1 on error.
32899         Use plain malloc not xmalloc, and treat its failure as if there
32900         are no groups, as the user already loses in case of error.
32901         (group_member): Simplify, based on changes to get_group_info.
32902         * modules/group-member (Depends-on): Remove dependencies on
32903         xalloc and stdbool.  Add dependency on xalloc-oversized.
32905 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
32907         gethrxtime: port to C++
32908         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
32910 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32912         ptsname: fix macro-name typo
32913         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
32915 2012-10-03  Simon Josefsson  <simon@josefsson.org>
32917         inttostr: Relax license.
32918         * modules/inttostr (License): Change from LGPL to LGPLv2+.
32920 2012-10-03  Eric Blake  <eblake@redhat.com>
32922         ptsname_r: support ptys returned by FreeBSD posix_openpt
32923         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
32924         lives in /dev/pts/.
32926 2012-10-02  Eric Blake  <eblake@redhat.com>
32928         pselect: reject invalid file descriptors
32929         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
32930         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
32931         * modules/pselect (Depends-on): Add dup2.
32932         * doc/posix-functions/pselect.texi (pselect): Document this.
32934         select: reject invalid file descriptors
32935         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
32936         * lib/select.c (rpl_select) [!win32]: Work around it.
32937         * modules/select (Depends-on): Add dup2.
32938         * doc/posix-functions/select.texi (select): Document this.
32940         select: enhance test
32941         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
32942         New functions.
32943         (test_function): Enhance test.
32944         (do_select_bad_fd): Avoid any stale errno values.
32946         ptsname: reject invalid file descriptors
32947         http://www.austingroupbugs.net/view.php?id=503
32948         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
32949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
32950         * modules/stdlib (Makefile.am): Replace witness.
32951         * lib/stdlib.in.h (ptsname): Allow for replacement.
32952         * modules/ptsname (configure.ac): Trigger replacement.
32953         * doc/posix-functions/ptsname.texi (ptsname): Document this.
32955 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
32957         hash-pjw-bare: new module
32958         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
32959         * lib/hash-pjw-bare.h: Likewise.
32960         * modules/hash-pjw-bare: New file.
32961         * MODULES.html.sh (Misc): Add it.
32963 2012-10-02  Eric Blake  <eblake@redhat.com>
32965         manywarnings: cater to more gcc infelicities
32966         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
32967         -Wuninitialized without -O.
32969 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
32971         select, poll tests: Make setsockopt invocation effective.
32972         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
32973         the bind() call.
32974         * tests/test-select.h (open_server_socket): Likewise.
32976 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32978         sockets, sys_stat: restore AC_C_INLINE
32979         This undoes the 2012-09-22 patch.
32980         * m4/sockets.m4 (gl_SOCKETS):
32981         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
32982         Restore AC_C_INLINE, since MSVC requires __inline or _inline
32983         and does not support plain 'inline'.  Reported by Bruno Haible in
32984         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
32986 2012-09-30  Bruno Haible  <bruno@clisp.org>
32988         localeconv tests: Avoid test failure on OpenIndiana.
32989         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
32990         skip the 'grouping' and 'mon_grouping' tests.
32991         Reported by Jim Meyering.
32993 2012-09-30  Bruno Haible  <bruno@clisp.org>
32995         havelib: Follow libtool developments.
32996         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
32997         Suggested by Simon Josefsson.
32999 2012-09-29  Jim Meyering  <meyering@redhat.com>
33001         fstatat.c: fix a compile-impeding typo
33002         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33003         Introduced in commit v0.0-7636-gd202279.
33004         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33006 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33008         extern-inline: provide a -Wundef safe config.h
33009         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33010         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33011         to produce a -Wundef warning free config.h.
33013 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33015         hash-pjw: relax license to LGPLv2+
33016         * modules/hash-pjw (License): Relax, with consent of author.
33018 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33020         maint.mk: fix strict vs. lazy variable issues with RELEASE
33021         * top/maint.mk (_equal): New function.
33022         (member_check): Strip the result to avoid spurious spaces.
33023         (url_dir_list): Do not use ifeq, which is strict, as it will
33024         require RELEASE_TYPE to be defined.
33025         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33026         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33027         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33028         (announcement_Cc_beta,announcement_mail_headers_beta)
33029         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33030         (release): Do not depend on $(release-type), as it forces its
33031         evaluation.  Bounce to it.
33033 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33035         maint.mk: formatting changes
33036         * top/maint.mk: Indent bodies of if's.
33038 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33040         maint.mk: factor the validation of RELEASE_TYPE
33041         With help from Jim Meyering.
33042         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33043         * top/maint.mk (_empty, _sp): Move their definition earlier.
33044         (member-check, release-type): New.
33045         Use the latter instead of $(RELEASE_TYPE).
33046         Remove now useless local checks.
33048 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33050         maint.mk: provide "make upload" to ease uploading
33051         See
33052         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33053         Do not depend simply on the current $(VERSION), as there may have been
33054         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33055         as "make release-commit" already does.
33057         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33058         "make TYPE".
33060         * top/maint.mk (upload_command, upload, release): New.
33061         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33062         (VERSION): first word of $(RELEASE) is always right.
33063         (emit_upload_commands): Adjust.
33064         * top/README-release: Update.
33066 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33068         maint.mk: silent rules
33069         With help from Stefano Lattarini.
33070         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33071         (announcement): Use $(AM_V_at).
33073 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33075         localename: port gl_locale_name_thread_unsafe to FreeBSD
33076         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33077         and use the simpler FreeBSD implementation on Mac OS X as well.
33078         Original idea suggested by Ed Maste in
33079         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33081 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33083         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33084         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33085         * lib/mbuiter.c, lib/xsize.c: New files.
33086         * lib/binary-io.h (BINARY_IO_INLINE):
33087         * lib/eealloc.h (EEALLOC_INLINE):
33088         * lib/mbfile.h (MBFILE_INLINE):
33089         * lib/mbiter.h (MBITER_INLINE):
33090         * lib/mbuiter.h (MBUITER_INLINE):
33091         * lib/xsize.h (XSIZE_INLINE):
33092         New macros.
33093         Replace all uses of 'static inline' with them.
33094         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33095         * m4/eealloc.m4 (gl_EEALLOC):
33096         * m4/mbfile.m4 (gl_MBFILE):
33097         * m4/mbiter.m4 (gl_MBITER):
33098         * m4/xsize.m4 (gl_XSIZE):
33099         Do not require AC_C_INLINE.
33100         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33101         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33102         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33103         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33104         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33105         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33106         * modules/binary-io, modules/eealloc, modules/mbfile:
33107         * modules/mbiter, modules/mbuiter:
33108         (Depends-on): Add extern-inline.
33110         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33111         * lib/pipe-filter-aux.c: New file.
33112         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33113         Replace all uses of 'static inline' with it.
33114         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33115         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33116         (filter_retcode): No real need for inline here.
33117         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33118         (Files): Add lib/pipe-filter-aux.c.
33119         (Depends-on): Add extern-inline.
33120         (configure.ac): Do not require AC_C_INLINE.
33121         (lib_SOURCES): Add pipe-filter-aux.c.
33123         fdutimensat: omit unnecessary AC_C_INLINE
33124         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33126         fchmodat, fchownat, fstatat: use extern-inline
33127         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33128         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33129         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33130         New macros.
33131         * lib/openat.h:
33132         Replace all uses of 'static inline' with them.
33133         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33134         * modules/fchmodat, modules/fchownat, modules/fstatat:
33135         * modules/openat-h:
33136         (Depends-on):
33137         Add extern-inline.
33138         (configure.ac): Remove AC_C_INLINE.
33140         acl, mbchar, priv-set: use extern-inline
33141         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33142         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33143         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33144         New macros.
33145         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33146         Replace all uses of 'static inline' with it.
33147         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33148         * m4/acl.m4 (gl_FUNC_ACL):
33149         * m4/mbchar.m4 (gl_MBCHAR):
33150         * m4/priv-set.m4 (gl_PRIV_SET):
33151         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33152         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33153         Add extern-inline.
33155         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33156         * m4/sockets.m4 (gl_SOCKETS):
33157         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33158         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33159         environments where it's already guaranteed to work, so we needn't
33160         check for it at 'configure'-time.
33162         tls-tests: omit unnecessary 'inline'
33163         * tests/test-tls.c (perhaps_yield): No longer inline.
33164         Simplicity and portability trump efficiency in test cases.
33166         utimens-tests: avoid unnecessary 'inline'
33167         * modules/fdutimensat-tests (configure.ac):
33168         * modules/futimens-tests (configure.ac):
33169         * modules/utimens-tests (configure.ac):
33170         * modules/utimensat-tests (configure.ac):
33171         Remove AC_C_INLINE.
33172         * tests/test-utimens-common.h (ctime_compare):
33173         No longer inline.  Simplicity and portability trump efficiency here.
33175         misc: don't limit commentary to inline functions
33176         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33177         * lib/xalloc-oversized.h, lib/xsize.h:
33178         Contrast macros to functions in general, not just to inline functions,
33179         when the commentary does not apply only to inline functions.
33181 2012-09-20  Jim Meyering  <meyering@redhat.com>
33183         non-recursive-gnulib-prefix-hack: new module
33184         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33185         the file that originated in Bison.
33186         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33187         largely copied from a snippet that resided in bison's configure.ac.
33188         * modules/non-recursive-gnulib-prefix-hack: New file.
33189         * MODULES.html.sh (Support for maintaining and releasing projects):
33190         Add it.
33192 2012-09-18  Jim Meyering  <meyering@redhat.com>
33194         maint.mk: generalize _gl_tight_scope for non-recursive make
33195         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33196         that *.h would describe additional .h files in the directory
33197         specified by $(_gl_TS_dir).  I.e., add this...
33198         (_gl_TS_other_headers): New variable.
33200         maint.mk: exempt trailing blanks found in "binary" files
33201         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33202         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33203         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33205 2012-09-17  Jim Meyering  <meyering@redhat.com>
33207         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33208         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33209         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33210         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33212 2012-09-17  Jim Meyering  <meyering@redhat.com>
33214         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33215         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33216         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33217         It is not in the same category as "exit (0)" or "exit (1)", and
33218         besides, I know of no symbolic name for that 77.  Reported by
33219         Richard W.M. Jones in
33220         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33222 2012-09-17  Jim Meyering  <meyering@redhat.com>
33224         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33225         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33226         all uses of #define, not just those that start in column 1.
33227         Richard W.M. Jones reported a false positive in
33228         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33230 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33232         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33233         * lib/localcharset.c (locale_charset) [DARWIN7]:
33234         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33235         as these two values are incompatible.  Problem reported by Max Horn.
33236         For more discussion, please see
33237         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33239         doc: document sticky-EOF issue
33240         * doc/posix-functions/fgetc.texi (fgetc):
33241         * doc/posix-functions/fgets.texi (fgets):
33242         * doc/posix-functions/fread.texi (fread):
33243         * doc/posix-functions/fscanf.texi (fscanf):
33244         * doc/posix-functions/getc.texi (getc):
33245         * doc/posix-functions/getchar.texi (getchar):
33246         * doc/posix-functions/scanf.texi (scanf):
33247         Mention that glibc and default Solaris do not conform to
33248         C99 and POSIX-2001 or later, with respect to how getchar
33249         etc. behave when feof reports nonzero.
33251 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33253         poll: fix poll(0, NULL, msec)
33254         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33255         but nfd is 0.  In that case poll should behave like select.
33257 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33258             Paolo Bonzini  <bonzini@gnu.org>
33260         poll: fix for systems that can't recv() on a non-socket
33261         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33262         is readable.  In this case POLLHUP will not be supported.
33263         * doc/posix-functions/poll.texi: Document this.
33265 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33267         poll/select: document portability problems not fixed by Gnulib.
33268         * doc/posix-functions/poll.texi: poll does not work well on
33269         pipes under Windows.  It has the same limitations as select on
33270         BeOS.
33271         * doc/posix-functions/select.texi: select does not work well
33272         on pipes under Windows.
33274 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33276         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33277         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33278         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33279         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33281 2012-09-06  Eric Blake  <eblake@redhat.com>
33283         net_if: give more details about the bug being fixed
33284         * doc/posix-headers/net_if.texi: Add clarification.
33286 2012-09-05  Eric Blake  <eblake@redhat.com>
33288         net_if: new module
33289         * modules/net_if: New module, borrowing ideas from netinet_in.
33290         * m4/net_if_h.m4: New file.
33291         * lib/net_if.in.h: Likewise.
33292         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33293         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33294         * tests/test-net_if.c: Make function checks conditional.
33295         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33297 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33299         readutmp: fix non-portable UT_PID use
33300         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33301         Use `UT_PID (u) > 0' as absolute condition.
33303 2012-09-04  Jim Meyering  <meyering@redhat.com>
33305         fts: reduce two or more trailing spaces to just one, usually
33306         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33307         or more slashes, trim all but the final one.  But if a name consists
33308         solely of two slashes, don't modify it.  If it consists solely of
33309         three or more slashes, strip all but one.
33311         This is part of the solution to a minor problem with rm:
33312         it would print a bogus ELOOP diagnostic when failing to remove
33313         the slash-decorated name of a symlink-to-directory:
33315             $ mkdir d && ln -s d s && env rm -r s/
33316             rm: cannot remove 's': Too many levels of symbolic links
33318         With the change below and a trivial don't-trim-trailing-slashes
33319         adjustment to remove.c, it does this:
33321             $ env rm -r s/
33322             rm: cannot remove 's/': Not a directory
33324         Improved by: Eric Blake
33326         fts: when there is no risk of overlap, use memcpy, not memmove
33327         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33329 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33331         stdbool: be more compatible with mixed C/C++ compiles
33332         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33333         Define to bool, true, false, respectively, as GCC's builtin
33334         stdbool.h does.  Problem reported by Michael Goffioul in
33335         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33337 2012-08-28  Jim Meyering  <meyering@redhat.com>
33339         revert last change: it was not needed
33340         * tests/test-vc-list-files-git.sh: There's already a test for
33341         a working git, just below.
33343 2012-08-28  Jim Meyering  <meyering@redhat.com>
33345         tests: test-vc-list-files-git.sh: skip if git is not available
33346         * tests/test-vc-list-files-git.sh: Skip this test when git is
33347         not available.
33349 2012-08-26  Bruno Haible  <bruno@clisp.org>
33351         gnulib-tool: Remove no-op option --no-changelog.
33352         * gnulib-tool (func_usage): Don't mention --no-changelog.
33353         (do_changelog): Remove variable.
33354         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33356 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33358         doc: remove fdl-1.2.texi
33359         It is no longer used or maintained, and its use of @acronym
33360         is problematic.  See the thread containing
33361         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33362         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33363         * doc/old-licenses/fdl-1.2.texi: Remove.
33365         execinfo: port to FreeBSD
33366         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33367         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33368         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33369         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33371 2012-08-23  Jim Meyering  <meyering@redhat.com>
33373         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33374         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33375         to placate gcc's -Wold-style-declaration.
33377 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33379         doc: do not use @acronym
33380         * doc/inet_ntoa.texi (inet_ntoa):
33381         * doc/parse-datetime.texi (Seconds since the Epoch)
33382         (Specifying time zone rules):
33383         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33384         Don't use @acronym.  Problem reported by John Darlington in
33385         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33387 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33389         stdnoreturn: port to newer GCCs
33390         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33391         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33392         Problem reported by Jim Meyering in
33393         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33394         Also, rename the 'test' function to a void a clash with the
33395         already-supplied 'main' function; this fixes a bug that incorrectly
33396         rejected GCC 4.7.1's <stdnoreturn.h>.
33397         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33398         Document GCC problem.
33400 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33402         pipe-filter: fix comment typo
33403         * lib/pipe-filter.h: Mention correct function.
33405 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33407         execinfo: new module
33408         This is for Emacs.  Currently, it provides a no-effect stub
33409         on all platforms where it does not already work.
33410         It already works on glibc-based systems, and on Solaris 11.
33411         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33412         New files.
33413         * doc/glibc-headers/execinfo.texi (execinfo.h):
33414         * MODULES.html.sh (Misc): Document it.
33416 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33418         extern-inline: support old GCC 'inline'
33419         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33420         if available.  This applies to GCC versions 2.7 through 4.2, or
33421         when newer GCC is using -fgnu89-inline.  The goal is to address
33422         some of the performance issues mentioned by Bruno Haible in
33423         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33425 2012-08-20  Eric Blake  <eblake@redhat.com>
33427         maint.mk: avoid redundant file name in message
33428         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33429         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33430         (sc_makefile_path_separator_check): Remove bogus $(ME).
33432 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33434         timer-time: fix link order when static linking on glibc
33435         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33436         _after_ -lrt so that it's significant.
33438 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33440         timespec: omit unnecessary AC_C_INLINE
33441         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33443         stat-time: omit unnecessary AC_C_INLINE
33444         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33445         Do not require AC_C_INLINE.
33447         ignore-value: omit unnecessary AC_C_INLINE
33448         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33450         sys_select: avoid 'static inline'
33451         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33453         mktime: avoid 'static inline'
33454         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33455         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33457 2012-08-19  Bruno Haible  <bruno@clisp.org>
33459         gnulib-tool: Improve coding style.
33460         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33461         func_emit_lib_Makefile_am.
33462         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33464 2012-08-19  Bruno Haible  <bruno@clisp.org>
33466         gnulib-tool: Fix indentation.
33467         * gnulib-tool (func_import): Fix indentation.
33469 2012-08-19  Bruno Haible  <bruno@clisp.org>
33471         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33472         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33473         on the list of removed files.
33475 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33477         test-parse-datetime: avoid glibc leap-second glitch
33478         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33479         with the 2012 rules.  Problem reported by Bruce Dubbs in
33480         <http://bugs.gnu.org/12206>.
33482 2012-08-14  Bruno Haible  <bruno@clisp.org>
33484         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33485         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33486         from argument.
33487         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33489 2012-08-14  Eric Blake  <eblake@redhat.com>
33491         ldexp: relax license
33492         * modules/ldexp (License): Trivial relax, since the module only
33493         provides a permissively licensed m4 file.
33495 2012-08-13  Bruno Haible  <bruno@clisp.org>
33497         gnulib-tool: Fix persistence of --witness-c-macro option.
33498         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33499         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33501 2012-08-11  Eric Blake  <eblake@redhat.com>
33503         count-leading-zeros: use a lookup table on non-gcc compilers
33504         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33505         alternate implementation, suggested by Jim Meyering.
33507 2012-08-10  Eric Blake  <eblake@redhat.com>
33509         count-leading-zeros: new module
33510         * modules/count-leading-zeros: New module.
33511         * m4/count-leading-zeros.m4: New file.
33512         * lib/count-leading-zeros.h: Likewise.
33513         * modules/count-leading-zeros-tests: New test.
33514         * tests/test-count-leading-zeros.c: New file.
33515         * MODULES.html.sh (Integer arithmetic functions): Document it.
33517 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33518             Jim Meyering  <meyering@redhat.com>
33520         maintainer-makefile: Fix syntax error with dash.
33521         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33522         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33524 2012-08-05  Jim Meyering  <meyering@redhat.com>
33526         extern-inline: also ignore -Wmissing-declarations
33527         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33528         required with gcc-4.8.0-to-be.
33530         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33531         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33532         for /error ?([^,]*)/.  This avoids false-positives for strings like
33533         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33535 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33537         gnumakefile: better interaction with Automake-NG
33538         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33539         Automake-NG always contain a definition of VPATH, even in non-VPATH
33540         builds (its value being simply '.' in that case).  So, in the
33541         'clean-GNUmakefile' rule, to determine whether running under a
33542         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33543         '$(VPATH)' expands to the empty string.
33545 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33547         base64: Use extern C scope in header file, for C++.
33548         * lib/base64.h: Add C++ namespace protection.
33550 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33552         stat-time, timespec, u64: support naive out-of-dir builds
33553         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33554         Use '#include "foo.h"', not '#include <foo.h>', when including
33555         one's own interface.  This works better when configuring with
33556         out-of-directory builds, since packages need not add an
33557         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33559 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33561         utimens: use extern-inline
33562         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33563         * lib/utimens.h: Add copyright notice, since this is now large enough
33564         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33565         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33566         * modules/utimens (Depends-on): Add extern-inline.
33568         u64: use extern-inline
33569         * lib/u64.c: New file.
33570         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33571         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33572         * modules/u64 (Files): Add lib/u64.c.
33573         (Depends-on): Add extern-inline.
33574         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33575         does that now.
33576         (lib_SOURCES): Add u64.c.
33578         timespec: use extern-inline
33579         * lib/timespec.c: New file.
33580         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33581         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33582         * modules/timespec (Files): Add lib/timespec.c.
33583         (Depends-on): Add extern-inline.
33584         (lib_SOURCES): Add timespec.c.
33586         stat-time: use extern-inline
33587         * lib/stat-time.c: New file.
33588         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33589         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33590         * modules/stat-time (Files): Add lib/stat-time.c.
33591         (Depends-on): Add extern-inline.
33592         (lib_SOURCES): Add stat-time.c.
33594         extern-inline: new module
33595         * modules/extern-inline, m4/extern-inline.m4: New files.
33596         This is for better support of 'extern inline' a la ISO C99,
33597         with a portable alternative on compilers that do not support
33598         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33599         of the Emacs executable, when compiled with debugging disabled,
33600         which is a typical way that Emacs is built while developing.
33602 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33604         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33605         * build-aux/do-release-commit-and-tag: Move variable definitions
33606         together.
33607         ($branch): Instead of defaulting to "master", default to the current
33608         branch (as gnu-web-doc-update does).
33609         (help): Display the current values of the option arguments.
33610         * top/maint.mk (release-commit): New.
33611         * top/README-release: Simplify the corresponding step.
33613 2012-07-30  Eric Blake  <eblake@redhat.com>
33615         passfd: fix comment on recvfd
33616         * lib/passfd.c (recvfd): Fix comment.
33617         Reported by Jann Horn <jannhorn@googlemail.com>.
33619 2012-07-30  Jim Meyering  <meyering@redhat.com>
33621         maint.mk: avoid a sub-shell
33622         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33624 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33626         maint.mk: use silent-rules support from Automake
33627         * top/maint.mk (news-check, vc-diff-check, announcement)
33628         (no-submodule-changes, alpha beta stable, release-prep)
33629         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33631 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33633         maint.mk: provide a web-manual-update target
33634         * top/maint.mk: here.
33635         * top/README-release: Use it to simplify the web manual update step.
33637 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33639         README-release: shorten the circuit to post a news
33640         * top/README-release: Point directly to the news submission form.
33642 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33644         gnu-web-doc-update: fix --help
33645         * build-aux/gnu-web-doc-update: The information "top level" was written
33646         twice.
33648 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33650         maint.mk: absolute VPATH issue
33651         * top/maint.mk (release-prep): Help Git find .git/.
33652         From Jim Meyering.
33654 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33656         gitlog-to-changelog: fix previous change
33657         * build-aux/gitlog-to-changelog: Fix condition.
33658         Add missing ";".
33660 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33662         gitlog-to-changelog: don't expect .git to be in $srcdir
33663         Reported by Bruno Haible.
33664         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33665         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33666         Use it.
33668 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33670         maint.mk: absolute VPATH build fix
33671         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33672         $(srcdir) is not a parent of $(builddir).
33674 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33676         clean-temp: Fix memory leak.
33677         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33678         'files' members of tmpdir.
33680 2012-07-27  Jim Meyering  <meyering@redhat.com>
33682         maint.mk: new rule: refresh-gnulib-patches
33683         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33684         Use this rule to refresh them.
33685         * top/maint.mk (refresh-gnulib-patches): New rule.
33687 2012-07-24  Bruno Haible  <bruno@clisp.org>
33689         gnulib-tool: Fix handling of inctests variable.
33690         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33691         Reported by Nick Bowler <nbowler@elliptictech.com>.
33693 2012-07-22  Bruno Haible  <bruno@clisp.org>
33695         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33696         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33697         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33698         Remove exemption for getpass.h.
33699         Suggested by Eric Blake.
33701 2012-07-20  Eric Blake  <eblake@redhat.com>
33703         verify: document conflict with -Wnested-externs
33704         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33706         maint.mk: forbid exit(-1)
33707         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33709 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33711         fsusage: port back to Solaris
33712         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33713         error (fsd not declared) on Solaris 10.  Reported privately by
33714         Andrew Borodin.
33716 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33718         gnu-web-doc-update: fix error messages
33719         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
33721         gnu-web-doc-update: check the requirements.
33722         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
33723         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
33724         * build-aux/bootstrap (find_tool): Comment change.
33726 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
33728         maint.mk: minor simplication.
33729         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
33730         for default values.
33732 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
33734         gitlog-to-changelog: VPATH build issues
33735         If builddir is not a subdirectory of srcdir, running git from it will
33736         fail.
33737         * build-aux/gitlog-to-changelog (--srcdir): New option.
33739 2012-07-15  Bruno Haible  <bruno@clisp.org>
33741         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
33742         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
33743         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
33744         Remove exemption for fpending.h.
33745         Suggested by Eric Blake.
33747 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33749         pthread_sigmask: fix bug on FreeBSD 9
33750         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
33751         Include string.h.
33752         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
33753         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
33754         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
33755         but pthread_sigmask (1729, NULL, NULL) returns zero.
33756         See <http://bugs.gnu.org/11884>.
33757         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
33758         by inspecting whether the main call changed the old mask.
33760 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
33762         README-release: make it more legible
33763         * top/README-release: Improve typography slightly.
33765 2012-07-15  Jim Meyering  <meyering@redhat.com>
33767         maint: require that each sc_... command start with "@"
33768         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
33769         "make sc_maint" helps us avoid this nit.
33771 2012-07-15  Jim Meyering  <meyering@redhat.com>
33773         maint.mk: add leading "@" to quiet new "make syntax-check" rule
33774         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
33776 2012-07-13  Eric Blake  <eblake@redhat.com>
33778         maint.mk: new syntax check for HAVE_DECL checks
33779         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
33780         * cfg.mk
33781         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33782         Exempt some false positives.
33783         Based on a report by Karel Zak.
33785         argp: make HAVE_DECL usage consistent
33786         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
33787         macros, not whether they are defined.
33788         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
33789         convention with other declaration checks.
33790         Reported by Karel Zak, with suggestions from Paul Eggert.
33792         stat-time: relax license to LGPLv2+
33793         * modules/stat-time (License): Relax, with consent of all authors.
33795         strndup: fix m4 usage error
33796         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
33797         defined, to either 0 or 1.
33798         Reported by Karel Zak.
33800 2012-07-11  Jim Meyering  <meyering@redhat.com>
33802         maint: enable the sc_avoid_if_before_free syntax-check rule
33803         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
33804         (if_before_free_offenders_): Define.
33805         (if_before_free_basename_re_): Define.
33806         Exempt current files with useless if-before-free.
33808 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33810         gettext: do not assume '#define ... defined ...' behavior
33811         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
33812         Do not use '#define FOO ... defined BAR ...', as the C standard says
33813         it's not portable to expect that this works after macro expansion.
33814         Problem reported for gzip by Steven M. Schweda in
33815         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
33817 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33819         getloadavg: clean out old Emacs and Autoconf cruft
33820         See Glenn Morris in <http://bugs.gnu.org/11905>.
33821         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
33822         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
33823         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
33824         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
33826 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
33828         bootstrap: let warn be like tests/init.sh's warn_
33829         Reported by Jim Meyering.
33830         * build-aux/bootstrap (warn): Remove, replaced by...
33831         (warnf_, warn_): these.
33832         Adjust callers.
33833         Shorten messages that no longer fit in 80 columns.
33835 2012-07-09  Bruno Haible  <bruno@clisp.org>
33837         getopt: Simplify after Emacs changed.
33838         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
33839         (gl_GETOPT_IFELSE): Remove macro.
33841 2012-07-09  Jim Meyering  <meyering@redhat.com>
33843         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
33844         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
33846         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
33847         Bugs in both of those conspired to make the
33848         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
33849         _sc_search_regexp's handling of non-empty $in_files would filter
33850         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
33851         choice of in_files value meant there would be no match in most
33852         projects, due to the presence of two or more Makefile.in files.
33853         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
33854         Fix a bug in how a non-empty $$in_files was processed:
33855         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
33856         in spite of the name, it's a regexp, not a list of file names.
33858 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33860         getloadavg, getopt: fix commentary re configure.in
33861         Autoconf is deprecating the name 'configure.in', so change it to
33862         to the new name 'configure.ac' in a couple of places.
33863         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
33864         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
33865         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
33866         Emacs has renamed it to configure.ac, and it no longer refers
33867         to these macros anyway.
33869         timespec: mark functions with const attributes
33870         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
33871         Mark with _GL_ATTRIBUTE_CONST.
33873 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
33875         canonicalize[-lgpl]: handle "guessing" values when cross-building
33876         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33877         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
33878         matches "*yes" instead of just "yes".  Regression introduced in commit
33879         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
33881 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
33882             Bruno Haible  <bruno@clisp.org>
33884         canonicalize: make the right guess when cross-compiling to GNU
33885         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
33886         determine whether cross-compiling to glibc systems, so as to
33887         include GNU/Hurd.
33889 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33891         timespec-sub: avoid duplicate include
33892         * lib/timespec-sub.c: Do not include <config.h> twice.
33893         Reported by Juanma Barranquero.
33895 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
33897         bootstrap: use a more consistent error reporting scheme
33898         * build-aux/bootstrap (warn, die): New.
33899         Use them.
33901 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33903         sys_time: allow too-wide tv_sec
33904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
33905         timeval even if tv_sec is wider than time_t.  This allows
33906         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
33907         as without this patch gnulib replaces struct timeval
33908         and OpenBSD futimes therefore has a type mismatch.
33909         * doc/posix-headers/sys_time.texi: Mention this.
33911         pthread: check for both pthread_create and pthread_join
33912         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
33913         alter the check so that it tests for both pthread_create and
33914         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
33915         Suggested by Bruno Haible and Richard Yao in
33916         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
33918         parse-datetime: doc tuneup
33919         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
33920         spacing issues.
33922 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
33924         do-release-commit-and-tag: fix the previous commit
33925         * build-aux/do-release-commit-and-tag: Actually the test was right,
33926         but the comment and the error message were misleading.
33927         Fix comment, and improve error message.
33928         Perform check first, so that NEWS is not modified uselessly.
33930         do-release-commit-and-tag: fix typo
33931         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
33932         _not_ start with a stub.
33934 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
33936         pthread: check for pthread_create, not pthread_join
33937         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
33938         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
33939         pthread_join in libc.  I hope this removes the need for all the
33940         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
33941         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
33943 2012-07-04  Jim Meyering  <meyering@redhat.com>
33945         parse-datetime: fix failure to diagnose invalid input
33946         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
33947         rather than diagnosing the invalid input.  Now it reports this:
33948         date: invalid date '\260'
33949         * lib/parse-datetime.y (to_uchar): Define.
33950         (yylex): Don't sign-extend "other" bytes.
33951         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
33952         Thanks to Bruno Haible for the patch to this file.
33953         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
33954         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
33956 2012-07-03  Jim Meyering  <meyering@redhat.com>
33958         bootstrap: do not require now-removed build-aux/missing
33959         Now that build-aux/missing is, er, missing, bootstrap would
33960         silently fail.
33961         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
33962         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
33963         no longer part of gnulib.
33964         Diagnose the failure.
33966 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
33968         alloca: add support for HP NonStop TNS/E native
33969         * lib/alloca.in.h (alloca): Support the new host.
33970         From a suggestion by Joachim Schmitz in
33971         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
33973 2012-07-02  Pádraig Brady  <P@draigBrady.com>
33975         fsusage: remove code not needed on non GNU/Linux systems.
33977         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
33978         Don't include headers no longer needed in this case.
33979         * lib/fsusage.c [STAT_STATVFS &&
33980         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
33981         STAT_STATFS2_FRSIZE to exclude code not used in this case.
33983 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33985         fsusage: include files needed for glibc 2.6 fallback
33986         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
33987         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
33988         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
33989         Problem reported by Ludovic Courtès in
33990         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
33992         fsusage: avoid needless check on GNU/Linux
33993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
33994         on GNU/Linux systems, since it can't possibly work.
33996 2012-07-01  Bruno Haible  <bruno@clisp.org>
33998         log: Fix an autoconf >= 2.64 warning.
33999         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34000         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34002 2012-06-28  Bruno Haible  <bruno@clisp.org>
34004         log10f: Fix possible configuration problem.
34005         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34006         $LOGF_LIBM.
34007         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34009 2012-06-28  Bruno Haible  <bruno@clisp.org>
34011         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34012         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34013         not gl_cv_func_unlink_works.
34014         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34016 2012-06-27  Eric Blake  <eblake@redhat.com>
34018         config: drop scripts that automake says are not independent
34019         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34020         * build-aux/elisp-comp: Delete.
34021         * build-aux/missing: Likewise.
34022         * build-aux/ylwrap: Likewise.
34023         * modules/elisp-comp: Likewise.
34024         * MODULES.html.sh: Drop mention of elisp-comp.
34025         * NEWS: Mention this.
34027 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34029         root-uid: new module
34030         This is for portability to Tandem's NonStop Kernel.
34031         * lib/root-uid.h, modules/root-uid: New files.
34032         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34033         * lib/write-any-file.c, tests/test-sethostname2.c:
34034         Include "root-uid.h".
34035         * lib/euidaccess.c (euidaccess):
34036         * lib/pt_chown.c (main):
34037         * lib/unlinkdir.c (cannot_unlink_dir):
34038         * lib/write-any-file.c (can_write_any_file):
34039         * m4/mknod.m4 (gl_FUNC_MKNOD):
34040         * tests/test-sethostname2.c (geteuid, main):
34041         Don't assume ROOT_UID == 0.
34042         * modules/euidaccess (Depends-on):
34043         * modules/pt_chown (Depends-on):
34044         * modules/sethostname-tests (Depends-on):
34045         * modules/unlinkdir (Depends-on):
34046         * modules/write-any-file (Depends-on):
34047         Add root-uid.
34049         regex: use locale-independent comparison for codeset name
34050         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34051         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34052         for codeset name.
34053         * lib/regex_internal.h: Do not include <strings.h>, since we
34054         no longer use strcasecmp.
34055         * modules/regex (Depends-on): Remove strcase.
34057 2012-06-23  Bruno Haible  <bruno@clisp.org>
34059         getopt-posix: No longer guarantee that option processing is resettable.
34060         * doc/posix-functions/getopt.texi: Drop description of problem with
34061         internal state. Fix info about mingw and msvc9.
34062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34063         option processing by getopt(). Run three test programs instead of one.
34064         Simplify cross-compilation guess.
34065         * NEWS: Mention the change.
34066         Reported by Rich Felker <dalias@aerifal.cx>.
34068 2012-06-26  Bruno Haible  <bruno@clisp.org>
34070         argp, regex: Ensure strcasecmp gets declared.
34071         * lib/argp-help.c: Include <strings.h>.
34072         * lib/regex_internal.h: Likewise.
34073         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34075 2012-06-24  Bruno Haible  <bruno@clisp.org>
34077         ptsname_r: Make it consistent with ptsname on AIX.
34078         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34079         implementation as for OSF/1.
34080         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34081         a pty master.
34083         ptsname_r: Make it consistent with ptsname on OSF/1.
34084         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34085         OSF/1.
34087 2012-06-24  Bruno Haible  <bruno@clisp.org>
34089         ttyname_r: Fix result on OSF/1, Solaris.
34090         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34092 2012-06-24  Bruno Haible  <bruno@clisp.org>
34094         ptsname_r: Add support for Solaris.
34095         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34096         Solaris.
34098         ptsname_r: Fix test failure on native Windows.
34099         * modules/ptsname_r (Depends-on): Add isatty.
34101         ptsname_r: Fix test failures on IRIX, Solaris.
34102         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34103         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34104         accordingly.
34105         * lib/ptsname_r.c: Include <fcntl.h>.
34106         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34107         set errno if fd is invalid.
34108         * tests/test-isatty.c (main): Update comments.
34110 2012-06-24  Bruno Haible  <bruno@clisp.org>
34112         ptsname test: Extend test.
34113         * tests/test-ptsname.c: Include <errno.h>.
34114         (main): Test behaviour with invalid file descriptor.
34116 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34118         time: fix obsolete comment
34119         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34120         reference to HAVE_STRUCT_TIMESPEC in comment.
34122 2012-06-23  Bruno Haible  <bruno@clisp.org>
34124         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34126         does not handle abbreviated long options with equivalent
34127         disambiguations, set gl_replace_getopt to yes.
34128         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34130 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34132         time_r: fix typo that always overrode localtime_r decl
34133         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34134         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34135         not in a standard include.
34137 2012-06-22  Bruno Haible  <bruno@clisp.org>
34139         Write "Mac OS X" instead of "MacOS X".
34140         * README: Write "Mac OS X" instead of "MacOS X".
34141         * build-aux/bootstrap: Likewise.
34142         * build-aux/install-reloc: Likewise.
34143         * lib/acl-internal.h: Likewise.
34144         * lib/acl_entries.c: Likewise.
34145         * lib/argp-ba.c: Likewise.
34146         * lib/argp-pv.c: Likewise.
34147         * lib/config.charset: Likewise.
34148         * lib/copy-acl.c: Likewise.
34149         * lib/csharpexec.c: Likewise.
34150         * lib/euidaccess.c: Likewise.
34151         * lib/fbufmode.c: Likewise.
34152         * lib/fflush.c: Likewise.
34153         * lib/file-has-acl.c: Likewise.
34154         * lib/filemode.h: Likewise.
34155         * lib/fpurge.c: Likewise.
34156         * lib/freadable.c: Likewise.
34157         * lib/freadahead.c: Likewise.
34158         * lib/freading.c: Likewise.
34159         * lib/freadptr.c: Likewise.
34160         * lib/freadseek.c: Likewise.
34161         * lib/fseeko.c: Likewise.
34162         * lib/fseterr.c: Likewise.
34163         * lib/fsusage.c: Likewise.
34164         * lib/fwritable.c: Likewise.
34165         * lib/fwriting.c: Likewise.
34166         * lib/get-rusage-as.c: Likewise.
34167         * lib/get-rusage-data.c: Likewise.
34168         * lib/getdomainname.c: Likewise.
34169         * lib/idpriv-drop.c: Likewise.
34170         * lib/idpriv-droptemp.c: Likewise.
34171         * lib/localcharset.c: Likewise.
34172         * lib/locale.in.h: Likewise.
34173         * lib/localename.c: Likewise.
34174         * lib/mbsrtowcs-state.c: Likewise.
34175         * lib/nproc.c: Likewise.
34176         * lib/passfd.c: Likewise.
34177         * lib/posix_openpt.c: Likewise.
34178         * lib/printf-parse.c: Likewise.
34179         * lib/progreloc.c: Likewise.
34180         * lib/safe-read.h: Likewise.
34181         * lib/safe-write.h: Likewise.
34182         * lib/sched.in.h: Likewise.
34183         * lib/set-mode-acl.c: Likewise.
34184         * lib/signal.in.h: Likewise.
34185         * lib/stdint.in.h: Likewise.
34186         * lib/stdio-impl.h: Likewise.
34187         * lib/stdlib.in.h: Likewise.
34188         * lib/strtod.c: Likewise.
34189         * lib/sys_select.in.h: Likewise.
34190         * lib/tcgetsid.c: Likewise.
34191         * lib/unistd.in.h: Likewise.
34192         * lib/unlockpt.c: Likewise.
34193         * lib/vasnprintf.c: Likewise.
34194         * lib/vma-iter.c: Likewise.
34195         * lib/wcsrtombs-state.c: Likewise.
34196         * m4/acl.m4: Likewise.
34197         * m4/acosl.m4: Likewise.
34198         * m4/asinl.m4: Likewise.
34199         * m4/atanl.m4: Likewise.
34200         * m4/c-stack.m4: Likewise.
34201         * m4/cosl.m4: Likewise.
34202         * m4/expl.m4: Likewise.
34203         * m4/extensions.m4: Likewise.
34204         * m4/fdatasync.m4: Likewise.
34205         * m4/fmal.m4: Likewise.
34206         * m4/frexp.m4: Likewise.
34207         * m4/frexpf.m4: Likewise.
34208         * m4/frexpl.m4: Likewise.
34209         * m4/fsusage.m4: Likewise.
34210         * m4/getdomainname.m4: Likewise.
34211         * m4/getloadavg.m4: Likewise.
34212         * m4/getopt.m4: Likewise.
34213         * m4/gettext.m4: Likewise.
34214         * m4/gnulib-common.m4: Likewise.
34215         * m4/intdiv0.m4: Likewise.
34216         * m4/intlmacosx.m4: Likewise.
34217         * m4/largefile.m4: Likewise.
34218         * m4/ldexpl.m4: Likewise.
34219         * m4/link-follow.m4: Likewise.
34220         * m4/locale-ar.m4: Likewise.
34221         * m4/locale-fr.m4: Likewise.
34222         * m4/locale-ja.m4: Likewise.
34223         * m4/locale-tr.m4: Likewise.
34224         * m4/locale-zh.m4: Likewise.
34225         * m4/locale_h.m4: Likewise.
34226         * m4/lock.m4: Likewise.
34227         * m4/logl.m4: Likewise.
34228         * m4/mathfunc.m4: Likewise.
34229         * m4/minus-zero.m4: Likewise.
34230         * m4/mktime.m4: Likewise.
34231         * m4/mmap-anon.m4: Likewise.
34232         * m4/multiarch.m4: Likewise.
34233         * m4/nanosleep.m4: Likewise.
34234         * m4/nocrash.m4: Likewise.
34235         * m4/poll.m4: Likewise.
34236         * m4/printf-frexpl.m4: Likewise.
34237         * m4/printf.m4: Likewise.
34238         * m4/signbit.m4: Likewise.
34239         * m4/sinl.m4: Likewise.
34240         * m4/sqrtl.m4: Likewise.
34241         * m4/strerror_r.m4: Likewise.
34242         * m4/tanl.m4: Likewise.
34243         * m4/threadlib.m4: Likewise.
34244         * m4/ttyname_r.m4: Likewise.
34245         * m4/unlink.m4: Likewise.
34246         * m4/visibility.m4: Likewise.
34247         * m4/wcwidth.m4: Likewise.
34248         * tests/minus-zero.h: Likewise.
34249         * tests/test-alloca-opt.c: Likewise.
34250         * tests/test-copy-acl.sh: Likewise.
34251         * tests/test-copy-file.sh: Likewise.
34252         * tests/test-fdatasync.c: Likewise.
34253         * tests/test-file-has-acl.sh: Likewise.
34254         * tests/test-flock.c: Likewise.
34255         * tests/test-fsync.c: Likewise.
34256         * tests/test-localename.c: Likewise.
34257         * tests/test-malloca.c: Likewise.
34258         * tests/test-nonblocking-pipe.h: Likewise.
34259         * tests/test-nonblocking-socket.h: Likewise.
34260         * tests/test-openpty.c: Likewise.
34261         * tests/test-posix_openpt.c: Likewise.
34262         * tests/test-ptsname.c: Likewise.
34263         * tests/test-ptsname_r.c: Likewise.
34264         * tests/test-sameacls.c: Likewise.
34265         * tests/test-select.h: Likewise.
34266         * tests/test-set-mode-acl.sh: Likewise.
34267         * tests/test-snprintf-posix.h: Likewise.
34268         * tests/test-sprintf-posix.h: Likewise.
34269         * tests/test-strtod.c: Likewise.
34270         * tests/test-time.c: Likewise.
34271         * tests/test-vasnprintf-posix.c: Likewise.
34272         * tests/test-vasprintf-posix.c: Likewise.
34273         * doc/acl-resources.txt: Likewise.
34274         * doc/**/*.texi: Likewise.
34275         Reported by Max Horn <max@quendi.de>.
34277 2012-06-22  Bruno Haible  <bruno@clisp.org>
34279         grantpt: Relax requirement regarding invalid file descriptors.
34280         * lib/grantpt.c: Don't include <fcntl.h>.
34281         (grantpt): Don't verify the validity of the file descriptor.
34282         * modules/grantpt (Depends-on): Remove fcntl-h.
34283         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34284         file descriptors.
34285         * doc/posix-functions/grantpt.texi: Document more platforms on which
34286         grantpt succeeds for invalid file descriptors.
34287         Reported by Rich Felker <dalias@aerifal.cx>.
34289 2012-06-22  Bruno Haible  <bruno@clisp.org>
34291         fbufmode test: Don't test unportable behaviour.
34292         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34293         (main): Invoke it three times.
34294         Reported by Szabolcs Nagy <nsz@port70.net>
34295         and Rich Felker <dalias@aerifal.cx>.
34297 2012-06-21  Bruno Haible  <bruno@clisp.org>
34299         gnulib-tool: Refactor inctests variable.
34300         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34301         (func_modules_transitive_closure,
34302         func_modules_transitive_closure_separately,
34303         func_import, func_create_testdir): Update.
34305         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34306         * gnulib-tool: Accept option --without-tests.
34307         (func_usage): Document --without-tests option. Rearrange.
34308         (inctests): Normalize according to the mode.
34309         * NEWS: Mention the change.
34310         Suggested by Simon Josefsson.
34312 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34314         parse-duration test: Avoid spurious output.
34315         * tests/test-parse-duration.sh: Reindent with leading tabs.
34317 2012-06-21  Jim Meyering  <meyering@redhat.com>
34319         maint: disable the strncpy prohibition
34320         * cfg.mk: Do not prohibit strncpy here.
34322 2012-06-21  Bruno Haible  <bruno@clisp.org>
34324         nonblocking: Avoid compilation error on mingw64.
34325         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34326         fscanf.
34327         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34328         * modules/vfscanf (configure.ac): Likewise.
34329         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34330         definition only if stdio.h has prepared it.
34331         Reported by Daniel P. Berrange <berrange@redhat.com>.
34333 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34335         gnulib-tool: Use readlink if it is available.
34336         * gnulib-tool (func_readlink): Choose function more appropriately.
34338 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34340         posixtm-tests: port to buggy compiler
34341         Problem reported by Simon Josefsson in
34342         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34343         * modules/posixtm-tests (Depends-on): Add stdint.
34344         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34345         Now of type int_least64_t, not int64_t, both because that's
34346         what INT64_C returns and because int_least64_t works even
34347         on 72-bit hosts.
34348         (T): Use INT64_C on constants outside the traditional int range,
34349         to work around compiler bug noted by Simon.
34351         mktime: fix integer overflow in 'configure'-time test
34352         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34353         after integer overflow.  Problem reported by Rich Felker in
34354         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34355         Also, don't look for further instances of a bug if we've already
34356         found one instance; this helps 'configure' run faster.
34358 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34360         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34361         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34362         GetVersionEx correctly.
34363         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34365 2012-06-20  Bruno Haible  <bruno@clisp.org>
34367         fdopen: Allow implementations that don't reject invalid fd arguments.
34368         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34369         succeeds.
34370         Reported by Rich Felker <dalias@aerifal.cx>.
34372 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34374         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34375         bring in LIBINTL.
34377 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34379         init.sh: do not rely on autoupated PWD
34380         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34381         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34382         Although Nelson's bug was not necessarily fixed by this patch,
34383         it seems wise to make the change for safety.
34384         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34385         automagically after 'cd'; this is not reliable on older shells.
34386         (setup_): Fail if we cannot cd to temporary directory.
34388 2012-06-19  Bruno Haible  <bruno@clisp.org>
34390         stat, fstat: Avoid warnings on mingw64.
34391         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34392         redefining.
34393         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34394         Reported by Daniel P. Berrange <berrange@redhat.com>.
34396 2012-06-19  Bruno Haible  <bruno@clisp.org>
34398         stdioext: Add support for musl libc.
34400         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34401         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34403         * m4/fseterr.m4: New file.
34404         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34405         function exists.
34406         * modules/fseterr (Files): Add m4/fseterr.m4.
34407         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34408         __fseterr does not exist.
34409         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34411         * lib/freadable.h: Update comment.
34413         * lib/fwritable.h: Update comment.
34415         * lib/freading.h: Update comment.
34417         * lib/fwriting.h: Update comment.
34419         * m4/freadahead.m4: New file.
34420         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34421         that function exists.
34422         * modules/freadahead (Files): Add m4/freadahead.m4.
34423         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34424         __freadahead does not exist.
34425         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34427         * m4/freadptr.m4: New file.
34428         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34429         function exists.
34430         * modules/freadptr (Files): Add m4/freadptr.m4.
34431         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34432         __freadptr does not exist.
34433         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34435         * m4/freadseek.m4: New file.
34436         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34437         exists.
34438         * modules/freadseek (Files): Add m4/freadseek.m4.
34439         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34441         * lib/fpurge.c (fpurge): Update comment.
34443         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34445 2012-06-19  Bruno Haible  <bruno@clisp.org>
34447         *printf-posix: Put more info into config.log.
34448         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34449         exit code into config.log.
34451 2012-06-19  Bruno Haible  <bruno@clisp.org>
34453         getopt-gnu: Fix exit code overflow in autoconf test.
34454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34455         to keep them below < 128.
34457 2012-06-17  Jim Meyering  <meyering@redhat.com>
34459         maint.mk: fix typo in code to derive GPG key at release time
34460         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34462 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34464         regex: avoid warning when pointers are not long
34465         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34466         and uintptr_t, not long, for portability to hosts where pointers and
34467         long have different sizes.  Issue noted by Daniel P. Berrange in
34468         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34469         and fix suggested by Bruno Haible in
34470         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34472 2012-06-17  Bruno Haible  <bruno@clisp.org>
34474         dummy: Relicense into the public domain.
34475         * modules/dummy (License): Set to "public domain".
34476         Suggested by Reuben Thomas.
34478 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34480         announce-gen: VPATH issues
34481         * build-aux/announce-gen (--srcdir): New option, used to trim the
34482         $srcdir part of the path from $builddir to NEWS.
34483         * top/maint.mk (announcement): Adjust.
34485 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34487         gnu-web-doc-update: VPATH builds
34488         * build-aux/gnu-web-doc-update (--builddir): New option.
34489         Revamp the handling of options.
34490         Prefer $(...) to `...`.
34491         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34492         the template, and it is GNU mktemp specific.
34493         Prefer set -e to long series of &&.
34494         Restore the initial git branch, not "master".
34495         Properly initialize submodules (don't rely only on bootstrap).
34496         Do not reconfigure blindly, use config.status.
34497         * top/README-release: Update instructions for gnu-web-doc-update.
34499 2012-06-11  Jim Meyering  <meyering@redhat.com>
34501         maint.mk: revert most of the previous change re "all these"
34502         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34503         For rationale, see the discussion at
34504         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34506 2012-06-10  Karl Berry  <karl@gnu.org>
34508         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34510         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34512 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34514         parse-duration: Relicense under LGPLv2+.
34515         * modules/parse-duration (License): Change to LGPLv2+.
34517 2012-06-10  Jim Meyering  <meyering@redhat.com>
34519         maint.mk: prohibit common grammar error: "all these"
34520         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34521         the list of prohibited word sequences.  It should be "all of these".
34522         * lib/tempname.c (__gen_tempname): Fix one of them.
34524 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34526         do-release-commit-and-tag: support VPATH builds
34527         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34528         (noteworthy): Defined earlier to factor its value.
34529         (noteworthy_stub): New.
34530         Use it to factor.
34531         (help_version): Split into...
34532         (help, version): these.
34533         Adjust the option processing part.
34534         Support "--option=value" in addition to "--option value".
34535         (builddir): New.
34536         (--builddir): New option.
34537         * top/README-release: Document this.
34538         Reword slightly so that the reader cannot understand that he
34539         has to do these steps before calling do-release-commit-and-tag.
34541 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34543         readme-release: also require announce-gen and maintainer-makefile
34544         * modules/readme-release (Depends-on): here.
34545         * modules/announce-gen, modules/do-release-commit-and-tag,
34546         modules/gnu-web-doc-update, modules/maintainer-makefile
34547         (Description): Point to readme-release.
34549 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34551         maint.mk: fix VPATH issues.
34552         * top/maint.mk (news-check): GNU Make understand $< very well.
34553         (release-prep): NEWS is in $(srcdir).
34555 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34557         readme-release: require the promoted modules.
34558         * modules/readme-release (Depends-on): Add
34559         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34560         in this text.
34562 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34563             Bruno Haible  <bruno@clisp.org>
34565         error, strerror-override: Support mingw64 from Fedora 17.
34566         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34567         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34568         EINPROGRESS.
34569         * lib/strerror-override.h (strerror_override): Test it.
34570         * lib/strerror-override.c (strerror_override): Likewise.
34571         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34573 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34574             Bruno Haible  <bruno@clisp.org>
34576         error, strerror-override: Support mingw64 from Fedora 17.
34577         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34578         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34579         * lib/strerror-override.h (strerror_override): Test it.
34580         * lib/strerror-override.c (strerror_override): Likewise.
34582 2012-06-03  Bruno Haible  <bruno@clisp.org>
34584         error, strerror-override: Support new errno values from POSIX:2008.
34585         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34586         ENOTRECOVERABLE.
34587         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34588         platforms.
34589         * lib/strerror-override.c (strerror_override): Conditionalize the
34590         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34591         * lib/strerror-override.h (strerror_override): Declare also if
34592         GNULIB_defined_EOWNERDEAD is defined.
34593         * tests/test-errno.c (e130, e131): New variables.
34594         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34595         ENOTRECOVERABLE.
34596         Reported by Paolo Bonzini.
34598 2012-05-31  Jim Meyering  <meyering@redhat.com>
34600         savewd: add missing dependency on sys_wait module
34601         * modules/savewd (Depends-on): Add sys_wait, needed at least
34602         for MSVC.  Report and suggested change by Michael Goffioul.
34604 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34606         system-quote-tests: port to CentOS 5
34607         Problem reported by Tom G. Christensen in
34608         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34609         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34611 2012-05-29  Jim Meyering  <meyering@redhat.com>
34613         maint: fix typos in comments and ChangeLog
34614         Culprits identified and fixed mostly automatically using these commands:
34615         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34616         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34617         using http://github.com/lyda/misspell-check
34618         * ChangeLog: Fix typos.
34619         * doc/solaris-versions: Likewise.
34620         * lib/regexec.c (re_search_stub): Likewise.
34621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34623 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34625         manywarnings: remove duplicate -Wmultichar entry
34626         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34627         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34628         so keep the entry marked as documented.
34630 2012-05-27  Karl Berry  <karl@gnu.org>
34632         * config/srclist.txt (mktime.c): remove last libc sync,
34633         perhaps just temporarily.
34635 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34637         regex: don't assume uint64_t or uint32_t
34638         * lib/regcomp.c (init_word_char): Don't assume that the types
34639         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34640         them, and on some 32-bit compilers there is no uint64_t.
34641         Problem reported by Gianluigi Tiesi in
34642         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34644 2012-05-25  Jim Meyering  <meyering@redhat.com>
34646         maint.mk: add strncpy-prohibiting syntax-check rule
34647         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34649 2012-05-24  Jim Meyering  <meyering@redhat.com>
34651         maint.mk: compute $(gpg_key_ID) more portably
34652         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34653         That use of sed is not portable to some fringe systems.
34654         Reported by Paul Eggert in
34655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34657 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34659         mktime: sync from glibc
34660         * config/srclist.txt: Uncomment mktime.c.
34661         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34662         First, indent with tabs, since glibc uses tabs and doesn't want to
34663         change and we'd rather be identical to glibc.  Also, two small
34664         coding changes:
34665         (isdst_differ): Use &&, not &, as && is the usual style.
34666         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34667         for clarity.
34669 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34671         announce-gen: du -h is more portable than du --human
34672         * build-aux/announce-gen (sizes): Invoke du with -h instead
34673         of --human.  Accept leading white space in its output.
34675 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34677         announce-gen: Improve diagnostics.
34678         * build-aux/announce-gen: When parsing command line options,
34679         prefer "announce-gen: option --release-type requires an argument"
34680         to "Option release-type requires an argument".
34682 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34684         maint.mk: gpg_key_ID: use sed more portably
34685         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34686         the closing brace.
34687         (refresh-po): Fuse two sed invocations into one.
34689 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34691         gitlog-to-changelog: support the log message format used in Bison.
34692         * build-aux/gitlog-to-changelog: Support --strip-tab and
34693         --strip-cherry-picked.
34695 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34697         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34698         the rest of the current time slice to another thread in the current
34699         process. So if the thread that feeds the file decscriptor we're
34700         polling is not in the current process, we get busy-waiting.
34701         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34702         Patch from Theodore Leblond.
34703         * lib/select.c: Split polling out of the loop that sets the output
34704         fd_sets.  Check for zero result and loop if the wait timeout is
34705         infinite.
34707 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34709         select: Fix build error on IRIX 6.5.
34710         * lib/select.c: Include stddef.h for NULL.
34712 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34714         gc: fix libgcrypt detection on older machines.
34715         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34716         copyright years because the file has been distributed every year
34717         since it was created.
34719 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34721         crypto: fix bug in large buffer handling
34722         Problem reported by Serge Belyshev for glibc in
34723         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
34724         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
34725         * lib/md4.c (md4_process_block):
34726         * lib/md5.c (md5_process_block):
34727         * lib/sha1.c (sha1_process_block):
34728         * lib/sha256.c (sha256_process_block):
34729         Don't assume the buffer length is less than 2**32.
34730         * lib/sha512.c (sha512_process_block): Likewise.
34731         Here, the bug is present only in the rare case where the host does
34732         not support uint64_t or where size_t is wider than 64 bits.
34733         Use u64size to work around the problems.
34734         * lib/u64.h (u64size): New macro.
34736 2012-05-15  Pádraig Brady  <P@draigBrady.com>
34738         fsusage: fix block size returned on older Linux 2.6
34740         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
34741         which is available since Linux 2.6.
34742         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
34743         when the member is available so it can be used as a fallback.
34744         * doc/posix-functions/statvfs.texi: Mention the hang issue
34745         on Linux < 2.6.36.
34747 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34749         bootstrap: suppress stderr chatter
34750         * build-aux/bootstrap (insert_sorted_if_absent, main program):
34751         Omit unnecessary chatter to stderr.  The main program chatter
34752         was there only inadvertantly.
34754         bootstrap: .gitignore files created by autopoint, libtool
34755         I ran into this problem when bootstrapping the latest diffutils.
34756         After './bootstrap', 'git status' reported lots of untracked files
34757         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
34758         autopoint and do not need to be version-controlled.
34759         * build-aux/bootstrap: Put into .gitignore the files that
34760         autopoint and libtool create, by keeping track of files that exist
34761         after but not before these programs are run.
34762         (version_controlled_file): Move up.  2nd arg is now full file
34763         name, not base name; this is more convenient.  Put CVS at the end,
34764         as it's now somewhat deprecated.
34766 2012-05-14  Jim Meyering  <meyering@redhat.com>
34768         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
34769         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
34770         definition.  Reported by Bruno Haible.
34772 2012-05-13  Bruno Haible  <bruno@clisp.org>
34773             Paul Eggert  <eggert@cs.ucla.edu>
34775         binary-io: Define set_binary_mode function.
34776         * lib/binary-io.h (set_binary_mode): New function.
34777         (SET_BINARY): Define in terms of set_binary_mode.
34778         * modules/binary-io (configure.ac): Require AC_C_INLINE.
34779         * tests/test-binary-io.c (main): Accept an argument, and test either
34780         set_binary_mode or SET_BINARY depending on the argument.
34781         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
34782         argument. Clean up also t-bin-out0.tmp.
34784 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
34786         bootstrap: take advantage of POSIX shell features
34788         The 'bootstrap' script offered by Gnulib script already uses POSIX
34789         shell features (like $((...)) arithmetic expansions) that are not
34790         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
34791         means that bootstrap must already be run using a proper POSIX shell,
34792         which will thus provide more features, like ${var#pattern} parameter
34793         expansion or inversion of a command exit status with '!'.  We can
34794         thus use these features to improve the clarity and the performances
34795         of the bootstrap script.
34797         Suggested by Eric Blake.
34799         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
34800         of sed/expr plus command substitutions, to save some forks.  While
34801         we are at it, prefer the POSIX $(...) form of command substitution,
34802         rather than the legacy form `...` (since the former is visually
34803         clearer and interacts better with quoting), and prefer the idiom:
34804           "if ! CMD; then ACTION ..."
34805         over the idiom:
34806           "if CMD; then :; else ACTION ..."
34807         which was required by legacy Bourne shells not supporting '!'.
34809 2012-05-12  Bruno Haible  <bruno@clisp.org>
34811         system-quote: Add more comments.
34812         * lib/system-quote.h: Add more comments about wilcards and limitations.
34813         Suggested by Eli Zaretskii <eliz@gnu.org>.
34815         sh-quote, system-quote: Add comments about wildcards.
34816         * lib/sh-quote.h: Clarify what happens with wildcard characters.
34817         * lib/system-quote.h: Likewise.
34818         Reported by Eli Zaretskii <eliz@gnu.org>.
34820 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34822         fsusage: check for GNU/Linux statvfs problem dynamically
34823         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
34824         Define STAT_STATFS2_BSIZE too, since in this case the code now
34825         checks dynamically whether statvfs is reliable, falling back on
34826         Linux-style statfs otherwise.
34827         (statvfs_works): New function, for dynamically testing statvfs.
34828         (get_fs_usage) [STAT_STATVFS]: Use it.
34829         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
34830         statvfs on GNU/Linux hosts, since it's now done dynamically.
34832 2012-05-10  Bruno Haible  <bruno@clisp.org>
34834         system-quote, execute, spawn-pipe: Escape '?' on Windows.
34835         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
34836         '?' character.
34837         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
34838         * tests/test-system-quote-main.c (check_all): Check also strings like
34839         "??????????".
34840         Reported by Eli Zaretskii <eliz@gnu.org>.
34842 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34844         _Noreturn: port config.h to gcc -Wundef
34845         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
34846         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
34847         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
34849 2012-05-10  Bruno Haible  <bruno@clisp.org>
34851         system-quote: Refactor.
34852         * lib/system-quote.h (system_quote_copy): Fix comment.
34853         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
34854         New functions, extracted from system_quote_copy.
34855         (system_quote_length, system_quote_copy): Use these functions.
34856         Reported by Paul Eggert.
34858 2012-05-08  Bruno Haible  <bruno@clisp.org>
34860         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
34861         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
34863 2012-05-08  Bruno Haible  <bruno@clisp.org>
34865         Tests for module 'system-quote'.
34866         * modules/system-quote-tests: New file.
34867         * tests/test-system-quote.sh: New file.
34868         * tests/test-system-quote-main.c: New file.
34869         * tests/test-system-quote-child.c: New file.
34871         New module 'system-quote'.
34872         * lib/system-quote.h: New file.
34873         * lib/system-quote.c: New file.
34874         * modules/system-quote: New file.
34876 2012-05-08  Bruno Haible  <bruno@clisp.org>
34878         sh-quote: Make C++ safe and allow multiple inclusion.
34879         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
34880         declarations in extern "C".
34882 2012-05-08  Bruno Haible  <bruno@clisp.org>
34884         sh-quote tests: Make tests stricter.
34885         * tests/test-sh-quote.c (check_one): Check the return value of
34886         shell_quote_copy.
34887         (main): Check a string with a CR character. Check a string that
34888         contains UCHAR_MAX.
34890 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
34892         warnings.m4: provide a means to specify the program to compile.
34893         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
34894         (gl_WARN_ADD): here.
34895         Use gl_AS_VAR_APPEND.
34896         Support an argument to specify the program to compile.
34897         (gl_WARN_ADD): Accept an argument to specify the program to compile.
34898         AC_SUBST the WARN_CFLAGS when they are used.
34899         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
34900         leave this to gl_WARN_ADD.
34902 2012-05-08  Eric Blake  <eblake@redhat.com>
34904         doc: recommendations on gettext version
34905         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
34906         choice between versions.
34907         * DEPENDENCIES (gettext): Cover both approaches.
34909 2012-05-08  Jim Meyering  <meyering@redhat.com>
34911         init.sh: explain why EXEEXT support uses aliases rather than functions
34912         * tests/init.sh: Add a comment.
34914         init.sh: don't let bash aliases interfere with tests
34915         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
34916         is bash.  This avoids problems for those who alias standard commands to
34917         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
34918         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
34920 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34922         stdint: be more consistent with glibc, SunOS libc
34923         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
34924         (gl_int_fast16_t, gl_uint_fast16_t)
34925         (gl_int_fast32_t, gl_uint_fast32_t)
34926         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
34927         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
34928         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34929         Be consistent with glibc by default, and with SunOS 5.10 and later
34930         if __sun is defined.  This lessens the likelihood of clashes if
34931         code compiled for older hosts is combined with code compiled for
34932         newer ones.  Problem reported by Niels Möller in
34933         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
34935 2012-05-07  Eric Blake  <eblake@redhat.com>
34937         isatty: relax license to LGPLv2+
34938         * modules/isatty (License): Relax license.
34940 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34942         stat-size: comment fix
34943         * lib/stat-size.h: Remove obsolete comment about indenting.
34945 2012-05-06  Bruno Haible  <bruno@clisp.org>
34947         Tests for module 'sh-quote'.
34948         * modules/sh-quote-tests: New file.
34949         * tests/test-sh-quote.c: New file.
34951 2012-05-06  Bruno Haible  <bruno@clisp.org>
34953         sh-quote: Improve shell_quote_argv's signature.
34954         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
34955         * lib/sh-quote.c (shell_quote_argv): Likewise.
34957 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
34959         stdint: document issues with int_fast8_t etc.
34960         * doc/posix-headers/stdint.texi (stdint.h): Say that other
34961         stdint.h substitutes may define these types differently.  See
34962         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
34964 2012-05-05  Bruno Haible  <bruno@clisp.org>
34966         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
34967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
34968         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
34969         or 'guessing no (mishandles large arguments)'.
34971 2012-05-05  Bruno Haible  <bruno@clisp.org>
34973         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
34974         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
34975         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
34976         set gl_cv_func_link_follows_symlink to "guessing no".
34978 2012-05-05  Bruno Haible  <bruno@clisp.org>
34980         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
34981         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
34982         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
34983         "guessing no".
34984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
34986 2012-05-05  Bruno Haible  <bruno@clisp.org>
34988         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
34989         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
34990         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
34991         set gl_cv_struct_dirent_d_ino to "guessing yes".
34993 2012-05-05  Bruno Haible  <bruno@clisp.org>
34995         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
34996         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
34997         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
34998         "guessing yes".
35000 2012-05-05  Bruno Haible  <bruno@clisp.org>
35002         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35003         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35004         compiling to a glibc system, set gl_cv_func_signbit and
35005         gl_cv_func_signbit_gcc to "guessing yes".
35007 2012-05-05  Bruno Haible  <bruno@clisp.org>
35009         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35010         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35011         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35012         to "guessing yes".
35013         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35014         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35016 2012-05-05  Bruno Haible  <bruno@clisp.org>
35018         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35019         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35020         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35021         gl_cv_func_realpath_works to "guessing yes".
35023 2012-05-05  Bruno Haible  <bruno@clisp.org>
35025         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35026         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35027         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35029 2012-05-04  Bruno Haible  <bruno@clisp.org>
35031         Tweak last commit.
35032         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35033         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35035 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35037         unistd_h: make it easier to avoid sys_types_h
35038         This is useful for Emacs, which has its own method of porting to
35039         Windows, and which therefore does not need the sys_types_h module.
35040         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35041         code moved here from gl_SYS_TYPES_H.
35042         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35043         using the code directly.
35044         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35045         gl_SYS_TYPES_H.
35046         * modules/sys_types (Files):
35047         * modules/unistd (Files): Add m4/off_t.m4.
35049 2012-05-03  Bruno Haible  <bruno@clisp.org>
35051         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35052         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35053         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35054         "guessing yes" or "guessing no".
35055         (gl_FUNC_LSTAT): Update.
35056         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35057         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35058         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35060 2012-05-03  Bruno Haible  <bruno@clisp.org>
35062         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35063         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35064         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35065         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35066         cross-compiling, choose the first alternative on glibc systems.
35067         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35069 2012-05-03  Bruno Haible  <bruno@clisp.org>
35071         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35072         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35073         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35075 2012-05-03  Bruno Haible  <bruno@clisp.org>
35077         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35078         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35080 2012-05-03  Bruno Haible  <bruno@clisp.org>
35082         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35083         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35084         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35085         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35086         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35087         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35088         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35089         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35090         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35091         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35092         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35093         gl_cv_func_chown_ctime_works to "guessing yes".
35094         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35095         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35096         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35097         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35098         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35100         compiling to glibc systems, set gl_cv_func_open_directory_works to
35101         "guessing yes".
35102         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35103         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35104         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35105         "guessing yes".
35106         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35107         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35108         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35109         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35110         "guessing yes".
35111         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35112         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35113         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35114         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35115         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35116         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35117         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35118         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35119         "guessing yes".
35120         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35121         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35122         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35123         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35124         "guessing yes".
35125         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35126         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35127         "guessing yes".
35128         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35129         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35130         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35131         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35132         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35133         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35134         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35135         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35136         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35137         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35138         "guessing yes".
35139         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35140         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35141         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35142         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35143         "guessing yes".
35144         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35145         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35146         "guessing yes".
35147         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35148         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35149         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35150         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35151         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35152         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35153         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35154         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35155         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35156         "guessing yes".
35157         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35158         compiling to glibc systems, set gl_cv_func_mknod_works to
35159         "guessing yes".
35160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35161         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35162         "guessing yes".
35163         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35164         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35165         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35166         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35167         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35168         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35169         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35170         compiling to glibc systems, set gl_cv_func_svid_putenv to
35171         "guessing yes".
35172         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35173         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35174         "guessing yes".
35175         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35176         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35177         "guessing yes".
35178         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35179         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35180         to "guessing yes".
35181         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35182         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35183         to "guessing yes".
35184         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35185         compiling to glibc systems, set gl_cv_func_rmdir_works to
35186         "guessing yes".
35187         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35188         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35189         gl_cv_func_unlink_parent_fails to "guessing yes".
35190         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35191         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35192         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35193         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35194         gl_cv_func_rename_dest_works to "guessing yes".
35195         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35196         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35198         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35199         "guessing yes".
35200         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35201         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35202         "guessing yes".
35203         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35204         compiling to glibc systems, set gl_cv_func_setenv_works to
35205         "guessing yes".
35206         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35207         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35208         "guessing yes".
35209         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35210         compiling to glibc systems, set gl_cv_func_sleep_works to
35211         "guessing yes".
35212         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35213         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35214         "guessing yes".
35215         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35216         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35217         "guessing yes".
35218         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35219         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35220         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35221         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35222         "guessing yes".
35223         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35224         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35225         "guessing yes".
35226         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35227         compiling to glibc systems, set gl_cv_func_usleep_works to
35228         "guessing yes".
35229         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35230         compiling to glibc systems, set gl_cv_func_futimesat_works to
35231         "guessing yes".
35233 2012-05-03  Bruno Haible  <bruno@clisp.org>
35235         Say "guessing yes" or "guessing no" when cross-compiling.
35236         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35237         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35238         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35239         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35240         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35241         am_cv_func_working_getline to "guessing yes" or "guessing no".
35242         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35243         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35244         (gl_FUNC_MEMMEM): When cross-compiling, set
35245         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35247         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35249         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35250         "guessing no".
35251         (gl_FUNC_STRCASESTR): When cross-compiling, set
35252         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35253         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35254         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35255         (gl_FUNC_STRSTR): When cross-compiling, set
35256         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35257         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35258         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35259         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35260         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35262 2012-05-01  Bruno Haible  <bruno@clisp.org>
35264         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35265         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35266         * build-aux/reloc-ldflags: Likewise.
35267         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35269 2012-05-01  Bruno Haible  <bruno@clisp.org>
35271         gnulib-tool: Remove transitional code.
35272         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35273         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35275 2012-05-01  Bruno Haible  <bruno@clisp.org>
35277         getcwd: Fix misindentation.
35278         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35280 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35282         exclude: process exclude and include directives in order
35283         This restores the pre-2009 behavior, and is part of a fix of a
35284         grep bug reported by Quentin Arce in
35285         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35286         * lib/exclude.c (struct exclude): Remove 'tail' member.
35287         (new_exclude_segment): Prepend the new segment instead of appending.
35288         Return void, since that's now more convenient.
35289         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35290         (file_name_matches): Renamed from excluded_file_name_p.
35291         (file_pattern_matches, file_name_matches):
35292         Return true if the pattern matches, not if it excludes.
35293         All callers changed.
35294         (excluded_file_name): Process the list in reverse order;
35295         since the list is now reversed this restores the pre-2009 behavior.
35296         (add_exclude): Adjust to new reversed-order list.  Use local var
35297         rather than macro, for clarity.
35298         * tests/test-exclude7.sh: Adjust to corrected behavior.
35300         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35301         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35302         it's not possible here.  Handle the case of \ at end of pattern
35303         without dumping core.
35304         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35306         _Noreturn: future-proof non-GNU and non-MSVC compilers
35307         * build-aux/snippet/_Noreturn.h (_Noreturn):
35308         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35309         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35310         C11 or later.  This is more likely to work with random future C
35311         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35312         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35314         exclude: handle wildcards with FNM_EXTMATCH
35315         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35316         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35317         comment that "has wildcards" really means "has or may have
35318         wildcards".  Simplify by avoiding the need to call strcspn.
35320 2012-04-29  Bruno Haible  <bruno@clisp.org>
35322         gnulib-tool: Fix list of authors.
35323         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35325 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35327         bootstrap: support Automake-NG in $buildreq
35328         * bootstrap (check_versions): Handle automake and aclocal from
35329         Automake-NG specially.  They can be specified as respectively
35330         the "automake-ng" and "aclocal-ng" requirements.
35332 2012-04-25  Eric Blake  <eblake@redhat.com>
35334         bootstrap: only force latest Makefile.in.in for gettext module
35335         * build-aux/bootstrap (with_gettext): Only install latest
35336         Makefile.in.in for projects requesting bleeding edge gettext.
35338 2012-04-22  Bruno Haible  <bruno@clisp.org>
35340         doc: Mention reason for replacement on glibc/Linux systems.
35341         * doc/posix-functions/dprintf.texi: Mention the problem with special
35342         'long double' values.
35343         * doc/posix-functions/fprintf.texi: Likewise.
35344         * doc/posix-functions/printf.texi: Likewise.
35345         * doc/posix-functions/snprintf.texi: Likewise.
35346         * doc/posix-functions/sprintf.texi: Likewise.
35347         * doc/posix-functions/vdprintf.texi: Likewise.
35348         * doc/posix-functions/vfprintf.texi: Likewise.
35349         * doc/posix-functions/vprintf.texi: Likewise.
35350         * doc/posix-functions/vsnprintf.texi: Likewise.
35351         * doc/posix-functions/vsprintf.texi: Likewise.
35352         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35353         platforms with F_DUPFD_CLOEXEC problems.
35354         * doc/posix-functions/glob.texi: Mention which platforms are affected
35355         by the problem with symbolic links.
35356         * doc/posix-functions/linkat.texi: Mention the problem with
35357         AT_SYMLINK_FOLLOW on Linux.
35359 2012-04-22  Bruno Haible  <bruno@clisp.org>
35361         pwrite: Don't replace on all platforms.
35362         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35364 2012-04-22  Bruno Haible  <bruno@clisp.org>
35366         rint* tests: Avoid gcc warnings.
35367         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35368         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35369         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35371 2012-04-21  Bruno Haible  <bruno@clisp.org>
35373         users.txt: Update.
35374         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35375         switched from CVS to git, bzr, or svn.
35377 2012-04-21  Bruno Haible  <bruno@clisp.org>
35379         Large File Support for native Windows platforms.
35381         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35382         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35384         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35385         type.
35386         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35387         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35388         * doc/posix-headers/sys_types.texi: Mention the effect of the
35389         'largefile' module.
35391         * lib/fcntl.in.h: Add comments about off_t.
35392         * modules/fcntl-h (Depends-on): Add sys_types.
35394         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35395         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35396         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35397         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35398         * modules/unistd (Depends-on): Add sys_types.
35399         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35401         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35402         instead of lseek.
35403         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35404         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35405         * modules/lseek (Depends-on): Add sys_types.
35407         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35408         msvc-nothrow.h.
35409         (SetFileSize): New function.
35410         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35411         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35412         if Large File Support is requested.
35413         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35414         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35416         * lib/stdio.in.h: Add comments about off_t.
35417         * modules/stdio (Depends-on): Add sys_types.
35419         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35420         instead of ftello.
35421         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35422         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35423         (gl_PREREQ_FTELLO): New macro.
35424         * modules/ftello (Depends-on): Add sys_types.
35425         (configure.ac): Incoke gl_PREREQ_FTELLO.
35427         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35428         instead of fseeko.
35429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35430         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35431         (gl_PREREQ_FSEEKO): New macro.
35432         * modules/fseeko (Depends-on): Add sys_types.
35433         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35435         * lib/sys_stat.in.h: Add comments about off_t.
35436         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35437         64-bit integer for st_size in 'struct stat'.
35438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35439         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35440         * modules/sys_stat (Depends-on): Add sys_types.
35441         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35443         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35444         instead of stat or _stat.
35446         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35447         'struct _stati64' instead of fstat and 'struct stat'.
35448         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35449         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35451         Reported by Ray Satiro <raysatiro@yahoo.com>.
35453 2012-04-19  Eric Blake  <eblake@redhat.com>
35455         bootstrap: accommodate older libtool
35456         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35457         Reported by Daniel P. Berrange.
35459 2012-04-19  Jim Meyering  <meyering@redhat.com>
35461         announce-gen: avoid failure due to lack of Digest::SHA1
35462         Even with the preferred Digest::SHA available, this script
35463         would fail when the backup module, Digest::SHA1, was not installed.
35464         * build-aux/announce-gen: Quote the conditional use of "use".
35465         Reported by Reuben Thomas in:
35466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35468         bootstrap: don't let a user's CDPATH setting affect this script
35469         When CDPATH is set, cd will sometimes generate output.
35470         When "cd" is run in a subshell whose output matters, that
35471         surprising-to-some output can cause malfunction.
35472         Unsetting CDPATH turns off this shell "feature."
35473         * build-aux/bootstrap (CDPATH): Unset.
35474         Reported by Reuben Thomas in:
35475         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35476         and inspired by his patch here:
35477         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35479 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35480         and Jim Meyering  <meyering@redhat.com>
35482         maint.mk: catch "see @xref{}" and similar
35483         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35484         prohibit "See also @xref{", "Also see @pxref{", and similar.
35486 2012-04-16  Jim Meyering  <meyering@redhat.com>
35488         bootstrap: really use gnulib's po/Makefile.in.in
35489         * build-aux/bootstrap: Correct the source file name in previous change.
35490         Reported by Akim Demaille.
35492         configmake: correct minor inconsistency in Makefile rule
35493         * modules/configmake (Makefile.am): All other rules like this one
35494         run the final "mv -f ..." in the same backslash-continued command
35495         as the one that does everything else.  This one put the mv -f ...
35496         command on a separate, non-backslash-continued line.
35497         Make it like the others.
35499         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35500         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35501         the one from gettext.  Reported by Akim Demaille.
35503 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35505         Fix recursion of install-* into po directories.
35506         Bison's install-pdf bug reported by Hans Aberg at
35507         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35508         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35509         (install-info, install-pdf, install-ps): New targets.
35511 2012-04-16  Jim Meyering  <meyering@redhat.com>
35513         maint: avoid spurious "make sc_maint" failure
35514         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35515         exempt all *.class file names, for lib/javaversion.class.
35517 2012-04-15  Bruno Haible  <bruno@clisp.org>
35519         lseek: Make configure test independent of environment.
35520         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35521         Windows, we know that lseek() on pipes is broken; skip the runtime
35522         test.
35524 2012-04-14  Bruno Haible  <bruno@clisp.org>
35526         stat: Bypass buggy override in mingw64.
35527         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35528         * lib/stat.c (stat) [mingw64]: Define to _stat.
35529         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35531 2012-04-14  Bruno Haible  <bruno@clisp.org>
35533         pathmax: Fix compilation error on MSVC 9.
35534         * modules/pathmax (Depends-on): Add unistd.
35536 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35538         README: document pointer comparison assumption
35539         * README (Portability guidelines): Document assumption about
35540         pointer comparisons, in response to a recent bug-gnulib comment by
35541         Jeffrey Kegler.
35543 2012-04-12  Bruno Haible  <bruno@clisp.org>
35545         Tests for module 'getrusage'.
35546         * modules/getrusage-tests: New file.
35547         * tests/test-getrusage.c: New file.
35549         New module 'getrusage'.
35550         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35551         warn-on-use.h.
35552         (getrusage): New declaration.
35553         * lib/getrusage.c: New file.
35554         * m4/getrusage.m4: New file.
35555         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35556         is declared.
35557         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35558         HAVE_GETRUSAGE.
35559         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35560         snippet/c++defs, snippet/warn-on-use.
35561         (Makefile.am): Update generation of sys/resource.h. Substitute
35562         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35563         * modules/getrusage: New file.
35564         * doc/posix-functions/getrusage.texi: Mention the new module.
35566 2012-04-12  Bruno Haible  <bruno@clisp.org>
35568         Tests for module 'sys_resource'.
35569         * modules/sys_resource-tests: New file.
35570         * tests/test-sys_resource.c: New file.
35572         New module 'sys_resource'.
35573         * lib/sys_resource.in.h: New file.
35574         * m4/sys_resource_h.m4: New file.
35575         * modules/sys_resource: New file.
35576         * doc/posix-headers/sys_resource.texi: Mention the new module.
35578 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35580         ioctl: Fix compilation error on mingw.
35581         * lib/ioctl.c: Include <windows.h>.
35582         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35584 2012-04-04  Jim Meyering  <meyering@redhat.com>
35586         regex: correct #pragma guard expression
35587         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35588         not 4.3.  Correct its cpp guard expression.
35590 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35592         regex: remove unnecessary type punning
35593         Problem reported by Vladimir Serbinenko in
35594         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35595         * lib/regex.h (struct re_pattern_buffer): Change the type of
35596         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35597         Fix comment to match code.
35598         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35599         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35600         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35601         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35602         (set_regs):
35603         Omit no-longer-necessary casts.
35605 2012-04-03  Bruno Haible  <bruno@clisp.org>
35607         Tests for module 'ilogbl'.
35608         * modules/ilogbl-tests: New file.
35609         * tests/test-ilogbl.c: New file.
35611         New module 'ilogbl'.
35612         * lib/math.in.h (ilogbl): New declaration.
35613         * lib/ilogbl.c: New file.
35614         * m4/ilogbl.m4: New file.
35615         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35617         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35618         Split sed invocation, to avoid the limit of 100 substitutions of
35619         HP-UX 'sed'.
35620         * modules/ilogbl: New file.
35621         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35622         * doc/posix-functions/ilogbl.texi: Mention the new module.
35624 2012-04-03  Bruno Haible  <bruno@clisp.org>
35626         Tests for module 'ilogbf'.
35627         * modules/ilogbf-tests: New file.
35628         * tests/test-ilogbf.c: New file.
35630         New module 'ilogbf'.
35631         * lib/math.in.h (ilogbf): New declaration.
35632         * lib/ilogbf.c: New file.
35633         * m4/ilogbf.m4: New file.
35634         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35636         REPLACE_ILOGBF.
35637         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35638         REPLACE_ILOGBF.
35639         * modules/ilogbf: New file.
35640         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35641         * doc/posix-functions/ilogbf.texi: Mention the new module.
35643 2012-04-03  Bruno Haible  <bruno@clisp.org>
35645         Tests for module 'ilogb'.
35646         * modules/ilogb-tests: New file.
35647         * tests/test-ilogb.c: New file.
35648         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35649         tests/test-logb-ieee.h.
35651         New module 'ilogb'.
35652         * lib/math.in.h (ilogb): New declaration.
35653         * lib/ilogb.c: New file.
35654         * m4/ilogb.m4: New file.
35655         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35657         REPLACE_ILOGB.
35658         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35659         REPLACE_ILOGB.
35660         * modules/ilogb: New file.
35661         * tests/test-math-c++.cc: Check the declaration of ilogb.
35662         * doc/posix-functions/ilogb.texi: Mention the new module.
35664 2012-04-03  Bruno Haible  <bruno@clisp.org>
35666         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35667         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35668         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35669         (main): Check their values.
35670         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35671         problem.
35673 2012-04-03  Bruno Haible  <bruno@clisp.org>
35675         Tests for module 'logbl-ieee'.
35676         * modules/logbl-ieee-tests: New file.
35677         * tests/test-logbl-ieee.c: New file.
35679         New module 'logbl-ieee'.
35680         * modules/logbl-ieee: New file.
35682         Tests for module 'logb-ieee'.
35683         * modules/logb-ieee-tests: New file.
35684         * tests/test-logb-ieee.c: New file.
35686         New module 'logb-ieee'.
35687         * modules/logb-ieee: New file.
35689         Tests for module 'logbf-ieee'.
35690         * modules/logbf-ieee-tests: New file.
35691         * tests/test-logbf-ieee.c: New file.
35692         * tests/test-logb-ieee.h: New file.
35694         New module 'logbf-ieee'.
35695         * modules/logbf-ieee: New file.
35697 2012-04-03  Bruno Haible  <bruno@clisp.org>
35699         Tests for module 'logbl'.
35700         * modules/logbl-tests: New file.
35701         * tests/test-logbl.c: New file.
35703         New module 'logbl'.
35704         * lib/math.in.h (logbl): New declaration.
35705         * lib/logbl.c: New file.
35706         * m4/logbl.m4: New file.
35707         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35709         REPLACE_LOGBL.
35710         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35711         REPLACE_LOGBL.
35712         * modules/logbl: New file.
35713         * tests/test-math-c++.cc: Check the declaration of logbl.
35714         * doc/posix-functions/logbl.texi: Mention the new module.
35716 2012-04-02  Bruno Haible  <bruno@clisp.org>
35718         Tests for module 'logbf'.
35719         * modules/logbf-tests: New file.
35720         * tests/test-logbf.c: New file.
35722         New module 'logbf'.
35723         * lib/math.in.h (logbf): New declaration.
35724         * lib/logbf.c: New file.
35725         * m4/logbf.m4: New file.
35726         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
35727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
35728         REPLACE_LOGBF.
35729         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
35730         REPLACE_LOGBF.
35731         * modules/logbf: New file.
35732         * tests/test-math-c++.cc: Check the declaration of logbf.
35733         * doc/posix-functions/logbf.texi: Mention the new module.
35735 2012-04-02  Bruno Haible  <bruno@clisp.org>
35737         logb tests: More tests.
35738         * tests/test-logb.h: New file, based on tests/test-logb.c and
35739         tests/test-frexp.h.
35740         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
35741         (main): Just invoke test_function.
35742         * modules/logb-tests (Files): Add tests/test-logb.h,
35743         tests/minus-zero.h, tests/randomd.c.
35744         (Makefile.am): Add randomd.c to test_logb_SOURCES.
35746         logb: Provide replacement and workarounds.
35747         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
35748         is 1.
35749         * lib/logb.c: New file.
35750         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
35751         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
35752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
35753         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
35754         * modules/logb (Files): Add lib/logb.c.
35755         (Depends-on): Add isfinite, frexp, isnand.
35756         (configure.ac): Compile the replacement code logb.c if needed.
35757         * tests/test-math-c++.cc: Check the declaration of logb.
35758         * doc/posix-functions/logb.texi: Mention the replacement and the bug
35759         with subnormal numbers.
35761 2012-04-02  Bruno Haible  <bruno@clisp.org>
35763         log10* tests: Speed up.
35764         * tests/test-log10.h (test_function): Reduce amount of random numbers
35765         to test.
35767 2012-04-01  Bruno Haible  <bruno@clisp.org>
35769         logf-ieee: Fix test whether logf works.
35770         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
35772 2012-04-01  Bruno Haible  <bruno@clisp.org>
35774         log10l: Work around log10l-ieee test failure on IRIX 6.5.
35775         * lib/log10l.c: Include <float.h>
35776         (log10l): On IRIX, normalize the +Infinity value.
35777         * modules/log10l (Depends-on): Add 'float'.
35778         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
35779         +Infinity.
35781         log10f-ieee: Work around test failure on NetBSD 5.1.
35782         * m4/log10f-ieee.m4: New file.
35783         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
35784         test whether log10f works with a negative argument. Replace it if not.
35785         * lib/log10f.c (log10f): For negative arguments, return NaN.
35786         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
35787         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
35788         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
35790         log10f-ieee: Work around test failure on Solaris 9.
35791         * modules/log10f-ieee (Depends-on): Add log10-ieee.
35792         (configure.ac): Require gl_FUNC_LOG10F.
35794         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
35795         * m4/log10-ieee.m4: New file.
35796         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
35797         whether log10 works with a negative argument. Replace it if not.
35798         * lib/log10.c (log10): For negative arguments, return NaN.
35799         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
35800         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
35801         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
35803         Tests for module 'log10l-ieee'.
35804         * modules/log10l-ieee-tests: New file.
35805         * tests/test-log10l-ieee.c: New file.
35807         New module 'log10l-ieee'.
35808         * modules/log10l-ieee: New file.
35810         Tests for module 'log10-ieee'.
35811         * modules/log10-ieee-tests: New file.
35812         * tests/test-log10-ieee.c: New file.
35814         New module 'log10-ieee'.
35815         * modules/log10-ieee: New file.
35817         Tests for module 'log10f-ieee'.
35818         * modules/log10f-ieee-tests: New file.
35819         * tests/test-log10f-ieee.c: New file.
35820         * tests/test-log10-ieee.h: New file.
35822         New module 'log10f-ieee'.
35823         * modules/log10f-ieee: New file.
35825 2012-04-01  Bruno Haible  <bruno@clisp.org>
35827         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
35828         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
35829         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
35830         workaround.
35831         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
35832         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
35833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
35834         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
35835         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
35836         (Depends-on): Update conditions.
35837         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
35838         IRIX 6.5, OSF/1 5.1 problems.
35840 2012-04-01  Bruno Haible  <bruno@clisp.org>
35842         log10f: Work around OSF/1 5.1 bug.
35843         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
35844         * lib/log10f.c (log10f): If logf exists, use it and provide just the
35845         workaround.
35846         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
35847         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
35848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
35849         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
35850         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
35851         (Depends-on): Update conditions.
35852         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
35854 2012-04-01  Bruno Haible  <bruno@clisp.org>
35856         log10: Work around OSF/1 5.1 bug.
35857         * lib/math.in.h (log10): New declaration.
35858         * lib/log10.c: New file.
35859         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
35860         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
35861         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
35862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
35863         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
35864         * modules/log10 (Files): Add lib/log10.c.
35865         (Depends-on): Add math.
35866         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
35867         * tests/test-math-c++.cc: Check the declaration of log10.
35868         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
35870 2012-03-31  Bruno Haible  <bruno@clisp.org>
35872         log10l tests: More tests.
35873         * modules/log10l-tests (Files): Add tests/test-log10l.h,
35874         tests/minus-zero.h, tests/randoml.c.
35875         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
35876         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
35877         (main): Invoke test_function.
35879         log10f tests: More tests.
35880         * modules/log10f-tests (Files): Add tests/test-log10.h,
35881         tests/minus-zero.h, tests/randomf.c.
35882         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
35883         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
35884         (main): Invoke test_function.
35886         log10 tests: More tests.
35887         * tests/test-log10.h: New file.
35888         * modules/log10-tests (Files): Add tests/test-log10.h,
35889         tests/minus-zero.h, tests/randomd.c.
35890         (Makefile.am): Add randomd.c to test_log10_SOURCES.
35891         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
35892         (main): Invoke test_function.
35894 2012-03-31  Simon Josefsson  <simon@josefsson.org>
35896         fflush: Fix syntax error.
35897         * lib/fflush.c: Include unused-parameter.h, needed for
35898         _GL_UNUSED_PARAMETER.
35899         * modules/fflush (Depends-on): Add snippet/unused-parameter.
35901 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35903         regex: pacify GCC when compiling GRUB
35904         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
35905         a diagnostic.  Reported by Vladimir Serbinenko in
35906         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
35908 2012-03-29  Eric Blake  <eblake@redhat.com>
35910         stdio: don't assume gets any more
35911         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
35912         support.
35913         * modules/stdio (Makefile.am): Likewise.
35914         * lib/stdio-read.c (gets): Likewise.
35915         * tests/test-stdio-c++.cc: Likewise.
35916         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
35917         * lib/stdio.in.h (gets): Make warning occur in more places.
35918         * doc/posix-functions/gets.texi (gets): Update documentation.
35919         Reported by Christer Solskogen.
35921         maint.mk: fix syntax checks without exclusions
35922         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
35923         Reported by Daniel P. Berrange.
35925         strerror_r: avoid compiler warning
35926         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
35927         level.
35929         fflush: avoid compiler warning
35930         * lib/fflush.c (update_fpos_cache): Mark variables that are
35931         potentially unused.
35933 2012-03-25  Bruno Haible  <bruno@clisp.org>
35935         Tests for module 'localeconv'.
35936         * modules/localeconv-tests: New file.
35937         * tests/test-localeconv.c: New file.
35939         New module 'localeconv'.
35940         * lib/locale.in.h (localeconv): New declaration.
35941         * lib/localeconv.c: New file.
35942         * m4/localeconv.m4: New file.
35943         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
35944         REPLACE_LOCALECONV.
35945         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
35946         REPLACE_LOCALECONV.
35947         * modules/localeconv: New file.
35948         * modules/nl_langinfo (Depends-on): Add localeconv.
35949         * modules/human (Depends-on): Likewise.
35950         * doc/posix-functions/localeconv.texi: Mention the new module.
35952 2012-03-25  Bruno Haible  <bruno@clisp.org>
35954         locale: Provide a complete 'struct lconv'.
35955         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
35956         'struct lconv' does not contain int_p_cs_precedes.
35957         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
35958         * doc/posix-headers/locale.texi: Update.
35960         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
35961         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
35962         * doc/posix-headers/locale.texi: Update.
35964         locale: Provide a working 'struct lconv'.
35965         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
35966         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
35967         'struct lconv' does not even contain decimal_point.
35968         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
35969         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
35970         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
35971         * doc/posix-headers/locale.texi: Mention the problems with
35972         'struct lconv'.
35973         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
35975 2012-03-24  Bruno Haible  <bruno@clisp.org>
35977         Enable common subexpression optimization in GCC.
35978         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
35979         macros.
35980         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
35981         GCC attribute 'const'.
35982         (uc_locale_language): Declare with GCC attribute 'pure'.
35983         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
35984         with GCC attribute 'const'.
35985         * lib/unictype.in.h (uc_is_general_category_withtable,
35986         uc_combining_class, uc_combining_class_name,
35987         uc_combining_class_long_name, uc_bidi_class_name,
35988         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
35989         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
35990         uc_decimal_value, uc_digit_value, uc_numeric_value,
35991         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
35992         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
35993         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
35994         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
35995         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
35996         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
35997         Declare with GCC attribute 'const'.
35998         (uc_general_category_name, uc_general_category_long_name,
35999         uc_general_category_byname, uc_general_category,
36000         uc_is_general_category, uc_combining_class_byname,
36001         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36002         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36003         Declare with GCC attribute 'pure'.
36004         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36005         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36006         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36007         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36008         with GCC attribute 'pure'.
36009         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36010         'const'.
36011         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36012         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36013         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36014         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36015         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36016         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36017         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36018         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36019         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36020         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36021         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36022         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36023         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36024         GCC attribute 'pure'.
36025         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36026         'const'.
36027         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36028         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36029         u32_strwidth): Declare with GCC attribute 'pure'.
36031         Enable common subexpression optimization in GCC.
36032         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36033         (alphasort): Declare with GCC attribute 'pure'.
36034         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36035         (atoll): Declare with GCC attribute 'pure'.
36036         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36037         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36038         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36039         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36040         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36041         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36042         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36044 2012-03-24  Bruno Haible  <bruno@clisp.org>
36046         gnulib-tool: Avoid unintended error output from 'cmp'.
36047         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36048         "cmp -s", not "cmp > /dev/null".
36050 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36052         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36054         It's not just Automake versions < 1.9b that creates an empty
36055         pkgdatadir at installation time if pkgdata_DATA is specified
36056         to empty; modern automake versions do this as well, at least
36057         until automake 1.11.4 (not yet released at the moment of writing,
36058         but soon to appear).  That behaviour was generally considered a
36059         feature rather than a bug, at least until this discussion:
36060         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36062         See also automake bugs #10997 and #11030.
36064         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36065         reference to relevant automake bug numbers.
36066         (func_emit_tests_Makefile_am): Likewise.
36068 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36070         announce-gen: use Digest::SHA when possible
36071         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36072         back to Digest::SHA1 if necessary.
36074 2012-03-20  Jim Meyering  <meyering@redhat.com>
36076         tests: avoid gcc warnings about argv vs. const initializers
36077         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36078         warnings about discarding 'const' qualifier from pointer target type.
36079         * tests/test-posix_spawn2.c (main): Likewise.
36081 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36083         README-release: simplify slightly
36084         * top/README-release: Run "git checkout master" only once.
36086 2012-03-15  Mark Wielaard  <mark@klomp.org>
36088         git-merge-changelog: add specific example on how to use with hg.
36089         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36091 2012-03-18  Mark Wielaard  <mark@klomp.org>
36093         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36095 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36097         git-version-gen: don't let "prefix" envvar cause trouble
36098         * build-aux/git-version-gen (prefix): Initialize properly,
36099         so as not to use a value specified via the environment.
36100         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36102 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36104         regex: diagnose too-large repeat counts in EREs
36105         Previously, the code did not diagnose the too-large repeat count
36106         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36107         as if it were 'b\{1000000000}', which is unexpected.
36108         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36109         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36110         is a reasonable one for this problem.  Another option would be to
36111         create a new REG_OVERFLOW error for repeat counts that are too large.
36112         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36113         count is too large, so that the caller can distinguish the two cases.
36114         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36115         "Too large" return code, and that repeat counts are one example of this.
36117 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36119         doc: some glibc x32 integer width issues
36120         * doc/posix-headers/sys_types.texi (sys/types.h):
36121         * doc/posix-headers/time.texi (time.h):
36122         Mention that glibc x32 does not conform to POSIX in a couple of
36123         areas related to integer widths.
36125 2012-03-15  Bruno Haible  <bruno@clisp.org>
36127         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36128         * lib/fma.c (VOLATILE): New macro.
36129         (FUNC): Use it to work around a GCC compiler bug.
36131 2012-03-13  Bruno Haible  <bruno@clisp.org>
36133         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36134         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36135         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36136         REPLACE_HYPOTL to 1.
36137         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36139 2012-03-13  Bruno Haible  <bruno@clisp.org>
36141         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36142         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36143         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36144         REPLACE_REMAINDERL to 1.
36145         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36146         bug.
36148 2012-03-13  Bruno Haible  <bruno@clisp.org>
36150         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36151         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36152         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36153         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36154         too big rounding errors.
36155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36156         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36157         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36158         (Depends-on): Update conditions.
36159         * tests/test-sqrtl.c (my_ldexpl): New function.
36160         (main): Add test of a particular value.
36161         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36163 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36165         doc: Update timer_* platform portability notes.
36166         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36167         that always return ENOSYS.
36168         * doc/posix-functions/timer_delete.texi: Likewise.
36169         * doc/posix-functions/timer_gettime.texi: Likewise.
36170         * doc/posix-functions/timer_settime.texi: Likewise.
36172 2012-03-13  Bruno Haible  <bruno@clisp.org>
36174         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36175         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36176         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36177         REPLACE_CBRTL to 1.
36178         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36180 2012-03-13  Bruno Haible  <bruno@clisp.org>
36182         remainderl: Avoid compilation error on AIX >= 5.2.
36183         * lib/math.in.h (remainderl): Undefine macro from the system header.
36185 2012-03-13  Bruno Haible  <bruno@clisp.org>
36187         Avoid compilation errors with MSVC option -fp:strict.
36188         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36189         * lib/cbrtf.c: Likewise.
36190         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36192 2012-03-12  Bruno Haible  <bruno@clisp.org>
36194         uninorm: Don't crash in out-of-memory conditions.
36195         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36196         gracefully.
36197         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36198         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36200 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36202         quote: fix syntax-check
36203         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36204         also exports quote_quoting_options.
36206 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36208         Collapse list of copyright years to ranges.  See
36209         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36210         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36211         build-aux/csharpexec.sh.in, build-aux/gnupload,
36212         build-aux/install-reloc, build-aux/javacomp.sh.in,
36213         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36214         build-aux/move-if-change, build-aux/reloc-ldflags,
36215         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36217 2012-03-11  Bruno Haible  <bruno@clisp.org>
36219         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36220         * m4/log2f-ieee.m4: New file.
36221         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36222         whether log2f works with a minus zero argument. Replace it if not.
36223         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36224         (Depends-on): Add log2-ieee.
36225         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36226         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36228         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36229         * m4/log2-ieee.m4: New file.
36230         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36231         whether log2 works with a minus zero argument. Replace it if not.
36232         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36233         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36234         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36236         Tests for module 'log2l-ieee'.
36237         * modules/log2l-ieee-tests: New file.
36238         * tests/test-log2l-ieee.c: New file.
36240         New module 'log2l-ieee'.
36241         * modules/log2l-ieee: New file.
36243         Tests for module 'log2-ieee'.
36244         * modules/log2-ieee-tests: New file.
36245         * tests/test-log2-ieee.c: New file.
36247         New module 'log2-ieee'.
36248         * modules/log2-ieee: New file.
36250         Tests for module 'log2f-ieee'.
36251         * modules/log2f-ieee-tests: New file.
36252         * tests/test-log2f-ieee.c: New file.
36253         * tests/test-log2-ieee.h: New file.
36255         New module 'log2f-ieee'.
36256         * modules/log2f-ieee: New file.
36258 2012-03-11  Bruno Haible  <bruno@clisp.org>
36260         Tests for module 'log2l'.
36261         * modules/log2l-tests: New file.
36262         * tests/test-log2l.c: New file.
36264         New module 'log2l'.
36265         * lib/math.in.h (log2l): New declaration.
36266         * lib/log2l.c: New file.
36267         * m4/log2l.m4: New file.
36268         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36270         REPLACE_LOG2L.
36271         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36272         REPLACE_LOG2L.
36273         * modules/log2l: New file.
36274         * tests/test-math-c++.cc: Check the declaration of log2l.
36275         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36276         and OSF/1 problems.
36278 2012-03-11  Bruno Haible  <bruno@clisp.org>
36280         Tests for module 'log2f'.
36281         * modules/log2f-tests: New file.
36282         * tests/test-log2f.c: New file.
36284         New module 'log2f'.
36285         * lib/math.in.h (log2f): New declaration.
36286         * lib/log2f.c: New file.
36287         * m4/log2f.m4: New file.
36288         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36290         REPLACE_LOG2F.
36291         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36292         REPLACE_LOG2F.
36293         * modules/log2f: New file.
36294         * tests/test-math-c++.cc: Check the declaration of log2f.
36295         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36296         and OSF/1 and Cygwin problems.
36298 2012-03-11  Bruno Haible  <bruno@clisp.org>
36300         Tests for module 'log2'.
36301         * modules/log2-tests: New file.
36302         * tests/test-log2.c: New file.
36303         * tests/test-log2.h: New file.
36305         New module 'log2'.
36306         * lib/math.in.h (log2): New declaration.
36307         * lib/log2.c: New file.
36308         * m4/log2.m4: New file.
36309         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36311         REPLACE_LOG2.
36312         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36313         REPLACE_LOG2.
36314         * modules/log2: New file.
36315         * tests/test-math-c++.cc: Check the declaration of log2.
36316         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36317         and OSF/1 and Cygwin problems.
36319 2012-03-11  Bruno Haible  <bruno@clisp.org>
36321         exp2* tests: More tests.
36322         * tests/test-exp2.h (test_function): Test all integral arguments that
36323         don't need to overflow or denormalized numbers.
36324         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36325         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36326         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36328 2012-03-10  Bruno Haible  <bruno@clisp.org>
36330         log1pl-ieee: Work around test failure on AIX 7.1.
36331         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36333         log1pl-ieee: Work around test failure on IRIX 6.5.
36334         * m4/log1pl-ieee.m4: New file.
36335         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36336         test whether log1pl works with a minus zero argument. Replace it if
36337         not.
36338         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36340         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36341         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36342         (Depends-on): Update conditions.
36343         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36344         m4/signbit.m4.
36345         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36346         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36348         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36349         * m4/log1pf-ieee.m4: New file.
36350         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36351         test whether log1pf works with a minus zero argument. Replace it if
36352         not.
36353         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36354         m4/signbit.m4.
36355         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36356         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36358         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36359         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36360         (configure.ac): Require gl_FUNC_LOG1PF.
36362         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36363         * m4/log1p-ieee.m4: New file.
36364         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36365         whether log1p works with a minus zero argument. Replace it if not.
36366         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36368         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36369         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36370         (Depends-on): Update conditions.
36371         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36372         m4/signbit.m4.
36373         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36374         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36376         Tests for module 'log1pl-ieee'.
36377         * modules/log1pl-ieee-tests: New file.
36378         * tests/test-log1pl-ieee.c: New file.
36380         New module 'log1pl-ieee'.
36381         * modules/log1pl-ieee: New file.
36383         Tests for module 'log1p-ieee'.
36384         * modules/log1p-ieee-tests: New file.
36385         * tests/test-log1p-ieee.c: New file.
36387         New module 'log1p-ieee'.
36388         * modules/log1p-ieee: New file.
36390         Tests for module 'log1pf-ieee'.
36391         * modules/log1pf-ieee-tests: New file.
36392         * tests/test-log1pf-ieee.c: New file.
36393         * tests/test-log1p-ieee.h: New file.
36395         New module 'log1pf-ieee'.
36396         * modules/log1pf-ieee: New file.
36398 2012-03-10  Bruno Haible  <bruno@clisp.org>
36400         Tests for module 'log1pl'.
36401         * modules/log1pl-tests: New file.
36402         * tests/test-log1pl.c: New file.
36404         New module 'log1pl'.
36405         * lib/math.in.h (log1pl): New declaration.
36406         * lib/log1pl.c: New file.
36407         * m4/log1pl.m4: New file.
36408         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36410         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36411         * modules/log1pl: New file.
36412         * tests/test-math-c++.cc: Check the declaration of log1pl.
36413         * doc/posix-functions/log1pl.texi: Mention the new module.
36415 2012-03-10  Bruno Haible  <bruno@clisp.org>
36417         Tests for module 'log1pf'.
36418         * modules/log1pf-tests: New file.
36419         * tests/test-log1pf.c: New file.
36421         New module 'log1pf'.
36422         * lib/math.in.h (log1pf): New declaration.
36423         * lib/log1pf.c: New file.
36424         * m4/log1pf.m4: New file.
36425         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36427         REPLACE_LOG1PF.
36428         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36429         REPLACE_LOG1PF.
36430         * modules/log1pf: New file.
36431         * tests/test-math-c++.cc: Check the declaration of log1pf.
36432         * doc/posix-functions/log1pf.texi: Mention the new module.
36434 2012-03-10  Bruno Haible  <bruno@clisp.org>
36436         log1p tests: More tests.
36437         * tests/test-log1p.h: New file.
36438         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36439         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36440         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36441         (main): Invoke test_function.
36443         log1p: Provide replacement for Minix and MSVC.
36444         * lib/math.in.h (log1p): New declaration.
36445         * lib/log1p.c: New file.
36446         * m4/log1p.m4: New file.
36447         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36449         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36450         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36451         (Depends-on): Add math, isnand, log, round.
36452         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36453         HAVE_LOG1P is 0.
36454         * tests/test-math-c++.cc: Check the declaration of log1p.
36455         * doc/posix-functions/log1p.texi: Mention the replacement.
36457 2012-03-10  Bruno Haible  <bruno@clisp.org>
36459         math tests: Small simplification.
36460         * tests/test-exp.h (test_function): Use the same err_bound for
36461         'double' on platforms with sizeof (long double) == sizeof (double)
36462         than on platforms with sizeof (long double) > sizeof (double).
36463         * tests/test-exp2.h (test_function): Likewise.
36464         * tests/test-expm1.h (test_function): Likewise.
36465         * tests/test-log.h (test_function): Likewise.
36467 2012-03-10  Bruno Haible  <bruno@clisp.org>
36469         Fix some comments.
36470         * lib/expl.c: Fix an ambiguous comment.
36471         * lib/expm1.c: Likewise.
36472         * lib/expm1l.c: Likewise.
36473         * lib/exp2.c: Likewise.
36474         * lib/exp2l.c: Likewise.
36476 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36478         regex: allow inclusion of <regex.h> before <limits.h>
36479         Without this patch, portable programs had to include <limits.h> before
36480         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36481         I ran into this problem with a test version of GNU grep on Solaris 8.
36482         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36483         This is done conditionally so that this change can be merged
36484         back to glibc.
36485         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36486         using the included regex.
36488         fts: depend on fdopendir
36489         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36490         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36491         problem was introduced when fdopendir was split out.
36493 2012-03-10  Bruno Haible  <bruno@clisp.org>
36495         Remove unused variables.
36496         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36497         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36499 2012-03-10  Bruno Haible  <bruno@clisp.org>
36501         isnanf-nolibm: Fix last commit.
36502         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36504         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36505         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36507 2012-03-10  Bruno Haible  <bruno@clisp.org>
36509         logf-ieee: Work around test failure on NetBSD 5.1.
36510         * m4/logf-ieee.m4: New file.
36511         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36512         whether logf works with a negative argument. Replace it if not.
36513         * lib/logf.c (logf): For negative arguments, return NaN.
36514         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36515         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36516         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36518         logf-ieee: Work around test failure on Solaris 9.
36519         * modules/logf-ieee (Depends-on): Add log-ieee.
36520         (configure.ac): Require gl_FUNC_LOGF.
36522         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36523         * m4/log-ieee.m4: New file.
36524         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36525         log works with a negative argument. Replace it if not.
36526         * lib/log.c (log): For negative arguments, return NaN.
36527         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36528         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36529         * doc/posix-functions/log.texi: Mention the log-ieee module.
36531         Tests for module 'logl-ieee'.
36532         * modules/logl-ieee-tests: New file.
36533         * tests/test-logl-ieee.c: New file.
36535         New module 'logl-ieee'.
36536         * modules/logl-ieee: New file.
36538         Tests for module 'log-ieee'.
36539         * modules/log-ieee-tests: New file.
36540         * tests/test-log-ieee.c: New file.
36542         New module 'log-ieee'.
36543         * modules/log-ieee: New file.
36545         Tests for module 'logf-ieee'.
36546         * modules/logf-ieee-tests: New file.
36547         * tests/test-logf-ieee.c: New file.
36548         * tests/test-log-ieee.h: New file.
36550         New module 'logf-ieee'.
36551         * modules/logf-ieee: New file.
36553 2012-03-10  Bruno Haible  <bruno@clisp.org>
36555         log: Fix bug introduced on 2012-03-09.
36556         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36558 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36560         timer-time: link explicitly with pthreads on glibc
36561         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36562         to support static linking, when newer glibc is
36563         detected, as that contains pthread emulation of
36564         POSIX timer functions where required.
36565         * modules/timer-time: Depend on threadlib to
36566         pull in the appropriate library to link.
36568 2012-03-10  Bruno Haible  <bruno@clisp.org>
36570         log* tests: More tests.
36571         * tests/test-log.h: New file.
36572         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36573         (main): Invoke test_function.
36574         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36575         (main): Invoke test_function.
36576         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36577         (main): Invoke test_function.
36578         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36579         tests/randomd.c.
36580         (Makefile.am): Add randomd.c to test_log_SOURCES.
36581         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36582         tests/randomf.c.
36583         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36584         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36585         tests/randoml.c.
36586         (Depends-on): Add 'float'.
36587         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36589 2012-03-09  Bruno Haible  <bruno@clisp.org>
36591         logl: Work around OSF/1 5.1 bug.
36592         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36593         * lib/logl.c (logl): If logl exists, use it and provide just the
36594         workaround.
36595         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36596         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36598         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36599         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36600         (Depends-on): Update conditions.
36601         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36603 2012-03-09  Bruno Haible  <bruno@clisp.org>
36605         logf: Work around OSF/1 5.1 bug.
36606         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36607         * lib/logf.c (logf): If logf exists, use it and provide just the
36608         workaround.
36609         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36610         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36612         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36613         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36614         (Depends-on): Update conditions.
36615         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36617 2012-03-09  Bruno Haible  <bruno@clisp.org>
36619         log: Work around OSF/1 5.1 bug.
36620         * lib/math.in.h (log): New declaration.
36621         * lib/log.c: New file.
36622         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36623         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36624         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36626         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36627         * modules/log (Files): Add lib/log.c.
36628         (Depends-on): Add math.
36629         (configure.ac): If REPLACE_LOG is 1, compile an override.
36630         * tests/test-math-c++.cc: Check the declaration of log.
36631         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36633 2012-03-09  Jim Meyering  <meyering@redhat.com>
36635         readtokens.c: adjust wording in a comment
36636         * lib/readtokens.c: Insert omitted "that" in a comment.
36638 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36640         modechange: add notations +40, 00440, etc.
36641         * lib/modechange.c (mode_compile): Support new notations
36642         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36644 2012-03-08  Bruno Haible  <bruno@clisp.org>
36646         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36647         * m4/exp2l-ieee.m4: New file.
36648         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36649         test whether exp2l works with a NaN argument and with a negative
36650         infinity argument. Replace it if not.
36651         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36653         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36654         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36655         (Depends-on): Update conditions.
36656         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36657         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36658         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36660         Tests for module 'exp2l-ieee'.
36661         * modules/exp2l-ieee-tests: New file.
36662         * tests/test-exp2l-ieee.c: New file.
36664         New module 'exp2l-ieee'.
36665         * modules/exp2l-ieee: New file.
36667         Tests for module 'exp2-ieee'.
36668         * modules/exp2-ieee-tests: New file.
36669         * tests/test-exp2-ieee.c: New file.
36671         New module 'exp2-ieee'.
36672         * modules/exp2-ieee: New file.
36674         Tests for module 'exp2f-ieee'.
36675         * modules/exp2f-ieee-tests: New file.
36676         * tests/test-exp2f-ieee.c: New file.
36677         * tests/test-exp2-ieee.h: New file.
36679         New module 'exp2f-ieee'.
36680         * modules/exp2f-ieee: New file.
36682 2012-03-08  Bruno Haible  <bruno@clisp.org>
36684         Tests for module 'exp2l'.
36685         * modules/exp2l-tests: New file.
36686         * tests/test-exp2l.c: New file.
36688         New module 'exp2l'.
36689         * lib/math.in.h (exp2l): New declaration.
36690         * lib/exp2l.c: New file.
36691         * lib/expl-table.c: New file, extracted from lib/expl.c.
36692         * lib/expl.c (gl_expl_table): New declaration.
36693         (expl): Remove expl_table. Update reference.
36694         * m4/exp2l.m4: New file.
36695         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36697         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36698         * modules/exp2l: New file.
36699         * modules/expl (Files): Add lib/expl-table.c.
36700         (configure.ac): Compile also expl-table.c.
36701         * tests/test-math-c++.cc: Check the declaration of exp2l.
36702         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36703         problem.
36705 2012-03-08  Bruno Haible  <bruno@clisp.org>
36707         Tests for module 'exp2f'.
36708         * modules/exp2f-tests: New file.
36709         * tests/test-exp2f.c: New file.
36711         New module 'exp2f'.
36712         * lib/math.in.h (exp2f): New declaration.
36713         * lib/exp2f.c: New file.
36714         * m4/exp2f.m4: New file.
36715         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36717         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36718         * modules/exp2f: New file.
36719         * tests/test-math-c++.cc: Check the declaration of exp2f.
36720         * doc/posix-functions/exp2f.texi: Mention the new module and the
36721         IRIX problem.
36723 2012-03-08  Bruno Haible  <bruno@clisp.org>
36725         Tests for module 'exp2'.
36726         * modules/exp2-tests: New file.
36727         * tests/test-exp2.c: New file.
36728         * tests/test-exp2.h: New file.
36730         New module 'exp2'.
36731         * lib/math.in.h (exp2): New declaration.
36732         * lib/exp2.c: New file.
36733         * m4/exp2.m4: New file.
36734         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
36735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
36736         REPLACE_EXP2.
36737         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
36738         REPLACE_EXP2.
36739         * modules/exp2: New file.
36740         * tests/test-math-c++.cc: Check the declaration of exp2.
36741         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
36742         and OpenBSD problems.
36744 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36746         savedir: fix comment typo
36747         * lib/savedir.c (savedirstream): Fix typo in comment.
36749 2012-03-08  Bruno Haible  <bruno@clisp.org>
36751         test-readtokens.c: use const; remove unwarranted cast
36752         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
36754 2012-03-08  Bruno Haible  <bruno@clisp.org>
36756         fmal: Avoid compilation error on AIX.
36757         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
36758         AIX 5.2..7.1.
36760 2012-03-08  Bruno Haible  <bruno@clisp.org>
36762         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
36763         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
36764         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
36765         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
36766         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
36767         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
36768         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
36770 2012-03-08  Bruno Haible  <bruno@clisp.org>
36772         remainderf: Override buggy system function on IRIX 6.5.
36773         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
36774         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
36775         when it exists.
36776         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
36778 2012-03-08  Jim Meyering  <meyering@redhat.com>
36780         test-readtokens.c: avoid const-related compilation warnings
36781         * tests/test-readtokens.c: Avoid const-related compilation warnings.
36783 2012-03-07  Jim Meyering  <meyering@redhat.com>
36784             Bruno Haible  <bruno@clisp.org>
36786         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
36787         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
36788         tests/randomd.c.
36789         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
36790         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
36791         tests/randoml.c.
36792         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
36794 2012-03-07  Bruno Haible  <bruno@clisp.org>
36796         expm1l: Avoid compilation error on AIX.
36797         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
36798         AIX 5.2..7.1.
36800 2012-03-07  Bruno Haible  <bruno@clisp.org>
36802         expm1l: Don't override undeclared system function on IRIX 6.5.
36803         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
36804         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
36805         it exists. Set HAVE_DECL_EXPM1L.
36806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
36807         HAVE_EXPM1L.
36808         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
36809         HAVE_EXPM1L.
36810         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
36812 2012-03-07  Bruno Haible  <bruno@clisp.org>
36814         remainderl: Don't override undeclared system function on IRIX 6.5.
36815         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
36816         HAVE_REMAINDERL.
36817         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
36818         declared when it exists. Set HAVE_DECL_REMAINDERL.
36819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
36820         not HAVE_REMAINDERL.
36821         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
36822         HAVE_REMAINDERL.
36823         * doc/posix-functions/remainderl.texi: Mention missing declaration
36824         problem.
36826 2012-03-07  Bruno Haible  <bruno@clisp.org>
36828         rintf: Don't override undeclared system function on IRIX 6.5.
36829         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
36830         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
36831         exists. Set HAVE_DECL_RINTF.
36832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
36833         HAVE_RINTF.
36834         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
36835         HAVE_RINTF.
36836         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
36838 2012-03-07  Bruno Haible  <bruno@clisp.org>
36840         roundl: Avoid compilation error on AIX.
36841         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
36842         AIX 5.2..7.1.
36844 2012-03-07  Bruno Haible  <bruno@clisp.org>
36846         roundl: Don't override undeclared system function on IRIX 6.5.
36847         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
36848         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
36849         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36850         * modules/roundl (configure.ac): For replacement code, test
36851         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36852         (Depends-on): Update conditions.
36853         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
36855 2012-03-07  Bruno Haible  <bruno@clisp.org>
36857         roundf: Don't override undeclared system function on IRIX 6.5.
36858         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
36859         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
36860         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
36861         * modules/roundf (configure.ac): For replacement code, test
36862         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
36863         (Depends-on): Update conditions.
36864         * modules/roundf-ieee (Depends-on): Update conditions.
36865         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
36867 2012-03-07  Bruno Haible  <bruno@clisp.org>
36869         round: Don't override undeclared system function on IRIX 6.5.
36870         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
36871         argument.
36872         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
36873         also when it is not declared. Set HAVE_ROUND. For replacement code,
36874         test HAVE_ROUND, not HAVE_DECL_ROUND.
36875         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
36876         not HAVE_DECL_ROUND.
36877         (Depends-on): Update conditions.
36878         * modules/round-ieee (Depends-on): Update conditions.
36879         * doc/posix-functions/round.texi: Mention the IRIX problem.
36881 2012-03-07  Bruno Haible  <bruno@clisp.org>
36883         copysignf: Don't override undeclared system function on IRIX 6.5.
36884         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
36885         HAVE_COPYSIGNF.
36886         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
36887         declared when it exists. Set HAVE_DECL_COPYSIGNF.
36888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
36889         not HAVE_COPYSIGNF.
36890         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
36891         HAVE_COPYSIGNF.
36892         * doc/posix-functions/copysignf.texi: Mention missing declaration
36893         problem.
36895 2012-03-07  Jim Meyering  <meyering@redhat.com>
36897         readtokens: add tests
36898         * modules/readtokens-tests: New file.
36899         * tests/test-readtokens.c: New file.
36901 2012-03-07  Jim Meyering  <meyering@redhat.com>
36903         quotearg: the module must now include quote.h
36904         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
36905         So must the module.
36906         * modules/quotearg (Files): Add quote.h.
36908 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
36910         readtokens: avoid core dumps with unusual calling patterns
36911         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
36912         * lib/readtokens.c: Include limits.h.
36913         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
36914         (readtoken): Don't cache the delimiters; the cache code was buggy
36915         if !delim && saved_delim, or if the new n_delim differs from the old.
36916         Also, it wasn't thread-safe.
36918 2012-03-07  Bruno Haible  <bruno@clisp.org>
36920         quote: Adhere to common module description layout.
36921         * modules/quote (Makefile.am): Add back empty section.
36923 2012-03-06  Akim Demaille  <demaille@gostai.com>
36925         quote: fuse into quotearg
36926         This patch is made for the benefit of Bison.
36927         quote does not leave the choice of the quoting style to the user.
36928         quoting_style provides poor customizability, yet quoting_options,
36929         which is very rich, is hidden inside quotearg.c.  So in order to
36930         allow quote customization, move its implementation to quotearg.c.
36931         * lib/quote.c: Remove.
36932         * modules/quote: Adjust.
36933         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
36934         warning: provide all the members of literal structs.
36935         (quote_quoting_options): New.
36936         (quote, quote_n): Import implementation from quote.c.
36937         * lib/quote.h: Import the comments from quote.c.
36938         (quote_quoting_options): New.
36940 2012-03-06  Bruno Haible  <bruno@clisp.org>
36942         Tests for module 'expm1l-ieee'.
36943         * modules/expm1l-ieee-tests: New file.
36944         * tests/test-expm1l-ieee.c: New file.
36946         New module 'expm1l-ieee'.
36947         * modules/expm1l-ieee: New file.
36949         Tests for module 'expm1f-ieee'.
36950         * modules/expm1f-ieee-tests: New file.
36951         * tests/test-expm1f-ieee.c: New file.
36953         New module 'expm1f-ieee'.
36954         * modules/expm1f-ieee: New file.
36956         Tests for module 'expm1-ieee'.
36957         * modules/expm1-ieee-tests: New file.
36958         * tests/test-expm1-ieee.c: New file.
36959         * tests/test-expm1-ieee.h: New file.
36961         New module 'expm1-ieee'.
36962         * modules/expm1-ieee: New file.
36963         * m4/expm1-ieee.m4: New file.
36964         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
36965         whether expm1 works with a minus zero argument. Replace it if not.
36966         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
36967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
36968         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
36969         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
36970         (Depends-on): Update conditions.
36971         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
36972         AIX problem.
36974 2012-03-06  Bruno Haible  <bruno@clisp.org>
36976         Work around expm1f bug on IRIX 6.5.
36977         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
36978         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
36979         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
36980         not work.
36981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
36982         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
36983         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
36984         (Depends-on): Update conditions.
36985         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
36987 2012-03-06  Bruno Haible  <bruno@clisp.org>
36989         Tests for module 'expm1l'.
36990         * modules/expm1l-tests: New file.
36991         * tests/test-expm1l.c: New file.
36993         New module 'expm1l'.
36994         * lib/math.in.h (expm1l): New declaration.
36995         * lib/expm1l.c: New file.
36996         * m4/expm1l.m4: New file.
36997         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
36998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
36999         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37000         * modules/expm1l: New file.
37001         * tests/test-math-c++.cc: Check the declaration of expm1l.
37002         * doc/posix-functions/expm1l.texi: Mention the new module.
37004 2012-03-06  Bruno Haible  <bruno@clisp.org>
37006         Tests for module 'expm1f'.
37007         * modules/expm1f-tests: New file.
37008         * tests/test-expm1f.c: New file.
37010         New module 'expm1f'.
37011         * lib/math.in.h (expm1f): New declaration.
37012         * lib/expm1f.c: New file.
37013         * m4/expm1f.m4: New file.
37014         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37016         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37017         * modules/expm1f: New file.
37018         * tests/test-math-c++.cc: Check the declaration of expm1f.
37019         * doc/posix-functions/expm1f.texi: Mention the new module.
37021 2012-03-06  Bruno Haible  <bruno@clisp.org>
37023         Tests for module 'expm1'.
37024         * modules/expm1-tests: New file.
37025         * tests/test-expm1.c: New file.
37026         * tests/test-expm1.h: New file.
37028         New module 'expm1'.
37029         * lib/math.in.h (expm1): New declaration.
37030         * lib/expm1.c: New file.
37031         * m4/expm1.m4: New file.
37032         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37034         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37035         * modules/expm1: New file.
37036         * tests/test-math-c++.cc: Check the declaration of expm1.
37037         * doc/posix-functions/expm1.texi: Mention the new module.
37039 2012-03-06  Bruno Haible  <bruno@clisp.org>
37041         math: Ensure declarations of math functions.
37042         * modules/acosf (Depends-on): Add 'extensions'.
37043         * modules/asinf (Depends-on): Likewise.
37044         * modules/atan2f (Depends-on): Likewise.
37045         * modules/atanf (Depends-on): Likewise.
37046         * modules/cbrt (Depends-on): Likewise.
37047         * modules/cbrtf (Depends-on): Likewise.
37048         * modules/cbrtl (Depends-on): Likewise.
37049         * modules/copysignf (Depends-on): Likewise.
37050         * modules/copysignl (Depends-on): Likewise.
37051         * modules/cosf (Depends-on): Likewise.
37052         * modules/coshf (Depends-on): Likewise.
37053         * modules/expf (Depends-on): Likewise.
37054         * modules/fabsf (Depends-on): Likewise.
37055         * modules/fabsl (Depends-on): Likewise.
37056         * modules/fmaf (Depends-on): Likewise.
37057         * modules/fmal (Depends-on): Likewise.
37058         * modules/fmodf (Depends-on): Likewise.
37059         * modules/fmodl (Depends-on): Likewise.
37060         * modules/frexpf (Depends-on): Likewise.
37061         * modules/frexpl (Depends-on): Likewise.
37062         * modules/hypot (Depends-on): Likewise.
37063         * modules/hypotf (Depends-on): Likewise.
37064         * modules/hypotl (Depends-on): Likewise.
37065         * modules/ldexpf (Depends-on): Likewise.
37066         * modules/ldexpl (Depends-on): Likewise.
37067         * modules/log10f (Depends-on): Likewise.
37068         * modules/log10l (Depends-on): Likewise.
37069         * modules/log1p (Depends-on): Likewise.
37070         * modules/logb (Depends-on): Likewise.
37071         * modules/logf (Depends-on): Likewise.
37072         * modules/modff (Depends-on): Likewise.
37073         * modules/modfl (Depends-on): Likewise.
37074         * modules/powf (Depends-on): Likewise.
37075         * modules/remainderf (Depends-on): Likewise.
37076         * modules/remainderl (Depends-on): Likewise.
37077         * modules/rintf (Depends-on): Likewise.
37078         * modules/rintl (Depends-on): Likewise.
37079         * modules/sinf (Depends-on): Likewise.
37080         * modules/sinhf (Depends-on): Likewise.
37081         * modules/sqrtf (Depends-on): Likewise.
37082         * modules/tanf (Depends-on): Likewise.
37083         * modules/tanhf (Depends-on): Likewise.
37084         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37085         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37086         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37087         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37088         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37089         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37090         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37091         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37092         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37093         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37094         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37095         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37096         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37097         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37098         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37099         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37100         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37101         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37102         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37103         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37104         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37105         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37106         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37107         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37109         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37110         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37111         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37112         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37113         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37114         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37115         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37116         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37117         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37118         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37119         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37120         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37121         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37122         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37123         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37124         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37126 2012-03-06  Bruno Haible  <bruno@clisp.org>
37128         math: Update module names in warnings.
37129         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37130         tanl): Use specific module name in warn-on-use warning.
37132 2012-03-06  Bruno Haible  <bruno@clisp.org>
37134         expl: Simplify computation.
37135         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37137 2012-03-05  Bruno Haible  <bruno@clisp.org>
37139         exp* tests: More tests.
37140         * tests/test-exp.h: New file.
37141         * tests/test-exp.c: Include <float.h> and test-exp.h.
37142         (main): Invoke test_function.
37143         * tests/test-expf.c: Include <float.h> and test-exp.h.
37144         (main): Invoke test_function.
37145         * tests/test-expl.c: Include <float.h> and test-exp.h.
37146         (main): Invoke test_function.
37147         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37148         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37149         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37150         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37151         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37152         (Depends-on): Add 'float'.
37153         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37155         expl: Fix precision of computed result.
37156         * lib/expl.c: Completely rewritten.
37157         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37158         (Maintainer): Add me.
37159         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37161 2012-03-05  Bruno Haible  <bruno@clisp.org>
37163         cbrt* tests: More tests.
37164         * tests/test-cbrt.h: New file.
37165         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37166         (main): Invoke test_function.
37167         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37168         (main): Invoke test_function.
37169         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37170         (main): Invoke test_function.
37171         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37172         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37173         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37174         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37175         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37176         (Depends-on): Add 'float'.
37177         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37179 2012-03-05  Bruno Haible  <bruno@clisp.org>
37181         hypot* tests: More tests.
37182         * tests/test-hypot.h: New file, partially extracted from
37183         tests/test-hypotl.c.
37184         * tests/test-hypot.c: Include test-hypot.h.
37185         (main): Invoke test_function.
37186         * tests/test-hypotf.c: Include test-hypot.h.
37187         (main): Invoke test_function.
37188         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37189         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37190         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37191         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37192         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37193         tests/randomf.c.
37194         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37195         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37196         tests/randoml.c.
37197         (Depends-on): Add 'fpucw', 'float'.
37198         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37200 2012-03-05  Bruno Haible  <bruno@clisp.org>
37202         fpucw: Doc about FreeBSD.
37203         * lib/fpucw.h: Mention FreeBSD in comments.
37205 2012-03-04  Bruno Haible  <bruno@clisp.org>
37207         sqrt* tests: More tests.
37208         * tests/test-sqrt.h: New file.
37209         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37210         (main): Invoke test_function.
37211         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37212         (main): Invoke test_function.
37213         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37214         (main): Invoke test_function.
37215         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37216         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37217         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37218         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37219         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37220         (Depends-on): Add 'float'.
37221         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37223 2012-03-04  Bruno Haible  <bruno@clisp.org>
37225         remainder* tests: More tests.
37226         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37227         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37228         (main): Invoke test_function.
37229         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37230         (main): Invoke test_function.
37231         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37232         (main): Invoke test_function.
37233         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37234         tests/randomd.c.
37235         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37236         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37237         tests/randomf.c.
37238         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37239         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37240         tests/randoml.c.
37241         (Depends-on): Add 'float'.
37242         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37244 2012-03-04  Bruno Haible  <bruno@clisp.org>
37246         remainder, remainderf, remainderl: Fix computation for large quotients.
37247         * lib/remainder.c: Completely rewritten.
37248         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37249         USE_FLOAT.
37250         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37251         USE_LONG_DOUBLE.
37252         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37253         isnand, isinf. Remove round, fma.
37254         * modules/remainderf (Files): Add lib/remainder.c.
37255         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37256         Remove roundf, fmaf.
37257         * modules/remainderl (Files): Add lib/remainder.c.
37258         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37259         isinf. Remove roundl, fmal.
37260         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37261         REMAINDER_LIBM.
37262         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37263         REMAINDERF_LIBM.
37264         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37265         REMAINDERL_LIBM.
37267 2012-03-04  Bruno Haible  <bruno@clisp.org>
37269         fmod* tests: More tests.
37270         * tests/test-fmod.h (my_ldexp): New function.
37271         (test_function): Reduce amount of random numbers to test. Add tests
37272         of very large quotients x / y.
37273         * tests/test-fmod.c (MAX_EXP): New macro.
37274         * tests/test-fmodf.c (MAX_EXP): Likewise.
37275         * tests/test-fmodl.c (MAX_EXP): Likewise.
37277 2012-03-04  Bruno Haible  <bruno@clisp.org>
37279         fmod, fmodl: Fix computation for large quotients x / y.
37280         * lib/fmod.c: Completely rewritten.
37281         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37282         USE_LONG_DOUBLE.
37283         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37284         isnand. Remove fma.
37285         * modules/fmodl (Files): Add lib/fmod.c.
37286         (Depends-on): Add float, isfinite, signbit, fabsl,
37287         frexpl, ldexpl, isnanl. Remove fma.
37288         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37289         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37291 2012-03-03  Bruno Haible  <bruno@clisp.org>
37293         fmod* tests: More tests.
37294         * tests/test-fmod.h: New file.
37295         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37296         (main): Invoke test_function.
37297         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37298         (main): Invoke test_function.
37299         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37300         (main): Invoke test_function.
37301         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37302         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37303         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37304         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37305         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37306         (Depends-on): Add 'float'.
37307         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37309 2012-03-03  Bruno Haible  <bruno@clisp.org>
37311         rint* tests: More tests.
37312         * tests/test-rint.h: New file, partially extracted from
37313         tests/test-rintl.c.
37314         * tests/test-rint.c: Include test-rint.h.
37315         (main): Invoke test_function.
37316         * tests/test-rintf.c: Include test-rint.h.
37317         (main): Invoke test_function.
37318         * tests/test-rintl.c: Include test-rint.h.
37319         (main): Invoke test_function.
37320         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37321         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37322         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37323         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37324         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37325         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37327 2012-03-03  Bruno Haible  <bruno@clisp.org>
37329         modf* tests: More tests.
37330         * tests/test-modf.h: New file.
37331         * tests/test-modf.c: Include <float.h> and test-modf.h.
37332         (main): Invoke test_function.
37333         * tests/test-modff.c: Include <float.h> and test-modf.h.
37334         (main): Invoke test_function.
37335         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37336         (main): Invoke test_function.
37337         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37338         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37339         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37340         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37341         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37342         (Depends-on): Add 'float'.
37343         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37345 2012-03-03  Bruno Haible  <bruno@clisp.org>
37347         fabs* tests: More tests.
37348         * tests/test-fabs.h: New file, partially extracted from
37349         tests/test-fabsl.c.
37350         * tests/test-fabs.c (RANDOM): New macro.
37351         * tests/test-fabsf.c (RANDOM): New macro.
37352         * tests/test-fabsl.c (RANDOM): New macro.
37353         * modules/fabs-tests (Files): Add tests/randomd.c.
37354         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37355         * modules/fabsf-tests (Files): Add tests/randomf.c.
37356         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37357         * modules/fabsl-tests (Files): Add tests/randoml.c.
37358         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37360 2012-03-03  Bruno Haible  <bruno@clisp.org>
37362         ldexp* tests: More tests.
37363         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37364         * tests/test-ldexp.c (RANDOM): New macro.
37365         * tests/test-ldexpf.c (RANDOM): New macro.
37366         * tests/test-ldexpl.c (RANDOM): New macro.
37367         * modules/ldexp-tests (Files): Add tests/randomd.c.
37368         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37369         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37370         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37371         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37372         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37374 2012-03-03  Bruno Haible  <bruno@clisp.org>
37376         frexp* tests: More tests.
37377         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37378         * tests/test-frexp.c (RANDOM): New macro.
37379         * tests/test-frexpf.c (RANDOM): New macro.
37380         * tests/test-frexpl.c (RANDOM): New macro.
37381         * modules/frexp-tests (Files): Add tests/randomd.c.
37382         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37383         * modules/frexpf-tests (Files): Add tests/randomf.c.
37384         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37385         * modules/frexpl-tests (Files): Add tests/randoml.c.
37386         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37388 2012-03-03  Bruno Haible  <bruno@clisp.org>
37390         Support for pseudo-random numbers in tests.
37391         * tests/randomf.c: New file.
37392         * tests/randomd.c: New file.
37393         * tests/randoml.c: New file.
37394         * tests/macros.h (randomf, randomd, randoml): New declarations.
37396 2012-03-03  Bruno Haible  <bruno@clisp.org>
37398         frexp* tests: Refactor.
37399         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37400         * tests/test-frexp.c: Include and use it.
37401         * tests/test-frexpf.c: Likewise.
37402         * tests/test-frexpl.c: Likewise.
37403         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37404         * modules/frexpf-tests (Files): Likewise.
37405         * modules/frexpl-tests (Files): Likewise.
37407 2012-03-02  Jim Meyering  <meyering@redhat.com>
37409         maint: don't specify XZ_OPT=-9ev in dist-related rule
37410         Using xz's -9 option is warranted only if you have a very large
37411         tarball (see xz's documentation for the sizes vs. presets), and
37412         requires 64MiB of memory at decompression time.
37413         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37414         Automake's default of just "-e" is fine.  Override on a
37415         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37417 2012-03-01  Eric Blake  <eblake@redhat.com>
37419         maint.mk: allow announcement for non-gnulib project
37420         * maint.mk (announcement): Skip gnulib version if not used.
37422 2012-03-01  Jim Meyering  <meyering@redhat.com>
37424         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37425         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37426         envvar settings cannot interfere.  Otherwise, setting envvars like
37427         prohibit=foo require=bar, etc. would cause spurious test failures.
37429 2012-03-01  Eric Blake  <eblake@redhat.com>
37431         maint.mk: add per-line exclusions to prohibitions
37432         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37433         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37434         (sc_const_long_option): Use it.
37436 2012-03-01  Bruno Haible  <bruno@clisp.org>
37438         Tests for module 'expl-ieee'.
37439         * modules/expl-ieee-tests: New file.
37440         * tests/test-expl-ieee.c: New file.
37442         New module 'expl-ieee'.
37443         * modules/expl-ieee: New file.
37445         Tests for module 'exp-ieee'.
37446         * modules/exp-ieee-tests: New file.
37447         * tests/test-exp-ieee.c: New file.
37449         New module 'exp-ieee'.
37450         * modules/exp-ieee: New file.
37452         Tests for module 'expf-ieee'.
37453         * modules/expf-ieee-tests: New file.
37454         * tests/test-expf-ieee.c: New file.
37455         * tests/test-exp-ieee.h: New file.
37457         New module 'expf-ieee'.
37458         * modules/expf-ieee: New file.
37460 2012-02-29  Bruno Haible  <bruno@clisp.org>
37462         cbrtl-ieee: Work around test failure on IRIX 6.5.
37463         * m4/cbrtl-ieee.m4: New file.
37464         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37465         test whether cbrtl works with a minus zero argument. Replace it if not.
37466         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37468         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37469         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37470         (Depends-on): Update conditions.
37471         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37472         m4/signbit.m4.
37473         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37474         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37475         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37477         Tests for module 'cbrtl-ieee'.
37478         * modules/cbrtl-ieee-tests: New file.
37479         * tests/test-cbrtl-ieee.c: New file.
37481         New module 'cbrtl-ieee'.
37482         * modules/cbrtl-ieee: New file.
37484         Tests for module 'cbrt-ieee'.
37485         * modules/cbrt-ieee-tests: New file.
37486         * tests/test-cbrt-ieee.c: New file.
37488         New module 'cbrt-ieee'.
37489         * modules/cbrt-ieee: New file.
37491         Tests for module 'cbrtf-ieee'.
37492         * modules/cbrtf-ieee-tests: New file.
37493         * tests/test-cbrtf-ieee.c: New file.
37494         * tests/test-cbrt-ieee.h: New file.
37496         New module 'cbrtf-ieee'.
37497         * modules/cbrtf-ieee: New file.
37499 2012-02-29  Bruno Haible  <bruno@clisp.org>
37501         cbrtf: Work around bug in IRIX 6.5 system function.
37502         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37503         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37504         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37505         work.
37506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37507         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37508         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37509         (Depends-on): Update conditions.
37510         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37512 2012-02-29  Bruno Haible  <bruno@clisp.org>
37514         Tests for module 'cbrtl'.
37515         * modules/cbrtl-tests: New file.
37516         * tests/test-cbrtl.c: New file.
37518         New module 'cbrtl'.
37519         * lib/math.in.h (cbrtl): New declaration.
37520         * lib/cbrtl.c: New file.
37521         * m4/cbrtl.m4: New file.
37522         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37524         HAVE_DECL_CBRTL.
37525         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37526         HAVE_DECL_CBRTL.
37527         * modules/cbrtl: New file.
37528         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37529         * doc/posix-functions/cbrtl.texi: Mention the new module.
37531 2012-02-29  Bruno Haible  <bruno@clisp.org>
37533         Tests for module 'cbrtf'.
37534         * modules/cbrtf-tests: New file.
37535         * tests/test-cbrtf.c: New file.
37537         New module 'cbrtf'.
37538         * lib/math.in.h (cbrtf): New declaration.
37539         * lib/cbrtf.c: New file.
37540         * m4/cbrtf.m4: New file.
37541         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37543         HAVE_DECL_CBRTF.
37544         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37545         HAVE_DECL_CBRTF.
37546         * modules/cbrtf: New file.
37547         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37548         * doc/posix-functions/cbrtf.texi: Mention the new module.
37550 2012-02-29  Bruno Haible  <bruno@clisp.org>
37552         cbrt: Provide replacement on MSVC and Minix.
37553         * lib/math.in.h (cbrt): New declaration.
37554         * lib/cbrt.c: New file.
37555         * m4/cbrt.m4: New file.
37556         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37558         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37559         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37560         (Depends-on): Add dependencies.
37561         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37562         * tests/test-math-c++.cc: Check the declaration of cbrt.
37563         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37564         replacement.
37566 2012-02-29  Bruno Haible  <bruno@clisp.org>
37568         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37569         * m4/hypotl-ieee.m4: New file.
37570         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37571         test whether hypotl works with mixed NaN and Infinity arguments.
37572         Replace it if not.
37573         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37575         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37576         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37577         (Depends-on): Update conditions.
37578         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37579         (Depends-on): Add hypot-ieee.
37580         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37581         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37583         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37584         * m4/hypotf-ieee.m4: New file.
37585         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37586         test whether hypotf works with mixed NaN and Infinity arguments.
37587         Replace it if not.
37588         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37589         (Depends-on): Add hypot-ieee.
37590         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37591         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37593         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37594         * lib/math.in.h (hypot): New declaration.
37595         * lib/hypot.c: New file.
37596         * m4/hypot-ieee.m4: New file.
37597         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37598         whether hypot works with mixed NaN and Infinity arguments. Replace it
37599         if not.
37600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37601         REPLACE_HYPOT.
37602         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37603         * modules/hypot (Files): Add lib/hypot.c.
37604         (Depends-on): Add dependencies.
37605         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37606         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37607         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37608         * tests/test-math-c++.cc: Check the declaration of hypot.
37609         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37611         Tests for module 'hypotl-ieee'.
37612         * modules/hypotl-ieee-tests: New file.
37613         * tests/test-hypotl-ieee.c: New file.
37615         New module 'hypotl-ieee'.
37616         * modules/hypotl-ieee: New file.
37618         Tests for module 'hypot-ieee'.
37619         * modules/hypot-ieee-tests: New file.
37620         * tests/test-hypot-ieee.c: New file.
37622         New module 'hypot-ieee'.
37623         * modules/hypot-ieee: New file.
37625         Tests for module 'hypotf-ieee'.
37626         * modules/hypotf-ieee-tests: New file.
37627         * tests/test-hypotf-ieee.c: New file.
37628         * tests/test-hypot-ieee.h: New file.
37630         New module 'hypotf-ieee'.
37631         * modules/hypotf-ieee: New file.
37633 2012-02-29  Bruno Haible  <bruno@clisp.org>
37635         Remove unused variables.
37636         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37637         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37638         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37639         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37641 2012-02-29  Eric Blake  <eblake@redhat.com>
37643         termios: fix pid_t always, not just for tcgetsid
37644         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37645         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37646         just when building tcgetsid.
37648 2012-02-29  Bruno Haible  <bruno@clisp.org>
37650         Tests for module 'hypotl'.
37651         * modules/hypotl-tests: New file.
37652         * tests/test-hypotl.c: New file.
37654         New module 'hypotl'.
37655         * lib/math.in.h (hypotl): New declaration.
37656         * lib/hypotl.c: New file.
37657         * m4/hypotl.m4: New file.
37658         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37660         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37661         * modules/hypotl: New file.
37662         * tests/test-math-c++.cc: Check the hypotl declaration.
37663         * doc/posix-functions/hypotl.texi: Mention the new module.
37665 2012-02-29  Eric Blake  <eblake@redhat.com>
37667         tcgetsid: fix cygwin header bug
37668         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37670         docs: update cygwin progress
37671         * doc/posix-functions/llround.texi (llround): Added in cygwin
37672         1.7.8.
37673         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37674         * doc/glibc-functions/program_invocation_name.texi
37675         (program_invocation_name): Likewise.
37676         * doc/glibc-functions/program_invocation_short_name.texi
37677         (program_invocation_short_name): Likewise.
37678         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37679         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37680         Likewise.
37681         * doc/posix-functions/pthread_spin_destroy.texi
37682         (pthread_spin_destroy): Added in cygwin 1.7.10.
37683         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37684         Likewise.
37685         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37686         Likewise.
37687         * doc/posix-functions/pthread_spin_trylock.texi
37688         (pthread_spin_trylock): Likewise.
37689         * doc/posix-functions/pthread_spin_unlock.texi
37690         (pthread_spin_unlock): Likewise.
37691         * doc/posix-functions/pthread_setschedprio.texi
37692         (pthread_setschedprio): Likewise.
37693         * doc/posix-functions/pthread_attr_getstack.texi
37694         (pthread_attr_getstack): Likewise.
37695         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37696         (pthread_attr_getstackaddr): Likewise.
37697         * doc/glibc-functions/pthread_getattr_np.texi
37698         (pthread_getattr_np): Likewise.
37699         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37700         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37701         * doc/posix-functions/clock_settime.texi (clock_settime):
37702         Likewise.
37703         * doc/posix-functions/pthread_attr_getguardsize.texi
37704         (pthread_attr_getguardsize): Likewise.
37705         * doc/posix-functions/pthread_attr_setguardsize.texi
37706         (pthread_attr_setguardsize): Likewise.
37707         * doc/posix-functions/pthread_attr_setstack.texi
37708         (pthread_attr_setstack): Likewise.
37709         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37710         (pthread_attr_setstackaddr): Likewise.
37711         * doc/posix-functions/clock_getcpuclockid.texi
37712         (clock_getcpuclockid): Likewise.
37713         * doc/posix-functions/pthread_getcpuclockid.texi
37714         (pthread_getcpuclockid): Likewise.
37715         * doc/glibc-functions/error.texi (error): Likewise.
37716         * doc/glibc-functions/error_at_line.texi (error_at_line):
37717         Likewise.
37718         * doc/glibc-functions/error_message_count.texi
37719         (error_message_count): Likewise.
37720         * doc/glibc-functions/error_one_per_line.texi
37721         (error_one_per_line): Likewise.
37722         * doc/glibc-functions/error_print_progname.texi
37723         (error_print_progname): Likewise.
37724         * doc/posix-functions/pthread_condattr_getclock.texi
37725         (pthread_condattr_getclock): Likewise.
37726         * doc/posix-functions/pthread_condattr_setclock.texi
37727         (pthread_condattr_setclock): Likewise.
37728         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
37729         Likewise.
37730         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
37731         * doc/glibc-functions/getpt.texi (getpt): Likewise.
37732         * doc/glibc-functions/get_current_dir_name.texi
37733         (get_current_dir_name): Likewise.
37734         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
37735         Likewise.
37736         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
37737         wrong return type.
37738         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
37739         1.7.11.
37741 2012-02-29  Bruno Haible  <bruno@clisp.org>
37743         Tests for module 'hypotf'.
37744         * modules/hypotf-tests: New file.
37745         * tests/test-hypotf.c: New file.
37747         New module 'hypotf'.
37748         * lib/math.in.h (hypotf): New declaration.
37749         * lib/hypotf.c: New file.
37750         * m4/hypotf.m4: New file.
37751         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
37753         REPLACE_HYPOTF.
37754         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
37755         REPLACE_HYPOTF.
37756         * modules/hypotf: New file.
37757         * tests/test-math-c++.cc: Check the hypotf declaration.
37758         * doc/posix-functions/hypotf.texi: Mention the new module.
37760         hypot: Prepare for hypotf module.
37761         * m4/hypot.m4: New file.
37762         * modules/hypot (Files): Add m4/hypot.m4.
37763         (configure.ac): Invoke gl_FUNC_HYPOT.
37765 2012-02-29  Bruno Haible  <bruno@clisp.org>
37767         hypot tests: More tests.
37768         * tests/test-hypot.c: Include <float.h>.
37769         (main): Add tests about overflow and underflow.
37771 2012-02-29  Bruno Haible  <bruno@clisp.org>
37773         math code: Add comments.
37774         * lib/acosl.c: Add comment about related glibc source files.
37775         * lib/asinl.c: Likewise.
37776         * lib/atanl.c: Likewise.
37777         * lib/expl.c: Likewise.
37778         * lib/logl.c: Likewise.
37779         * lib/sincosl.c: Likewise.
37780         * lib/sinl.c: Likewise.
37781         * lib/tanl.c: Likewise.
37782         * lib/trigl.c: Likewise.
37783         * lib/cosl.c: Likewise. Fix comments.
37785 2012-02-28  Bruno Haible  <bruno@clisp.org>
37787         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
37788         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
37789         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
37790         HUGE_VALL are defined.
37791         (numeric_equald): Renamed from numeric_equal.
37792         (numeric_equalf, numeric_equall): New functions.
37793         (main): Check also HUGE_VALF, HUGE_VALL.
37794         * modules/math-tests (Files): Add tests/macros.h.
37795         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
37796         HUGE_VALL.
37798 2012-02-28  Bruno Haible  <bruno@clisp.org>
37800         doc: Move ISO C11 feature notes into POSIX chapters.
37801         * doc/posix-functions/aligned_alloc.texi: Renamed from
37802         doc/glibc-functions/aligned_alloc.texi.
37803         * doc/posix-functions/quick_exit.texi: Renamed from
37804         doc/glibc-functions/quick_exit.texi.
37805         * doc/posix-headers/uchar.texi: Renamed from
37806         doc/glibc-headers/uchar.texi.
37807         * doc/posix-functions/c16rtomb.texi: Renamed from
37808         doc/glibc-functions/c16rtomb.texi.
37809         * doc/posix-functions/c32rtomb.texi: Renamed from
37810         doc/glibc-functions/c32rtomb.texi.
37811         * doc/posix-functions/mbrtoc16.texi: Renamed from
37812         doc/glibc-functions/mbrtoc16.texi.
37813         * doc/posix-functions/mbrtoc32.texi: Renamed from
37814         doc/glibc-functions/mbrtoc32.texi.
37815         * doc/gnulib.texi: Update.
37816         (Glibc uchar.h): Remove section.
37817         Suggested by Eric Blake.
37819 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
37821         stdnoreturn: port to MSVC better
37822         MSVC standard headers use __declspec(noreturn), so #define noreturn
37823         to empty on that platform.  Reported by Bruno Haible in
37824         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
37825         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
37826         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
37828 2012-02-28  Bruno Haible  <bruno@clisp.org>
37830         doc: Mention new glibc headers and functions.
37831         * doc/glibc-headers/uchar.texi: New file.
37832         * doc/glibc-functions/aligned_alloc.texi: New file.
37833         * doc/glibc-functions/c16rtomb.texi: New file.
37834         * doc/glibc-functions/c32rtomb.texi: New file.
37835         * doc/glibc-functions/clock_adjtime.texi: New file.
37836         * doc/glibc-functions/fanotify_init.texi: New file.
37837         * doc/glibc-functions/fanotify_mark.texi: New file.
37838         * doc/glibc-functions/inet6_opt_append.texi: New file.
37839         * doc/glibc-functions/inet6_opt_find.texi: New file.
37840         * doc/glibc-functions/inet6_opt_finish.texi: New file.
37841         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
37842         * doc/glibc-functions/inet6_opt_init.texi: New file.
37843         * doc/glibc-functions/inet6_opt_next.texi: New file.
37844         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
37845         * doc/glibc-functions/inet6_rth_add.texi: New file.
37846         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
37847         * doc/glibc-functions/inet6_rth_init.texi: New file.
37848         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
37849         * doc/glibc-functions/inet6_rth_segments.texi: New file.
37850         * doc/glibc-functions/inet6_rth_space.texi: New file.
37851         * doc/glibc-functions/login.texi: New file.
37852         * doc/glibc-functions/mbrtoc16.texi: New file.
37853         * doc/glibc-functions/mbrtoc32.texi: New file.
37854         * doc/glibc-functions/name_to_handle_at.texi: New file.
37855         * doc/glibc-functions/ntp_gettimex.texi: New file.
37856         * doc/glibc-functions/open_by_handle_at.texi: New file.
37857         * doc/glibc-functions/prlimit.texi: New file.
37858         * doc/glibc-functions/process_vm_readv.texi: New file.
37859         * doc/glibc-functions/process_vm_writev.texi: New file.
37860         * doc/glibc-functions/recvmmsg.texi: New file.
37861         * doc/glibc-functions/scandirat.texi: New file.
37862         * doc/glibc-functions/sendmmsg.texi: New file.
37863         * doc/glibc-functions/setns.texi: New file.
37864         * doc/glibc-functions/timespec_get.texi: New file.
37865         * doc/gnulib.texi: Include them.
37866         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
37867         sections.
37868         Reported by Eric Blake.
37870 2012-02-28  Bruno Haible  <bruno@clisp.org>
37872         Avoid compilation errors with MSVC option -fp:strict.
37873         * lib/floor.c: Use MSVC specific pragma fenv_access.
37874         * lib/ceil.c: Likewise.
37875         * lib/trunc.c: Likewise.
37876         * lib/round.c: Likewise.
37877         * lib/rint.c: Likewise.
37878         * lib/fma.c: Likewise.
37879         * lib/integer_length.c: Likewise.
37880         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37882         * tests/test-floor2.c: Likewise.
37883         * tests/test-floorf2.c: Likewise.
37884         * tests/test-ceil2.c: Likewise.
37885         * tests/test-ceilf2.c: Likewise.
37886         * tests/test-trunc2.c: Likewise.
37887         * tests/test-truncf2.c: Likewise.
37888         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37890 2012-02-27  Bruno Haible  <bruno@clisp.org>
37892         Tests for module 'sqrtl-ieee'.
37893         * modules/sqrtl-ieee-tests: New file.
37894         * tests/test-sqrtl-ieee.c: New file.
37896         New module 'sqrtl-ieee'.
37897         * modules/sqrtl-ieee: New file.
37899         Tests for module 'sqrt-ieee'.
37900         * modules/sqrt-ieee-tests: New file.
37901         * tests/test-sqrt-ieee.c: New file.
37903         New module 'sqrt-ieee'.
37904         * modules/sqrt-ieee: New file.
37906         Tests for module 'sqrtf-ieee'.
37907         * modules/sqrtf-ieee-tests: New file.
37908         * tests/test-sqrtf-ieee.c: New file.
37909         * tests/test-sqrt-ieee.h: New file.
37911         New module 'sqrtf-ieee'.
37912         * modules/sqrtf-ieee: New file.
37914 2012-02-27  Bruno Haible  <bruno@clisp.org>
37916         remainderl-ieee: Work around test failure on OSF/1.
37917         * m4/remainderl-ieee.m4: New file.
37918         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
37919         present, test whether remainderl works with a zero second argument.
37920         Replace it if not.
37921         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
37922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
37923         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
37924         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
37925         (Depends-on): Update conditions.
37926         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
37927         (Depends-on): Add remainder-ieee.
37928         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
37929         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
37930         module.
37932         remainderf-ieee: Work around test failure on OSF/1.
37933         * m4/remainderf-ieee.m4: New file.
37934         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
37935         present, test whether remainderf works with a zero second argument.
37936         Replace it if not.
37937         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
37938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
37939         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
37940         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
37941         (Depends-on): Update conditions.
37942         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
37943         (Depends-on): Add remainder-ieee.
37944         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
37945         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
37946         module.
37948         remainder-ieee: Work around test failure on OSF/1.
37949         * m4/remainder-ieee.m4: New file.
37950         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
37951         present, test whether remainder works with a zero second argument.
37952         Replace it if not.
37953         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
37954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
37955         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
37956         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
37957         (Depends-on): Update dependencies.
37958         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
37959         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
37960         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
37962         Tests for module 'remainderl-ieee'.
37963         * modules/remainderl-ieee-tests: New file.
37964         * tests/test-remainderl-ieee.c: New file.
37966         New module 'remainderl-ieee'.
37967         * modules/remainderl-ieee: New file.
37969         Tests for module 'remainder-ieee'.
37970         * modules/remainder-ieee-tests: New file.
37971         * tests/test-remainder-ieee.c: New file.
37973         New module 'remainder-ieee'.
37974         * modules/remainder-ieee: New file.
37976         Tests for module 'remainderf-ieee'.
37977         * modules/remainderf-ieee-tests: New file.
37978         * tests/test-remainderf-ieee.c: New file.
37979         * tests/test-remainder-ieee.h: New file.
37981         New module 'remainderf-ieee'.
37982         * modules/remainderf-ieee: New file.
37984 2012-02-27  Bruno Haible  <bruno@clisp.org>
37986         modff, modfl: Fix configure syntax error.
37987         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
37988         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37990 2012-02-27  Bruno Haible  <bruno@clisp.org>
37992         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
37993         * m4/fmodl-ieee.m4: New file.
37994         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
37995         whether fmodl works with zero arguments. Replace it if not.
37996         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
37997         (Depends-on): Add fmod-ieee.
37998         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
37999         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38001         fmodf-ieee: Work around test failure on OSF/1.
38002         * m4/fmodf-ieee.m4: New file.
38003         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38004         whether fmodf works with zero arguments. Replace it if not.
38005         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38007         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38008         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38009         (Depends-on): Update dependencies.
38010         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38011         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38012         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38014         fmodf-ieee: Work around test failure on MSVC 9.
38015         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38016         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38018         fmod-ieee: Work around test failures on OSF/1, mingw.
38019         * m4/fmod-ieee.m4: New file.
38020         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38021         whether fmod works with zero arguments. Replace it if not.
38022         * lib/math.in.h (fmod): New declaration.
38023         * lib/fmod.c: New file.
38024         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38026         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38027         * modules/fmod (Files): Add lib/fmod.c.
38028         (Depends-on): Add math, isinf, trunc, fma.
38029         (configure.ac): Arrange to compile lib/fmod.c if needed.
38030         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38031         m4/signbit.m4.
38032         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38033         * tests/test-math-c++.cc: Check the declaration of fmod.
38034         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38036         fmodl-ieee: Fix test failures.
38037         * lib/fmodl.c (fmodl): Treat Inf specially.
38038         * modules/fmodl (Depends-on): Add isinf.
38040         Tests for module 'fmodl-ieee'.
38041         * modules/fmodl-ieee-tests: New file.
38042         * tests/test-fmodl-ieee.c: New file.
38044         New module 'fmodl-ieee'.
38045         * modules/fmodl-ieee: New file.
38047         Tests for module 'fmod-ieee'.
38048         * modules/fmod-ieee-tests: New file.
38049         * tests/test-fmod-ieee.c: New file.
38051         New module 'fmod-ieee'.
38052         * modules/fmod-ieee: New file.
38054         Tests for module 'fmodf-ieee'.
38055         * modules/fmodf-ieee-tests: New file.
38056         * tests/test-fmodf-ieee.c: New file.
38057         * tests/test-fmod-ieee.h: New file.
38059         New module 'fmodf-ieee'.
38060         * modules/fmodf-ieee: New file.
38062 2012-02-27  Bruno Haible  <bruno@clisp.org>
38064         Tests for module 'rintl-ieee'.
38065         * modules/rintl-ieee-tests: New file.
38066         * tests/test-rintl-ieee.c: New file.
38068         New module 'rintl-ieee'.
38069         * modules/rintl-ieee: New file.
38071         Tests for module 'rint-ieee'.
38072         * modules/rint-ieee-tests: New file.
38073         * tests/test-rint-ieee.c: New file.
38075         New module 'rint-ieee'.
38076         * modules/rint-ieee: New file.
38078         Tests for module 'rintf-ieee'.
38079         * modules/rintf-ieee-tests: New file.
38080         * tests/test-rintf-ieee.c: New file.
38081         * tests/test-rint-ieee.h: New file.
38083         New module 'rintf-ieee'.
38084         * modules/rintf-ieee: New file.
38086 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38088         regex: re_search etc. should return -2 when memory exhausted
38089         This bug was uncovered when testing 'grep'.  Without the fix,
38090         re_search and friends return -1 when memory is exhausted, but -1
38091         means no match, and this causes grep to falsely report no-match
38092         instead of memory-exhaustion.  See
38093         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38094         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38095         trouble; this can occur if re_search_internal ran out of memory.
38097 2012-02-26  Bruno Haible  <bruno@clisp.org>
38099         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38100         * m4/modfl-ieee.m4: New file.
38101         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38102         whether modfl works with Inf. Replace it if not.
38103         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38105         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38106         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38107         (Depends-on): Update dependencies.
38108         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38109         m4/signbit.m4.
38110         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38111         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38113         modfl-ieee: Fix dependencies.
38114         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38116         modfl-ieee: Fix test failures.
38117         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38118         * modules/modfl (Depends-on): Add isfinite, isinf.
38120         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38121         * m4/modff-ieee.m4: New file.
38122         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38123         whether modff works with NaN and Inf. Replace it if not.
38124         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38126         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38127         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38128         (Depends-on): Update dependencies.
38129         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38130         m4/signbit.m4.
38131         (Depends-on): Add modf-ieee.
38132         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38133         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38135         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38136         * m4/modf-ieee.m4: New file.
38137         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38138         whether modf works with NaN and Inf. Replace it if not.
38139         * lib/math.in.h (modf): New declaration.
38140         * lib/modf.c: New file.
38141         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38143         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38144         * modules/modf (Files): Add lib/modf.c.
38145         (Depends-on): Add math, isfinite, trunc, isinf.
38146         (configure.ac): Addrange to compile lib/modf.c if needed.
38147         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38148         m4/signbit.m4.
38149         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38150         * tests/test-math-c++.cc: Check the declaration of modf.
38151         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38153         Tests for module 'modfl-ieee'.
38154         * modules/modfl-ieee-tests: New file.
38155         * tests/test-modfl-ieee.c: New file.
38157         New module 'modfl-ieee'.
38158         * modules/modfl-ieee: New file.
38160         Tests for module 'modf-ieee'.
38161         * modules/modf-ieee-tests: New file.
38162         * tests/test-modf-ieee.c: New file.
38164         New module 'modf-ieee'.
38165         * modules/modf-ieee: New file.
38167         Tests for module 'modff-ieee'.
38168         * modules/modff-ieee-tests: New file.
38169         * tests/test-modff-ieee.c: New file.
38170         * tests/test-modf-ieee.h: New file.
38172         New module 'modff-ieee'.
38173         * modules/modff-ieee: New file.
38175 2012-02-26  Bruno Haible  <bruno@clisp.org>
38177         Tests for module 'fabsl-ieee'.
38178         * modules/fabsl-ieee-tests: New file.
38179         * tests/test-fabsl-ieee.c: New file.
38181         New module 'fabsl-ieee'.
38182         * modules/fabsl-ieee: New file.
38184         Tests for module 'fabs-ieee'.
38185         * modules/fabs-ieee-tests: New file.
38186         * tests/test-fabs-ieee.c: New file.
38188         New module 'fabs-ieee'.
38189         * modules/fabs-ieee: New file.
38191         Tests for module 'fabsf-ieee'.
38192         * modules/fabsf-ieee-tests: New file.
38193         * tests/test-fabsf-ieee.c: New file.
38194         * tests/test-fabs-ieee.h: New file.
38196         New module 'fabsf-ieee'.
38197         * modules/fabsf-ieee: New file.
38199 2012-02-26  Bruno Haible  <bruno@clisp.org>
38201         Tests for module 'fmal-ieee'.
38202         * modules/fmal-ieee-tests: New file.
38203         * tests/test-fmal-ieee.c: New file.
38205         New module 'fmal-ieee'.
38206         * modules/fmal-ieee: New file.
38208         Tests for module 'fma-ieee'.
38209         * modules/fma-ieee-tests: New file.
38210         * tests/test-fma-ieee.c: New file.
38212         New module 'fma-ieee'.
38213         * modules/fma-ieee: New file.
38215         Tests for module 'fmaf-ieee'.
38216         * modules/fmaf-ieee-tests: New file.
38217         * tests/test-fmaf-ieee.c: New file.
38218         * tests/test-fma-ieee.h: New file.
38220         New module 'fmaf-ieee'.
38221         * modules/fmaf-ieee: New file.
38223 2012-02-26  Bruno Haible  <bruno@clisp.org>
38225         Tests for module 'ldexpl-ieee'.
38226         * modules/ldexpl-ieee-tests: New file.
38227         * tests/test-ldexpl-ieee.c: New file.
38229         New module 'ldexpl-ieee'.
38230         * modules/ldexpl-ieee: New file.
38232         Tests for module 'ldexp-ieee'.
38233         * modules/ldexp-ieee-tests: New file.
38234         * tests/test-ldexp-ieee.c: New file.
38236         New module 'ldexp-ieee'.
38237         * modules/ldexp-ieee: New file.
38239         Tests for module 'ldexpf-ieee'.
38240         * modules/ldexpf-ieee-tests: New file.
38241         * tests/test-ldexpf-ieee.c: New file.
38242         * tests/test-ldexp-ieee.h: New file.
38244         New module 'ldexpf-ieee'.
38245         * modules/ldexpf-ieee: New file.
38247 2012-02-26  Bruno Haible  <bruno@clisp.org>
38249         Refactor frexp*-ieee tests.
38250         * tests/test-frexp-ieee.h: New file.
38251         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38252         (main): Just call test_function.
38253         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38254         (main): Just call test_function.
38255         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38256         (main): Just call test_function.
38257         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38258         * modules/frexp-ieee-tests (Files): Likewise.
38259         * modules/frexpl-ieee-tests (Files): Likewise.
38261         Tests for module 'frexpl-ieee'.
38262         * modules/frexpl-ieee-tests: New file.
38263         * tests/test-frexpl-ieee.c: New file.
38265         New module 'frexpl-ieee'.
38266         * modules/frexpl-ieee: New file.
38268         Tests for module 'frexp-ieee'.
38269         * modules/frexp-ieee-tests: New file.
38270         * tests/test-frexp-ieee.c: New file.
38272         New module 'frexp-ieee'.
38273         * modules/frexp-ieee: New file.
38275         Tests for module 'frexpf-ieee'.
38276         * modules/frexpf-ieee-tests: New file.
38277         * tests/test-frexpf-ieee.c: New file.
38279         New module 'frexpf-ieee'.
38280         * modules/frexpf-ieee: New file.
38282 2012-02-26  Bruno Haible  <bruno@clisp.org>
38284         roundl-ieee tests: More tests.
38285         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38286         (main): Add tests for [MX] shaded specification in POSIX.
38287         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38288         (Depends-on): Add isnanl-nolibm.
38290         round-ieee tests: More tests.
38291         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38292         (main): Add tests for [MX] shaded specification in POSIX.
38293         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38294         (Depends-on): Add isnand-nolibm.
38296         roundf-ieee tests: More tests.
38297         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38298         (main): Add tests for [MX] shaded specification in POSIX.
38299         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38300         (Depends-on): Add isnanf-nolibm.
38302         truncl-ieee tests: More tests.
38303         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38304         (main): Add tests for [MX] shaded specification in POSIX.
38305         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38306         (Depends-on): Add isnanl-nolibm.
38308         trunc-ieee tests: More tests.
38309         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38310         (main): Add tests for [MX] shaded specification in POSIX.
38311         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38312         (Depends-on): Add isnand-nolibm.
38314         truncf-ieee tests: More tests.
38315         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38316         (main): Add tests for [MX] shaded specification in POSIX.
38317         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38318         (Depends-on): Add isnanf-nolibm.
38320         ceill-ieee tests: More tests.
38321         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38322         (main): Add tests for [MX] shaded specification in POSIX.
38323         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38324         (Depends-on): Add isnanl-nolibm.
38326         ceil-ieee tests: More tests.
38327         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38328         (main): Add tests for [MX] shaded specification in POSIX.
38329         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38330         (Depends-on): Add isnand-nolibm.
38332         ceilf-ieee tests: More tests.
38333         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38334         (main): Add tests for [MX] shaded specification in POSIX.
38335         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38336         (Depends-on): Add isnanf-nolibm.
38338         floorl-ieee tests: More tests.
38339         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38340         (main): Add tests for [MX] shaded specification in POSIX.
38341         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38342         (Depends-on): Add isnanl-nolibm.
38344         floor-ieee tests: More tests.
38345         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38346         (main): Add tests for [MX] shaded specification in POSIX.
38347         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38348         (Depends-on): Add isnand-nolibm.
38350         floorf-ieee tests: More tests.
38351         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38352         (main): Add tests for [MX] shaded specification in POSIX.
38353         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38354         (Depends-on): Add isnanf-nolibm.
38356 2012-02-26  Bruno Haible  <bruno@clisp.org>
38358         fpieee: More comments.
38359         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38361 2012-02-25  Bruno Haible  <bruno@clisp.org>
38363         Tests for module 'log10l'.
38364         * modules/log10l-tests: New file.
38365         * tests/test-log10l.c: New file.
38366         * tests/test-math-c++.cc: Check the declaration of log10l.
38368         New module 'log10l'.
38369         * lib/math.in.h (log10l): New declaration.
38370         * lib/log10l.c: New file.
38371         * m4/log10l.m4: New file.
38372         * modules/log10l: New file.
38373         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38375         HAVE_DECL_LOG10L.
38376         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38377         HAVE_DECL_LOG10L.
38378         * doc/posix-functions/log10l.texi: Mention the new module.
38380 2012-02-25  Bruno Haible  <bruno@clisp.org>
38382         fmodl, remainder*: Avoid wrong results due to rounding errors.
38383         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38384         expected bounds.
38385         * lib/remainderf.c (remainderf): Likewise.
38386         * lib/remainder.c (remainder): Likewise.
38387         * lib/remainderl.c (remainderl): Likewise.
38389 2012-02-25  Bruno Haible  <bruno@clisp.org>
38391         Tests for module 'remainderl'.
38392         * modules/remainderl-tests: New file.
38393         * tests/test-remainderl.c: New file.
38394         * tests/test-math-c++.cc: Check the declaration of remainderl.
38396         New module 'remainderl'.
38397         * lib/math.in.h (remainderl): New declaration.
38398         * lib/remainderl.c: New file.
38399         * m4/remainderl.m4: New file.
38400         * modules/remainderl: New file.
38401         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38403         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38404         HAVE_REMAINDERL.
38405         * doc/posix-functions/remainderl.texi: Mention the new module.
38407 2012-02-25  Bruno Haible  <bruno@clisp.org>
38409         Tests for module 'remainderf'.
38410         * modules/remainderf-tests: New file.
38411         * tests/test-remainderf.c: New file.
38412         * tests/test-math-c++.cc: Check the declaration of remainderf.
38414         New module 'remainderf'.
38415         * lib/math.in.h (remainderf): New declaration.
38416         * lib/remainderf.c: New file.
38417         * m4/remainderf.m4: New file.
38418         * modules/remainderf: New file.
38419         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38421         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38422         HAVE_REMAINDERF.
38423         * doc/posix-functions/remainderf.texi: Mention the new module.
38425 2012-02-25  Bruno Haible  <bruno@clisp.org>
38427         remainder: Support for MSVC.
38428         * lib/math.in.h (remainder): New declaration.
38429         * lib/remainder.c: New file.
38430         * m4/remainder.m4: New file.
38431         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38432         (Depends-on): Add math, round, fma.
38433         (configure.ac): Use results of gl_FUNC_REMAINDER.
38434         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38436         HAVE_DECL_REMAINDER.
38437         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38438         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38439         * tests/test-math-c++.cc: Check the declaration of remainder.
38440         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38441         problems are fixed.
38443 2012-02-25  Bruno Haible  <bruno@clisp.org>
38445         Tests for module 'fmodl'.
38446         * modules/fmodl-tests: New file.
38447         * tests/test-fmodl.c: New file.
38448         * tests/test-math-c++.cc: Check the declaration of fmodl.
38450         New module 'fmodl'.
38451         * lib/math.in.h (fmodl): New declaration.
38452         * lib/fmodl.c: New file.
38453         * m4/fmodl.m4: New file.
38454         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38456         REPLACE_FMODL.
38457         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38458         REPLACE_FMODL.
38459         * modules/fmodl: New file.
38460         * doc/posix-functions/fmodl.texi: Mention the new module.
38462 2012-02-25  Bruno Haible  <bruno@clisp.org>
38464         Tests for module 'modfl'.
38465         * modules/modfl-tests: New file.
38466         * tests/test-modfl.c: New file.
38467         * tests/test-math-c++.cc: Check the declaration of modfl.
38469         New module 'modfl'.
38470         * lib/math.in.h (modfl): New declaration.
38471         * lib/modfl.c: New file.
38472         * m4/modfl.m4: New file.
38473         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38475         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38476         * modules/modfl: New file.
38477         * doc/posix-functions/modfl.texi: Mention the new module.
38479 2012-02-25  Bruno Haible  <bruno@clisp.org>
38481         Tests for module 'fabsl'.
38482         * modules/fabsl-tests: New file.
38483         * tests/test-fabsl.c: New file.
38484         * tests/test-math-c++.cc: Check the declaration of fabsl.
38486         New module 'fabsl'.
38487         * lib/math.in.h (fabsl): New declaration.
38488         * lib/fabsl.c: New file.
38489         * m4/fabsl.m4: New file.
38490         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38492         REPLACE_FABSL.
38493         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38494         REPLACE_FABSL.
38495         * modules/fabsl: New file.
38496         * doc/posix-functions/fabsl.texi: Mention the new module.
38498 2012-02-25  Bruno Haible  <bruno@clisp.org>
38500         fabs tests: More tests.
38501         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38502         (zero): New variable.
38503         (main): Add tests for signed zero.
38504         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38506         fabsf tests: More tests.
38507         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38508         (zero): New variable.
38509         (main): Add tests for signed zero.
38510         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38512 2012-02-24  Bruno Haible  <bruno@clisp.org>
38514         atanl: Provide function definition on MSVC.
38515         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38516         function pointer.
38517         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38519 2012-02-24  Bruno Haible  <bruno@clisp.org>
38521         acosl: Provide function definition on MSVC.
38522         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38523         function pointer.
38524         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38526 2012-02-24  Bruno Haible  <bruno@clisp.org>
38528         asinl: Provide function definition on MSVC.
38529         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38530         function pointer.
38531         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38533 2012-02-24  Bruno Haible  <bruno@clisp.org>
38535         tanl: Provide function definition on MSVC.
38536         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38537         function pointer.
38538         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38540 2012-02-24  Bruno Haible  <bruno@clisp.org>
38542         cosl: Provide function definition on MSVC.
38543         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38544         function pointer.
38545         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38547 2012-02-24  Bruno Haible  <bruno@clisp.org>
38549         sinl: Provide function definition on MSVC.
38550         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38551         function pointer.
38552         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38554 2012-02-24  Bruno Haible  <bruno@clisp.org>
38556         logl: Provide function definition on MSVC.
38557         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38558         function pointer.
38559         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38561 2012-02-24  Bruno Haible  <bruno@clisp.org>
38563         expl: Provide function definition on MSVC.
38564         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38565         function pointer.
38566         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38568 2012-02-24  Bruno Haible  <bruno@clisp.org>
38570         sqrtl: Provide function definition on MSVC.
38571         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38572         a function pointer.
38573         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38575 2012-02-24  Bruno Haible  <bruno@clisp.org>
38577         ceill: Provide function definition on MSVC.
38578         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38579         used as a function pointer.
38580         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38582 2012-02-24  Bruno Haible  <bruno@clisp.org>
38584         floorl: Provide function definition on MSVC.
38585         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38586         used as a function pointer.
38587         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38589 2012-02-24  Bruno Haible  <bruno@clisp.org>
38591         ceilf: Provide function definition on MSVC.
38592         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38593         used as a function pointer.
38594         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38596 2012-02-24  Bruno Haible  <bruno@clisp.org>
38598         floorf: Provide function definition on MSVC.
38599         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38600         used as a function pointer.
38601         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38603 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38605         stdnoreturn: new module
38606         This implements a replacement for C11's <stdnoreturn.h>.
38607         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38608         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38609         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38610         * tests/test-stdnoreturn.c: New files.
38612 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38614         regex: fix false multibyte matches in some regular expressions
38615         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38616         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38617         * lib/regex_internal.c (re_string_skip_chars):
38618         Fix miscomputation of remain_len that may cause incomplete
38619         multi-byte character and false match.
38621 2012-02-24  Jim Meyering  <meyering@redhat.com>
38623         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38624         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38625         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38626         Remove now-unnecessary str''cmp obfuscation.
38627         Suggested by Akim Demaille.
38629 2012-02-24  Bruno Haible  <bruno@clisp.org>
38631         streq: Rename macro.
38632         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38633         * NEWS: Mention the change.
38634         * lib/mbrtowc.c (mbrtowc): Update.
38635         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38636         * lib/wcwidth.c (wcwidth): Update.
38637         Suggested by Akim Demaille and Jim Meyering.
38639 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38641         regex: fix typo in definition of MIN
38642         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38643         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38645 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38646             Bruno Haible  <bruno@clisp.org>
38648         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38649         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38650         entries into a stack-allocated buffer directly.
38651         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38653 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38654             Bruno Haible  <bruno@clisp.org>
38656         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38658          - There were several instances of this pattern:
38660              for (;;) {
38661                n = acl (f, GETACLCNT, 0, NULL);
38662                [ allocate an array A of size N ]
38663                if (acl (f, GETACL, n, a) == n)
38664                  break;
38665              }
38667            This loop might never terminate if some other process is constantly
38668            manipulating the file's ACL.  The loop should be rewritten to
38669            terminate.
38671          - The acl (... GETACLNT ...) call is merely an optimization; its value
38672            is merely a hint as to how big to make the array.  A better
38673            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38674            and just guess a reasonably-big size, growing the size and trying
38675            again if it's not large enough.  This guarantees termination, and
38676            saves a system call.
38678         * lib/acl-internal.h: Include <limits.h>.
38679         (MIN, SIZE_MAX): New macros.
38680         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38681         a stack-allocated buffer, and use malloc if it does not fit. Don't
38682         use GETACLCNT.
38683         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38685 2012-02-19  Bruno Haible  <bruno@clisp.org>
38687         acl: Fix endless loop on Solaris with vxfs.
38688         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38689         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38690         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38691         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38692         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38693         Reported by Bill Jones in
38694         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38696 2012-02-19  Bruno Haible  <bruno@clisp.org>
38698         acl: Fix copy-acl test failure on Solaris 11.0.
38699         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38700         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38701         that this function returns 0 in some more cases.
38703 2012-02-19  Bruno Haible  <bruno@clisp.org>
38705         acl: Update doc references.
38706         * doc/acl-resources.txt: Update links to Solaris documentation.
38708 2012-02-19  Bruno Haible  <bruno@clisp.org>
38710         Fix test failure in many locales on Solaris 11.
38711         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38712         'tr' arguments.
38713         * tests/test-pipe-filter-ii1.c (main): Likewise.
38714         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38715         expressions in the C locale.
38716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38717         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38719 2012-02-19  Bruno Haible  <bruno@clisp.org>
38721         gnulib-tool: Improve usage message.
38722         * gnulib-tool (func_usage): Move doc of --help and --version to the
38723         section "Operation modes".
38725 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
38727         README-release: make it easier to execute commands
38728         * top/README-release: break commands out on to separate lines.
38730 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
38732         GNUmakefile: simplify detection of unconfigured trees
38733         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
38734         whether the tree make is being run from is already configured or
38735         not.  Related simplifications.
38737 2012-02-13  Simon Josefsson  <simon@josefsson.org>
38739         * gnulib-tool (func_usage): Document --help and --version.
38741 2012-02-11  Jim Meyering  <meyering@redhat.com>
38743         bootstrap: don't exit 0 upon gnulib-tool failure
38744         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
38745         its exit status, not 0.
38747 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
38749         README-release: various improvements
38750         * top/README-release: Give a command to push changes for the
38751         release.  Add "distcheck" to list of other pre-release checks.
38752         Fix instance of "make stable" which should be "make TYPE".
38754 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38756         maint: replace FSF snail-mail addresses with URLs
38757         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
38758         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
38759         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
38760         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
38761         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
38762         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
38763         * lib/check-version.c, lib/check-version.h, lib/config.charset:
38764         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
38765         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
38766         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
38767         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
38768         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
38769         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
38770         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
38771         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
38772         * lib/glthread/thread.c, lib/glthread/thread.h:
38773         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
38774         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
38775         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
38776         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
38777         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
38778         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
38779         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
38780         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
38781         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
38782         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
38783         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
38784         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
38785         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
38786         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
38787         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
38788         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
38789         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
38790         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
38791         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
38792         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
38793         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
38794         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
38795         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
38796         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
38797         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
38798         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
38799         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
38800         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
38801         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
38802         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
38803         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
38804         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
38805         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
38806         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
38807         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
38808         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
38809         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
38810         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
38811         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
38812         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
38813         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
38814         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
38815         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
38816         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
38817         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
38818         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
38819         * tests/test-poll.c, tests/test-quotearg-simple.c:
38820         * tests/test-quotearg.c, tests/test-quotearg.h:
38821         * tests/test-round-ieee.c, tests/test-round1.c:
38822         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
38823         * tests/test-roundl-ieee.c, tests/test-roundl.c:
38824         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
38825         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
38826         * tests/test-strerror.c, tests/test-strerror_r.c:
38827         * tests/test-strsignal.c, tests/test-strverscmp.c:
38828         * tests/test-xmemdup0.c:
38829         Replace FSF snail mail addresses with URLs, as per GNU coding
38830         standards.  See glibc bug
38831         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
38833 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38835         README-release: capitalize a word and split a line
38836         * top/README-release: Fix punctuation and spacing.
38838 2012-02-08  Akim Demaille  <demaille@gostai.com>
38840         fatal-signal: use C prototypes (with explicit void).
38841         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38842         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
38844 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38846         regex: spelling fix
38847         * lib/regexec.c: spelling fix
38849         regex: rely on stdint.h for SIZE_MAX
38850         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
38852 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38854         regex: merge glibc changes
38856         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
38857         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
38858         (init_word_char): Work even if bitset words are not exactly 32 or
38859         64 bits wide.  Don't assume there are no padding bits.
38860         * lib/regex.c [_LIBC]: Do not include <config.h>.
38861         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
38862         and -Wtype-limits.
38863         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
38864         needless disagreement with glibc.  All uses changed.  Define it to
38865         1 only if _GNU_SOURCE, to match glibc.
38866         (_REG_RM_NAME): Remove; no longer needed, since the names in
38867         question are now all protected by __USE_GNU.
38868         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
38869         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
38870         * lib/regex_internal.h (MIN): New macro.
38872         2012-01-03 Ulrich Drepper <drepper@gmail.com>
38873         * lib/regcomp.c (init_word_char): Optimize regex a bit.
38875         2011-12-30 Jakub Jelinek <jakub@redhat.com>
38876         * lib/regex_internal.c (re_string_fetch_byte_case):
38877         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
38878         is miscompiled, and it turns out it is because of an incorrect
38879         attribute on re_string_fetch_byte_case.  Unlike
38880         re_string_peek_byte_case, this one is really not pure, it modifies
38881         memory (increments pstr->cur_idx), and with the pure attribute GCC
38882         assumed it doesn't and it cached the presumed value of
38883         regexp->cur_idx in a variable across the
38884          for (;; ++i)
38885            {
38886              if (i >= BRACKET_NAME_BUF_SIZE)
38887                return REG_EBRACK;
38888              if (token->type == OP_OPEN_CHAR_CLASS)
38889                ch = re_string_fetch_byte_case (regexp);
38890              else
38891                ch = re_string_fetch_byte (regexp);
38892              if (re_string_eoi(regexp))
38893                return REG_EBRACK;
38894              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
38895                break;
38896              elem->opr.name[i] = ch;
38897            }
38899         2011-11-29 Andreas Schwab <schwab@redhat.com>
38900         * lib/regcomp.c (build_equiv_class):
38901         Fix access after end of search string in regex matcher.
38903         2011-11-12 Ulrich Drepper <drepper@redhat.com>
38904         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
38906         2011-10-12 Ulrich Drepper <drepper@redhat.com>
38907         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
38909         2011-10-11 Ulrich Drepper <drepper@redhat.com>
38910         * lib/regcomp.c (parse_branch, parse_sub_exp):
38911         More regex memory leak fixes and tests.
38912         (parse_sub_exp, parse_bracket_exp):
38913         Fix memory leak for some invalid regular expressions.
38915         2011-05-28 Ulrich Drepper <drepper@gmail.com>
38916         * lib/regex_internal.c, lib/regexec.c:
38917         Fix unnecessary overallocation due to incomplete character.  When
38918         incomplete characters are found at the end of a string the code
38919         ran amok and allocated lots of memory.  Stricter limits are now in
38920         place.
38922         2011-05-20 Reuben Thomas <rrt@sc3d.org>
38923         * lib/regex.h: Update documentation.
38925         2011-05-16 Aharon Robbins <arnold@skeeve.com>
38926         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
38928         2010-05-05 Andreas Schwab <schwab@redhat.com>
38929         * lib/regexec.c (find_collation_sequence_value):
38930         Fix lookup of collation sequence value during regexp matching.
38932         2010-01-22 Ulrich Drepper <drepper@redhat.com>
38933         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
38935         2008-01-16 Ulrich Drepper <drepper@redhat.com>
38936         * lib/regex.h: Cleanup namespace.
38938         2007-11-26 Ulrich Drepper <drepper@redhat.com>
38939         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
38941         2007-08-26 Ulrich Drepper <drepper@redhat.com>
38942         * lib/regex_internal.h: Prevent some declarations and definitions
38943         to be seen when used in tests.
38945         2005-05-06 Ulrich Drepper <drepper@redhat.com>
38946         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
38947         __libc_lock_* macros if not _LIBC.
38948         (struct re_dfa_t): Add lock.
38950 2012-02-07  Eric Blake  <eblake@redhat.com>
38952         maint.mk: also prohibit lower-case @var@
38953         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
38954         lower case, like @top_srcdir@.
38956 2012-02-04  Eric Blake  <eblake@redhat.com>
38958         canonicalize: avoid uninitialized memory use
38959         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
38960         random '/' left in dest.
38961         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
38963 2012-02-04  Bruno Haible  <bruno@clisp.org>
38965         isatty: Fix test failure of ptsname_r on native Windows.
38966         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
38967         and don't set errno.
38968         (isatty): Test first whether fd is valid. Set errno when returning 0.
38970 2012-02-04  Bruno Haible  <bruno@clisp.org>
38972         spawn-pipe tests: Fix a NULL program name in a diagnostic.
38973         * tests/test-spawn-pipe-main.c: Include progname.h.
38974         (main): Invoke set_program_name.
38975         * modules/spawn-pipe-tests (Depends-on): Add progname.
38977         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
38978         * tests/test-nonblocking-socket-main.c: Include progname.h.
38979         (main): Invoke set_program_name.
38980         * modules/nonblocking-socket-tests (Depends-on): Add progname.
38982         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
38983         * tests/test-nonblocking-pipe-main.c: Include progname.h.
38984         (main): Invoke set_program_name.
38985         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
38987 2012-02-04  Eric Blake  <eblake@redhat.com>
38989         canonicalize-lgpl: fix // handling
38990         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
38992         canonicalize: fix // handling
38993         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
38994         /// to //, since only // is special.
38996 2012-02-04  Bruno Haible  <bruno@clisp.org>
38998         ioctl: Fix test failure on native Windows.
38999         * lib/ioctl.c: Include msvc-nothrow.h.
39000         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39002 2012-02-04  Bruno Haible  <bruno@clisp.org>
39004         fsync: Avoid test failure on native Windows.
39005         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39006         read-only.
39008 2012-02-04  Bruno Haible  <bruno@clisp.org>
39010         sys_select: Avoid syntax error on OpenBSD 5.0.
39011         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39012         currently being included, just include the system's <sys/select.h>.
39014 2012-02-04  Bruno Haible  <bruno@clisp.org>
39016         sys_select: Avoid syntax error on OpenBSD 5.0.
39017         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39018         <sys/select.h>, not before.
39019         Reported by Jiri B <jirib@devio.us>.
39021 2012-02-04  Bruno Haible  <bruno@clisp.org>
39023         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39024         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39025         global variables.
39026         * tests/test-get-rusage-data.c (main): Likewise.
39027         Reported by Jim Meyering.
39029 2012-02-04  Bruno Haible  <bruno@clisp.org>
39031         stdioext: Fix last commit.
39032         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39034 2012-02-03  Bruno Haible  <bruno@clisp.org>
39036         stdioext: Add tentative support for Plan9.
39037         * lib/stdio-impl.h: Include <errno.h>.
39038         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39039         * lib/freadable.c (freadable): Likewise.
39040         * lib/fwritable.c (fwritable): Likewise.
39041         * lib/fbufmode.c (fbufmode): Likewise.
39042         * lib/freading.c (freading): Likewise.
39043         * lib/fwriting.c (fwriting): Likewise.
39044         * lib/freadptr.c (freadptr): Likewise.
39045         * lib/freadseek.c (freadptrinc): Likewise.
39046         * lib/freadahead.c (freadahead): Likewise.
39047         * lib/fpurge.c (fpurge): Likewise.
39048         * lib/fseeko.c (rpl_fseeko): Likewise.
39049         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39050         Reported by Jens Staal <staal1978@gmail.com>.
39052 2012-02-02  Jim Meyering  <meyering@redhat.com>
39054         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39055         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39056         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39057         not even to try to add the attribute.  Instead, add a pragma to suppress
39058         the suggestion/warning.
39060 2012-01-31  Karl Berry  <karl@gnu.org>
39062         setstate doc: typo.
39063         * doc/posix-functions/setstate.texi (setstate): { not (.
39065 2012-01-31  Bruno Haible  <bruno@clisp.org>
39067         popen: Make more robust on Windows.
39068         * lib/popen.c: On native Windows, use the _popen based code even if
39069         HAVE_POPEN is set.
39070         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39071         environment variable on native Windows.
39073 2012-01-30  Bruno Haible  <bruno@clisp.org>
39075         pclose: Fix typo.
39076         * lib/stdio.in.h (pclose): Fix typo in warning message.
39078 2012-01-30  Bruno Haible  <bruno@clisp.org>
39080         doc about getlogin_r, setstate.
39081         * doc/posix-functions/getlogin_r.texi: List the incompatible
39082         declaration problem under "not fixed by gnulib".
39083         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39084         problem on Solaris 11 and other platforms.
39086 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39087             Bruno Haible  <bruno@clisp.org>
39089         poll tests: Make test more robust.
39090         * tests/test-poll.c: Include macros.h.
39091         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39092         return value of various I/O operations.
39093         * modules/poll-tests (Files): Add tests/macros.h.
39095 2012-01-30  Bruno Haible  <bruno@clisp.org>
39097         sys_stat: Fix support for mingw64 and MSVC.
39098         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39099         header files already do it.
39100         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39101         stat itself.
39102         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39104 2012-01-30  Bruno Haible  <bruno@clisp.org>
39106         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39108         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39110 2012-01-29  Bruno Haible  <bruno@clisp.org>
39112         quotearg: Fix test failure on MacOS X 10.5.
39113         * tests/test-quotearg-simple.c: Include localcharset.h.
39114         (main): If the locale encoding is not ASCII, bypass the tests of
39115         locale_quoting_style and clocale_quoting_style.
39116         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39118 2012-01-29  Jim Meyering  <meyering@redhat.com>
39120         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39121         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39122         detect uses of canonicalize_file_name.
39124 2012-01-28  Bruno Haible  <bruno@clisp.org>
39126         test-framework-sh: Fix test failure with AIX 7.1 diff.
39127         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39128         in column 1, like 'diff -c' does.
39129         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39130         whether 'diff -u' is used. Instead, test whether the output contains
39131         some '@' character.
39133 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39135         strtoimax: eliminate need for stdint.h, inttypes.h checks
39136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39137         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39138         the prerequisites for a recently-introduced strtoimax test.
39139         I guess this might cause strtoimax to be replaced when not
39140         strictly necessary on older hosts, but this shouldn't introduce
39141         any bugs and it should make Emacs 'configure' faster on typical
39142         modern hosts.  Problem discovered when importing the latest gnulib
39143         to an Emacs test version.
39144         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39146 2012-01-28  Bruno Haible  <bruno@clisp.org>
39148         sys_time: Override 'struct timeval' on some native Windows platforms.
39149         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39150         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39151         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39152         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39153         needs to be overridden.
39154         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39155         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39156         * tests/test-sys_select.c: Check that the tv_sec member has the same
39157         size as a 'time_t'.
39158         * tests/test-sys_time.c: Likewise.
39159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39160         is set, set also REPLACE_GETTIMEOFDAY.
39161         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39162         convert the resulting 'struct timeval' before returning.
39163         * lib/select.c: Include <sys/time.h>.
39164         (select, timeval): Undefine at the right place.
39165         * modules/select (Depends-on): Add sys_time.
39166         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39167         some Windows platforms.
39168         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39170 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39172         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39173         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39174         an integer.
39175         * lib/fcntl.c (dupfd): Likewise.
39176         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39178 2012-01-28  Bruno Haible  <bruno@clisp.org>
39180         fcntl: Avoid compilation error on native Windows.
39181         * modules/fcntl (Depends-on): Add 'close'.
39183 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39185         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39186         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39187         pointer to an integer.
39188         * lib/poll.c (IsConsoleHandle): Likewise.
39189         * lib/isatty.c (IsConsoleHandle): Likewise.
39191 2012-01-28  Jim Meyering  <meyering@redhat.com>
39193         doc: clarify README-release
39194         * top/README-release: Clarify: you should make a point to have
39195         the latest stable versions of build tools in your PATH, and the
39196         reference to buildreq is solely for its list of tool names, not
39197         for its minimal-functional version numbers.
39198         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39200         maint.mk: use more readable (yet functionally equivalent) quoting
39201         It is common to quote a single quote in a single quoted string like
39202         this:  '...'\''...'.  Unless you know the idiom, that looks like
39203         gibberish, so prefer to double-quote the string when possible.
39204         Then you can use a more readable, lone single quote: "...'..."
39205         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39206         "don't" is more readable than the equivalent 'don'\''t'.
39207         (sc_cast_of_x_alloc_return_value): Likewise.
39208         (sc_cast_of_alloca_return_value): Likewise.
39209         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39210         rather than '\'':'\''.
39212 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39214         stdalign: relax _Alignof and tighten _Alignas test
39215         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39216         as it was too strict: alignof must divide offsetof, but it need
39217         not equal offsetof.  Inspired by Joseph S. Myers's comment
39218         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39219         Conversely, tighten the _Alignas test a bit, as the resulting
39220         alignment must be exactly 8.
39222 2012-01-27  Bruno Haible  <bruno@clisp.org>
39224         stdalign: Document the last change.
39225         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39227 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39229         stdalign: check that alignof and offsetof are consistent
39230         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39231         Problem reported for gnulib by Richard W.M. Jones in
39232         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39234 2012-01-27  Jim Meyering  <meyering@redhat.com>
39236         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39237         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39238         convert a sequence with gaps to the minimal containing range.
39239         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39240         * tests/test-update-copyright.sh: Test for this.
39241         The FSF confirmed it is ok to do this, assuming there is at
39242         least one significant change per year in the affected range:
39243         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39245 2012-01-26  Bruno Haible  <bruno@clisp.org>
39247         pipe2: refine doc about thread-safety
39248         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39249         multithread-safety problem.
39250         * doc/glibc-functions/accept4.texi: Likewise.
39252 2012-01-26  Bruno Haible  <bruno@clisp.org>
39254         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39255         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39256         In the test program, include <fcntl.h>, for O_RDONLY.
39258 2012-01-26  Eric Blake  <eblake@redhat.com>
39260         pipe2: document lack of thread-safety in replacement
39261         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39262         issue in replacement.
39263         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39264         Based on a report by Eric Wong.
39266 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39267             Bruno Haible  <bruno@clisp.org>
39269         malloca: Avoid warnings on x86_64 mingw64.
39270         * lib/malloca.c: Include <stdint.h>.
39271         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39272         * modules/malloca (Depends-on): Add stdint.
39273         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39275 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39277         obstack: remove __STDC__ conditionals
39278         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39279         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39280         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39281         m4/include_next.m4 as the only gnulib-maintained places that still
39282         refer to __STDC__.
39284 2012-01-24  Bruno Haible  <bruno@clisp.org>
39286         havelib: Modern quoting.
39287         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39288         the recent change to the GNU coding standards.
39290 2012-01-24  Bruno Haible  <bruno@clisp.org>
39292         stdint: Improve support for Android.
39293         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39294         Reported by Simon Josefsson <simon@josefsson.org>.
39296 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39298         doc: omit trailing empty lines from INSTALL etc.
39299         * doc/Makefile (INSTALL): Omit trailing empty lines.
39300         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39301         omit trailing empty lines.  This simplifies the build procedure.
39303 2012-01-23  Jim Meyering  <meyering@redhat.com>
39305         tests: avoid spurious warnings about gl_sockets_startup
39306         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39307         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39308         reporting a "statement with no effect".
39309         * tests/test-accept.c (main): Mark as "(void)".
39310         * tests/test-accept4.c (main): Likewise.
39311         * tests/test-bind.c (main): Likewise.
39312         * tests/test-connect.c (main): Likewise.
39313         * tests/test-getpeername.c (main): Likewise.
39314         * tests/test-getsockname.c (main): Likewise.
39315         * tests/test-getsockopt.c (main): Likewise.
39316         * tests/test-listen.c (main): Likewise.
39317         * tests/test-recv.c (main): Likewise.
39318         * tests/test-recvfrom.c (main): Likewise.
39319         * tests/test-send.c (main): Likewise.
39320         * tests/test-sendto.c (main): Likewise.
39321         * tests/test-setsockopt.c (main): Likewise.
39322         * tests/test-shutdown.c (main): Likewise.
39324 2012-01-21  Bruno Haible  <bruno@clisp.org>
39326         locale-fr.m4: Fix for Android.
39327         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39328         failure of the test program on Bionic libc.
39330 2012-01-21  Jim Meyering  <meyering@redhat.com>
39332         bootstrap: fail when bootstrap_post_import_hook fails
39333         Otherwise, it's far too easy to miss diagnostics emitted
39334         between gnulib-tool's output and that of running configure.
39335         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39337 2012-01-17  Jim Meyering  <meyering@redhat.com>
39339         maint: enable sc_trailing_blank
39340         * build-aux/pmccabe.css: Remove trailing blanks.
39341         * doc/acl-cygwin.txt: Likewise.
39342         * doc/gnu-oids.texi: Likewise
39343         * cfg.mk: Enable sc_trailing_blank.
39344         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39346 2012-01-17  Jim Meyering  <meyering@redhat.com>
39348         maint: enable sc_prohibit_openat_without_use
39349         * cfg.mk: Enable sc_prohibit_openat_without_use.
39350         Exempt lib/selinux-at.c.
39352 2012-01-17  Jim Meyering  <meyering@redhat.com>
39354         maint: enable sc_prohibit_cloexec_without_use
39355         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39356         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39358 2012-01-17  Jim Meyering  <meyering@redhat.com>
39360         maint: enable sc_prohibit_intprops_without_use
39361         * cfg.mk: Enable sc_prohibit_intprops_without_use
39362         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39364 2012-01-17  Jim Meyering  <meyering@redhat.com>
39366         maint: enable sc_prohibit_hash_pjw_without_use
39367         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39368         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39369         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39370         following " (".
39372 2012-01-17  Jim Meyering  <meyering@redhat.com>
39374         maint: enable double-word-prohibiting rule
39375         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39376         Exempt three files.
39378 2012-01-17  Jim Meyering  <meyering@redhat.com>
39380         maint: remove empty lines at EOF, but excluding modules/*
39381         Apply syntax rules at home as well as abroad.  Most changes
39382         were induced by running this:
39383           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39384             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39385             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39386         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39387         Exempt modules/* and two binary files.
39388         Also exempt doc/INSTALL*, per request from Bruno Haible.
39389         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39390         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39391         * doc/Copyright/request-assign.future: Likewise.
39392         * doc/Copyright/request-disclaim.changes: Likewise.
39393         * doc/INSTALL: Likewise.
39394         * doc/INSTALL.ISO: Likewise.
39395         * doc/INSTALL.UTF-8: Likewise.
39396         * doc/acl-cygwin.txt: Likewise.
39397         * doc/acl-resources.txt: Likewise.
39398         * doc/fdl-1.2.texi: Likewise.
39399         * doc/fdl-1.3.texi: Likewise.
39400         * doc/fdl.texi: Likewise.
39401         * lib/argp-pin.c: Likewise.
39402         * lib/round.c: Likewise.
39403         * lib/unicase/u16-totitle.c: Likewise.
39404         * lib/unictype/block_test.c: Likewise.
39405         * lib/uninorm/canonical-decomposition.c: Likewise.
39406         * m4/README: Likewise.
39407         * m4/relocatable-lib.m4: Likewise.
39408         * tests/test-isnand-nolibm.c: Likewise.
39409         * tests/test-isnand.c: Likewise.
39410         * tests/uninorm/NormalizationTest.txt: Likewise.
39412 2012-01-17  Jim Meyering  <meyering@redhat.com>
39414         maint: add framework to run syntax-check rules against gnulib sources
39415         * cfg.mk: New file, to disable all currently-failing tests.
39416         We'll enable them one by one, as they are made to pass.
39417         * Makefile (sc_maint): New rule.
39419 2012-01-21  Bruno Haible  <bruno@clisp.org>
39421         stdint: Add support for Android.
39422         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39423         include the system's <stdint.h>.
39424         Reported by Simon Josefsson <simon@josefsson.org>.
39426 2012-01-19  Jim Meyering  <meyering@redhat.com>
39428         bootstrap: add bootstrap_post_import_hook
39429         Bison does still need something like the gnulib_mk_hook whose
39430         invocation I had to remove along with slurp in commit 767ccd40.
39431         Technically, we could get along without it, but doing so would
39432         have required living with a warning and a mandatory post-bootstrap
39433         automake rerun.
39434         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39435         (bootstrap_post_import_hook): New function.
39436         Invoke it after gnulib-tool --import and before autoreconf.
39438 2012-01-18  Jim Meyering  <meyering@redhat.com>
39440         gitlog-to-changelog: don't use "no_"-prefixed variable name
39441         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39442         to enable both --cluster and --no-cluster.  Change variable name,
39443         s/\$no_cluster/$cluster/, and reverse usage to match.
39445         gitlog-to-changelog: use "||", not "or" in expressions
39446         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39447         expressions.
39449 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39451         gitlog-to-changelog: new option --no-cluster
39452         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39453         clustering of adjacent commit messages.
39455 2012-01-17  Jim Meyering  <meyering@redhat.com>
39457         maint: spell file systems with two words, not one
39458         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39459         two words, not one.
39461 2012-01-16  Jim Meyering  <meyering@redhat.com>
39463         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39464         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39466 2012-01-16  Eric Blake  <eblake@redhat.com>
39468         bootstrap: cater to autoconf 2.59
39469         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39470         is not available.
39472         bootstrap: properly check for libtool
39473         * build-aux/bootstrap (libtoolize): Also run libtool when older
39474         usage is detected.
39476 2012-01-15  Bruno Haible  <bruno@clisp.org>
39478         Improve support for MSVC 9.
39479         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39480         clashes on MSVC.
39481         * lib/fcntl.in.h: Likewise.
39482         * lib/stdlib.in.h: Likewise.
39483         * lib/sys_stat.in.h: Likewise.
39485 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39487         gnupload: we hold the master copy of this script now
39488         For motivation and more information, see:
39489         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39490         * build-aux/gnupload: Make it clear in the heading comments that the
39491         master copy of this file is maintained by gnulib.  Since we are at
39492         it, bump its copyright year and ...
39493         ($scriptversion): ... the date in its version.
39494         ($usage): Patches and bug reports should be sent to the gnulib list,
39495         not the automake one.
39496         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39497         anymore.
39499 2012-01-15  Bruno Haible  <bruno@clisp.org>
39501         Fix module 'random'.
39502         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39503         initstate, setstate are declared.
39505 2012-01-14  Bruno Haible  <bruno@clisp.org>
39507         Tests for module 'random'.
39508         * modules/random-tests: New file.
39509         * tests/test-random.c: New file, based on tests/test-random_r.c.
39511         New module 'random'.
39512         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39513         declarations.
39514         * lib/random.c: New file, based on glibc/stdlib/random.c.
39515         * m4/random.m4: New file.
39516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39517         HAVE_RANDOM.
39518         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39519         * modules/random: New file.
39520         * config/srclist.txt: Add an entry for random.c.
39521         * doc/posix-functions/random.texi: Mention the 'random' module.
39522         * doc/posix-functions/initstate.texi: Likewise.
39523         * doc/posix-functions/setstate.texi: Likewise.
39524         * doc/posix-functions/srandom.texi: Likewise.
39526 2012-01-12  Bruno Haible  <bruno@clisp.org>
39528         random_r: Use common idioms.
39529         * lib/random_r.c: Include <stdlib.h> first.
39531         random_r: Override incompatible API on AIX, OSF/1.
39532         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39533         Override the system function if REPLACE_RANDOM_R is 1.
39534         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39535         and OSF/1, set REPLACE_RANDOM_R.
39536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39537         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39538         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39539         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39540         * doc/glibc-functions/random_r.texi: Likewise.
39541         * doc/glibc-functions/setstate_r.texi: Likewise.
39543         random_r: Support for MSVC 9.
39544         * lib/random_r.c: Include stdint.h, not inttypes.h.
39546 2012-01-12  Eric Blake  <eblake@redhat.com>
39548         inet_ntop: guard extra work by IF_LINT
39549         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39550         better code generation when not checking for warnings.
39551         Suggested by Paul Eggert and Jim Meyering.
39553         strptime: fix regression on mingw
39554         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39555         Fix regression.  Reported by Bruno Haible.
39557 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39558             Bruno Haible  <bruno@clisp.org>
39560         copy-file: add error-code-returning variant.
39561         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39562         (qcopy_file_preserving): New declaration.
39563         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39564         copy_file_preserving. Change return type to 'int'. Don't emit an error
39565         message here.
39566         (copy_file_preserving): New function.
39567         * tests/test-copy-file.c: Include <stdlib.h>.
39568         (main): Test qcopy_file_preserving if the environment variable
39569         NO_STDERR_OUTPUT is set.
39570         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39571         with NO_STDERR_OUTPUT
39572         * tests/test-copy-file-2.sh: Likewise.
39574 2012-01-10  Bruno Haible  <bruno@clisp.org>
39576         copy-file: Use 'quote' module consistently.
39577         * lib/copy-file.c (copy_file_preserving): Use quote().
39579         copy-file: Refactor.
39580         * lib/copy-file.c: Include quote.h.
39581         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39582         message here.
39583         * modules/copy-file (Depends-on): Add quote.
39585         acl: Export qcopy_acl.
39586         * lib/acl.h (qcopy_acl): New declaration.
39587         * lib/copy-acl.c (qcopy_acl): Make non-static.
39589         acl: Rename a local variable.
39590         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39592         acl: Align return values of copy_acl and qcopy_acl.
39593         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39594         maybe < -1.
39596 2012-01-11  Eric Blake  <eblake@redhat.com>
39598         strptime: silence gcc warnings
39599         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39600         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39601         Reported by Daniel P. Berrange.
39603         inet_ntop: silence gcc warning
39604         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39605         Reported by Daniel P. Berrange.
39607 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39609         getloadavg test: skip the test on GNU/Linux without /proc mounted
39610         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39611         file.  When /proc is not mounted, it always fails with ENOENT.
39612         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39613         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39615 2012-01-10  Bruno Haible  <bruno@clisp.org>
39617         regex: Avoid link error on MSVC 9.
39618         * modules/regex (Depends-on): Add wctype.
39620 2012-01-10  Bruno Haible  <bruno@clisp.org>
39622         doc: Mention --with-tests option.
39623         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39624         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39625         --with-tests.
39626         Reported by Reuben Thomas.
39628 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39630         users.txt: order package names lexicographically.
39631         * users.txt: Order package names lexicographically.
39633 2012-01-10  Jim Meyering  <meyering@redhat.com>
39635         maint.mk: fix description in comment
39636         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39638         ignore-value: remove deprecated ignore_ptr function
39639         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39640         * NEWS: Note this.
39642 2012-01-09  Jim Meyering  <meyering@redhat.com>
39644         test-init.sh: avoid a subshell
39645         * tests/test-init.sh: Remove protective subshell.
39646         Suggested by Bernhard Voelker.  While a subshell is normally
39647         required to protect against older shells (Solaris, FreeBSD) that
39648         warn about a missing program before performing redirection, the
39649         shell-selection tests performed by init.sh probably exclude any
39650         offending shell.
39652 2012-01-08  Bruno Haible  <bruno@clisp.org>
39654         setlocale tests: Avoid test failure on Solaris 11.0.
39655         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39656         variable.
39658 2012-01-08  Bruno Haible  <bruno@clisp.org>
39660         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39661         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39662         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39663         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39664         macro.
39665         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39666         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39667         * lib/spawn_faction_addopen.c: Add workaround implementation if
39668         HAVE_WORKING_POSIX_SPAWN.
39669         * modules/spawn (Makefile): Substitute
39670         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39671         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39672         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39673         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39674         (Depends-on): Update conditions.
39675         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39676         the Solaris 11 bug.
39678 2012-01-08  Bruno Haible  <bruno@clisp.org>
39680         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39681         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39682         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39683         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39684         macro.
39685         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39686         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39687         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39688         HAVE_WORKING_POSIX_SPAWN.
39689         * modules/spawn (Makefile): Substitute
39690         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39691         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39692         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39693         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39694         (Depends-on): Update conditions.
39695         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39696         the Solaris 11 bug.
39698 2012-01-08  Bruno Haible  <bruno@clisp.org>
39700         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39701         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39702         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39704         HAVE_WORKING_POSIX_SPAWN.
39705         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39706         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39707         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39708         * lib/spawn_faction_addclose.c: Add workaround implementation if
39709         HAVE_WORKING_POSIX_SPAWN.
39710         * modules/spawn (Makefile): Substitute
39711         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39712         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39713         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39714         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39715         (Depends-on): Update conditions.
39716         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39717         the Solaris 11 bug.
39719 2012-01-08  Bruno Haible  <bruno@clisp.org>
39721         doc: Update for Solaris 11.0.
39722         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
39723         * m4/printf.m4: Update comments.
39725 2012-01-08  Bruno Haible  <bruno@clisp.org>
39727         mktime: Avoid compilation error on Solaris 11.
39728         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
39730 2012-01-08  Bruno Haible  <bruno@clisp.org>
39732         doc: Small fix.
39733         * doc/posix-headers/nl_types.texi: Correct platforms list.
39735 2012-01-08  Simon Josefsson  <simon@josefsson.org>
39737         Add lgpl-3.0 module.
39738         * MODULES.html.sh (Support for building documentation): Add
39739         lgpl-3.0.
39740         * modules/lgpl-3.0: New file.
39742 2012-01-08  Jim Meyering  <meyering@redhat.com>
39744         select.c: indent with spaces, not TABs
39745         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
39747 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39749         quotearg: do not use grave accent for left quote
39750         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
39751         locale_quoting_style.
39752         (quotearg_buffer_restyled): Fix example.
39753         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
39755 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39757         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
39758         Most programs do not have translation catalogs for English and much
39759         less separate catalogs for British and American English.  Drop the
39760         suggestion to translators about these two, and provide it
39761         automatically for Unicode locales.  Like most programs, even those
39762         using American English, we use single quotation marks.  This conflicts
39763         with the American typographic convention, but works better when you
39764         cite the entire error message within double quotes.  It also tries not
39765         to clash with established practice and with what non-gnulib programs
39766         will usually do.
39767         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
39768         using an UTF-8 or GB-18030 locale.  The list of other locales with
39769         quotes was provided by Bruno Haible.
39770         (quotearg_buffer_restyled): Adjust instructions to translators.
39771         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
39772         text, since this would be wrong when using Unicode.
39773         * modules/quotearg: Depend on c-strcaseeq.
39775 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39777         quotearg: fix Wikipedia link
39778         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
39780 2012-01-07  Simon Josefsson  <simon@josefsson.org>
39782         Fix for mingw with MSVC9.
39783         * m4/ld-version-script.m4: Check that compiler rejects version
39784         scripts with syntax errors.  Reported by Bruno Haible
39785         <bruno@clisp.org>.
39787 2012-01-06  Bruno Haible  <bruno@clisp.org>
39789         Talk about "native Windows API", not "Woe32".
39790         * lib/accept4.c: Update comments to mention native Windows.
39791         * lib/execute.c: Likewise.
39792         * lib/fatal-signal.c: Likewise.
39793         * lib/localcharset.c: Likewise.
39794         * lib/nanosleep.c: Likewise.
39795         * lib/nl_langinfo.c: Likewise.
39796         * lib/pclose.c: Likewise.
39797         * lib/pipe-filter-gi.c: Likewise.
39798         * lib/pipe-filter-ii.c: Likewise.
39799         * lib/pipe.c: Likewise.
39800         * lib/pipe2.c: Likewise.
39801         * lib/popen.c: Likewise.
39802         * lib/progreloc.c: Likewise.
39803         * lib/relocatable.c: Likewise.
39804         * lib/sigaction.c: Likewise.
39805         * lib/sigprocmask.c: Likewise.
39806         * lib/spawn-pipe.h: Likewise.
39807         * lib/spawn-pipe.c: Likewise.
39808         * lib/spawni.c: Likewise.
39809         * lib/stat-time.h: Likewise.
39810         * lib/w32spawn.h: Likewise.
39811         * tests/test-isatty.c: Likewise.
39812         * lib/config.charset: More comments.
39813         * doc/gnulib-intro.texi: Mention native Windows.
39814         * doc/posix-functions/_Exit_C99.texi: Likewise.
39815         * doc/posix-headers/fcntl.texi: Likewise.
39817 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
39819         argp: Avoid crash if translator uses % characters in a translation.
39820         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
39821         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
39823 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
39825         doc: C11 and C++11 are now official
39826         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
39827         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
39828         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
39829         * modules/stdalign:
39830         Replace references to draft C1X to C11, and to draft C++0X to C++11.
39832 2012-01-06  Bruno Haible  <bruno@clisp.org>
39834         uc-is-grapheme-break tests: Tweak.
39835         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
39836         message.
39838 2012-01-06  Bruno Haible  <bruno@clisp.org>
39840         test-init.sh: correct the test for diff -u
39841         * tests/test-init.sh: Also redirect stdout to /dev/null.
39843 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39845         Use ', not `, for quoting output.
39846         * build-aux/announce-gen (usage, sizes, print_news_deltas)
39847         (print_changelog_deltas, get_tool_versions, main program):
39848         * build-aux/git-version-gen:
39849         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
39850         * build-aux/move-if-change (help):
39851         * build-aux/useless-if-before-free (usage, main program):
39852         * check-module (parse_module_file, usage)
39853         (find_included_lib_files, check_module):
39854         * lib/argmatch.c (main) [TEST]:
39855         * lib/argp-help.c (_help):
39856         * lib/getopt1.c (main) [TEST]:
39857         * lib/git-merge-changelog.c (usage):
39858         * lib/xstrtol-error.c (xstrtol_error):
39859         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
39860         * m4/argz.m4 (gl_FUNC_ARGZ):
39861         * m4/bison.m4 (gl_BISON):
39862         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
39863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
39864         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39865         * m4/fpending.m4 (gl_PREREQ_FPENDING):
39866         * m4/gc-random.m4 (gl_GC_RANDOM):
39867         * m4/intl.m4 (gt_CHECK_DECL):
39868         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
39869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
39870         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
39871         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
39872         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
39873         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
39874         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
39875         * tests/test-dirname.c (main):
39876         * tests/test-getpass.c (main):
39877         * tests/test-iconvme.c (main):
39878         * tests/test-parse-datetime.c (LOG):
39879         * tests/test-xstrtoimax.sh:
39880         * tests/test-xstrtol.sh:
39881         * tests/test-xstrtoll.sh:
39882         * tests/test-xstrtoumax.sh:
39883         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
39884         * top/GNUmakefile (abort-due-to-no-makefile):
39885         Quote 'like this', not `like this', as per the recent change to
39886         the GNU coding standards.
39888 2012-01-05  Bruno Haible  <bruno@clisp.org>
39890         strtoimax: Don't force a replacement on systems where intmax_t is int.
39891         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
39892         'intmax_t' is not larger than 'int'.
39893         Reported by Pádraig Brady <P@draigBrady.com>.
39895 2012-01-05  Bruno Haible  <bruno@clisp.org>
39897         doc: Mention NetBSD bugs.
39898         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
39899         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
39901 2012-01-05  Bruno Haible  <bruno@clisp.org>
39903         strtoumax tests: Enhance tests.
39904         * tests/test-strtoumax.c (main): Add tests for large values.
39906 2012-01-05  Bruno Haible  <bruno@clisp.org>
39908         strtoimax: Work around AIX 5.1 bug.
39909         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
39910         definition.
39911         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
39912         Set HAVE_STRTOIMAX.
39913         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
39914         REPLACE_STRTOIMAX.
39915         * modules/inttypes-incomplete (Makefile.am): Substitute
39916         REPLACE_STRTOIMAX.
39917         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39918         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
39919         (Depends-on): Update conditions.
39920         * tests/test-strtoimax.c (main): Add tests for large values.
39921         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
39923 2012-01-05  Bruno Haible  <bruno@clisp.org>
39925         inttypes: Modernize.
39926         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
39927         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
39928         (Makefile.am): Update inttypes.h rule.
39930 2012-01-05  Jim Meyering  <meyering@redhat.com>
39932         init.sh: don't waste a subshell just to redirect stderr
39933         * tests/init.sh: In testing for diff -u and diff -c, use a
39934         stderr-redirecting exec inside `...` rather than a subshell.
39936         test-init.sh: avoid failure on HP-UX 11.00
39937         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
39938         resolves to diff -c or cmp.  Reported by Bruno Haible.
39940 2012-01-05  Bruno Haible  <bruno@clisp.org>
39942         Tests for module 'strtoull'.
39943         * modules/strtoull-tests: New file.
39944         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
39946 2012-01-05  Bruno Haible  <bruno@clisp.org>
39948         Tests for module 'strtoll'.
39949         * modules/strtoll-tests: New file.
39950         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
39952 2012-01-05  Bruno Haible  <bruno@clisp.org>
39954         Tests for module 'strtoul'.
39955         * modules/strtoul-tests: New file.
39956         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
39958 2012-01-05  Bruno Haible  <bruno@clisp.org>
39960         Tests for module 'strtol'.
39961         * modules/strtol-tests: New file.
39962         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
39964 2012-01-04  Jim Meyering  <meyering@redhat.com>
39966         test-init.sh: accommodate Solaris 5.10's different diff -u output
39967         * tests/test-init.sh: Also exempt @@ lines from the comparison
39968         of diff output, since Solaris 5.10 and GNU diff formats differ.
39969         Reported by Stefano Lattarini.
39971 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39973         test-posixtm: don't assume signed integer wraparound
39974         * tests/test-posixtm.c (main): Don't assume wraparound semantics
39975         after signed integer overflow.  Inspired by (though it may not
39976         fix) Bruno Haible's bug report in
39977         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
39979         Spell out "Windows 9x" and "Windows XP".
39980         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
39981         "Windows 9x" and "WinXP" with "Windows XP".
39983 2012-01-04  Jim Meyering  <meyering@redhat.com>
39985         test-vc-list-files-cvs.sh: remove obsolete comment
39986         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
39987         double exit.  Now that's all encapsulated via skip_ and Exit.
39989 2012-01-04  Bruno Haible  <bruno@clisp.org>
39991         Talk about "native Windows API", not "Win32".
39992         * lib/classpath.c: Update comments to mention native Windows.
39993         * lib/csharpexec.c: Likewise.
39994         * lib/dup2.c: Likewise.
39995         * lib/error.c: Likewise.
39996         * lib/fcntl.c: Likewise.
39997         * lib/filename.h: Likewise.
39998         * lib/findprog.c: Likewise.
39999         * lib/get-rusage-as.c: Likewise.
40000         * lib/get-rusage-data.c: Likewise.
40001         * lib/getpagesize.c: Likewise.
40002         * lib/javaexec.c: Likewise.
40003         * lib/msvc-inval.c: Likewise.
40004         * lib/msvc-nothrow.c: Likewise.
40005         * lib/nanosleep.c: Likewise.
40006         * lib/nonblocking.c: Likewise.
40007         * lib/printf-parse.c: Likewise.
40008         * lib/setlocale.c: Likewise.
40009         * lib/sigaction.c: Likewise.
40010         * lib/strerror_r.c: Likewise.
40011         * lib/tmpdir.c: Likewise.
40012         * lib/vasnprintf.c: Likewise.
40013         * lib/w32spawn.h: Likewise.
40014         * lib/waitpid.c: Likewise.
40015         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40016         * m4/locale-ar.m4: Likewise.
40017         * m4/locale-fr.m4: Likewise.
40018         * m4/locale-ja.m4: Likewise.
40019         * m4/locale-tr.m4: Likewise.
40020         * m4/locale-zh.m4: Likewise.
40021         * m4/printf.m4: Likewise.
40022         * tests/test-cloexec.c: Likewise.
40023         * tests/test-copy-acl.sh: Likewise.
40024         * tests/test-copy-file.sh: Likewise.
40025         * tests/test-file-has-acl.sh: Likewise.
40026         * tests/test-set-mode-acl.sh: Likewise.
40027         * tests/test-dup-safer.c: Likewise.
40028         * tests/test-dup2.c: Likewise.
40029         * tests/test-dup3.c: Likewise.
40030         * tests/test-fcntl.c: Likewise.
40031         * tests/test-nonblocking-pipe.h: Likewise.
40032         * tests/test-nonblocking-socket.h: Likewise.
40033         * tests/test-pipe.c: Likewise.
40034         * tests/test-pipe2.c: Likewise.
40035         * tests/test-spawn-pipe-child.c: Likewise.
40036         * doc/acl-resources.txt: Likewise.
40037         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40038         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40039         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40040         * lib/localcharset.c: Update comments to mention native Windows.
40041         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40042         * lib/localename.c: Likewise.
40043         * lib/progreloc.c: Likewise.
40044         * lib/relocatable.c: Likewise.
40045         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40046         (windows_compute_revents): Renamed from win32_compute_revents.
40047         (windows_compute_revents_socket): Renamed from
40048         win32_compute_revents_socket.
40049         * lib/select.c: Update comments to mention native Windows.
40050         (windows_poll_handle): Renamed from win32_poll_handle.
40051         * m4/threadlib.m4: Update comments to mention native Windows.
40052         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40053         --enable-threads=windows instead of --enable-threads=win32. Set
40054         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40055         * lib/glthread/lock.h: Update comments to mention native Windows.
40056         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40057         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40058         USE_WIN32_THREADS.
40059         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40060         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40061         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40062         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40063         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40064         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40065         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40066         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40067         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40068         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40069         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40070         * tests/test-tls.c: Likewise.
40071         Rationale:
40072         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40073         on both 32-bit and 64-bit Windows systems.
40074         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40075         line of distinction is between "native Windows" on one side and Unix/
40076         POSIX systems on the other side. More details in
40077         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40078         Suggested by Paul Eggert.
40080 2012-01-03  Bruno Haible  <bruno@clisp.org>
40082         isatty: Support for MSVC 9.
40083         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40084         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40085         (_isatty_nothrow): New function.
40086         (isatty): Use it instead of _isatty.
40087         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40088         * lib/poll.c (IsConsoleHandle): Likewise.
40089         * lib/select.c (IsConsoleHandle): Likewise.
40090         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40091         (gl_PREREQ_ISATTY): New macro.
40092         * modules/isatty (Depends-on): Add msvc-inval.
40093         (configure.ac): Invoke gl_PREREQ_ISATTY.
40095 2012-01-03  Jim Meyering  <meyering@redhat.com>
40097         maint.mk: remove temporary transition aid from over 1.5 years ago
40098         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40099         purpose was to aid in the transition (avoiding silent malfunction)
40100         from that old name to the new _sc_search_regexp.  This shim was
40101         added by commit 219c504b.
40103         init.sh: do not try to accommodate compare arguments starting with "-"
40104         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40105         compare arguments that start with "-".  Besides, we do not worry
40106         about this when invoking diff or cmp; why start now with sed?
40107         Using "--" to separate options from argument would trigger sed
40108         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40109         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40111 2012-01-02  Bruno Haible  <bruno@clisp.org>
40113         Enhance tests for module 'isatty'.
40114         * modules/isatty-tests (Depends-on): Add pipe-posix.
40115         * tests/test-isatty.c: Include <fcntl.h>.
40116         (DEV_NULL): New macro.
40117         (main): Test the resut of isatty() also on regular files, pipes, and
40118         /dev/null.
40120         New module 'isatty'.
40121         * lib/unistd.in.h (isatty): New declaration.
40122         * lib/isatty.c: New file, based on an idea of
40123         Bastien Roucariès <roucaries.bastien@gmail.com>.
40124         * m4/isatty.m4: New file.
40125         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40126         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40127         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40128         REPLACE_ISATTY.
40129         * modules/isatty: New file.
40130         * doc/posix-functions/isatty.texi: Mention the new module.
40131         Suggested by Paolo Bonzini.
40133 2012-01-02  Bruno Haible  <bruno@clisp.org>
40135         canonicalize: Tweak 2011-12-29 commit.
40136         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40137         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40139 2012-01-02  Jim Meyering  <meyering@redhat.com>
40141         gitlog-to-changelog: describe input syntax in --help output
40142         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40144         gitlog-to-changelog: fix typo in --help: show backslash before email @
40145         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40146         in sources, but not in actual output.
40148 2011-12-30  Jim Meyering  <meyering@redhat.com>
40150         gitlog-to-changelog: don't malfunction when name contains %-directive
40151         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40152         in a name string cause trouble.  E.g., with a user name of "%s",
40153         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40155 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40157         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40158         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40159         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40160         the "  (tiny change)" notation that is appended to the standard
40161         ChangeLog "date  name  email" header line.
40163 2012-01-01  Jim Meyering  <meyering@redhat.com>
40165         test-framework-sh: init.sh: fix "make dist" failure
40166         When using gnulib-tool's --with-tests option and any module that
40167         depends on test-framework-sh, "make dist" would fail due to the
40168         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40169         in the gltests directory, and not in the gllib/ directory.
40170         One way to work around that is to move the EXTRA_DIST += init.sh
40171         from the primary module to the -tests one:
40172         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40173         * modules/test-framework-sh (Makefile.am): ...not here.
40174         Reported by Tom G. Christensen in
40175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40177         version-etc: update copyright year reported by --version
40178         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40180 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40182         canonicalize: only stat() if required
40183         * lib/canonicalize.c (canonicalize_filename_mode):
40184         Avoid calling l?stat() when both CAN_MISSING,
40185         and CAN_NOLINKS are set, as we neither need
40186         to resolve symlinks or test component existence.
40188 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40190         doc: cover st_ino issues once; add OpenVMS etc.
40191         * doc/posix-functions/stat.texi (stat):
40192         * doc/posix-functions/lstat.texi (lstat):
40193         * doc/posix-functions/fstatat.texi (fstatat):
40194         * doc/posix-functions/fstat.texi (fstat):
40195         Move general 'struct stat' stuff to sys_stat.texi,
40196         leaving behind a pointer.
40197         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40198         Merge duplicate info about 'struct stat' problems into here.
40199         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40200         and suggest partial workarounds.
40202         same-inode: port to OpenVMS
40203         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40204         three st_ino values.
40206 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40208         canonicalize: fix references to stat() and lstat()
40209         * lib/canonicalize.c (canonicalize_filename_mode):
40210         Ensure references always resolve to a replacement
40211         function if required (even via a macro).
40213 2011-12-30  Jim Meyering  <meyering@redhat.com>
40215         gitlog-to-changelog: remove a little duplication
40216         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40217         rather than twice.
40219 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40221         canonicalize: add support for not resolving symlinks
40222         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40223         indicate we don't want to follow symlinks.  Also
40224         provide CAN_MODE_MASK to aid setting these existing
40225         mutually exclusive values.
40226         * lib/canonicalize.c (canonicalize_filename_mode):
40227         Extract the flags from can_mode parameter, which
40228         are currently just used to select between stat()
40229         and lstat().  Also ensure that mutually exclusive
40230         values are flagged immediately as invalid.
40231         * tests/test-canonicalize.c: Verify symlinks are
40232         not followed, and that invalid flag combinations
40233         are diagnosed.
40235 2011-12-25  Jim Meyering  <meyering@redhat.com>
40237         gitlog-to-changelog: do not clump multi-paragraph entries
40238         Identical header lines (date,name,email+coauthors) are suppressed,
40239         thus putting all entries with those same characteristics under
40240         a single header.  However, when a log entry consists of two or
40241         more paragraphs, it may not be clear where it starts and ends.
40242         This change makes it so that such an entry is always separated
40243         from others by a header line, even when that header would
40244         otherwise be suppressed.
40245         * build-aux/gitlog-to-changelog: Implement the above.
40246         Inspired by a related request from Stefano Lattarini in
40247         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40249 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40251         announce-gen: fix `cmd' typo in diagnostic
40252         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40253         diagnostic: a missing '$' meant that the command was not output.
40255 2011-12-23  Jim Meyering  <meyering@redhat.com>
40257         test-framework-sh: distribute init.sh
40258         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40259         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40260         fail due to the lack of init.sh.
40262         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40263         * modules/atexit-tests: Rather than listing tests/init.sh,
40264         now that there's a module for it, simply depend on that new module.
40265         * modules/closein-tests: Likewise.
40266         * modules/exclude-tests: Likewise.
40267         * modules/getcwd-tests: Likewise.
40268         * modules/perror-tests: Likewise.
40269         * modules/pread-tests: Likewise.
40270         * modules/pwrite-tests: Likewise.
40271         * modules/vc-list-files-tests: Likewise.
40272         * modules/verify-tests: Likewise.
40273         * modules/xalloc-die-tests: Likewise.
40274         * modules/xstrtoimax-tests: Likewise.
40275         * modules/xstrtol-tests: Likewise.
40276         * modules/xstrtoll-tests: Likewise.
40277         * modules/xstrtoumax-tests: Likewise.
40278         * modules/yesno-tests: Likewise.
40280 2011-12-22  Jim Meyering  <meyering@redhat.com>
40282         test-framework-sh: add minimal tests of init.sh's compare function
40283         * modules/test-framework-sh-tests: New file.
40284         * tests/test-init.sh: New file.
40286         test-framework-sh: new module
40287         * modules/test-framework-sh: New file.
40288         * MODULES.html.sh (Support for maintaining and releasing projects):
40289         List it.
40291         init.sh: do not emit simulated diff output to stderr
40292         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40294 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40296         .gitignore: ignore gnulib.dvi and regex.info
40297         * doc/.gitignore:add gnulib.dvi and regex.info
40299 2011-12-22  Jim Meyering  <meyering@redhat.com>
40301         init.sh: correct previous change
40302         * tests/init.sh (compare): My previous change was wrong.
40303         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40305         init.sh: avoid unwarranted test failure when using "set -e"
40306         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40307         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40308         a use like "compare exp out" would get evoke an unconditional failure.
40310 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40312         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40313         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40314         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40315         autoreconf that did not.
40316         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40317         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40319 2011-12-17  Jim Meyering  <meyering@redhat.com>
40321         bootstrap: remove some now-unneeded code
40322         This script arose back when gnulib-tool was young.
40323         Since then, it has seen improvements that render much of this
40324         script unnecessary.  In particular, it can now make symlinks
40325         to the files it uses.  Also, I no longer see as much value in
40326         marking files as read-only via comments.
40327         If you relied on the symlink-creation feature of the preceding
40328         version of this script, you can get most of that functionality
40329         by adding the --symlink option to the definition of
40330         gnulib_tool_option_extras in your bootstrap.conf file.
40331         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40332         Run autopoint and libtoolize *before* gnulib-tool.
40333         After it, run an abbreviated autoreconf, rather than a loop around
40334         all tools.
40335         (slirp, bt_mark_as_generated): Remove functions.
40337 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40339         ftoastr: fix typo
40340         * lib/ftoastr.h: Fix misspelling in comment.
40342 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40344         * top/README-release: fix punctuation.
40346 2011-12-17  Jim Meyering  <meyering@redhat.com>
40348         bootstrap: correct the recent buildreq change
40349         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40350         had no effect.
40351         * build-aux/bootstrap (buildreq): Bracket each search term with
40352         "*...*", so that the shell "case" statement works as intended.
40353         Add comments.
40355 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40357         build: let bootstrap resort to wget when downloading .po files
40358         * build-aux/bootstrap (download_po_files): Fallback to wget when
40359         downloading the .po files via rsync fails.  This is necessary to
40360         bootstrap from behind a strict firewall.
40362 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40364         stdint: don't assume C++11 when compiling with g++
40365         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40366         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40367         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40368         work also in C++ before C++11, as that improperly inhibits
40369         generating a substitute stdint.h for that case.
40371 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40373         alloca: protect comment from gnulib-tool
40374         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40375         that gnulib-tool doesn't think it's a license, and munge it to
40376         say "GCC version 3".
40378 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40380         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40381         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40382         $(abs_top_builddir) instead of $(top_builddir).
40384 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40386         strftime-tests: also test nanoseconds
40387         * tests/test-strftime.c (T): Add a test of %N.
40389 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40391         inttypes, stdint: add C++11 support
40392         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40393         when including inttypes.h and stdint.h.  Support this change to
40394         the standard.
40395         * doc/posix-headers/inttypes.texi (inttypes.h):
40396         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40397         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40398         Define if not defined already, for the benefit of pre-C++11 hosts.
40399         Define the standard format macros (e.g., PRId8) always.
40400         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40401         Likewise, if __cpluspus.  Define the standard constant and limit
40402         macros (e.g., INT8_C, INT8_MAX) always.
40403         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40404         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40405         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40406         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40407         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40408         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40409         Likewise.
40411 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40413         nonblocking tests: Fix test failure on Linux/PPC.
40414         Suggested by Prerna Saxena in
40415         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40416         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40417         Set to 1100000.
40419 2011-12-12  Jim Meyering  <meyering@redhat.com>
40421         argmatch: don't hard-code `' when listing valid option arguments
40422         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40423         use the quote function to add quotes.  Use fputs rather than
40424         fprintf for the format string with no format directive.
40426 2011-12-07  Eric Blake  <eblake@redhat.com>
40428         bootstrap: detect tools required by gnulib-tool
40429         * build-aux/bootstrap (buildreq): Provide minimum implicit
40430         dependencies.
40431         * DEPENDENCIES: Mention patch as a prereq.
40433 2011-12-04  Bruno Haible  <bruno@clisp.org>
40435         sethostname: Port to Windows platforms.
40436         * lib/sethostname.c: Provide an alternate implementation for Windows
40437         platforms.
40438         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40439         (main): Skip the test if sethostname() fails with EPERM. On Windows
40440         platforms, don't check the result of gethostname().
40442 2011-12-04  Bruno Haible  <bruno@clisp.org>
40443             Jim Meyering  <meyering@redhat.com>
40445         tests: Avoid spurious error message on platforms without mktemp program.
40446         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40448 2011-12-04  Bruno Haible  <bruno@clisp.org>
40450         sethostname: Fix documentation.
40451         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40452         "not fixed" section.
40454 2011-12-03  Bruno Haible  <bruno@clisp.org>
40456         gnulib-tool: Verify that the License field is present and non-empty.
40457         * gnulib-tool (func_get_license_raw): New function, extracted from
40458         func_get_license.
40459         (func_get_license): Use it. Warn if the module is not a test module and
40460         has no license.
40461         Suggested by Jim Meyering.
40463 2011-12-03  Bruno Haible  <bruno@clisp.org>
40465         sethostname tests: Fix link error on mingw.
40466         * tests/test-sethostname1.c: New file, extracted from
40467         tests/test-sethostname.c.
40468         * tests/test-sethostname2.c: New file, extracted from
40469         tests/test-sethostname.c.
40470         * tests/test-sethostname.c: Remove file.
40471         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40472         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40473         (Depends-on): Add gethostname.
40474         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40475         Link the latter with $(GETHOSTNAME_LIB).
40477         sethostname tests: Fix compilation error on mingw.
40478         * tests/test-sethostname.c: Don't include <sys/types.h>.
40479         (geteuid): Use a dummy value without uid_t.
40480         * modules/sethostname-tests (Depends-on): Remove sys_types.
40482         sethostname tests: Avoid a gcc warning.
40483         * tests/test-sethostname.c (main): Remove an unused variable.
40485         Tweak last commit.
40486         * modules/sethostname-tests (Files): Sort by decreasing importance.
40487         (configure.ac): Check for geteuid.
40488         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40489         the test when there's nothing to test. Drop an unnecessary cast.
40490         Improve an error message. Verify that the final sethostname() call
40491         succeeds.
40493 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40495         Add a test suite for the sethostname module.
40496         * modules/sethostname-tests: New file.  A test program
40497         for the sethostname module.
40498         * tests/test-sethostname.c: Likewise.
40500 2011-12-03  Bruno Haible  <bruno@clisp.org>
40502         Tweak last commit.
40503         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40504         Fix preprocessor directives indentation. Fix typos.
40505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40506         * modules/unistd (Makefile): Likewise.
40508 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40510         Integrate the sethostname module into unistd.
40511         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40512         into the unistd.h header.
40513         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40514         preprocessor directives.
40515         * modules/unistd: Setup the Makefile substitutions of the
40516         SETHOSTNAME preprocessor directives.
40518 2011-12-03  Bruno Haible  <bruno@clisp.org>
40520         Tweak last commit.
40521         * lib/sethostname.c: Don't include <string.h>.
40522         (sethostname): No need to copy the argument string to the stack. Don't
40523         call clearerr. Preserve errno when fprintf failed.
40524         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40525         Don't invoke AC_REPLACE_FUNCS.
40526         * modules/sethostname (Link): Remove empty section.
40527         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40528         failure problem.
40530 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40532         New module 'sethostname'.
40533         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40534         for systems that lack it.
40535         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40536         sethostname declaration and function.
40537         * modules/sethostname: New file.  Define the sethostname module.
40539 2011-12-03  Bruno Haible  <bruno@clisp.org>
40541         Tweak last commit.
40542         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40544 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40546         Split the HOST_NAME_MAX detection into a separate m4 macro.
40547         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40548         macro so it can be used by the pending sethostname module.
40550 2011-12-03  Bruno Haible  <bruno@clisp.org>
40552         Fix module descriptions syntax.
40553         * modules/argv-iter (License): Fix syntax.
40554         * modules/di-set (License): Likewise.
40555         * modules/ino-map (License): Likewise.
40556         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40558 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40560         stdalign: port to Clang 3.0
40561         Problem reported by Simon Josefsson in
40562         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40563         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40564         which has <stdalign.h> but which does not define alignof.
40565         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40567 2011-12-01  Eric Blake  <eblake@redhat.com>
40569         mktempd: silence dd usage
40570         * build-aux/mktempd (rand_bytes): Silence dd.
40572 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40574         manywarnings: Don't mention gcc version in docstring.
40575         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40576         Jim Meyering <meyering@redhat.com>.
40578 2011-11-30  Jim Meyering  <meyering@redhat.com>
40580         hash: mark a few floating point constants with "f" suffix
40581         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40582         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40583         floating point constants with "f", since they're destined to be
40584         saved/used as "float"s.
40586 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40588         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40589         * tests/test-float.c (test_long_double): Correct and re-enable the
40590         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40592 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40594         Avoid subtracting two pointers that don't point into the same block.
40595         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40596         only pointers into the same memory block are subtracted. We cannot
40597         assume that sizeof (ptrdiff_t) == sizeof (void *).
40599 2011-11-29  Eric Blake  <eblake@redhat.com>
40601         maint.mk: add syntax check for use of compare from init.sh
40602         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40603         moved here from coreutils.
40605         manywarnings: drop -Wunsuffixed-float-constants
40606         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40607         '1.0D', which is the only way to silence this warning for 'double'.
40609 2011-11-29  Jim Meyering  <meyering@redhat.com>
40611         hash: mark compute_bucket_size with the pure attribute
40612         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40614         quotearg, propername: correct pragma guard expression
40615         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40616         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40618 2011-11-28  Jim Meyering  <meyering@redhat.com>
40620         propername: do not mark proper_name with the const attribute
40621         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40622         since it examines data pointed to by its parameter.
40623         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40624         the suggestion from -Wsuggest-attribute=const.
40626         propername: mark one more function as const
40627         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40629 2011-11-27  Jim Meyering  <meyering@redhat.com>
40631         mark functions with const and pure attributes
40633         Mark functions per suggestions from gcc-4.6 when using these options:
40634         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40635         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40636         Follow these guidelines: when possible, apply the attribute to
40637         an extern declaration, not to its definition.  Apply it to the
40638         definition only when the definition is static.
40639         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40640         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40641         * lib/base64.h (isbase64): Likewise.
40642         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40643         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40644         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40645         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40646         (c_tolower, c_toupper): Likewise.
40647         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40648         * lib/chdir-long.c (find_non_slash): Likewise.
40649         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40650         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40651         * lib/file-type.h (file_type): Likewise.
40652         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40653         * lib/filevercmp.c (verrevcmp): Likewise.
40654         * lib/freadahead.h (freadahead): Likewise.
40655         * lib/fts.c (fts_maxarglen): Likewise.
40656         * lib/hash-pjw.h (hash_pjw): Likewise.
40657         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40658         * lib/hash.c (is_prime, next_prime): Likewise.
40659         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40660         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40661         (hash_table_ok, hash_get_first, hash_string): Likewise.
40662         (compute_bucket_size): Likewise.
40663         * lib/i-ring.h (i_ring_empty): Likewise.
40664         * lib/isnan.c (isnanl): Likewise.
40665         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40666         * lib/memcasecmp.h (memcasecmp): Likewise.
40667         * lib/memchr2.h (memchr2): Likewise.
40668         * lib/memcmp2.h (memcmp2): Likewise.
40669         * lib/parse-datetime.y (lookup_zone): Likewise.
40670         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40671         [!WINDOWS_SOCKETS]: Likewise.
40672         * lib/strnlen1.h (strnlen1): Likewise.
40673         * lib/uniwidth.in.h (uc_width): Likewise.
40674         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40675         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40676         (quoting_options_from_style): Add a comment.
40677         * lib/propername.h (proper_name): Add a comment.
40679 2011-11-27  Bruno Haible  <bruno@clisp.org>
40681         Remove unused macros from !_LIBC code in glibc-borrowed files.
40682         * lib/fnmatch.c (STRCOLL): Remove macro.
40683         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40684         * lib/glob.c (__stat, __readdir64): Remove macros.
40685         * lib/tempname.c (__open64, __xstat64): Remove macros.
40686         Suggested by Paul Eggert.
40688 2011-11-27  Bruno Haible  <bruno@clisp.org>
40690         getcwd: Fix link error on MSVC 9.
40691         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40693 2011-11-27  Bruno Haible  <bruno@clisp.org>
40695         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40696         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40697         HAVE_OPENDIR is 0.
40698         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40699         HAVE_CLOSEDIR is 0.
40700         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40701         is 0.
40702         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40704 2011-11-27  Bruno Haible  <bruno@clisp.org>
40706         getcwd: Fix bug from 2011-08-17.
40707         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40708         platforms that need it.
40709         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40710         code of 4 to be a failure, not a success. This ensures that
40711         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40713 2011-11-27  Bruno Haible  <bruno@clisp.org>
40715         binary-io tests: Avoid test failure on mingw when libtool is used.
40716         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40717         Don't verify the size of t-bin-out1.tmp here.
40718         * tests/test-binary-io.sh: Verify it here.
40719         Reported by Simon Josefsson.
40721 2011-11-26  Bruno Haible  <bruno@clisp.org>
40723         Fix conflict between two instantiations of module 'unistd'.
40724         * gnulib-tool (func_emit_autoconf_snippet): Substitute
40725         ${include_guard_prefix} also in the autoconf snippet.
40726         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
40727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
40728         GNULIB_UNISTD_H_GETOPT.
40729         * modules/getopt-posix (configure.ac): Set the
40730         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
40731         * modules/getopt-gnu (configure.ac): Likewise.
40732         * modules/unistd (Makefile.am): Change the substitution value of
40733         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
40734         Reported by Simon Josefsson.
40736 2011-11-25  Bruno Haible  <bruno@clisp.org>
40738         pagealign_alloc: Doc and comments.
40739         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
40740         module.
40741         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
40743 2011-11-25  Jim Meyering  <meyering@redhat.com>
40745         test-update-copyright.sh: avoid false-positive failure
40746         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
40747         around false positive failure on Cygwin/Windows.  The latter was
40748         matching erroneously-created files with names like
40749         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
40751 2011-11-25  Simon Josefsson  <simon@josefsson.org>
40753         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
40754         * m4/valgrind-tests.m4: Check that the parameters that will be
40755         used works, not just a subset of them.  Reported by Bruno Haible
40756         <bruno@clisp.org>.
40758 2011-11-24  Jim Meyering  <meyering@redhat.com>
40760         test-stdalign.c: comment out long double tests
40761         * tests/test-stdalign.c: Don't try to reduce alignment of long double
40762         variables.  That provokes errors like this from gcc-4.7.0 20111124:
40763         error: '_Alignas' specifiers cannot reduce alignment of \
40764         'static_longdouble_alignas'.
40766 2011-11-22  Jim Meyering  <meyering@redhat.com>
40768         init.sh: make "compare /dev/null FILE" output more readable
40769         * tests/init.sh (compare_): Document the preferred order of arguments.
40770         (emit_diff_u_header_): New function.
40771         (compare_dev_null_): Emit a simulated diff, rather than just the
40772         contents of the unexpected file.  Suggestion from Bruno Haible.
40774 2011-11-21  Jim Meyering  <meyering@redhat.com>
40775             Eric Blake  <eblake@redhat.com>
40777         init.sh: work around OSF/1 5.1's mishandling of /dev/null
40778         * tests/init.sh: Make our compare function slightly more portable.
40779         Reported by Bruno Haible in
40780         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
40782 2011-11-21  Simon Josefsson  <simon@josefsson.org>
40784         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
40785         before using it, in code that ends up in config.h.
40787 2011-11-20  Bruno Haible  <bruno@clisp.org>
40789         getcwd: Work around getcwd bug on AIX 5..7.
40790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
40791         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
40792         Use a different value for gl_cv_func_getcwd_path_max. Move the
40793         definition of HAVE_PARTLY_WORKING_GETCWD from here...
40794         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
40795         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
40796         Define HAVE_MINIMALLY_WORKING_GETCWD.
40797         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
40798         where it is not even minimally working, that is, on AIX.
40799         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
40800         m4/getcwd-path-max.m4.
40801         (main): Update exit code computation.
40802         * doc/posix-functions/getcwd.texi: Mention list of platforms where
40803         getcwd does not handle long file names.
40805 2011-11-20  Bruno Haible  <bruno@clisp.org>
40807         getcwd: Fix bug from 2009-09-10.
40808         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
40809         like "no".
40811 2011-11-20  Simon Josefsson  <simon@josefsson.org>
40813         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
40815 2011-11-20  Bruno Haible  <bruno@clisp.org>
40817         fma tests: Avoid shadowing local variables.
40818         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
40819         expected.
40821 2011-11-20  Bruno Haible  <bruno@clisp.org>
40823         copysignf tests: Fix.
40824         * tests/test-copysignf.c: Fix signature check.
40826 2011-11-20  Bruno Haible  <bruno@clisp.org>
40828         fma: Remove unused code.
40829         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
40830         unused macros.
40832 2011-11-20  Bruno Haible  <bruno@clisp.org>
40834         sethostname: Fix doc about AIX.
40835         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
40836         sethostname; it has it.
40838         sethostname: Mention more portability problems.
40839         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
40840         problem.
40841         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
40843 2011-11-19  Bruno Haible  <bruno@clisp.org>
40845         Depend on module fcntl-h when AT_FDCWD is used.
40846         * modules/utimens (Depends-on): Add fcntl-h.
40847         * modules/areadlinkat (Depends-on): Likewise.
40848         * modules/areadlinkat-with-size (Depends-on): Likewise.
40849         * modules/faccessat (Depends-on): Likewise.
40850         * modules/fchmodat (Depends-on): Likewise.
40851         * modules/fchownat (Depends-on): Likewise.
40852         * modules/getcwd (Depends-on): Likewise.
40853         * modules/mkdirat (Depends-on): Likewise.
40854         * modules/mkfifoat (Depends-on): Likewise.
40855         * modules/readlinkat (Depends-on): Likewise.
40856         * modules/symlinkat (Depends-on): Likewise.
40857         * modules/dup2-tests (Depends-on): Likewise.
40858         * modules/fdutimensat-tests (Depends-on): Likewise.
40859         * modules/futimens-tests (Depends-on): Likewise.
40861 2011-11-19  Bruno Haible  <bruno@clisp.org>
40863         euidaccess: Update a comment.
40864         * lib/euidaccess.c: Update comment about platforms with faccessat.
40866 2011-11-19  Bruno Haible  <bruno@clisp.org>
40868         openat: Fix file list.
40869         * modules/openat (Files): Remove lib/at-func.c.
40871 2011-11-19  Bruno Haible  <bruno@clisp.org>
40873         fstatat: Simplify.
40874         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
40875         gnulib should define rpl_fstatat, there is a
40876         "#define fstatat rpl_fstatat" in <sys/stat.h>.
40878 2011-11-19  Bruno Haible  <bruno@clisp.org>
40880         Ensure 'inline' can be used in tests/test-utimens-common.h.
40881         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
40882         * modules/futimens-tests (configure.ac): Likewise.
40883         * modules/utimens-tests (configure.ac): Likewise.
40884         * modules/utimensat-tests (configure.ac): Likewise.
40886 2011-11-19  Simon Josefsson  <simon@josefsson.org>
40888         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
40889         not hash_insert0.
40890         (hash_insert_if_absent): Doc fix.
40892 2011-11-19  Simon Josefsson  <simon@josefsson.org>
40894         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
40896 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
40898         test-getcwd: disambiguate exit status
40899         * tests/test-getcwd.c (test_long_name): Return 0..7.
40900         (main): Exit with an unambiguous exit status.  The old
40901         code yielded a mysterious mixture of two failure codes.
40903         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
40904         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
40905         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
40906         rpl_fstatat or fstatat.  This should fix the other problem
40907         reported by Kai Habel in
40908         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
40909         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
40910         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
40911         and I reproduced it on a Solaris 8 host we still have in production.
40913 2011-11-18  Jim Meyering  <meyering@redhat.com>
40915         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
40916         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
40917         Add a sentence to the comment.
40918         (hash_insert0): New function that simply calls hash_insert_if_absent.
40919         * lib/hash.h (hash_insert_if_absent): Declare it.
40920         (hash_insert0): Add deprecation attribute.
40921         (_GL_ATTRIBUTE_DEPRECATED): Define.
40922         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
40923         not hash_insert0.
40924         * NEWS: Mention it, even though it's not really an incompatible change.
40926 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
40928         openat: avoid compilation failure due to lack of <errno.h> inclusion
40929         * lib/openat.c: Include <errno.h>.
40931 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40933         * modules/getcwd (Depends-on): Add fdopendir.
40934         This fixes one of the two problems reported by Kai Habel in
40935         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
40937         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
40938         stdalign problem reported by Ian Beckwith in
40939         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
40940         * modules/crypto/gc-arcfour (Depends-on):
40941         Depend conditionally on crypto/arcfour.
40942         * modules/crypto/gc-arctwo (Depends-on):
40943         Depend conditionally on crypto/arctwo.
40944         * modules/crypto/gc-des (Depends-on):
40945         Depend conditionally on crypto/des.
40946         * modules/crypto/gc-hmac-md5 (Depends-on):
40947         Depend conditionally on crypto/hmac-md5.
40948         * modules/crypto/gc-hmac-sha1 (Depends-on):
40949         Depend conditionally on crypto/hmac-sha1.
40950         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
40951         * modules/crypto/gc-md4 (Depends-on):
40952         Depend conditionally on crypto/md4.
40953         * modules/crypto/gc-md5 (Depends-on):
40954         Depend conditionally on crypto/md5.
40955         * modules/crypto/gc-rijndael (Depends-on):
40956         Depend conditionally on crypto/rijndael.
40957         * modules/crypto/gc-sha1 (Depends-on):
40958         Depend conditionally on crypto/sha1.
40959         * modules/crypto/gc-arcfour:
40960         * modules/crypto/gc-arctwo:
40961         * modules/crypto/gc-des:
40962         * modules/crypto/gc-hmac-md5:
40963         * modules/crypto/gc-hmac-sha1:
40964         * modules/crypto/gc-md2:
40965         * modules/crypto/gc-md4:
40966         * modules/crypto/gc-md5:
40967         * modules/crypto/gc-rijndael:
40968         * modules/crypto/gc-sha1:
40969         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
40970         now that the conditional dependencies do the work for us.
40972 2011-11-17  Jim Meyering  <meyering@redhat.com>
40974         tests: factor st_ctime-comparison out of two headers
40975         * tests/test-utimens-common.h (ctime_compare): Define.
40976         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
40977         * tests/test-lutimens.h (test_lutimens): Likewise.
40978         * tests/test-utimens.h (test_utimens): Likewise.
40980         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
40981         Invoke the test program via an init.sh-using wrapper.
40982         * tests/test-getcwd.sh: New file.
40983         * modules/getcwd-tests (Files): Add it.
40984         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
40986 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
40988         gitlog-to-changelog: support multi-author commits.
40989         The FSF cares about keeping track of all authors of patches to its
40990         projects, but Git doesn't provide obvious support for multi-author
40991         changesets. Consensus seems to be forming around the use of extra
40992         Signed-off-by inspired lines in the log message formatted as
40993         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
40994         multi-author commits between version control systems.
40995         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
40996         log message and output in standard ChangeLog multi-author format.
40997         Reported by Peter Rosin <peda@lysator.liu.se>
40999 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41000             Bruno Haible  <bruno@clisp.org>
41002         Fix some modules' file list.
41003         * modules/fstatat (Files): Add m4/lstat.m4.
41004         * modules/openat (Files): Likewise.
41005         * modules/unlinkat (Files): Likewise.
41007 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41009         maint.mk: fix tight-scope.mk generation in VPATH builds.
41010         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41011         reference with $(srcdir) so that the file is found correctly even
41012         when running `make syntax-check' in a VPATH build.
41014 2011-11-13  Bruno Haible  <bruno@clisp.org>
41015             Jim Meyering  <meyering@redhat.com>
41017         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41018         * tests/init.sh (compare): Remove "No differences encountered" or
41019         synonymous output from the 'diff' program.
41021 2011-11-13  Bruno Haible  <bruno@clisp.org>
41023         Makefile: Tweak indentation.
41024         * Makefile: Use tab as first character in every line that contains rule
41025         commands.
41027 2011-11-13  Bruno Haible  <bruno@clisp.org>
41029         Syntax check for copyright statements.
41030         * check-copyright: New file.
41031         * Makefile (sc_check_copyright): New rule.
41033 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41035         * build-aux/git-version-gen: Add --prefix to configure the tag
41036         match string.
41038 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41040         * build-aux/git-version-gen: Add --help and --version.
41042 2011-11-12  Jim Meyering  <meyering@redhat.com>
41044         revamp the other test-exclude?.sh scripts to use init.sh, too
41045         * tests/test-exclude1.sh: Use init.sh.
41046         * tests/test-exclude2.sh: Likewise.
41047         * tests/test-exclude3.sh: Likewise.
41048         * tests/test-exclude4.sh: Likewise.
41049         * tests/test-exclude5.sh: Likewise.
41050         * tests/test-exclude6.sh: Likewise.
41051         * tests/test-exclude7.sh: Likewise.
41052         * tests/test-exclude8.sh: Likewise.
41053         * modules/exclude-tests (Files): List init.sh.
41055         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41056         These shell scripts ignored failure of the binary test-exclude,
41057         so making the latter return 77 didn't cause them to be skipped.
41058         * tests/test-exclude5.sh: Exit with test-exclude's error status
41059         when that program fails.  Revamp to use init.sh.
41060         * tests/test-exclude2.sh: Likewise.
41062         test-exclude: fix a typo
41063         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41065 2011-11-11  Bruno Haible  <bruno@clisp.org>
41067         obstack: Fix compilation error on MSVC 9.
41068         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41070 2011-11-11  Jim Meyering  <meyering@redhat.com>
41072         test-exclude: skip tests rather than failing on deficient systems
41073         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41074         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41075         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41076         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41078 2011-11-10  Bruno Haible  <bruno@clisp.org>
41080         ptsname_r test: Avoid gcc warning on glibc systems.
41081         * tests/test-ptsname_r.c (null_ptr): New function.
41082         (test_errors): Use it.
41084 2011-11-10  Bruno Haible  <bruno@clisp.org>
41086         ptsname_r: Avoid compilation error on OSF/1 5.1.
41087         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41089         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41090         function is not declared or incompatibly declared.
41091         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41092         * modules/ptsname_r (Depends-on, configure.ac): Update.
41093         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41095 2011-11-10  Bruno Haible  <bruno@clisp.org>
41097         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41098         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41099         When cross-compiling, guess yes on all platforms except AIX.
41100         Reported by Ludovic Courtès <ludo@gnu.org>.
41102 2011-11-09  Bruno Haible  <bruno@clisp.org>
41104         ptsname_r tests: Fix bugs.
41105         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41106         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41108 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41110         fstatat: work with cross-compilation
41111         Problem reported by Ludovic Courtès in
41112         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41113         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41114         "cross-compiling" and assume the bug is present.  Replace
41115         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41116         an inverted sense, to be more conservative about our assumptions.
41117         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41119 2011-11-09  Bruno Haible  <bruno@clisp.org>
41121         Improve MODULES.html output.
41122         * modules/mkfifoat (Description): Use the word "function".
41123         * modules/readlinkat (Description): Likewise.
41124         * modules/symlinkat (Description): Likewise.
41126 2011-11-09  Eric Blake  <eblake@redhat.com>
41128         ptsname_r-tests: new test module
41129         * modules/ptsname_r-tests: New module.
41130         * tests/test-ptsname_r.c: New file.
41132         ptsname_r: new module
41133         * modules/ptsname_r: New module.
41134         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41135         * lib/ptsname.c (__ptsname_r): Split...
41136         * lib/ptsname_r.c: ...into new file.
41137         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41138         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41139         * modules/stdlib (Makefile.am): Substitute witnesses.
41140         * lib/stdlib.in.h (ptsname_r): Declare it.
41141         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41142         * MODULES.html.sh (Misc): Likewise.
41143         * modules/ptsname (Depends-on): Alter dependency.
41144         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41146 2011-11-09  Jim Meyering  <meyering@redhat.com>
41148         announce-gen: be more concise when there's only one URL+tarball
41149         * build-aux/announce-gen (get_tool_versions): When you distribute
41150         only one type of tarball, combine the first two "Here are..."
41151         sections and make the key-checking grammar independent of
41152         how many tarballs there are.
41154 2011-11-09  Eric Blake  <eblake@redhat.com>
41156         openpty: provide a stub on mingw
41157         * lib/pty.in.h (includes): Provide forward declarations.
41158         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41160         raise: fix mingw handling of SIGPIPE
41161         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41163 2011-11-08  Bruno Haible  <bruno@clisp.org>
41165         More conditional dependencies.
41166         * modules/faccessat (Depends-on): Add conditions.
41167         * modules/fchmodat (Depends-on): Likewise.
41168         * modules/fchownat (Depends-on): Likewise.
41169         * modules/fstatat (Depends-on): Likewise.
41170         * modules/mkfifoat (Depends-on): Likewise.
41171         * modules/readlinkat (Depends-on): Likewise.
41172         * modules/symlinkat (Depends-on): Likewise.
41173         * modules/unlinkat (Depends-on): Likewise.
41174         * modules/utimensat (Depends-on): Likewise.
41175         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41176         * modules/linkat (Depends-on): Refine the conditions.
41177         * modules/renameat (Depends-on): Likewise.
41179 2011-11-08  Bruno Haible  <bruno@clisp.org>
41181         faccessat: Move AC_LIBOBJ invocation to module description.
41182         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41183         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41184         invocation from here...
41185         * modules/faccessat (configure.ac): ... to here. Invoke
41186         gl_PREREQ_FACCESSAT.
41188 2011-11-08  Bruno Haible  <bruno@clisp.org>
41190         faccessat: Simplify autoconf macro.
41191         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41192         gl_FUNC_EUIDACCESS.
41194 2011-11-08  Bruno Haible  <bruno@clisp.org>
41196         renameat: Fix dependencies.
41197         * modules/renameat (Depends-on): Add stdbool.
41199 2011-11-08  Bruno Haible  <bruno@clisp.org>
41201         mkfifoat: Fix module description.
41202         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41203         not gl_UNISTD_MODULE_INDICATOR.
41205 2011-11-08  Bruno Haible  <bruno@clisp.org>
41207         fstatat: Remove unused dependency.
41208         * modules/fstatat (Depends-on): Remove fstat.
41210 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41212         GNUmakefile: behave when Makefile is missing.
41213         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41215 2011-11-08  Bruno Haible  <bruno@clisp.org>
41217         openat: Conditionalize dependencies.
41218         * lib/openat.c: Reduce the scope of some #includes.
41219         * modules/openat (Depends-on): Add conditions.
41221 2011-11-07  Jim Meyering  <meyering@redhat.com>
41223         maint.mk: extract GPG key ID without using a temporary file
41224         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41225         without using a temporary file.  Based on a suggestion from Werner Koch
41226         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41228 2011-11-07  Eric Blake  <eblake@redhat.com>
41230         grantpt: fix typo
41231         * lib/stdlib.in.h (grantpt): Check correct function.
41233         maint.mk: silence new syntax check
41234         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41236 2011-11-06  Bruno Haible  <bruno@clisp.org>
41238         Doc about floating-point and math API.
41239         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41240         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41242 2011-11-06  Bruno Haible  <bruno@clisp.org>
41244         stdalign tests: Skip the test when compiled by Sun C.
41245         * tests/test-stdalign.c (main): Skip the test on Sun C.
41247 2011-11-06  Bruno Haible  <bruno@clisp.org>
41249         ansi-c++-opt: Complete the 2011-06-05 change.
41250         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41251         does not support namespaces, set the variable to "no", not to ":".
41253 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41255         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41257 2011-11-06  Bruno Haible  <bruno@clisp.org>
41259         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41260         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41261         (minus_zerol) [HP-UX]: New macro.
41262         (unary_minus) [HP-UX]: New function.
41263         (copysignl) [HP-UX]: Use unary_minus function.
41265 2011-11-06  Bruno Haible  <bruno@clisp.org>
41267         ldexp, ldexpf, ldexpl: Enhance tests.
41268         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41269         and tests/test-ldexpl.c.
41270         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41271         LDEXP, MIN_EXP, MAX_EXP): New macros.
41272         Include test-ldexp.h.
41273         (main): Just call test_function.
41274         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41275         infinity.h, nan.h.
41276         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41277         MAX_EXP): New macros.
41278         Include test-ldexp.h.
41279         (x, y): Remove variables.
41280         (main): Just call test_function.
41281         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41282         infinity.h, nan.h.
41283         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41284         MAX_EXP): New macros.
41285         Include test-ldexp.h.
41286         (x, y): Remove variables.
41287         (main): Just call test_function.
41288         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41289         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41290         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41291         (Depends-on): Add isnand-nolibm, signbit, float.
41292         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41293         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41294         (Depends-on): Add isnanf-nolibm, signbit, float.
41296 2011-11-06  Bruno Haible  <bruno@clisp.org>
41298         math tests: Cosmetics.
41299         * tests/test-math-c++.cc: Reorder declarations.
41301 2011-11-05  Bruno Haible  <bruno@clisp.org>
41303         fma*: Simplify test.
41304         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41305         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41307         Tests for module 'fmal'.
41308         * modules/fmal-tests: New file.
41309         * tests/test-fmal1.c: New file.
41310         * tests/test-fmal2.c: New file.
41312         New module 'fmal'.
41313         * lib/math.in.h (fmal): New declaration.
41314         * lib/fmal.c: New file.
41315         * m4/fmal.m4: New file.
41316         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41318         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41319         REPLACE_FMAL.
41320         * modules/fmal: New file.
41321         * doc/posix-functions/fmal.texi: Mention the new module and the various
41322         bugs.
41324         Tests for module 'fmaf'.
41325         * modules/fmaf-tests: New file.
41326         * tests/test-fmaf1.c: New file.
41327         * tests/test-fmaf2.c: New file.
41329         New module 'fmaf'.
41330         * lib/math.in.h (fmaf): New declaration.
41331         * lib/fmaf.c: New file.
41332         * m4/fmaf.m4: New file.
41333         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41335         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41336         REPLACE_FMAF.
41337         * modules/fmaf: New file.
41338         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41339         bugs.
41341         Tests for module 'fma'.
41342         * modules/fma-tests: New file.
41343         * tests/test-fma1.c: New file.
41344         * tests/test-fma1.h: New file.
41345         * tests/test-fma2.c: New file.
41346         * tests/test-fma2.h: New file.
41348         New module 'fma'.
41349         * lib/math.in.h (fma): New declaration.
41350         * lib/fma.c: New file.
41351         * m4/fma.m4: New file.
41352         * m4/fegetround.m4: New file.
41353         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41355         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41356         REPLACE_FMA.
41357         * modules/fma: New file.
41358         * doc/posix-functions/fma.texi: Mention the new module and the various
41359         bugs.
41361         Extend gl_MATHFUNC.
41362         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41363         Support 'void' as argument type.
41364         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41366 2011-11-05  Jim Meyering  <meyering@redhat.com>
41368         maint.mk: also prohibit inclusion of dirent.h without use
41369         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41371 2011-11-05  Bruno Haible  <bruno@clisp.org>
41373         ldexpl tests: Avoid test failure on MSVC 9.
41374         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41375         value. Needed in order to enforce the conversion from a value greater
41376         than LDBL_MAX to Infinity.
41378 2011-11-05  Bruno Haible  <bruno@clisp.org>
41380         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41381         * modules/at-internal: New file, extracted from modules/openat.
41382         * modules/openat-h: New file.
41383         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41384         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41385         * modules/openat (Description): Add reference to POSIX function.
41386         (Files): Remove lib/openat.h, lib/openat-proc.c.
41387         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41388         intprops, unistd.
41389         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41390         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41391         gl_FCNTL_MODULE_INDICATOR.
41392         (Include): Remove unistd.h, openat.h.
41393         * modules/areadlinkat (Files): Add lib/at-func.c.
41394         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41395         openat-die, openat-h, save-cwd.
41396         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41397         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41398         openat-die, openat-h, save-cwd, unistd.
41399         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41400         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41401         openat-h, save-cwd. Remove fcntl-h, openat.
41402         * modules/fchmodat (Files): Remove lib/openat.h.
41403         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41404         openat, stdbool, unistd.
41405         * modules/fchownat (Files): Remove lib/openat.h.
41406         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41407         openat, stdbool, sys_stat.
41408         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41409         lib/openat-proc.c.
41410         (Depends-on): Add at-internal.
41411         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41412         * modules/fstatat (Files): Remove lib/openat.h.
41413         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41414         stdbool, unistd.
41415         * modules/fts (Depends-on): Add openat-h.
41416         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41417         openat.
41418         * modules/mkdirat (Files): Remove lib/openat.h.
41419         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41420         openat, stdbool, sys_stat.
41421         * modules/mkfifoat (Files): Add lib/at-func.c.
41422         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41423         openat-h, save-cwd. Remove fcntl-h, openat.
41424         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
41425         * modules/readlinkat (Files): Add lib/at-func.c.
41426         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41427         openat-h, save-cwd. Remove fcntl-h, openat.
41428         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41429         openat.
41430         * modules/selinux-at (Files): Add lib/at-func.c.
41431         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41432         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41433         * modules/symlinkat (Files): Add lib/at-func.c.
41434         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41435         openat-h, save-cwd. Remove fcntl-h, openat.
41436         * modules/unlinkat (Files): Remove lib/openat.h.
41437         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41438         stdbool.
41439         * modules/utimensat (Files): Add lib/at-func.c.
41440         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41441         openat-die, openat-h, save-cwd.
41442         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41443         * modules/fdutimensat-tests (Depends-on): Add openat.
41444         * modules/fstatat-tests (Depends-on): Add openat-h.
41445         * modules/readlinkat-tests (Depends-on): Add openat.
41446         * modules/symlinkat-tests (Depends-on): Add openat.
41448 2011-11-05  Bruno Haible  <bruno@clisp.org>
41450         openat: Include <stdbool.h>.
41451         * lib/openat.c: Include <stdbool.h>.
41453 2011-11-04  Bruno Haible  <bruno@clisp.org>
41455         fchownat, renameat, unlinkat: Fix dependencies.
41456         * modules/fchownat (Depends-on): Add fstatat.
41457         * modules/renameat (Depends-on): Likewise.
41458         * modules/unlinkat (Depends-on): Likewise.
41460 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41462         openat: remove direct dependency on dirent
41463         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41464         and hasn't been needed ever since fdopendir was split into its own
41465         module on 2009-08-31.
41466         * modules/openat (Depends-on): Remove dirent.
41468 2011-11-04  Bruno Haible  <bruno@clisp.org>
41470         renameat: Optimize code size.
41471         * modules/renameat (configure.ac): Don't compile at-func2.c if
41472         REPLACE_RENAMEAT is 1.
41474 2011-11-04  Bruno Haible  <bruno@clisp.org>
41476         openat tests: Fix file list.
41477         * modules/openat-tests (Files): Add tests/test-open.h.
41479 2011-11-04  Bruno Haible  <bruno@clisp.org>
41481         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41482         * modules/fchmodat (Depends-on): Add openat-die.
41483         * modules/fchownat (Depends-on): Likewise.
41484         * modules/linkat (Depends-on): Likewise.
41485         * modules/renameat (Depends-on): Likewise.
41486         * modules/openat (Depends-on): Add dirent.
41488 2011-11-04  Jim Meyering  <meyering@redhat.com>
41490         at-func*.c: fix comments
41491         * lib/at-func2.c: Correct/improve first-line comment.
41492         * lib/at-func.c: Correct grammar in first-line comment.
41494 2011-11-04  Bruno Haible  <bruno@clisp.org>
41496         New module 'mkdirat', split off from module 'openat'.
41497         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41498         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41499         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41500         * modules/mkdirat: New file, extracted from modules/openat.
41501         * modules/openat (Files): Remove lib/mkdirat.c.
41502         (Depends-on): Remove mkdir.
41503         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41504         (Include): Remove <sys/stat.h>.
41505         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41506         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41507         tests/test-mkdir.h.
41508         (Depends-on): Remove ignore-value.
41509         (Makefile.am): Remove rules for test-mkdirat.
41510         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41511         of module 'openat'.
41512         * NEWS: Mention the change.
41514 2011-11-04  Bruno Haible  <bruno@clisp.org>
41516         closedir: Avoid warning on mingw.
41517         * lib/closedir.c: Include <unistd.h>.
41519 2011-11-04  Bruno Haible  <bruno@clisp.org>
41521         New module 'fstatat', split off from module 'openat'.
41522         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41523         defined.
41524         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41525         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41526         gl_FUNC_FSTATAT.
41527         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41528         * modules/fstatat: New file, extracted from modules/openat.
41529         * modules/openat (Files): Remove lib/fstatat.c.
41530         (Depends-on): Remove lstat.
41531         (configure.ac): Remove AC_LIBOBJ of fstatat.
41532         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41533         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41534         tests/test-lstat.h, tests/test-stat.h.
41535         (Depends-on): Remove getcwd-lgpl.
41536         (Makefile.am): Remove rules for test-fstatat.
41537         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41538         of module 'openat'.
41539         * NEWS: Mention the change.
41540         * modules/getcwd (Depends-on): Add fstatat.
41541         * modules/linkat (Depends-on): Likewise.
41542         * modules/mkfifoat-tests (Depends-on): Likewise.
41543         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41545 2011-11-03  Bruno Haible  <bruno@clisp.org>
41547         New module 'unlinkat', split off from module 'openat'.
41548         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41549         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41550         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41551         * modules/unlinkat: New file, extracted from modules/openat. Correct
41552         the dependency conditions.
41553         * modules/openat (Files): Remove lib/unlinkat.c.
41554         (Depends-on): Remove rmdir, unlink.
41555         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41556         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41557         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41558         tests/test-rmdir.h, tests/test-unlink.h.
41559         (Depends-on): Remove unlinkdir.
41560         (Makefile.am): Remove rules for test-unlinkat.
41561         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41562         of module 'openat'.
41563         * NEWS: Mention the change.
41564         * modules/linkat-tests (Depends-on): Add unlinkat.
41565         * modules/mkfifoat-tests (Depends-on): Likewise.
41566         * modules/readlinkat-tests (Depends-on): Likewise.
41568 2011-11-02  Bruno Haible  <bruno@clisp.org>
41570         New module 'fchmodat', split off from module 'openat'.
41571         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41572         defined.
41573         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41574         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41575         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41576         * modules/fchmodat: New file, extracted from modules/openat.
41577         * modules/openat (Files): Remove lib/fchmodat.c.
41578         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41579         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41580         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41581         (Makefile.am): Remove rules for test-fchmodat.
41582         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41583         of module 'openat'.
41584         * NEWS: Mention the change.
41586 2011-11-02  Jim Meyering  <meyering@redhat.com>
41588         putenv: indent #definition of "environ" to placate cppi
41589         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41591         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41592         Git logs are often treated as immutable, because editing them
41593         changes the SHA1 checksums of all descendants.  Thus, errors in
41594         git logs tend to stay there forever.  However, when we generate
41595         a ChangeLog file -- typically for distribution -- from that git log,
41596         we can actually make corrections in the generated file.  The key
41597         lies in recording in machine-readable/applicable form the desired
41598         corrections.  See --help for description and an example.
41599         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41600         (usage): Describe it; alphabetize option descriptions.
41601         (main): Honor the new option, carefully.
41603 2011-11-01  Jim Meyering  <meyering@redhat.com>
41605         gitlog-to-changelog: avoid an infloop
41606         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41607         that ends up being empty.
41609 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41611         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41612         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41613         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41614         contains (possibly-quoted) backslashes.  This should avoid
41615         all-too-common shell bugs if COMPLICATED contains backslashes in
41616         the "wrong" places.  Reported by David Evans in
41617         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41618         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41619         because we want ASCII ranges.  Is there some reason we don't use
41620         the C locale everywhere in this script?
41621         (func_module, top level): Avoid unwanted pathname expansion when
41622         $repo_url_prefix or $repo_url_suffix_repl contain shell
41623         metacharacters like '?' and '*'.
41625 2011-11-01  Bruno Haible  <bruno@clisp.org>
41627         fchownat: Improve description.
41628         * modules/fchownat (Description): Add link to function.
41630 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41632         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41633         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41634         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41635         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41637 2011-11-01  Bruno Haible  <bruno@clisp.org>
41639         alignof: Avoid collision with stdalign module.
41640         * lib/alignof.h (alignof): Remove macro.
41641         * NEWS: Mention the change.
41642         Reported by Paul Eggert.
41644 2011-11-01  Bruno Haible  <bruno@clisp.org>
41646         New module 'fchownat', split off from module 'openat'.
41647         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41648         defined.
41649         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41650         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41651         invoke gl_FUNC_FCHOWNAT.
41652         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41653         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41654         * modules/fchownat: New file, extracted from modules/openat.
41655         * modules/openat (Files): Remove lib/fchownat.c.
41656         (Depends-on): Remove lchown.
41657         (configure.ac): Remove AC_LIBOBJ of fchownat.
41658         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41659         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41660         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41661         (Depends-on): Remove mgetgroups, usleep, stat-time.
41662         (configure.ac): Remove test for getegid.
41663         (Makefile.am): Remove rules for test-fchownat.
41664         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41665         of module 'openat'.
41666         * NEWS: Mention the change.
41668 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41670         stdalign: port better to MSVC and to Sun C 5.11
41671         This fixes some of the problems reported by Bruno Haible in
41672         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41673         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41674         shortcomings of MSVC and of Sun C 5.11.
41675         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41676         around __declspec arg.
41677         * modules/stdalign-tests (Files): Add tests/macros.h.
41678         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41679         Include macros.h, for ASSERT.
41680         (DECLARE_ALIGNED): Remove.
41681         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41682         to catch bug), and to 1 if not (simplifies the rest of the code).
41683         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41684         (CHECK_AUTO): Remove.
41685         (CHECK_ALIGNED): Check only the alignment of the static vars,
41686         since auto var alignment isn't supported by Sun C 5.11.
41687         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41688         ASSERT failures are easier to diagnose.
41690 2011-10-31  Bruno Haible  <bruno@clisp.org>
41692         doc about some IRIX 5.3 problems.
41693         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41694         on IRIX 5.3.
41695         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41696         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41697         5.3.
41698         * doc/posix-functions/grantpt.texi: Likewise.
41699         * doc/posix-functions/unlockpt.texi: Likewise.
41700         * doc/posix-functions/lgamma.texi: Likewise.
41701         * doc/posix-functions/nextafter.texi: Likewise.
41702         * doc/posix-functions/remainder.texi: Likewise.
41703         * doc/posix-functions/select.texi: Mention misplaced declaration on
41704         IRIX 5.3.
41705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41707 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41709         gitlog-to-changelog: fix git-log invocation.
41710         git-log mishandles date strings before 1970-01-01 UTC, and there is
41711         no use to specify --since=1970-01-01 by default anyway.
41712         * build-aux/gitlog-to-changelog: By default, when no --since option
41713         was given, do not specify explicit --since option to git-log.
41715 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41717         gitlog-to-changelog: new option --append-dot.
41718         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41719         first non-blank line of each commit message terminated with a dot.
41721 2011-10-30  Bruno Haible  <bruno@clisp.org>
41723         ffsl, ffsll: Avoid compilation error due to 'restrict'.
41724         * lib/ffsl.h: Include <config.h>.
41725         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
41727 2011-10-30  Jim Meyering  <meyering@redhat.com>
41729         GNUmakefile: reenable "make syntax-check" for most projects
41730         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
41731         build-aux variable", "syntax-check" would do nothing but succeed with
41732         the "No version control files detected..." diagnostic (unless you
41733         happened to override _build-aux via cfg.mk).
41734         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
41735         to precede inclusion of maint.mk.  Otherwise, these variables would
41736         be used undefined in any project that does not override the default.
41738 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
41740         gitlog-to-changelog: treat a message with only blank lines as empty.
41741         * build-aux/gitlog-to-changelog: Move the code that removes leading and
41742         trailing blank lines before the code that issues a warning about an
41743         empty commit message.
41745 2011-10-30  Jim Meyering  <meyering@redhat.com>
41747         test-parse-datetime.c: avoid new DST-related false positive test failure
41748         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
41749         based on the time/date we'll convert, not the current time.
41750         Otherwise, the moment we cross a DST boundary like today's in
41751         Europe, (CEST to CET), that offset ends up being one hour off.
41753 2011-10-27  Bruno Haible  <bruno@clisp.org>
41755         fstat: Tweak documentation.
41756         * modules/fstat (Description): More precise description.
41758 2011-10-27  Bruno Haible  <bruno@clisp.org>
41760         Update documentation regarding 'largefile' module.
41761         * doc/posix-functions/fstat.texi: Tweak wording.
41762         * doc/posix-functions/opendir.texi: Mention that the module fixes the
41763         problems with huge directories and/or small ino_t types.
41764         * doc/posix-functions/readdir.texi: Likewise.
41765         * doc/posix-functions/rewinddir.texi: Likewise.
41767 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
41769         maint.mk: don't maintain a second build-aux variable.
41770         * maint.mk (build_aux): Removed.  The maintainer-makefile module
41771         depends on GNUmakefile, which already maintains a cfg.mk
41772         overridable $(_build-aux) for projects with a non-standard
41773         build-aux directory location, although without the $(srcdir)
41774         prefix.  Use that variable consistently instead of introducing a
41775         second one.  Adjust all call sites.
41777 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41779         Add stdalign module and use it in other modules.
41780         This is based on a previous proposal by Bruno Haible
41781         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
41783         stdalign: new module
41784         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
41785         * modules/stdalign: New files.
41786         * MODULES.html.sh (c1x_core_properties): Add stdalign.
41787         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
41789         stdalign-tests: new module
41790         * modules/stdalign-tests, tests/test-stdalign.c: New files.
41792         argp: use stdalign
41793         * lib/argp-parse.c: Include <stdalign.h>.
41794         (alignof): Remove.
41795         * modules/argp (Depends-on): Add stdalign.
41797         crypto libraries: use stdalign
41798         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
41799         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
41800         Do not include <stdlib.h> twice, in md4.c.
41801         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
41802         because we are accessing a pointer's bit-pattern, not a size.
41803         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
41804         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
41805         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
41806         * modules/crypto/sha512: Likewise.
41808         sys_socket: use stdalign, not alignof
41809         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
41810         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
41812 2011-10-27  Bruno Haible  <bruno@clisp.org>
41814         raise test: Avoid a test failure on Linux/MIPS.
41815         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
41816         because 99 is a valid signal on Linux/MIPS.
41818 2011-10-27  Bruno Haible  <bruno@clisp.org>
41820         nonblocking tests: Fix test failure on Linux/MIPS.
41821         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
41822         Set to 270000.
41824 2011-10-27  Bruno Haible  <bruno@clisp.org>
41826         utimensat: Work around problem on Linux/hppa.
41827         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
41828         values.
41829         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
41831 2011-10-25  Jim Meyering  <meyering@redhat.com>
41833         maint.mk: fix a bug in sc_prohibit_stddef_without_use
41834         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
41835         after symbols like NULL, size_t, etc.
41836         Reported by Alfred M. Szmidt.
41838         maint.mk: exempt ENODATA from a syntax-check rule
41839         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
41840         from the sc_prohibit_always-defined_macros syntax-check rule.
41841         Add a comment.  See this for more details:
41842         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
41844 2011-10-23  Jim Meyering  <meyering@redhat.com>
41846         fts: close parent dir FD before returning from post-traversal fts_read
41847         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
41848         unlink A, even though an FD open on A remained.  This is suboptimal
41849         (holding a file descriptor open longer than needed), but otherwise not
41850         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
41851         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
41852         that represents a real problem: it causes the removal of A to fail
41853         with e.g., "rm: cannot remove `A': Device or resource busy"
41855         fts visits each directory twice and keeps a cache (fts_fd_ring) of
41856         directory file descriptors.  After completing the final, FTS_DP,
41857         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
41858         cache, but then proceeded to add a new FD to it via the subsequent
41859         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
41860         final file descriptor would be closed only via fts_close's call to
41861         fd_ring_clear.  Now, it is usually closed earlier, via the final
41862         FTS_DP-returning fts_read call.
41863         * lib/fts.c (restore_initial_cwd): New function, converted from
41864         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
41865         Update callers.
41866         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
41867         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
41869 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
41870             Bruno Haible  <bruno@clisp.org>
41871             Jim Meyering  <jim@meyering.net>
41873         readme-release: improve safety of release prep instructions.
41874         * README-release: Don't git pull all branches when only master
41875         is needed for the release process.
41876         Run make maintainer-clean before changing trees and merging.
41877         Don't try to run ./configure right after git pull in case files
41878         that influence the bootstrap process have changed, move the
41879         ./configure step to after running ./bootstrap.
41880         Don't bootstrap "one last time"... it's the first time!
41882 2011-10-22  Bruno Haible  <bruno@clisp.org>
41884         errno, strerror-override: Support for MSVC 10.
41885         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
41886         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
41887         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
41888         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
41889         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
41890         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
41891         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
41892         Assign values compatible with MSVC 10.
41893         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
41894         New macros.
41895         (GNULIB_defined_EWINSOCK): New macro.
41896         * lib/strerror-override.c (strerror_override): Update accordingly.
41897         * lib/strerror-override.h: Likewise.
41898         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
41899         longer equal to the corresponding errno value.
41900         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41902 2011-10-22  Bruno Haible  <bruno@clisp.org>
41904         perror: Recognize when test program crashes.
41905         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
41906         strerror, set gl_cv_func_perror_works to no.
41907         Reported by Daniel Richard G. <skunk@iskunk.org>.
41909         perror: Fix indentation.
41910         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
41912 2011-10-22  Bruno Haible  <bruno@clisp.org>
41914         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
41915         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
41916         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
41917         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
41918         functions, not as a macro.
41919         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
41920         macros.
41921         (isfinite, isinf, isnan, signbit): Check overloaded functions and
41922         absence of macro.
41923         Suggested by Eric Blake.
41924         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41926 2011-10-21  Bruno Haible  <bruno@clisp.org>
41928         relocatable-prog-wrapper: Don't leave object files behind.
41929         * build-aux/install-reloc: Re-synchronize list of .o files to be
41930         removed with list of compilation units.
41932 2011-10-20  Bruno Haible  <bruno@clisp.org>
41934         openpty, posix_openpt: Remove code duplication.
41935         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
41936         * lib/openpty.c: Include <stdlib.h>.
41937         (openpty): Use posix_openpt on all platforms except IRIX.
41938         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
41940 2011-10-20  Bruno Haible  <bruno@clisp.org>
41942         unlockpt: Detect invalid argument.
41943         * lib/unlockpt.c: Include <fcntl.h>.
41944         (unlockpt): Check whether fd is valid, using fcntl().
41945         * modules/unlockpt (Depends-on): Add fcntl-h.
41947 2011-10-20  Bruno Haible  <bruno@clisp.org>
41949         openpty: Avoid compilation error on AIX 6.1.
41950         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
41952 2011-10-20  Bruno Haible  <bruno@clisp.org>
41954         posix_openpt: Support for OpenBSD.
41955         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
41956         (posix_openpt) [OpenBSD]: New code.
41957         * lib/grantpt.c: Include <fcntl.h>.
41958         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
41959         * modules/grantpt (Depends-on): Add fcntl-h.
41961 2011-10-20  Bruno Haible  <bruno@clisp.org>
41963         posix_openpt test: Coding style.
41964         * tests/test-posix_openpt.c: Use GNU coding style.
41966 2011-10-20  Bruno Haible  <bruno@clisp.org>
41968         grantpt: Support --avoid=pt_chown.
41969         * modules/grantpt (Files): Add lib/pty-private.h.
41971 2011-10-20  Bruno Haible  <bruno@clisp.org>
41973         posix_openpt: Fix autoconf macro.
41974         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
41975         unneeded check for _getpty.
41977 2011-10-20  Bruno Haible  <bruno@clisp.org>
41979         openpty: Update comments.
41980         * lib/openpty.c: Add comments about Minix.
41982 2011-10-19  Eric Blake  <eblake@redhat.com>
41984         openpty: relax license
41985         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
41987         pt_chown: use configmake to simplify build
41988         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
41990         ptsname and others: relax license
41991         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
41992         * modules/unlockpt (License): Likewise.
41993         * modules/pt_chown (License): Likewise.
41994         * modules/ptsname (License): Likewise.
41995         * modules/ttyname_r (License): Likewise.
41997 2011-10-19  Jim Meyering  <meyering@redhat.com>
41999         posix_openpt: remove spurious #endif
42000         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42002 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42004         maint.mk: Respect $(build_aux) in web-manual rule.
42005         * top/maint.mk (web-manual): Find gen-announce script in user's
42006         $(build_aux) directory instead of hard-coding 'build-aux'.
42008 2011-10-19  Bruno Haible  <bruno@clisp.org>
42010         posix_openpt: Fix compilation error.
42011         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42012         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42013         Mention the openpty module as an alternative.
42015 2011-10-19  Bruno Haible  <bruno@clisp.org>
42017         Support for old NeXTstep 3.3 frexp().
42018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42019         execution time of the test to 5 seconds.
42020         Reported by Daniel Richard G. <skunk@iskunk.org>.
42022 2011-10-19  Bruno Haible  <bruno@clisp.org>
42024         Support for old NeXTstep 3.3 sed.
42025         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42026         part, use /.../, not \|...|. Escape periods in the header file name.
42027         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42028         Reported by Daniel Richard G. <skunk@iskunk.org>.
42030 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42032         Support for old NeXTstep 3.3 gcc.
42033         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42034         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42035         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42036         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42037         * lib/regex.h (_Restrict_arr_): Likewise.
42038         * lib/regex_internal.h (re_token_t): Likewise.
42039         * lib/regexec.c (check_node_accept_bytes): Likewise.
42040         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42042 2011-10-18  Eric Blake  <eblake@redhat.com>
42044         posix_openpt: new module
42045         * modules/posix_openpt: New module.
42046         * m4/posix_openpt.m4: New file.
42047         * lib/posix_openpt.c: Likewise.
42048         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42049         (gl_STDLIB_H_DEFAULTS): Set defaults.
42050         * modules/stdlib (Makefile.am): Substitute macros.
42051         * lib/stdlib.in.h (posix_openpt): Declare.
42052         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42053         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42054         * modules/posix_openpt-tests: New test module.
42055         * tests/test-posix_openpt.c: New test.
42057 2011-10-15  Bruno Haible  <bruno@clisp.org>
42059         xstrtoll: Fix compilation failure.
42060         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42061         from lib/strtol.c.
42062         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42063         some platforms.
42064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42066 2011-10-15  Bruno Haible  <bruno@clisp.org>
42068         vasnprintf: Optimize bit search operation.
42069         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42071         gl_DOUBLE_EXPONENT_LOCATION.
42072         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42073         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42074         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42075         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42076         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42077         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42078         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42079         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42080         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42082 2011-10-15  Bruno Haible  <bruno@clisp.org>
42084         vasnprintf: Fix comments.
42085         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42087 2011-10-14  Bruno Haible  <bruno@clisp.org>
42089         Tests for module 'integer_length_ll'.
42090         * modules/integer_length_ll-tests: New file.
42091         * tests/test-integer_length_ll.c: New file.
42093         New module 'integer_length_ll'.
42094         * lib/integer_length_ll.c: New file.
42095         * modules/integer_length_ll: New file.
42097 2011-10-14  Bruno Haible  <bruno@clisp.org>
42099         Tests for module 'integer_length_l'.
42100         * modules/integer_length_l-tests: New file.
42101         * tests/test-integer_length_l.c: New file.
42103         New module 'integer_length_l'.
42104         * lib/integer_length_l.c: New file.
42105         * modules/integer_length_l: New file.
42107 2011-10-14  Bruno Haible  <bruno@clisp.org>
42109         Tests for module 'integer_length'.
42110         * modules/integer_length-tests: New file.
42111         * tests/test-integer_length.c: New file.
42113         New module 'integer_length'.
42114         * lib/integer_length.h: New file.
42115         * lib/integer_length.c: New file.
42116         * modules/integer_length: New file.
42118 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42120         popen: Fix dependency conditions.
42121         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42123 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42125         perror: Fix autoconf test.
42126         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42127         <stdlib.h> and <string.h>.
42129 2011-10-14  Bruno Haible  <bruno@clisp.org>
42131         ffsl: Optimize on 64-bit platforms.
42132         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42133         unrolling.
42135 2011-10-13  Bruno Haible  <bruno@clisp.org>
42137         ffsl: Optimize on 32-bit platforms.
42138         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42139         use ffs() without a loop.
42141         ffsl, ffsll: Optimize for GCC.
42142         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42143         * lib/ffsl.c (GCC_BUILTIN): New macro.
42144         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42146 2011-10-13  Bruno Haible  <bruno@clisp.org>
42148         ffs, bcopy, memset: Support symbol renaming via config.h.
42149         * lib/ffs.c: Include <config.h>.
42150         * lib/bcopy.c: Likewise.
42151         * lib/memset.c: Likewise.
42153 2011-10-10  Bruno Haible  <bruno@clisp.org>
42155         atanl: Simplify for platforms where 'long double' == 'double'.
42156         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42157         alternative implementation.
42158         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42159         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42160         * modules/atanl (Depends-on): Add atan. Update conditions.
42162 2011-10-10  Bruno Haible  <bruno@clisp.org>
42164         acosl: Simplify for platforms where 'long double' == 'double'.
42165         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42166         alternative implementation.
42167         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42168         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42169         * modules/acosl (Depends-on): Add acos. Update conditions.
42171 2011-10-10  Bruno Haible  <bruno@clisp.org>
42173         asinl: Simplify for platforms where 'long double' == 'double'.
42174         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42175         alternative implementation.
42176         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42177         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42178         * modules/asinl (Depends-on): Add asin. Update conditions.
42180 2011-10-10  Bruno Haible  <bruno@clisp.org>
42182         tanl: Simplify for platforms where 'long double' == 'double'.
42183         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42184         implementation.
42185         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42186         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42187         * modules/tanl (Depends-on): Add tan. Update conditions.
42188         (configure.ac): Don't compile trigl.c if
42189         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42191 2011-10-10  Bruno Haible  <bruno@clisp.org>
42193         cosl: Simplify for platforms where 'long double' == 'double'.
42194         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42195         implementation.
42196         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42197         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42198         * modules/cosl (Depends-on): Add cos. Update conditions.
42199         (configure.ac): Don't compile sincosl.c and trigl.c if
42200         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42202 2011-10-10  Bruno Haible  <bruno@clisp.org>
42204         sinl: Simplify for platforms where 'long double' == 'double'.
42205         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42206         implementation.
42207         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42208         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42209         * modules/sinl (Depends-on): Add sin. Update conditions.
42210         (configure.ac): Don't compile sincosl.c and trigl.c if
42211         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42213 2011-10-10  Bruno Haible  <bruno@clisp.org>
42215         logl: Simplify for platforms where 'long double' == 'double'.
42216         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42217         implementation.
42218         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42219         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42220         * modules/logl (Depends-on): Add log. Update conditions.
42222 2011-10-10  Bruno Haible  <bruno@clisp.org>
42224         expl: Simplify for platforms where 'long double' == 'double'.
42225         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42226         implementation.
42227         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42228         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42229         * modules/expl (Depends-on): Add exp. Update conditions.
42231 2011-10-10  Bruno Haible  <bruno@clisp.org>
42233         sqrtl: Simplify for platforms where 'long double' == 'double'.
42234         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42235         alternative implementation.
42236         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42237         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42238         * modules/sqrtl (Depends-on): Update conditions.
42240 2011-10-10  Bruno Haible  <bruno@clisp.org>
42242         ldexpl: Simplify for platforms where 'long double' == 'double'.
42243         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42244         alternative implementation.
42245         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42246         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42247         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42249 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42251         ffsll: set correct witness
42252         * modules/ffsll (configure.ac): Fix typo.
42254 2011-10-10  Bruno Haible  <bruno@clisp.org>
42256         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42257         * lib/printf-frexpl.c: Include <config.h>.
42258         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42259         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42260         second time.
42261         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42262         gl_LONG_DOUBLE_VS_DOUBLE.
42263         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42264         conditions.
42266 2011-10-10  Bruno Haible  <bruno@clisp.org>
42268         frexpl: Simplify for platforms where 'long double' == 'double'.
42269         * lib/frexpl.c: Include <config.h>.
42270         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42271         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42272         time.
42273         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42274         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42275         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42276         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42277         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42278         conditions.
42280 2011-10-10  Jim Meyering  <meyering@redhat.com>
42282         test-renameat: don't leave behind a temporary file
42283         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42284           ERROR: files left in build directory after distclean:
42285           ./gltests/test-renameat.too
42286           make[1]: *** [distcleancheck] Error 1
42287         Reported by Tom G. Christensen.
42289 2011-10-09  Bruno Haible  <bruno@clisp.org>
42291         rint: Determine RINT_LIBM correctly on AIX 7.
42292         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42293         directly, not only through a function pointer. Also accept an optional
42294         4th argument with extra code.
42295         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42296         rintf() call by gcc when optimizing.
42298         mathfunc.m4: Refactor.
42299         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42300         m4 variable.
42302 2011-10-09  Bruno Haible  <bruno@clisp.org>
42304         rintl: Simplify for platforms where 'long double' == 'double'.
42305         * lib/rintl.c: Include <config.h>.
42306         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42307         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42308         time.
42309         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42310         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42311         * modules/rintl (Depends-on): Add rint. Update conditions.
42313 2011-10-09  Bruno Haible  <bruno@clisp.org>
42315         roundl: Simplify for platforms where 'long double' == 'double'.
42316         * lib/roundl.c: Include <config.h>.
42317         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42318         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42319         time.
42320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42321         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42322         * modules/roundl (Depends-on): Add round. Update conditions.
42324 2011-10-09  Bruno Haible  <bruno@clisp.org>
42326         truncl: Simplify for platforms where 'long double' == 'double'.
42327         * lib/truncl.c: Include <config.h>.
42328         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42329         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42330         time.
42331         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42332         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42333         * modules/truncl (Depends-on): Add trunc. Update conditions.
42335 2011-10-09  Bruno Haible  <bruno@clisp.org>
42337         ceill: Simplify for platforms where 'long double' == 'double'.
42338         * lib/ceill.c: Include <config.h>.
42339         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42340         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42341         time.
42342         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42343         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42344         * modules/ceill (Depends-on): Add ceil. Update conditions.
42346 2011-10-09  Bruno Haible  <bruno@clisp.org>
42348         floorl: Simplify for platforms where 'long double' == 'double'.
42349         * lib/floorl.c: Include <config.h>.
42350         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42351         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42352         time.
42353         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42354         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42355         * modules/floorl (Depends-on): Add floor. Update conditions.
42357 2011-10-09  Bruno Haible  <bruno@clisp.org>
42359         rint: Fix ordering constraints.
42360         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42361         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42362         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42364 2011-10-09  Bruno Haible  <bruno@clisp.org>
42366         copysignl: Simplify for platforms where 'long double' == 'double'.
42367         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42368         alternative.
42369         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42370         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42371         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42373 2011-10-09  Bruno Haible  <bruno@clisp.org>
42375         Tests for module 'rintl'.
42376         * modules/rintl-tests: New file.
42377         * tests/test-rintl.c: New file.
42379         New module 'rintl'.
42380         * lib/math.in.h (rintl): New declaration.
42381         * lib/rintl.c: New file.
42382         * m4/rintl.m4: New file.
42383         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42385         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42386         * modules/rintl: New file.
42387         * tests/test-math-c++.cc: Check the declaration of rintl.
42388         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42389         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42390         * doc/posix-functions/rintl.texi: Mention the new module.
42392 2011-10-09  Bruno Haible  <bruno@clisp.org>
42394         Tests for module 'rintf'.
42395         * modules/rintf-tests: New file.
42396         * tests/test-rintf.c: New file.
42398         New module 'rintf'.
42399         * lib/math.in.h (rintf): New declaration.
42400         * lib/rintf.c: New file.
42401         * m4/rintf.m4: New file.
42402         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42404         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42405         * modules/rintf: New file.
42406         * tests/test-math-c++.cc: Check the declaration of rintf.
42407         * doc/posix-functions/rintf.texi: Mention the new module.
42409 2011-10-09  Bruno Haible  <bruno@clisp.org>
42411         rint: Support for MSVC.
42412         * lib/math.in.h (rint): New declaration.
42413         * lib/rint.c: New file.
42414         * m4/rint.m4: New file.
42415         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42417         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42418         * modules/rint (Description): Fix.
42419         (Files): Add lib/rint.c, m4/rint.m4.
42420         (Depends-on): Add math.
42421         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42422         gl_MATH_MODULE_INDICATOR.
42423         * tests/test-math-c++.cc: Check the declaration of rint.
42424         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42425         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42426         * doc/posix-functions/rint.texi: Mention the replacement provided by
42427         the module.
42429         rint tests: More tests.
42430         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42431         minus-zero.h, infinity.h, nan.h.
42432         (main): Skip the test if the current rounding mode is not standard. Add
42433         tests for negative numbers, minus zero, infinity, NaN.
42434         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42435         tests/nan.h.
42436         (Depends-on): Add isnand-nolibm.
42438 2011-10-09  Bruno Haible  <bruno@clisp.org>
42440         Tests for module 'copysignl'.
42441         * modules/copysignl-tests: New file.
42442         * tests/test-copysignl.c: New file.
42444         New module 'copysignl'.
42445         * lib/math.in.h (copysignl): New declaration.
42446         * lib/copysignl.c: New file.
42447         * m4/copysignl.m4: New file.
42448         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42450         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42451         HAVE_COPYSIGNL.
42452         * modules/copysignl: New file.
42453         * tests/test-math-c++.cc: Check the declaration of copysignl.
42454         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42455         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42456         * doc/posix-functions/copysignl.texi: Mention the new module.
42458 2011-10-09  Bruno Haible  <bruno@clisp.org>
42460         Tests for module 'copysignf'.
42461         * modules/copysignf-tests: New file.
42462         * tests/test-copysignf.c: New file.
42464         New module 'copysignf'.
42465         * lib/math.in.h (copysignf): New declaration.
42466         * lib/copysignf.c: New file.
42467         * m4/copysignf.m4: New file.
42468         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42470         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42471         HAVE_COPYSIGNF.
42472         * modules/copysignf: New file.
42473         * tests/test-math-c++.cc: Check the declaration of copysignf.
42474         * doc/posix-functions/copysignf.texi: Mention the new module.
42476 2011-10-09  Bruno Haible  <bruno@clisp.org>
42478         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42479         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42480         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42481         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42482         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42483         gl_SIGNAL_H_DEFAULTS.
42485 2011-10-09  Bruno Haible  <bruno@clisp.org>
42487         poll: Make macro safer.
42488         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42489         ac_cv_header_poll_h is not set.
42491 2011-10-09  Bruno Haible  <bruno@clisp.org>
42493         copysign: Provide replacement.
42494         * lib/math.in.h (copysign): New declaration.
42495         * lib/copysign.c: New file.
42496         * m4/copysign.m4: New file.
42497         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42499         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42500         HAVE_COPYSIGN.
42501         * modules/copysign (Description): Clarify.
42502         (Files): Add lib/copysign.c, m4/copysign.m4.
42503         (Depends-on): Add math, signbit.
42504         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42505         gl_MATH_MODULE_INDICATOR.
42506         * tests/test-math-c++.cc: Check the declaration of copysign.
42507         * doc/posix-functions/copysign.texi: Mention the effects of the module
42508         on Minix and MSVC.
42510 2011-10-09  Bruno Haible  <bruno@clisp.org>
42512         isinf: Ensure macro on AIX 5.1.
42513         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42514         macro.
42515         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42517 2011-10-09  Bruno Haible  <bruno@clisp.org>
42519         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42520         * modules/snprintf-posix-tests (configure.ac): Require
42521         gl_LONG_DOUBLE_VS_DOUBLE.
42522         * modules/sprintf-posix-tests (configure.ac): Likewise.
42523         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42524         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42525         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42526         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42527         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42528         tests on platforms where 'long double' is the same as 'double'.
42529         * tests/test-sprintf-posix.h (test_function): Likewise.
42530         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42531         * tests/test-vasprintf-posix.c (test_function): Likewise.
42533         *printf: Fix for platforms where 'long double' == 'double'.
42534         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42535         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42536         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42537         * modules/fprintf-posix (Files): Likewise.
42538         * modules/obstack-printf-posix (Files): Likewise.
42539         * modules/snprintf-posix (Files): Likewise.
42540         * modules/sprintf-posix (Files): Likewise.
42541         * modules/vasnprintf (Files): Likewise.
42542         * modules/vasnprintf-posix (Files): Likewise.
42543         * modules/vasprintf-posix (Files): Likewise.
42544         * modules/vdprintf-posix (Files): Likewise.
42545         * modules/vfprintf-posix (Files): Likewise.
42546         * modules/vsnprintf-posix (Files): Likewise.
42547         * modules/vsprintf-posix (Files): Likewise.
42548         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42549         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42550         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42551         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42552         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42553         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42554         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42556         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42557         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42558         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42559         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42560         'long double'.
42561         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42563         isinf: Fix for platforms where 'long double' == 'double'.
42564         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42565         Don't blindly assume 80-bit 'long double'.
42567         isfinite: Fix for platforms where 'long double' == 'double'.
42568         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42569         Don't blindly assume 80-bit 'long double'.
42571         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42572         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42573         * modules/isfinite-tests (configure.ac): Require
42574         gl_LONG_DOUBLE_VS_DOUBLE.
42575         * modules/isinf-tests (configure.ac): Likewise.
42576         * modules/isnan-tests (configure.ac): Likewise.
42577         * modules/isnanl-tests (configure.ac): Likewise.
42578         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42579         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42580         tests on platforms where 'long double' is the same as 'double'.
42581         * tests/test-isinf.c (test_isinfl): Likewise.
42582         * tests/test-isnan.c (test_long_double): Likewise.
42583         * tests/test-isnanl.h (main): Likewise.
42585 2011-10-08  Bruno Haible  <bruno@clisp.org>
42587         Tests for module 'tanhf'.
42588         * modules/tanhf-tests: New file.
42589         * tests/test-tanhf.c: New file.
42591         New module 'tanhf'.
42592         * lib/math.in.h (tanhf): New declaration.
42593         * lib/tanhf.c: New file.
42594         * m4/tanhf.m4: New file.
42595         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42597         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42598         * modules/tanhf: New file.
42599         * tests/test-math-c++.cc: Check the declaration of tanhf.
42600         * doc/posix-functions/tanhf.texi: Mention the new module.
42602         tanh: Use a .m4 file.
42603         * m4/tanh.m4: New file.
42604         * modules/tanh (Files): Add it.
42605         (configure.ac): Just invoke gl_FUNC_TANH.
42607 2011-10-08  Bruno Haible  <bruno@clisp.org>
42609         Tests for module 'coshf'.
42610         * modules/coshf-tests: New file.
42611         * tests/test-coshf.c: New file.
42613         New module 'coshf'.
42614         * lib/math.in.h (coshf): New declaration.
42615         * lib/coshf.c: New file.
42616         * m4/coshf.m4: New file.
42617         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42619         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42620         * modules/coshf: New file.
42621         * tests/test-math-c++.cc: Check the declaration of coshf.
42622         * doc/posix-functions/coshf.texi: Mention the new module.
42624         cosh: Use a .m4 file.
42625         * m4/cosh.m4: New file.
42626         * modules/cosh (Files): Add it.
42627         (configure.ac): Just invoke gl_FUNC_COSH.
42629 2011-10-08  Bruno Haible  <bruno@clisp.org>
42631         Tests for module 'sinhf'.
42632         * modules/sinhf-tests: New file.
42633         * tests/test-sinhf.c: New file.
42635         New module 'sinhf'.
42636         * lib/math.in.h (sinhf): New declaration.
42637         * lib/sinhf.c: New file.
42638         * m4/sinhf.m4: New file.
42639         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42641         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42642         * modules/sinhf: New file.
42643         * tests/test-math-c++.cc: Check the declaration of sinhf.
42644         * doc/posix-functions/sinhf.texi: Mention the new module.
42646         sinh: Use a .m4 file.
42647         * m4/sinh.m4: New file.
42648         * modules/sinh (Files): Add it.
42649         (configure.ac): Just invoke gl_FUNC_SINH.
42651 2011-10-08  Bruno Haible  <bruno@clisp.org>
42653         Tests for module 'atan2f'.
42654         * modules/atan2f-tests: New file.
42655         * tests/test-atan2f.c: New file.
42657         New module 'atan2f'.
42658         * lib/math.in.h (atan2f): New declaration.
42659         * lib/atan2f.c: New file.
42660         * m4/atan2f.m4: New file.
42661         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42663         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42664         * modules/atan2f: New file.
42665         * tests/test-math-c++.cc: Check the declaration of atan2f.
42666         * doc/posix-functions/atan2f.texi: Mention the new module.
42668         atan2: Use a .m4 file.
42669         * m4/atan2.m4: New file.
42670         * modules/atan2 (Files): Add it.
42671         (configure.ac): Just invoke gl_FUNC_ATAN2.
42673 2011-10-08  Bruno Haible  <bruno@clisp.org>
42675         Tests for module 'atanf'.
42676         * modules/atanf-tests: New file.
42677         * tests/test-atanf.c: New file.
42679         New module 'atanf'.
42680         * lib/math.in.h (atanf): New declaration.
42681         * lib/atanf.c: New file.
42682         * m4/atanf.m4: New file.
42683         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42685         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42686         * modules/atanf: New file.
42687         * tests/test-math-c++.cc: Check the declaration of atanf.
42688         * doc/posix-functions/atanf.texi: Mention the new module.
42690         atan: Use a .m4 file.
42691         * m4/atan.m4: New file.
42692         * modules/atan (Files): Add it.
42693         (configure.ac): Just invoke gl_FUNC_ATAN.
42695 2011-10-08  Bruno Haible  <bruno@clisp.org>
42697         Tests for module 'acosf'.
42698         * modules/acosf-tests: New file.
42699         * tests/test-acosf.c: New file.
42701         New module 'acosf'.
42702         * lib/math.in.h (acosf): New declaration.
42703         * lib/acosf.c: New file.
42704         * m4/acosf.m4: New file.
42705         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42707         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42708         * modules/acosf: New file.
42709         * tests/test-math-c++.cc: Check the declaration of acosf.
42710         * doc/posix-functions/acosf.texi: Mention the new module.
42712         acos: Use a .m4 file.
42713         * m4/acos.m4: New file.
42714         * modules/acos (Files): Add it.
42715         (configure.ac): Just invoke gl_FUNC_ACOS.
42717 2011-10-08  Bruno Haible  <bruno@clisp.org>
42719         Tests for module 'asinf'.
42720         * modules/asinf-tests: New file.
42721         * tests/test-asinf.c: New file.
42723         New module 'asinf'.
42724         * lib/math.in.h (asinf): New declaration.
42725         * lib/asinf.c: New file.
42726         * m4/asinf.m4: New file.
42727         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
42728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
42729         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
42730         * modules/asinf: New file.
42731         * tests/test-math-c++.cc: Check the declaration of asinf.
42732         * doc/posix-functions/asinf.texi: Mention the new module.
42734         asin: Use a .m4 file.
42735         * m4/asin.m4: New file.
42736         * modules/asin (Files): Add it.
42737         (configure.ac): Just invoke gl_FUNC_ASIN.
42739 2011-10-08  Bruno Haible  <bruno@clisp.org>
42741         Tests for module 'tanf'.
42742         * modules/tanf-tests: New file.
42743         * tests/test-tanf.c: New file.
42745         New module 'tanf'.
42746         * lib/math.in.h (tanf): New declaration.
42747         * lib/tanf.c: New file.
42748         * m4/tanf.m4: New file.
42749         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
42750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
42751         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
42752         * modules/tanf: New file.
42753         * tests/test-math-c++.cc: Check the declaration of tanf.
42754         * doc/posix-functions/tanf.texi: Mention the new module.
42756         tan: Use a .m4 file.
42757         * m4/tan.m4: New file.
42758         * modules/tan (Files): Add it.
42759         (configure.ac): Just invoke gl_FUNC_TAN.
42761 2011-10-08  Bruno Haible  <bruno@clisp.org>
42763         Tests for module 'cosf'.
42764         * modules/cosf-tests: New file.
42765         * tests/test-cosf.c: New file.
42767         New module 'cosf'.
42768         * lib/math.in.h (cosf): New declaration.
42769         * lib/cosf.c: New file.
42770         * m4/cosf.m4: New file.
42771         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
42772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
42773         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
42774         * modules/cosf: New file.
42775         * tests/test-math-c++.cc: Check the declaration of cosf.
42776         * doc/posix-functions/cosf.texi: Mention the new module.
42778         cos: Use a .m4 file.
42779         * m4/cos.m4: New file.
42780         * modules/cos (Files): Add it.
42781         (configure.ac): Just invoke gl_FUNC_COS.
42783 2011-10-08  Bruno Haible  <bruno@clisp.org>
42785         Tests for module 'sinf'.
42786         * modules/sinf-tests: New file.
42787         * tests/test-sinf.c: New file.
42789         New module 'sinf'.
42790         * lib/math.in.h (sinf): New declaration.
42791         * lib/sinf.c: New file.
42792         * m4/sinf.m4: New file.
42793         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
42794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
42795         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
42796         * modules/sinf: New file.
42797         * tests/test-math-c++.cc: Check the declaration of sinf.
42798         * doc/posix-functions/sinf.texi: Mention the new module.
42800         sin: Use a .m4 file.
42801         * m4/sin.m4: New file.
42802         * modules/sin (Files): Add it.
42803         (configure.ac): Just invoke gl_FUNC_SIN.
42805 2011-10-08  Bruno Haible  <bruno@clisp.org>
42807         Tests for module 'powf'.
42808         * modules/powf-tests: New file.
42809         * tests/test-powf.c: New file.
42811         New module 'powf'.
42812         * lib/math.in.h (powf): New declaration.
42813         * lib/powf.c: New file.
42814         * m4/powf.m4: New file.
42815         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
42816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
42817         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
42818         * modules/powf: New file.
42819         * tests/test-math-c++.cc: Check the declaration of powf.
42820         * doc/posix-functions/powf.texi: Mention the new module.
42822         pow: Use a .m4 file.
42823         * m4/pow.m4: New file.
42824         * modules/pow (Files): Add it.
42825         (configure.ac): Just invoke gl_FUNC_POW.
42827 2011-10-08  Bruno Haible  <bruno@clisp.org>
42829         Tests for module 'log10f'.
42830         * modules/log10f-tests: New file.
42831         * tests/test-log10f.c: New file.
42833         New module 'log10f'.
42834         * lib/math.in.h (log10f): New declaration.
42835         * lib/log10f.c: New file.
42836         * m4/log10f.m4: New file.
42837         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
42838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
42839         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
42840         * modules/log10f: New file.
42841         * tests/test-math-c++.cc: Check the declaration of log10f.
42842         * doc/posix-functions/log10f.texi: Mention the new module.
42844         log10: Use a .m4 file.
42845         * m4/log10.m4: New file.
42846         * modules/log10 (Files): Add it.
42847         (configure.ac): Just invoke gl_FUNC_LOG10.
42849 2011-10-08  Bruno Haible  <bruno@clisp.org>
42851         Tests for module 'logf'.
42852         * modules/logf-tests: New file.
42853         * tests/test-logf.c: New file.
42855         New module 'logf'.
42856         * lib/math.in.h (logf): New declaration.
42857         * lib/logf.c: New file.
42858         * m4/logf.m4: New file.
42859         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
42860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
42861         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
42862         * modules/logf: New file.
42863         * tests/test-math-c++.cc: Check the declaration of logf.
42864         * doc/posix-functions/logf.texi: Mention the new module.
42866         log: Use a .m4 file.
42867         * m4/log.m4: New file.
42868         * modules/log (Files): Add it.
42869         (configure.ac): Just invoke gl_FUNC_LOG.
42871 2011-10-08  Bruno Haible  <bruno@clisp.org>
42873         Tests for module 'expf'.
42874         * modules/expf-tests: New file.
42875         * tests/test-expf.c: New file.
42877         New module 'expf'.
42878         * lib/math.in.h (expf): New declaration.
42879         * lib/expf.c: New file.
42880         * m4/expf.m4: New file.
42881         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
42882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
42883         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
42884         * modules/expf: New file.
42885         * tests/test-math-c++.cc: Check the declaration of expf.
42886         * doc/posix-functions/expf.texi: Mention the new module.
42888         exp: Use a .m4 file.
42889         * m4/exp.m4: New file.
42890         * modules/exp (Files): Add it.
42891         (configure.ac): Just invoke gl_FUNC_EXP.
42893 2011-10-08  Bruno Haible  <bruno@clisp.org>
42895         Tests for module 'sqrtf'.
42896         * modules/sqrtf-tests: New file.
42897         * tests/test-sqrtf.c: New file.
42899         New module 'sqrtf'.
42900         * lib/math.in.h (sqrtf): New declaration.
42901         * lib/sqrtf.c: New file.
42902         * m4/sqrtf.m4: New file.
42903         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
42904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
42905         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
42906         * modules/sqrtf: New file.
42907         * tests/test-math-c++.cc: Check the declaration of sqrtf.
42908         * doc/posix-functions/sqrtf.texi: Mention the new module.
42910 2011-10-08  Bruno Haible  <bruno@clisp.org>
42912         Tests: Avoid link failures w.r.t. libintl.
42913         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
42914         $(LIBINTL).
42915         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
42916         $(LIBINTL).
42917         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
42918         against $(LIBINTL).
42919         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
42920         $(LIBINTL).
42921         * modules/openat-tests (Makefile.am): Link test-fchmodat against
42922         $(LIBINTL).
42923         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
42925 2011-10-08  Bruno Haible  <bruno@clisp.org>
42927         pow tests: Defeat compiler optimizations.
42928         * tests/test-pow.c (main): Assign arguments to x and y before use.
42930 2011-10-08  Bruno Haible  <bruno@clisp.org>
42932         gnulib-tool: Improve last commit.
42933         * gnulib-tool (func_modules_transitive_closure): Simplify code.
42934         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
42935         ignore dependencies that are not among the modules list.
42937 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
42939         gnulib-tool: don't follow dependencies to avoided modules
42940         This fixes a bug that is related to the previous one.
42941         * gnulib-tool (func_modules_transitive_closure)
42942         (func_emit_autoconf_snippets):
42943         Check whether a dependency is acceptable before using it.
42944         (--extract-dependencies): Report an error if --avoid is also used,
42945         since this combination of options is not yet supported.
42947         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
42948         Problem reported by Peter Dyballa in
42949         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
42950         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
42951         when echoing "$condition".
42953 2011-10-07  Bruno Haible  <bruno@clisp.org>
42955         Fix documentation about math functions on MacOS X.
42956         * doc/posix-functions/exp2.texi: Don't say the function is missing on
42957         MacOS X 10.5.
42958         * doc/posix-functions/fdim.texi: Likewise.
42959         * doc/posix-functions/feclearexcept.texi: Likewise.
42960         * doc/posix-functions/fegetenv.texi: Likewise.
42961         * doc/posix-functions/fegetround.texi: Likewise.
42962         * doc/posix-functions/feholdexcept.texi: Likewise.
42963         * doc/posix-functions/feraiseexcept.texi: Likewise.
42964         * doc/posix-functions/fesetenv.texi: Likewise.
42965         * doc/posix-functions/fesetround.texi: Likewise.
42966         * doc/posix-functions/fetestexcept.texi: Likewise.
42967         * doc/posix-functions/feupdateenv.texi: Likewise.
42968         * doc/posix-functions/fmax.texi: Likewise.
42969         * doc/posix-functions/fmin.texi: Likewise.
42970         * doc/posix-functions/log2.texi: Likewise.
42971         * doc/posix-functions/modff.texi: Likewise.
42972         * doc/posix-functions/nan.texi: Likewise.
42973         * doc/posix-functions/nanf.texi: Likewise.
42974         * doc/posix-functions/nextafterf.texi: Likewise.
42975         * doc/posix-functions/remquo.texi: Likewise.
42977 2011-10-07  Bruno Haible  <bruno@clisp.org>
42979         modff: Drop assumption about library that defines modff.
42980         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
42981         AC_CHECK_FUNCS.
42982         * modules/modff (Files): Add m4/mathfunc.m4.
42984 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
42986         raise tests: Avoid a GCC warning.
42987         * tests/test-raise.c (handler): Use _Noreturn.
42989 2011-10-07  Bruno Haible  <bruno@clisp.org>
42991         Tests for module 'ldexpf'.
42992         * modules/ldexpf-tests: New file.
42993         * tests/test-ldexpf.c: New file.
42995         New module 'ldexpf'.
42996         * lib/math.in.h (ldexpf): New declaration.
42997         * lib/ldexpf.c: New file.
42998         * m4/ldexpf.m4: New file.
42999         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43001         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43002         * modules/ldexpf: New file.
43003         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43004         * doc/posix-functions/ldexpf.texi: Mention the new module.
43006 2011-10-06  Bruno Haible  <bruno@clisp.org>
43008         frexpf: Work around problems on IRIX and mingw.
43009         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43011         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43012         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43013         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43014         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43015         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43017 2011-10-06  Bruno Haible  <bruno@clisp.org>
43019         fabsf: Drop assumption about library that defines fabsf.
43020         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43021         AC_CHECK_FUNCS.
43022         * modules/fabsf (Files): Add m4/mathfunc.m4.
43024 2011-10-06  Bruno Haible  <bruno@clisp.org>
43026         frexpf: Drop assumption about library that defines frexpf.
43027         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43028         'int *', 'float *', 'long double *', 'float', 'long double'.
43029         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43030         AC_CHECK_FUNCS.
43031         * modules/frexpf (Files): Add m4/mathfunc.m4.
43033         Tests for module 'frexpf'.
43034         * modules/frexpf-tests: New file.
43035         * tests/test-frexpf.c: New file.
43037         New module 'frexpf'.
43038         * lib/math.in.h (frexpf): New declaration.
43039         * lib/frexpf.c: New file.
43040         * m4/frexpf.m4: New file.
43041         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43043         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43044         * modules/frexpf: New file.
43045         * tests/test-math-c++.cc: Check the declaration of frexpf.
43046         * doc/posix-functions/frexpf.texi: Mention the new module.
43048 2011-10-06  Bruno Haible  <bruno@clisp.org>
43050         math: Sort function declarations of math.in.h.
43051         * lib/math.in.h (frexp, logb): Move declarations.
43053 2011-10-05  Bruno Haible  <bruno@clisp.org>
43055         Tests for module 'modff'.
43056         * modules/modff-tests: New file.
43057         * tests/test-modff.c: New file.
43059         New module 'modff'.
43060         * lib/math.in.h (modff): New declaration.
43061         * lib/modff.c: New file.
43062         * m4/modff.m4: New file.
43063         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43065         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43066         * modules/modff: New file.
43067         * tests/test-math-c++.cc: Check the declaration of modff.
43068         * doc/posix-functions/modff.texi: Mention the new module.
43070         modf tests: Make test sharper.
43071         * tests/test-modf.c (main): Strengthen upper bound.
43073         modf: Use a .m4 file.
43074         * m4/modf.m4: New file.
43075         * modules/modf (Files): Add it.
43076         (configure.ac): Just invoke gl_FUNC_MODF.
43078 2011-10-05  Bruno Haible  <bruno@clisp.org>
43080         Tests for module 'fmodf'.
43081         * modules/fmodf-tests: New file.
43082         * tests/test-fmodf.c: New file.
43084         New module 'fmodf'.
43085         * lib/math.in.h (fmodf): New declaration.
43086         * lib/fmodf.c: New file.
43087         * m4/fmodf.m4: New file.
43088         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43090         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43091         * modules/fmodf: New file.
43092         * tests/test-math-c++.cc: Check the declaration of fmodf.
43093         * doc/posix-functions/fmodf.texi: Mention the new module.
43095         fmod: Use a .m4 file.
43096         * m4/fmod.m4: New file.
43097         * modules/fmod (Files): Add it.
43098         (configure.ac): Just invoke gl_FUNC_FMOD.
43100 2011-10-05  Bruno Haible  <bruno@clisp.org>
43102         Tests for module 'fabsf'.
43103         * modules/fabsf-tests: New file.
43104         * tests/test-fabsf.c: New file.
43106         New module 'fabsf'.
43107         * lib/math.in.h (fabsf): New declaration.
43108         * lib/fabsf.c: New file.
43109         * m4/fabsf.m4: New file.
43110         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43112         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43113         * modules/fabsf: New file.
43114         * tests/test-math-c++.cc: Check the declaration of fabsf.
43115         * doc/posix-functions/fabsf.texi: Mention the new module.
43117         fabs: Use a .m4 file.
43118         * m4/fabs.m4: New file.
43119         * modules/fabs (Files): Add it.
43120         (configure.ac): Just invoke gl_FUNC_FABS.
43122 2011-10-05  Jim Meyering  <meyering@redhat.com>
43124         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43125         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43126         ls -lL regression introduced in coreutils-8.12, it does so at the
43127         cost of an additional stat call in the common case.  Besides, now
43128         that the kernel change that prompted commit 95f7c57f has been reverted
43129         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43130         we have no use for commit 95f7c57f, "file-has-acl: use
43131         acl_extended_file_nofollow if available".
43133 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43135         file-has-acl: revert unintended change in behavior of ls -L
43136         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43137         derived from...
43138         (file_has_acl): ...code here.  Call it.
43139         This problem was introduced with 2011-07-22 commit 95f7c57f,
43140         "file-has-acl: use acl_extended_file_nofollow if available".
43141         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43143 2011-10-03  Bruno Haible  <bruno@clisp.org>
43145         poll: Avoid link errors on MSVC.
43146         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43147         * modules/poll (Depends-on): Add sockets.
43148         (Link): New section.
43149         * NEWS: Mention the change.
43150         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43151         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43152         $(LIB_POLL) instead of $(LIBSOCKET).
43154 2011-10-03  Bruno Haible  <bruno@clisp.org>
43156         sys_select tests: Fix link error on MSVC 9.
43157         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43158         with $(LIB_SELECT) instead of $(LIBSOCKET).
43160 2011-10-03  Bruno Haible  <bruno@clisp.org>
43162         sys_select: Fix compilation error on mingw.
43163         * lib/sys_select.in.h: On native Windows, include <io.h>.
43165 2011-10-03  Bruno Haible  <bruno@clisp.org>
43167         wmemset: Support for MSVC.
43168         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43169         whether wmemset() exists.
43171 2011-10-03  Bruno Haible  <bruno@clisp.org>
43173         wmemmove: Support for MSVC.
43174         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43175         whether wmemmove() exists.
43177 2011-10-03  Bruno Haible  <bruno@clisp.org>
43179         wmemcpy: Support for MSVC.
43180         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43181         whether wmemcpy() exists.
43183 2011-10-03  Bruno Haible  <bruno@clisp.org>
43185         wmemcmp: Support for MSVC.
43186         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43187         whether wmemcmp() exists.
43189 2011-10-03  Bruno Haible  <bruno@clisp.org>
43191         wmemchr: Support for MSVC.
43192         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43193         whether wmemchr() exists.
43195 2011-10-03  Bruno Haible  <bruno@clisp.org>
43197         glthread/*, strsignal: Support for MSVC.
43198         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43199         including <winsock.h> on MSVC 9.
43200         * lib/glthread/lock.h: Likewise.
43201         * lib/glthread/thread.h: Likewise.
43202         * lib/glthread/tls.h: Likewise.
43203         * lib/glthread/yield.h: Likewise.
43204         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43205         if HAVE_UNISTD_H is false.
43206         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43208 2011-10-03  Bruno Haible  <bruno@clisp.org>
43210         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43211         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43212         Set to 100000.
43214 2011-10-03  Bruno Haible  <bruno@clisp.org>
43216         acl: Fix specification.
43217         * lib/file-has-acl.c (file_has_acl): Fix specification.
43219 2011-10-03  Bruno Haible  <bruno@clisp.org>
43221         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43222         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43223         (compute_curr_prefix, shared_library_fullname,
43224         find_shared_library_fullname, get_shared_library_fullname, relocate):
43225         Use it together with PIC && INSTALLDIR.
43226         Reported by <jojelino@gmail.com>
43227         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43229 2011-10-01  Jim Meyering  <meyering@redhat.com>
43231         maint.mk: adjust a release-related rule not to require use of gzip
43232         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43233         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43234         projects that build only .tar.xz files.  Also fix an erroneous test.
43236         test-linkat: don't leave behind a temporary file
43237         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43238         Otherwise, coreutils' "make distcheck" would fail with this:
43239           Only in /c/cu/tests/torture/coreutils/test/\
43240             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43241           make[2]: *** [my-distcheck] Error 1
43243         float, math: add omitted file
43244         * lib/itold.c: Add file, required for yesterday's float change.
43246 2011-10-01  Bruno Haible  <bruno@clisp.org>
43248         isinf: Fix for OpenBSD/x86.
43249         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43250         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43251         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43253 2011-10-01  Bruno Haible  <bruno@clisp.org>
43255         isfinite: Fix syntax error in configure test.
43256         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43258         isfinite: Fix typo.
43259         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43260         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43262 2011-10-01  Bruno Haible  <bruno@clisp.org>
43264         nonblocking tests: Fix test failure on Linux/IA-64.
43265         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43266         Set to 270000.
43268 2011-10-01  Bruno Haible  <bruno@clisp.org>
43270         mkfifoat tests: Fix a test failure on mingw.
43271         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43272         with error ENOSYS.
43274 2011-09-30  Bruno Haible  <bruno@clisp.org>
43276         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43277         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43278         'long double'. Set REPLACE_ITOLD.
43279         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43280         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43281         * lib/itold.c: New file.
43282         * modules/float (Files): Add lib/itold.c.
43283         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43284         (Makefile.am): Substitute REPLACE_ITOLD.
43285         * modules/math (Depends-on): Add float.
43286         (Makefile.am): Substitute REPLACE_ITOLD.
43287         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43288         * doc/posix-headers/math.texi: Likewise.
43289         * doc/posix-functions/logl.texi: Likewise.
43291 2011-09-30  Bruno Haible  <bruno@clisp.org>
43293         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43294         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43295         Set to 140000.
43297 2011-09-30  Bruno Haible  <bruno@clisp.org>
43299         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43300         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43301         invocation, say "right after AC_PROG_CC_STDC", not "right after
43302         AC_PROG_CC".
43303         Reported by Gary V. Vaughan <gary@gnu.org>.
43305 2011-09-30  Bruno Haible  <bruno@clisp.org>
43307         Centralize C99 requirement.
43308         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43309         * modules/stdarg (configure.ac-early): Invoke it instead of
43310         AC_PROG_CC_STDC.
43311         Reported by Gary V. Vaughan and Paul Eggert.
43313 2011-09-29  Bruno Haible  <bruno@clisp.org>
43315         float: Fix LDBL_MAX value on Linux/PowerPC.
43316         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43317         on Linux/PowerPC.
43318         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43319         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43320         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43321         platform.
43322         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43324 2011-09-29  Bruno Haible  <bruno@clisp.org>
43326         doc: Improve doc about gl_EARLY.
43327         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43328         AC_PROG_CC_STDC invocation.
43329         Reported by Gary V. Vaughan <gary@gnu.org>.
43331 2011-09-28  Bruno Haible  <bruno@clisp.org>
43333         fgetc, fputc, fread, fwrite tests: Fix link error.
43334         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43335         on non-MSVC platforms.
43336         * tests/test-fputc.c (main): Likewise.
43337         * tests/test-fread.c (main): Likewise.
43338         * tests/test-fwrite.c (main): Likewise.
43339         Reported by Jim Meyering.
43341 2011-09-27  Bruno Haible  <bruno@clisp.org>
43343         fputc, fwrite tests: Avoid test failure on MSVC.
43344         * tests/test-fgetc.c: Include msvc-inval.h.
43345         (main): Invoke gl_msvc_inval_ensure_handler.
43346         * tests/test-fputc.c: Include msvc-inval.h.
43347         (main): Invoke gl_msvc_inval_ensure_handler.
43348         * tests/test-fread.c: Include msvc-inval.h.
43349         (main): Invoke gl_msvc_inval_ensure_handler.
43350         * tests/test-fwrite.c: Include msvc-inval.h.
43351         (main): Invoke gl_msvc_inval_ensure_handler.
43352         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43353         * modules/fputc-tests (Depends-on): Likewise.
43354         * modules/fread-tests (Depends-on): Likewise.
43355         * modules/fwrite-tests (Depends-on): Likewise.
43357 2011-09-27  Bruno Haible  <bruno@clisp.org>
43359         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43360         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43361         (raise): Remove older, duplicated declaration.
43362         (_gl_raise_SIGPIPE): New declaration.
43363         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43364         (rpl_raise): Remove function.
43365         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43366         a gnulib-defined SIGPIPE here.
43367         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43368         'sigprocmask' has detected missing signal-blocking and the module
43369         'sigpipe' is enabled.
43370         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43372 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43374         base64-tests: avoid memory leak
43375         * tests/test-base64.c (main): Plug memory leak.
43377         base32: new module
43378         * modules/base32: New module.
43379         * lib/base32.c: New file.
43380         * lib/base32.h: Likewise.
43381         * m4/base32.m4: Likewise.
43382         * modules/base32-tests: New test.
43383         * tests/test-base32.c: Likewise.
43384         * MODULES.html.sh (Misc): Mention it.
43386 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43388         gnulib: use more-standard license notice wording
43389         * gnulib-tool (func_emit_copyright_notice): When emitting a
43390         license notice into a file, use the standard wording as suggested
43391         by the current information for GNU maintainers, except say "file"
43392         rather than "program".  The new wording gives a license version
43393         number, which addresses an issue raised by Glenn Morris in
43394         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43395         * m4/onceonly.m4: Use that same wording here, too.
43397         dup2: minor simplification
43398         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43399         as lib/dup2.c no longer uses 'inline'.
43401 2011-09-25  Bruno Haible  <bruno@clisp.org>
43403         strings: Fix compilation error on MSVC.
43404         * lib/strings.in.h: Include <stddef.h> for size_t.
43406 2011-09-25  Bruno Haible  <bruno@clisp.org>
43408         fflush et al.: Document limitation on MSVC.
43409         * doc/posix-functions/fflush.texi: Document possible crash in handling
43410         mode other than DEFAULT_HANDLING.
43411         * doc/posix-functions/fgetc.texi: Likewise.
43412         * doc/posix-functions/fputc.texi: Likewise.
43413         * doc/posix-functions/fread.texi: Likewise.
43414         * doc/posix-functions/fwrite.texi: Likewise.
43416 2011-09-25  Bruno Haible  <bruno@clisp.org>
43418         msvc-inval: Allow three invalid parameter handling modes.
43419         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43420         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43421         macros.
43422         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43423         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43424         SANE_LIBRARY_HANDLING as a no-op.
43425         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43426         <stdlib.h>.
43427         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43429 2011-09-25  Bruno Haible  <bruno@clisp.org>
43431         msvc-inval: Make handler multithread-safe.
43432         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43433         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43434         declarations.
43435         (gl_msvc_inval_current): New declaration.
43436         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43437         Operate on the structure returned by gl_msvc_inval_current().
43438         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43439         Remove varaiables.
43440         (tls_index, tls_initialized): New variables.
43441         (not_per_thread): New variable.
43442         (gl_msvc_inval_current): New function.
43443         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43444         returned by gl_msvc_inval_current().
43446 2011-09-25  Bruno Haible  <bruno@clisp.org>
43448         msvc-inval: Install handler globally.
43449         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43450         !_MSC_VER.
43451         (gl_msvc_invalid_parameter_handler): Remove declaration.
43452         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43453         declarations.
43454         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43455         Install the handler globally, don't uninstall it.
43456         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43457         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43458         currently valid, call RaiseException instead.
43459         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43460         for !_MSC_VER.
43462 2011-09-25  Bruno Haible  <bruno@clisp.org>
43464         strerror_r-posix: Fix for MSVC 9.
43465         * lib/strerror_r.c (local_snprintf): New function.
43466         (snprintf): Define to local_snprintf, not to _snprintf.
43468 2011-09-25  Bruno Haible  <bruno@clisp.org>
43470         ftruncate: Support for MSVC 9.
43471         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43472         (chsize_nothrow): New function.
43473         (chsize): Redefine as a macro.
43474         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43475         * modules/ftruncate (Depends-on): Add msvc-inval.
43477 2011-09-25  Bruno Haible  <bruno@clisp.org>
43479         New module 'fstat'.
43480         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43481         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43482         * lib/fchdir.c (rpl_fstat): Remove function.
43483         * m4/fstat.m4: New file.
43484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43486         declared.
43487         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43488         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43489         * modules/fstat: New file.
43490         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43491         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43492         is set.
43493         * doc/posix-functions/fstat.texi: Mention the new module and the
43494         problem on MSVC.
43495         * NEWS: Mention the change.
43496         * modules/acl (Depends-on): Add fstat.
43497         * modules/chdir-safer (Depends-on): Likewise.
43498         * modules/chown (Depends-on): Likewise.
43499         * modules/copy-file (Depends-on): Likewise.
43500         * modules/fchdir (Depends-on): Likewise.
43501         * modules/fdopendir (Depends-on): Likewise.
43502         * modules/fopen (Depends-on): Likewise.
43503         * modules/fts (Depends-on): Likewise.
43504         * modules/getcwd (Depends-on): Likewise.
43505         * modules/isapipe (Depends-on): Likewise.
43506         * modules/linkat (Depends-on): Likewise.
43507         * modules/lseek (Depends-on): Likewise.
43508         * modules/mkdir-p (Depends-on): Likewise.
43509         * modules/open (Depends-on): Likewise.
43510         * modules/openat (Depends-on): Likewise.
43511         * modules/read-file (Depends-on): Likewise.
43512         * modules/renameat (Depends-on): Likewise.
43513         * modules/utimens (Depends-on): Likewise.
43515 2011-09-25  Bruno Haible  <bruno@clisp.org>
43517         linkat: Fix compilation on MSVC 9.
43518         * lib/linkat.c: Don't include <stdint.h>.
43520 2011-09-25  Bruno Haible  <bruno@clisp.org>
43522         fclose: Support for MSVC 9.
43523         * lib/fclose.c: Include msvc-inval.h.
43524         (fclose_nothrow): New function.
43525         (rpl_fclose): Use it.
43526         * modules/fclose (Depends-on): Add msvc-inval.
43527         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43529 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43531         dup2: minor simplifications
43532         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43533         that it's a performance win.
43534         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43535         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43537 2011-09-24  Jim Meyering  <meyering@redhat.com>
43539         test-futimens: avoid a warning from gcc -Wshadow
43540         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43541         to avoid a shadowing warning.
43543 2011-09-24  Bruno Haible  <bruno@clisp.org>
43545         fdopen: Support for MSVC 9.
43546         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43547         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43548         * lib/fdopen.c: Include msvc-inval.h.
43549         (fdopen_nothrow): New function.
43550         (rpl_fdopen): Use it.
43551         * modules/fdopen (Depends-on): Add msvc-inval.
43552         * modules/fclose-tests (Depends-on): Add fdopen.
43553         * modules/fflush-tests (Depends-on): Likewise.
43554         * modules/fgetc-tests (Depends-on): Likewise.
43555         * modules/fputc-tests (Depends-on): Likewise.
43556         * modules/fread-tests (Depends-on): Likewise.
43557         * modules/freopen-tests (Depends-on): Likewise.
43558         * modules/fseeko-tests (Depends-on): Likewise.
43559         * modules/ftello-tests (Depends-on): Likewise.
43560         * modules/fwrite-tests  (Depends-on): Likewise.
43561         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43563 2011-09-24  Bruno Haible  <bruno@clisp.org>
43565         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43566         * modules/fgetc-tests (Depends-on): Add unistd.
43567         * modules/fputc-tests (Depends-on): Likewise.
43568         * modules/fread-tests (Depends-on): Likewise.
43569         * modules/fwrite-tests (Depends-on): Likewise.
43571 2011-09-24  Bruno Haible  <bruno@clisp.org>
43573         dup: Simplify autoconf test.
43574         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43575         on gl_MSVC_INVAL's result.
43577 2011-09-24  Bruno Haible  <bruno@clisp.org>
43579         Tests for function fwrite().
43580         * modules/fwrite-tests: New file.
43581         * tests/test-fwrite.c: New file.
43582         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43584         Tests for function fread().
43585         * modules/fread-tests: New file.
43586         * tests/test-fread.c: New file.
43587         * modules/stdio-tests (Depends-on): Add fread-tests.
43589         Activate fputc tests.
43590         * modules/stdio-tests (Depends-on): Add fputc-tests.
43592         Enhance fgetc, fputc tests.
43593         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43594         * tests/test-fputc.c (main): Likewise.
43596 2011-09-24  Bruno Haible  <bruno@clisp.org>
43598         write: Support for MSVC 9.
43599         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43600         is not 1.
43601         * lib/write.c (write_nothrow): New function.
43602         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43603         not 1. Use write_nothrow.
43604         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43605         invalid parameter handler.
43606         (gl_PREREQ_WRITE): New macro.
43607         * modules/write (Depends-on): Add msvc-inval.
43608         (configure.ac): Invoke gl_PREREQ_WRITE.
43609         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43611 2011-09-24  Bruno Haible  <bruno@clisp.org>
43613         read: Fix last commit.
43614         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43616 2011-09-24  Bruno Haible  <bruno@clisp.org>
43618         dup2: Fix last commit.
43619         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43620         (rpl_dup2): Disable fcntl workaround on native Windows.
43622         sigprocmask: Make code safer.
43623         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43624         section that changes macro definitions for this compilation unit.
43626 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43628         dup2: clarify by coalescing Windows-specific material
43629         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43630         "msvc-nothrow.h"' to the Windows-specific section, so that the
43631         Emacs source need not contain these include files.
43632         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43633         Windows-specific fixes into this function rather than just the
43634         nothrow fix, as this shortens and clarifies the code.  Always
43635         define as a function, as that's a bit cleaner than having it be
43636         sometimes a function and sometimes a macro.
43637         (rpl_dup2): Move the Windows-specific stuff out of here and into
43638         ms_windows_dup2.  Don't protect the Haiku-related fix with
43639         "#if !defined __linux__", as the same code also works around
43640         a Linux kernel bug, and it doesn't add any system calls on any
43641         platform.  Add comment about FreeBSD 6.1.
43643         sigprocmask: move #include directive
43644         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43645         Windows-specific section, so that the Emacs source need not
43646         contain msvc-inval.h.
43648 2011-09-23  Bruno Haible  <bruno@clisp.org>
43650         read: Support for MSVC 9.
43651         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43652         is not 1.
43653         * lib/read.c (read_nothrow): New function.
43654         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43655         read_nothrow.
43656         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43657         invalid parameter handler.
43658         (gl_PREREQ_READ): New macro.
43659         * modules/read (Depends-on): Add msvc-inval.
43660         (configure.ac): Invoke gl_PREREQ_READ.
43661         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43663 2011-09-23  Bruno Haible  <bruno@clisp.org>
43665         close: Support for MSVC 9.
43666         * lib/close.c: Include <errno.h>, msvc-inval.h.
43667         (close_nothrow): New function.
43668         (rpl_close): Use it.
43669         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43670         invalid parameter handler.
43671         * modules/close (Depends-on): Add msvc-inval.
43672         * modules/dup2-tests (Depends-on): Add close.
43673         * modules/dup3-tests (Depends-on): Likewise.
43674         * modules/fcntl-tests (Depends-on): Likewise.
43675         * modules/spawn-pipe-tests (Depends-on): Likewise.
43676         * modules/unistd-safer-tests (Depends-on): Likewise.
43677         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43679 2011-09-23  Bruno Haible  <bruno@clisp.org>
43681         New module 'dup'.
43682         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43683         Allow replacement.
43684         * lib/dup.c: New file.
43685         * lib/fchdir.c (rpl_dup): Remove function.
43686         * m4/dup.m4: New file.
43687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43688         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43689         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43690         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43691         * modules/dup: New file.
43692         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43693         'dup' module is in use.
43694         * modules/fdopendir (Depends-on): Add dup.
43695         * modules/fdutimensat-tests (Depends-on): Likewise.
43696         * modules/fts (Depends-on): Likewise.
43697         * modules/futimens-tests (Depends-on): Likewise.
43698         * modules/posix_spawnp-tests (Depends-on): Likewise.
43699         * modules/unistd-safer-tests (Depends-on): Likewise.
43700         * modules/utimens-tests (Depends-on): Likewise.
43701         * doc/posix-functions/dup.texi: Mention the new module and the problem
43702         on MSVC.
43704 2011-09-23  Bruno Haible  <bruno@clisp.org>
43706         getdtablesize: Support for MSVC 9.
43707         * lib/getdtablesize.c: Include msvc-inval.h.
43708         (_setmaxstdio_nothrow): New function.
43709         (_setmaxstdio): Redefine it.
43710         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43711         * modules/getdtablesize (Depends-on): Add msvc-inval.
43712         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43714 2011-09-23  Bruno Haible  <bruno@clisp.org>
43716         signal-h: Rename from signal.
43717         * modules/signal-h: Renamed from modules/signal.
43718         * modules/pthread_sigmask (Depends-on): Update.
43719         * modules/raise (Depends-on): Likewise.
43720         * modules/sigaction (Depends-on): Likewise.
43721         * modules/sigpipe (Depends-on): Likewise.
43722         * modules/sigprocmask (Depends-on): Likewise.
43723         * modules/sys_select (Depends-on): Likewise.
43724         * modules/signal-h-tests: Renamed from modules/signal-tests.
43725         (Files, Depends-on, Makefile.am): Update.
43726         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
43727         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
43728         (Files, Makefile.am): Update.
43729         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
43730         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
43731         * modules/signal: New placeholder file.
43732         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
43733         * doc/posix-headers/signal.texi: Update.
43734         * NEWS: Mention the change.
43736 2011-09-23  Bruno Haible  <bruno@clisp.org>
43738         sigprocmask: Avoid crashes through signal() on MSVC 9.
43739         * lib/sigprocmask.c: Include msvc-inval.h.
43740         (signal_nothrow): New function.
43741         (signal): Redefine it.
43742         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
43743         * modules/sigprocmask (Depends-on): Add msvc-inval.
43744         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
43746 2011-09-23  Bruno Haible  <bruno@clisp.org>
43748         Tests for module 'raise'.
43749         * modules/raise-tests: New file.
43750         * tests/test-raise.c: New file.
43752         raise: Support for MSVC.
43753         * lib/signal.in.h (raise): New declaration.
43754         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
43755         for native Windows platforms.
43756         * m4/raise.m4: New file.
43757         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
43758         HAVE_RAISE, REPLACE_RAISE.
43759         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
43760         REPLACE_RAISE.
43761         * modules/raise (Status, Notice): Remove fields.
43762         (Files): Add m4/raise.m4.
43763         (Depends-on): Add signal, msvc-inval.
43764         (configure.ac): Use the common idioms.
43765         (Maintainer): Add me.
43766         * tests/test-signal-c++.cc: Check the signature of raise.
43767         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
43769 2011-09-23  Bruno Haible  <bruno@clisp.org>
43771         pipe2: Fix compilation on pre-C99 compilers.
43772         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
43774 2011-09-23  Bruno Haible  <bruno@clisp.org>
43776         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
43777         * lib/msvc-nothrow.h: New file.
43778         * lib/msvc-nothrow.c: New file.
43779         * m4/msvc-nothrow.m4: New file.
43780         * modules/msvc-nothrow: New file.
43781         * lib/dup2.c: Include msvc-nothrow.h.
43782         (rpl_dup2): No need to protect _get_osfhandle call here.
43783         * lib/accept4.c: Include msvc-nothrow.h.
43784         * lib/error.c: Likewise.
43785         * lib/fcntl.c: Likewise.
43786         * lib/lseek.c: Likewise.
43787         * lib/nonblocking.c: Likewise.
43788         * lib/poll.c: Likewise.
43789         * lib/read.c: Likewise.
43790         * lib/select.c: Likewise.
43791         * lib/sockets.h: Likewise.
43792         * lib/sockets.c: Likewise.
43793         * lib/stdio-read.c: Likewise.
43794         * lib/stdio-write.c: Likewise.
43795         * lib/write.c: Likewise.
43796         * lib/w32sock.h: Likewise.
43797         * lib/w32spawn.h: Likewise.
43798         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
43799         * lib/fsync.c: Likewise.
43800         * lib/isapipe.c: Likewise.
43801         * modules/dup2 (Depends-on): Add msvc-nothrow.
43802         * modules/accept4 (Depends-on): Likewise.
43803         * modules/error (Depends-on): Likewise.
43804         * modules/fcntl (Depends-on): Likewise.
43805         * modules/lseek (Depends-on): Likewise.
43806         * modules/nonblocking (Depends-on): Likewise.
43807         * modules/poll (Depends-on): Likewise.
43808         * modules/read (Depends-on): Likewise.
43809         * modules/select (Depends-on): Likewise.
43810         * modules/sockets (Depends-on): Likewise.
43811         * modules/sigpipe (Depends-on): Likewise.
43812         * modules/write (Depends-on): Likewise.
43813         * modules/accept (Depends-on): Likewise.
43814         * modules/bind (Depends-on): Likewise.
43815         * modules/connect (Depends-on): Likewise.
43816         * modules/gethostname (Depends-on): Likewise.
43817         * modules/getpeername (Depends-on): Likewise.
43818         * modules/getsockname (Depends-on): Likewise.
43819         * modules/getsockopt (Depends-on): Likewise.
43820         * modules/ioctl (Depends-on): Likewise.
43821         * modules/listen (Depends-on): Likewise.
43822         * modules/recv (Depends-on): Likewise.
43823         * modules/recvfrom (Depends-on): Likewise.
43824         * modules/send (Depends-on): Likewise.
43825         * modules/sendto (Depends-on): Likewise.
43826         * modules/setsockopt (Depends-on): Likewise.
43827         * modules/shutdown (Depends-on): Likewise.
43828         * modules/socket (Depends-on): Likewise.
43829         * modules/execute (Depends-on): Likewise.
43830         * modules/spawn-pipe (Depends-on): Likewise.
43831         * modules/flock (Depends-on): Likewise.
43832         * modules/fsync (Depends-on): Likewise.
43833         * modules/isapipe (Depends-on): Likewise.
43834         * tests/test-cloexec.c: Include msvc-nothrow.h.
43835         * tests/test-dup-safer.c: Likewise.
43836         * tests/test-dup2.c: Likewise.
43837         * tests/test-dup3.c: Likewise.
43838         * tests/test-fcntl.c: Likewise.
43839         * tests/test-pipe.c: Likewise.
43840         * tests/test-pipe2.c: Likewise.
43841         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
43842         * modules/unistd-safer-tests (Depends-on): Likewise.
43843         * modules/dup2-tests (Depends-on): Likewise.
43844         * modules/dup3-tests (Depends-on): Likewise.
43845         * modules/fcntl-tests (Depends-on): Likewise.
43846         * modules/pipe-posix-tests (Depends-on): Likewise.
43847         * modules/pipe2-tests (Depends-on): Likewise.
43849 2011-09-23  Bruno Haible  <bruno@clisp.org>
43851         dup2: Make code more maintainable.
43852         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
43853         (rpl_dup2): Use it.
43854         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
43855         * modules/dup2 (configure.ac): Invoke it.
43856         Reported by Paul Eggert.
43858 2011-09-23  Bruno Haible  <bruno@clisp.org>
43860         msvc-inval: Fix compilation error.
43861         * lib/msvc-inval.h: Include <excpt.h>.
43863 2011-09-23  Bruno Haible  <bruno@clisp.org>
43865         mkdir: Tweak for MSVC 9.
43866         * lib/sys_stat.in.h: Update comments.
43867         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
43869         Tests for module 'chdir'.
43870         * modules/chdir-tests: New file.
43871         * tests/test-chdir.c: New file.
43873         New module 'chdir'.
43874         * modules/chdir: New file.
43875         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
43876         (chdir): New declaration.
43877         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
43878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
43879         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
43880         * tests/test-unistd-c++.cc: Check signature of chdir.
43881         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
43882         * modules/chdir-long (Depends-on): Add chdir.
43883         * modules/fchdir (Depends-on): Likewise.
43884         * modules/rename (Depends-on): Likewise.
43885         * modules/savewd (Depends-on): Likewise.
43887         rmdir: Support for mingw, MSVC 9.
43888         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
43889         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
43891         getcwd: Tweak for MSVC 9.
43892         * lib/unistd.in.h: Update comments.
43893         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
43895 2011-09-22  Bruno Haible  <bruno@clisp.org>
43897         strerror_r-posix: Avoid a link error on MSVC.
43898         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
43899         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
43901 2011-09-22  Bruno Haible  <bruno@clisp.org>
43903         select: Avoid link errors on MSVC.
43904         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
43905         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
43906         * modules/pselect (Link): Likewise.
43907         * NEWS: Mention the change.
43908         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
43909         test-select-stdin against $(LIB_SELECT).
43910         * modules/pselect-tests (Makefile.am): Link test-pselect against
43911         $(LIB_SELECT).
43913 2011-09-22  Bruno Haible  <bruno@clisp.org>
43915         select: Avoid compilation error on MSVC.
43916         * lib/select.c: Don't include <stdbool.h>.
43918 2011-09-21  Bruno Haible  <bruno@clisp.org>
43920         Consolidate all uses of PATH_MAX in *.m4 files.
43921         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
43922         macros.
43923         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
43924         and gl_PATHMAX_SNIPPET.
43925         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
43926         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43927         * modules/chdir-long (Files): Add m4/pathmax.m4.
43928         * modules/getcwd (Files): Likewise.
43930 2011-09-21  Bruno Haible  <bruno@clisp.org>
43932         ftruncate: Un-deprecate, concentrate on Win32 support.
43933         * modules/ftruncate (Status, Notice): Remove sections.
43934         (Depends-on): Add largefile.
43935         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
43936         non-mingw platforms.
43937         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
43938         include <io.h>.
43939         * modules/perror-tests (Depends-on): Add ftruncate.
43940         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
43941         'ftruncate' module.
43943 2011-09-21  Bruno Haible  <bruno@clisp.org>
43945         Add dependencies to new dirent related modules.
43946         * modules/opendir (Depends-on): Add closedir.
43947         * modules/getcwd (Depends-on): Add opendir, closedir.
43948         * modules/dirent-safer-tests (Depends-on): Likewise.
43949         * modules/fdopendir-tests (Depends-on): Likewise.
43950         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
43951         * modules/renameat-tests (Depends-on): Likewise.
43953 2011-09-21  Bruno Haible  <bruno@clisp.org>
43955         opendir: Avoid compilation error on mingw.
43956         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
43957         * modules/opendir (Depends-on): Add unistd.
43959 2011-09-21  Bruno Haible  <bruno@clisp.org>
43961         ftruncate tests: Avoid a test failure on mingw.
43962         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
43964 2011-09-21  Bruno Haible  <bruno@clisp.org>
43966         select tests: Avoid test failures on OSF/1 5.1 and mingw.
43967         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
43968         native Windows.
43970 2011-09-21  Bruno Haible  <bruno@clisp.org>
43972         New module 'fdopen'.
43973         * lib/stdio.in.h (fdopen): New declaration.
43974         * lib/fdopen.c: New file.
43975         * m4/fdopen.m4: New file.
43976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
43977         REPLACE_FDOPEN.
43978         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
43979         REPLACE_FDOPEN.
43980         * modules/fdopen: New file.
43981         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
43982         * tests/test-stdio-c++.cc: Check signature of fdopen.
43983         * doc/posix-functions/fdopen.texi: Mention the new module.
43985 2011-09-21  Bruno Haible  <bruno@clisp.org>
43987         unlockpt tests: Avoid test failure on NetBSD 5.1.
43988         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
43989         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
43991 2011-09-21  Bruno Haible  <bruno@clisp.org>
43993         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
43994         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
43995         * tests/test-getlogin_r.c (main): Likewise.
43997 2011-09-20  Bruno Haible  <bruno@clisp.org>
43999         time tests: Don't require pid_t.
44000         * doc/posix-headers/time.texi: Revert last change.
44001         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44002         * tests/test-time.c: Comment out the check for pid_t.
44004 2011-09-20  Bruno Haible  <bruno@clisp.org>
44006         fsync tests: Avoid a test failure on mingw.
44007         * tests/test-fsync.c (main): Allow a failure with EIO.
44009 2011-09-20  Bruno Haible  <bruno@clisp.org>
44011         euidaccess: Update comments.
44012         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44014 2011-09-20  Bruno Haible  <bruno@clisp.org>
44016         Ensure EBADF returns for socket functions on mingw.
44017         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44018         descriptor is invalid.
44019         * lib/bind.c (rpl_bind): Likewise.
44020         * lib/connect.c (rpl_connect): Likewise.
44021         * lib/getpeername.c (rpl_getpeername): Likewise.
44022         * lib/getsockname.c (rpl_getsockname): Likewise.
44023         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44024         * lib/listen.c (rpl_listen): Likewise.
44025         * lib/recv.c (rpl_recv): Likewise.
44026         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44027         * lib/send.c (rpl_send): Likewise.
44028         * lib/sendto.c (rpl_sendto): Likewise.
44029         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44030         * lib/shutdown.c (rpl_shutdown): Likewise.
44032 2011-09-20  Bruno Haible  <bruno@clisp.org>
44034         select tests: EBADF tests.
44035         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44036         test_bad_fd): New functions.
44037         (test_function): Invoke also test_bad_fd.
44039 2011-09-20  Bruno Haible  <bruno@clisp.org>
44041         Tests for module 'posix_spawn_file_actions_addopen.
44042         * modules/posix_spawn_file_actions_addopen-tests: New file.
44043         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44045         Tests for module 'posix_spawn_file_actions_adddup2'.
44046         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44047         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44049         Tests for module 'posix_spawn_file_actions_addclose'.
44050         * modules/posix_spawn_file_actions_addclose-tests: New file.
44051         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44053 2011-09-20  Bruno Haible  <bruno@clisp.org>
44055         Tests for module 'unlockpt'.
44056         * modules/unlockpt-tests: New file.
44057         * tests/test-unlockpt.c: New file.
44058         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44060         Tests for module 'grantpt'.
44061         * modules/grantpt-tests: New file.
44062         * tests/test-grantpt.c: New file.
44063         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44065 2011-09-20  Bruno Haible  <bruno@clisp.org>
44067         freopen tests: EBADF tests.
44068         * tests/test-freopen.c: Include errno.h, unistd.h.
44069         (main): Add tests for EBADF, commented out for the moment.
44071         fclose tests: EBADF tests.
44072         * tests/test-fclose.c (main): Add tests for EBADF.
44074         fflush tests: EBADF tests.
44075         * tests/test-fflush.c: Include errno.h, macros.h.
44076         (main): Add tests for EBADF.
44078         ftello tests: EBADF tests.
44079         * tests/test-ftello4.sh: New file.
44080         * tests/test-ftello4.c: New file.
44081         * modules/ftello-tests (Files): Add them.
44082         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44084         fseeko tests: EBADF tests.
44085         * tests/test-fseeko4.sh: New file.
44086         * tests/test-fseeko4.c: New file.
44087         * modules/fseeko-tests (Files): Add them.
44088         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44090         Tests for function fputc().
44091         * modules/fputc-tests: New file.
44092         * tests/test-fputc.c: New file.
44093         * modules/stdio-tests (Depends-on): Add fputc-tests.
44095         Tests for function fgetc().
44096         * modules/fgetc-tests: New file.
44097         * tests/test-fgetc.c: New file.
44098         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44100         Tests for function fdopen().
44101         * modules/fdopen-tests: New file.
44102         * tests/test-fdopen.c: New file.
44103         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44105         Tests for module 'vdprintf'.
44106         * modules/vdprintf-tests: New file.
44107         * tests/test-vdprintf.c: New file.
44109         Tests for module 'dprintf'.
44110         * modules/dprintf-tests: New file.
44111         * tests/test-dprintf.c: New file.
44113 2011-09-20  Bruno Haible  <bruno@clisp.org>
44115         Tests for module 'ioctl'.
44116         * modules/ioctl-tests: New file.
44117         * tests/test-ioctl.c: New file.
44119 2011-09-20  Bruno Haible  <bruno@clisp.org>
44121         fcntl tests: EBADF tests.
44122         * tests/test-fcntl.c (main): Add more tests for EBADF.
44124 2011-09-20  Bruno Haible  <bruno@clisp.org>
44126         utimensat tests: EBADF tests.
44127         * tests/test-utimensat.c (main): Add tests for EBADF.
44129         renameat tests: EBADF tests.
44130         * tests/test-renameat.c (main): Add tests for EBADF.
44132         mkfifoat tests: EBADF tests.
44133         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44135         readlinkat tests: EBADF tests.
44136         * tests/test-readlinkat.c (main): Add tests for EBADF.
44138         symlinkat tests: EBADF tests.
44139         * tests/test-symlinkat.c (main): Add tests for EBADF.
44141         linkat tests: EBADF tests.
44142         * tests/test-linkat.c (main): Add tests for EBADF.
44144         Tests for module 'faccessat'.
44145         * modules/faccessat-tests: New file.
44146         * tests/test-faccessat.c: New file.
44148         fdopendir tests: EBADF tests.
44149         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44151         openat tests: EBADF tests.
44152         * tests/test-fchownat.c (main): Add tests for EBADF.
44153         * tests/test-fstatat.c (main): Likewise.
44154         * tests/test-mkdirat.c (main): Likewise.
44155         * tests/test-openat.c (main): Likewise.
44156         * tests/test-unlinkat.c (main): Likewise.
44157         * tests/test-fchmodat.c: New file.
44158         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44159         (Makefile.am): Also run 'test-fchmodat'.
44161 2011-09-20  Bruno Haible  <bruno@clisp.org>
44163         utimens, futimens, fdutimensat tests: EBADF tests.
44164         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44166         Tests for function fstat().
44167         * modules/fstat-tests: New file.
44168         * tests/test-fstat.c: New file.
44169         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44171 2011-09-20  Bruno Haible  <bruno@clisp.org>
44173         test-ttyname_r tests: EBADF tests.
44174         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44176         Tests for module 'isatty'.
44177         * modules/isatty-tests: New file.
44178         * tests/test-isatty.c: New file.
44180         Tests for module 'write'.
44181         * modules/write-tests: New file.
44182         * tests/test-write.c: New file.
44184         Tests for module 'read'.
44185         * modules/read-tests: New file.
44186         * tests/test-read.c: New file.
44188         pwrite tests: EBADF tests.
44189         * tests/test-pwrite.c (main): Add tests for EBADF.
44191         pread tests: EBADF tests.
44192         * tests/test-pread.c (main): Add tests for EBADF.
44194         lseek tests: EBADF tests.
44195         * tests/test-lseek.c (main): Add more tests for EBADF.
44197         Tests for module 'ftruncate'.
44198         * modules/ftruncate-tests: New file.
44199         * tests/test-ftruncate.sh: New file.
44200         * tests/test-ftruncate.c: New file.
44202         fsync tests: EBADF tests.
44203         * tests/test-fsync.c (main): Add more tests for EBADF.
44205         fdatasync tests: EBADF tests.
44206         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44208         Tests for module 'fchown'.
44209         * modules/fchown-tests: New file.
44210         * tests/test-fchown.c: New file.
44212         Tests for module 'fchmod'.
44213         * modules/fchmod-tests: New file.
44214         * tests/test-fchmod.c: New file.
44216         fchdir tests: EBADF tests.
44217         * tests/test-fchdir.c (main): Add more tests for EBADF.
44219         dup2 tests: EBADF tests.
44220         * tests/test-dup2.c (main): Add more tests for EBADF.
44222         Tests for module 'dup'.
44223         * modules/dup-tests: New file.
44224         * tests/test-dup.c: New file.
44226         Tests for module 'close'.
44227         * modules/close-tests: New file.
44228         * tests/test-close.c: New file.
44230 2011-09-20  Bruno Haible  <bruno@clisp.org>
44232         Tests for module 'shutdown'.
44233         * modules/shutdown-tests: New file.
44234         * tests/test-shutdown.c: New file.
44236         Tests for module 'setsockopt'.
44237         * modules/setsockopt-tests: New file.
44238         * tests/test-setsockopt.c: New file.
44240         Tests for module 'sendto'.
44241         * modules/sendto-tests: New file.
44242         * tests/test-sendto.c: New file.
44244         Tests for module 'send'.
44245         * modules/send-tests: New file.
44246         * tests/test-send.c: New file.
44248         Tests for module 'recvfrom'.
44249         * modules/recvfrom-tests: New file.
44250         * tests/test-recvfrom.c: New file.
44252         Tests for module 'recv'.
44253         * modules/recv-tests: New file.
44254         * tests/test-recv.c: New file.
44256         Tests for module 'listen'.
44257         * modules/listen-tests: New file.
44258         * tests/test-listen.c: New file.
44260         Tests for module 'getsockopt'.
44261         * modules/getsockopt-tests: New file.
44262         * tests/test-getsockopt.c: New file.
44264         Tests for module 'getsockname'.
44265         * modules/getsockname-tests: New file.
44266         * tests/test-getsockname.c: New file.
44268         Tests for module 'getpeername'.
44269         * modules/getpeername-tests: New file.
44270         * tests/test-getpeername.c: New file.
44272         Tests for module 'connect'.
44273         * modules/connect-tests: New file.
44274         * tests/test-connect.c: New file.
44276         Tests for module 'bind'.
44277         * modules/bind-tests: New file.
44278         * tests/test-bind.c: New file.
44280         accept4 tests: Fix for native Windows.
44281         * tests/test-accept4.c: Include sockets.h.
44282         (main): Invoke gl_sockets_startup.
44283         * modules/accept4-tests (Depends-on): Add sockets.
44285         accept tests: Fix for native Windows.
44286         * tests/test-accept.c: Include sockets.h.
44287         (main): Invoke gl_sockets_startup.
44288         * modules/accept-tests (Depends-on): Add sockets.
44290 2011-09-19  Bruno Haible  <bruno@clisp.org>
44292         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44293         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44294         do...while(0).
44295         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44296         Suggested by Paul Eggert.
44298 2011-09-19  Bruno Haible  <bruno@clisp.org>
44300         sched: Ensure pid_t is defined.
44301         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44302         not define pid_t.
44303         * lib/sched.in.h: Include <sys/types.h>.
44304         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44307 2011-09-19  Bruno Haible  <bruno@clisp.org>
44309         msvc-inval: Ensure the entire expansion is a single statement.
44310         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44311         of braces.
44313 2011-09-19  Jim Meyering  <meyering@redhat.com>
44315         tests: use printf, not echo in init.sh's warn_ function
44316         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44317         misbehave when given strings containing a backslash or starting
44318         with e.g., -n.  James Youngman suggested setting IFS.
44320 2011-09-19  Eric Blake  <eblake@redhat.com>
44322         futimens: enhance test
44323         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44324         closed non-negative fd.
44326         date: accept 'hence' as opposite of 'ago'
44327         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44328         * tests/test-parse-datetime.c (main): Enhance test.
44329         Suggested by Jesse Wilson.
44331 2011-09-19  Jim Meyering  <meyering@redhat.com>
44333         getcwd: don't fail in a deep directory on a system without openat
44334         Before this change, getcwd would fail when called from a directory
44335         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44336         the non-openat implementation used "..", "../..", "../../..", etc.
44337         to access ancestor directories.  With too many, that string would
44338         be longer than PATH_MAX.
44339         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44340         using gnulib's openat replacement.
44341         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44342         we're using the replacement function.
44344 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44346         maint.mk: avoid warnings from perl about missing files
44347         * top/maint.mk (def_sym_regex): Ignore files listed in
44348         $(gl_other_headers_) that do not exist, say because a project
44349         does not use a corresponding module.
44351 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44353         stat: use pathmax.h only if needed
44354         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44355         This is better for Emacs, which does not have a mingw port and
44356         therefore can avoid the pathmax module.
44358         utimens: remove dependency on dup2
44359         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44360         to work around the Linux kernel bug.
44361         * modules/utimens (Depends-on): Remove dup2.
44363 2011-09-18  Bruno Haible  <bruno@clisp.org>
44365         inet_ntop, inet_pton: Look for it also in libresolv.
44366         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44367         libnsl, search for it in libresolv.
44368         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44369         Needed on Solaris 7.
44371 2011-09-18  Bruno Haible  <bruno@clisp.org>
44373         accept, accept4 tests: Avoid link error on Solaris.
44374         * modules/accept-tests (Makefile.am): Link test-accept against
44375         $(LIBSOCKET).
44376         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44377         $(LIBSOCKET).
44379         accept4: Avoid link error on Solaris.
44380         * modules/accept4 (Link): New section.
44382         socket functions: Avoid link errors on Solaris.
44383         * modules/accept (Depends-on): Add socketlib.
44384         (Link): New section.
44385         * modules/bind (Depends-on): Add socketlib.
44386         (Link): New section.
44387         * modules/connect (Depends-on): Add socketlib.
44388         (Link): New section.
44389         * modules/getpeername (Depends-on): Add socketlib.
44390         (Link): New section.
44391         * modules/getsockname (Depends-on): Add socketlib.
44392         (Link): New section.
44393         * modules/getsockopt (Depends-on): Add socketlib.
44394         (Link): New section.
44395         * modules/listen (Depends-on): Add socketlib.
44396         (Link): New section.
44397         * modules/recv (Depends-on): Add socketlib.
44398         (Link): New section.
44399         * modules/recvfrom (Depends-on): Add socketlib.
44400         (Link): New section.
44401         * modules/send (Depends-on): Add socketlib.
44402         (Link): New section.
44403         * modules/sendto (Depends-on): Add socketlib.
44404         (Link): New section.
44405         * modules/setsockopt (Depends-on): Add socketlib.
44406         (Link): New section.
44407         * modules/shutdown (Depends-on): Add socketlib.
44408         (Link): New section.
44409         * modules/socket (Depends-on): Add socketlib.
44410         (Link): New section.
44412 2011-09-18  Bruno Haible  <bruno@clisp.org>
44414         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44415         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44416         than 5 seconds.
44417         * modules/ptsname-tests (configure.ac): Test for alarm.
44419 2011-09-18  Bruno Haible  <bruno@clisp.org>
44421         posix_spawn_file_actions_add*: Fix module dependencies.
44422         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44423         posix_spawn_file_actions_init.
44424         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44425         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44427 2011-09-18  Bruno Haible  <bruno@clisp.org>
44429         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44430         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44431         * tests/test-renameat.c (main): Likewise.
44433 2011-09-18  Bruno Haible  <bruno@clisp.org>
44435         Tests for module 'accept4'.
44436         * modules/accept4-tests: New file.
44437         * tests/test-accept4.c: New file.
44439 2011-09-18  Bruno Haible  <bruno@clisp.org>
44441         Tests for module 'accept'.
44442         * modules/accept-tests: New file.
44443         * tests/test-accept.c: New file.
44445 2011-09-18  Bruno Haible  <bruno@clisp.org>
44447         dup2: Support for MSVC.
44448         * lib/dup2.c: Include msvc-inval.h.
44449         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44450         _get_osfhandle calls.
44451         * modules/dup2 (Depends-on): Add msvc-inval.
44452         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44454         New module 'msvc-inval'.
44455         * lib/msvc-inval.h: New file.
44456         * lib/msvc-inval.c: New file.
44457         * m4/msvc-inval.m4: New file.
44458         * modules/msvc-inval: New file.
44460 2011-09-17  Bruno Haible  <bruno@clisp.org>
44462         Tests for module 'pclose'.
44463         * modules/pclose-tests: New file.
44465         New module 'pclose'.
44466         * lib/stdio.in.h (pclose): New declaration.
44467         * lib/pclose.c: New file.
44468         * m4/pclose.m4: New file.
44469         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44470         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44471         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44472         * modules/pclose: New file.
44473         * modules/popen-tests (Depends-on): Add pclose.
44474         * modules/popen-safer-tests (Depends-on): Likewise.
44475         * doc/posix-functions/pclose.texi: Mention the new module.
44477 2011-09-17  Bruno Haible  <bruno@clisp.org>
44479         popen: Support for MSVC.
44480         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44481         * lib/popen.c (popen): Provide alternate definition for native Windows.
44482         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44484         * modules/popen (Depends-on, configure.ac): Update condition.
44485         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44486         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44487         fixed.
44489 2011-09-17  Bruno Haible  <bruno@clisp.org>
44491         isnanl, isnand, isnanf: Work around MSVC bug.
44492         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44494 2011-09-17  Bruno Haible  <bruno@clisp.org>
44496         sys_socket tests: Fix recent mistake.
44497         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44499 2011-09-17  Bruno Haible  <bruno@clisp.org>
44501         putenv: Support for MSVC.
44502         * modules/putenv (Depends-on): Add environ.
44503         * lib/putenv.c (environ): Disable declaration.
44504         * lib/unistd.in.h: Update comment.
44506 2011-09-17  Bruno Haible  <bruno@clisp.org>
44508         math: Avoid macro redefinition warnings on MSVC.
44509         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44510         Undefine before redefining.
44512 2011-09-17  Bruno Haible  <bruno@clisp.org>
44514         doc: Mention functions which are declared as macros.
44515         * doc/posix-functions/*[fl].texi: Mention that some functions are
44516         defined as macros with arguments only.
44518 2011-09-17  Bruno Haible  <bruno@clisp.org>
44520         Add dependencies to new dirent related modules.
44521         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44522         * modules/fts (Depends-on): Likewise.
44523         * modules/glob (Depends-on): Likewise.
44524         * modules/savedir (Depends-on): Likewise.
44525         * modules/scandir (Depends-on): Likewise.
44526         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44527         * modules/fdopendir (Depends-on): Add opendir.
44529 2011-09-17  Bruno Haible  <bruno@clisp.org>
44531         inet_pton: Support for MSVC on Windows Vista or newer.
44532         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44533         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44534         HAVE_DECL_INET_PTON is defined.
44535         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44536         On platforms with <winsock2.h>, test whether inet_pton is declared in
44537         <ws2tcpip.h>. If so, arrange to replace it.
44538         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44539         REPLACE_INET_PTON.
44540         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44541         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44542         (Depends-on, configure.ac): Update condition.
44543         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44545 2011-09-17  Bruno Haible  <bruno@clisp.org>
44547         inet_ntop: Support for MSVC on Windows Vista or newer.
44548         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44549         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44550         HAVE_DECL_INET_NTOP is defined.
44551         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44552         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44553         <ws2tcpip.h>. If so, arrange to replace it.
44554         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44555         REPLACE_INET_NTOP.
44556         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44557         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44558         (Depends-on, configure.ac): Update condition.
44559         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44561 2011-09-16  Eric Blake  <eblake@redhat.com>
44563         test-fsync: yet another enhancement
44564         * tests/test-fsync.c (main): Also test behavior on read-only text
44565         file.
44567 2011-09-16  Bruno Haible  <bruno@clisp.org>
44569         Enhance fsync, fdatasync tests.
44570         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44571         * tests/test-fdatasync.c (main): Likewise.
44573 2011-09-16  Bruno Haible  <bruno@clisp.org>
44575         Support for MSVC compiler: Ensure mode_t gets defined.
44576         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44577         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44579         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44580         * tests/test-fcntl-h.c: Check that mode_t is defined.
44581         * tests/test-sys_stat.c: Likewise.
44582         * tests/test-sys_types.c: Likewise.
44583         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44584         * doc/posix-headers/sys_stat.texi: Likewise.
44585         * doc/posix-headers/sys_types.texi: Likewise.
44587 2011-09-16  Bruno Haible  <bruno@clisp.org>
44589         sys_stat: Support for MSVC.
44590         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44591         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44592         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44593         MSVC.
44595 2011-09-16  Bruno Haible  <bruno@clisp.org>
44597         Support for MSVC compiler: Ensure off_t gets defined.
44598         * lib/unistd.in.h: Include <sys/types.h>.
44599         * tests/test-fcntl-h.c: Check that off_t is defined.
44600         * tests/test-sys_stat.c: Likewise.
44601         * tests/test-sys_types.c: Likewise.
44603 2011-09-16  Eric Blake  <eblake@redhat.com>
44605         fdatasync: port to Solaris
44606         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44607         * modules/fdatasync (Link): Document it.
44608         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44610         fdatasync: port to MacOS X 10.7
44611         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44612         declared.
44613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44614         * modules/unistd (Makefile.am): Substitute it.
44615         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44616         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44618         fdatasync: minor improvements
44619         * modules/fdatasync (Depends-on): Add condition for fsync.
44620         * lib/fdatasync.c (fdatasync): Add comment.
44621         * tests/test-unistd-c++.cc: Test fdatasync.
44623         unistd: update refs to newer POSIX
44624         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44625         Suggested by Bruno Haible.
44627         fdatasync: new module
44628         * modules/fsync (Description): Document difference to fdatasync.
44629         * modules/fdatasync: New module.
44630         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44631         * lib/fdatasync.c (fdatasync): Likewise.
44632         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44633         defaults.
44634         * modules/unistd (Makefile.am): Set witnesses.
44635         * lib/unistd.in.h (fdatasync): Declare.
44636         * MODULES.html.sh: Document it.
44637         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44638         * modules/fdatasync-tests: New test.
44639         * tests/test-fdatasync.c: Likewise.
44641 2011-09-16  Eric Blake  <eblake@redhat.com>
44643         test-fsync: enhance tests
44644         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44645         * tests/test-fsync.c (main): Enhance test.
44647 2011-09-15  Bruno Haible  <bruno@clisp.org>
44649         Support for MSVC compiler: Ensure ssize_t gets defined.
44650         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44651         * doc/posix-headers/stdio.texi: Likewise.
44652         * modules/stdio (Depends-on): Add ssize_t.
44653         * modules/sys_socket (Depends-on): Likewise.
44654         * modules/sys_types (Depends-on): Likewise.
44655         * modules/sys_uio (Depends-on): Likewise.
44656         * modules/unistd (Depends-on): Likewise.
44657         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44658         * tests/test-sys_types.c: Check that ssize_t is defined.
44660 2011-09-14  Bruno Haible  <bruno@clisp.org>
44662         Avoid using #, the m4 comment starter character, near brackets.
44663         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44664         delimiter character in sed expressions.
44665         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44666         Suggested by Eric Blake.
44668         Properly quote AC_CHECK_DECLS' 4th argument.
44669         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44670         argument.
44671         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44672         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44673         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44674         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44675         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44676         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44678         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44679         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44680         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44681         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44682         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44683         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44684         * m4/isinf.m4 (gl_ISINF): Likewise.
44685         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44686         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44687         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44688         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44689         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44690         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44691         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44692         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44693         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44694         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44695         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44696         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44698         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44700         Reported by Eric Blake.
44702         Properly quote AC_CHECK_DECL's 4th argument.
44703         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44704         argument.
44705         * m4/argp.m4 (gl_ARGP): Likewise.
44706         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44707         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44708         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44709         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44710         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44711         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44713         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44715         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44716         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44717         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44718         Reported by Eric Blake.
44720 2011-09-14  Eric Blake  <eblake@redhat.com>
44722         opendir: avoid compile warning
44723         * lib/opendir.c (includes): Always include errno.h.
44724         Reported by Tatsuro MATSUOKA.
44726 2011-09-14  Jim Meyering  <meyering@redhat.com>
44728         maint.mk: sc_tight_scope: propagate failure from sub-make
44729         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
44730         Reported by Martin von Gagern.
44732 2011-09-13  Bruno Haible  <bruno@clisp.org>
44734         tempname: Support for MSVC.
44735         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
44736         MSVC.
44737         * modules/tempname (Depends-on): Add fcntl-h.
44739 2011-09-13  Bruno Haible  <bruno@clisp.org>
44741         sys_time: Support for MSVC.
44742         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
44743         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
44744         include <winsock2.h>.
44745         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
44746         function declarations that collide with POSIX.
44747         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
44748         (Makefile.am): Substitute HAVE_WINSOCK2_H.
44750 2011-09-13  Bruno Haible  <bruno@clisp.org>
44752         stat: Support for MSVC.
44753         * lib/stat.c: Include pathmax.h.
44754         * modules/stat (Depends-on): Add pathmax.
44756         pathmax: Support for native Windows.
44757         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
44759 2011-09-12  Bruno Haible  <bruno@clisp.org>
44761         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
44762         * lib/dirent.in.h (struct dirent): New type.
44763         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
44764         DT_WHT): New macros.
44765         (DIR): New type.
44766         (opendir, closedir): Declare only if the module 'opendir' is enabled.
44767         (readdir, rewinddir): New declarations.
44768         * lib/dirent-private.h: New file.
44769         * lib/opendir.c: New file.
44770         * lib/readdir.c: New file.
44771         * lib/rewinddir.c: New file.
44772         * lib/closedir.c: New file.
44773         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
44774         * m4/opendir.m4: New file.
44775         * m4/readdir.m4: New file.
44776         * m4/rewinddir.m4: New file.
44777         * m4/closedir.m4: New file.
44778         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
44779         REPLACE_CLOSEDIR here.
44780         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
44781         readdir, rewinddir are declared.
44782         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
44783         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
44784         HAVE_REWINDDIR, HAVE_CLOSEDIR.
44785         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
44786         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
44787         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
44788         * modules/opendir: New file.
44789         * modules/readdir: New file.
44790         * modules/rewinddir: New file.
44791         * modules/closedir: New file.
44792         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
44793         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
44794         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
44795         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
44796         * NEWS: Mention the 'fchdir' change.
44798 2011-09-11  Bruno Haible  <bruno@clisp.org>
44800         asm-underscore.m4: Support for MSVC.
44801         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
44802         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
44804 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
44806         Doc about crypt functions.
44807         * doc/posix-functions/crypt.texi: Expand range of glibc versions
44808         needing for _GNU_SOURCE to get crypt.
44809         * doc/posix-functions/encrypt.texi: Likewise.
44810         * doc/posix-functions/setkey.texi: Likewise.
44812 2011-09-11  Bruno Haible  <bruno@clisp.org>
44814         doc: Update regarding MSVC 9.
44815         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
44816         tested".
44817         * doc/posix-functions/*.texi: Update with info about MSVC 9.
44818         * doc/posix-headers/*.texi: Likewise.
44819         * doc/pastposix-functions/*.texi: Likewise.
44820         * doc/glibc-functions/*.texi: Likewise.
44821         * doc/glibc-headers/*.texi: Likewise.
44823 2011-09-11  Bruno Haible  <bruno@clisp.org>
44825         unistd et al.: Don't assume <unistd.h> exists.
44826         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
44827         does not exist.
44828         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
44829         exist. But include <stdlib.h>.
44830         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
44831         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
44832         symlink() does not exist.
44833         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
44834         include <io.h> instead.
44835         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
44836         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
44837         include <direct.h> instead.
44838         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44839         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44840         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
44841         <io.h> instead.
44842         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
44843         correctly if the system does not have hard links.
44844         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
44845         <direct.h> instead.
44846         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
44847         it when looking for function declarations.
44848         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
44849         <direct.h> and <io.h> instead.
44850         * doc/posix-headers/unistd.texi: More details about MSVC problem.
44852 2011-09-11  Bruno Haible  <bruno@clisp.org>
44854         strcase: Support for MSVC.
44855         * modules/strcase (Status, Notice): Remove obsoletion mark.
44856         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
44857         * doc/posix-functions/strncasecmp.texi: Likewise.
44859         strings: Don't assume <strings.h> exists.
44860         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
44861         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
44862         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
44863         * doc/posix-headers/strings.texi: Mention the MSVC problem.
44865 2011-09-11  Bruno Haible  <bruno@clisp.org>
44867         dirent: Don't assume <dirent.h> exists.
44868         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
44869         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
44870         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
44871         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
44873 2011-09-11  Bruno Haible  <bruno@clisp.org>
44875         Fix wint_t on MSVC.
44876         * lib/wchar.in.h (wint_t): On MSVC, override it.
44877         * lib/wctype.in.h (wint_t): Likewise.
44878         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
44879         MSVC.
44880         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
44881         * doc/posix-headers/wctype.texi: Likewise.
44883 2011-09-11  Bruno Haible  <bruno@clisp.org>
44885         sys_types: Fix typo.
44886         * lib/sys_types.in.h: Fix typo in comment.
44887         Reported by Paul Eggert.
44889         Support for MSVC compiler: Ensure size_t gets defined.
44890         * modules/strings (Depends-on): Add 'sys_types'.
44891         * modules/sys_uio (Depends-on): Likewise.
44892         * lib/sys_uio.in.h: Update comment.
44894         C++ tests for module 'sys_types'.
44895         * modules/sys_types-c++-tests: New file.
44896         * tests/test-sys_types-c++.cc: New file.
44898         Tests for module 'sys_types'.
44899         * modules/sys_types-tests: New file.
44900         * tests/test-sys_types.c: New file.
44902         New module 'sys_types'.
44903         * lib/sys_types.in.h: New file.
44904         * m4/sys_types_h.m4: New file.
44905         * modules/sys_types: New file.
44906         * doc/posix-headers/sys_types.texi: Mention the new module and the
44907         size_t problem on MSVC 9.
44909 2011-09-11  Bruno Haible  <bruno@clisp.org>
44911         Support for MSVC compiler: Avoid division by a literal 0.
44912         * lib/math.in.h (NAN): Define through a function call also on MSVC.
44913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
44914         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
44915         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
44916         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
44917         * tests/infinity.h: New file.
44918         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
44919         on MSVC.
44920         * tests/test-ceilf1.c: Include infinity.h.
44921         (main): Use Infinityf.
44922         * tests/test-ceil1.c: Include infinity.h.
44923         (main): Use Infinityd.
44924         * tests/test-ceill.c: Include infinity.h.
44925         (main): Use Infinityl.
44926         * tests/test-dprintf-posix.c: Include infinity.h.
44927         (test_function): Use Infinityd.
44928         * tests/test-floorf1.c: Include infinity.h.
44929         (main): Use Infinityf.
44930         * tests/test-floor1.c: Include infinity.h.
44931         (main): Use Infinityd.
44932         * tests/test-floorl.c: Include infinity.h.
44933         (main): Use Infinityl.
44934         * tests/test-fprintf-posix.c: Include infinity.h.
44935         (test_function): Use Infinityd.
44936         * tests/test-frexp.c: Include infinity.h.
44937         (main): Use Infinityd.
44938         * tests/test-frexpl.c: Include infinity.h.
44939         (main): Use Infinityl.
44940         * tests/test-isfinite.c: Include infinity.h.
44941         (test_isfinitef): Use Infinityf.
44942         (test_isfinited): Use Infinityd.
44943         (test_isfinitel): Use Infinityl.
44944         * tests/test-isinf.c: Include infinity.h.
44945         (test_isinff): Use Infinityf.
44946         (test_isinfd): Use Infinityd.
44947         (test_isinfl): Use Infinityl.
44948         * tests/test-isnan.c: Include infinity.h.
44949         (test_float): Use Infinityf.
44950         (test_double): Use Infinityd.
44951         (test_long_double): Use Infinityl.
44952         * tests/test-isnanf.h: Include infinity.h.
44953         (main): Use Infinityf.
44954         * tests/test-isnand.h: Include infinity.h.
44955         (main): Use Infinityd.
44956         * tests/test-isnanl.h: Include infinity.h.
44957         (main): Use Infinityl.
44958         * tests/test-ldexpl.c: Include infinity.h.
44959         (main): Use Infinityl.
44960         * tests/test-printf-posix.h: Include infinity.h.
44961         (test_function): Use Infinityd.
44962         * tests/test-roundf1.c: Include infinity.h.
44963         (main): Use Infinityf.
44964         * tests/test-round1.c: Include infinity.h.
44965         (main): Use Infinityd.
44966         * tests/test-roundl.c: Include infinity.h.
44967         (main): Use Infinityl.
44968         * tests/test-signbit.c: Include infinity.h.
44969         (test_signbitf): Use Infinityf.
44970         (test_signbitd): Use Infinityd.
44971         (test_signbitl): Use Infinityl.
44972         * tests/test-snprintf-posix.h: Include infinity.h.
44973         (test_function): Use Infinityd, Infinityl.
44974         * tests/test-sprintf-posix.h: Include infinity.h.
44975         (test_function): Use Infinityd, Infinityl.
44976         * tests/test-truncf1.c: Include infinity.h.
44977         (main): Use Infinityf.
44978         * tests/test-trunc1.c: Include infinity.h.
44979         (main): Use Infinityd.
44980         * tests/test-truncl.c: Include infinity.h.
44981         (main): Use Infinityl.
44982         * tests/test-vasnprintf-posix.c: Include infinity.h.
44983         (test_function): Use Infinityd, Infinityl.
44984         * tests/test-vasprintf-posix.c: Include infinity.h.
44985         (test_function): Use Infinityd, Infinityl.
44986         * modules/ceilf-tests (Files): Add tests/infinity.h.
44987         * modules/ceil-tests (Files): Likewise.
44988         * modules/ceill-tests (Files): Likewise.
44989         * modules/dprintf-posix-tests (Files): Likewise.
44990         * modules/floorf-tests (Files): Likewise.
44991         * modules/floor-tests (Files): Likewise.
44992         * modules/floorl-tests (Files): Likewise.
44993         * modules/fprintf-posix-tests (Files): Likewise.
44994         * modules/frexp-tests (Files): Likewise.
44995         * modules/frexp-nolibm-tests (Files): Likewise.
44996         * modules/frexpl-tests (Files): Likewise.
44997         * modules/frexpl-nolibm-tests (Files): Likewise.
44998         * modules/isfinite-tests (Files): Likewise.
44999         * modules/isinf-tests (Files): Likewise.
45000         * modules/isnan-tests (Files): Likewise.
45001         * modules/isnanf-tests (Files): Likewise.
45002         * modules/isnanf-nolibm-tests (Files): Likewise.
45003         * modules/isnand-tests (Files): Likewise.
45004         * modules/isnand-nolibm-tests (Files): Likewise.
45005         * modules/isnanl-tests (Files): Likewise.
45006         * modules/isnanl-nolibm-tests (Files): Likewise.
45007         * modules/ldexpl-tests (Files): Likewise.
45008         * modules/printf-posix-tests (Files): Likewise.
45009         * modules/roundf-tests (Files): Likewise.
45010         * modules/round-tests (Files): Likewise.
45011         * modules/roundl-tests (Files): Likewise.
45012         * modules/signbit-tests (Files): Likewise.
45013         * modules/snprintf-posix-tests (Files): Likewise.
45014         * modules/sprintf-posix-tests (Files): Likewise.
45015         * modules/truncf-tests (Files): Likewise.
45016         * modules/trunc-tests (Files): Likewise.
45017         * modules/truncl-tests (Files): Likewise.
45018         * modules/vasnprintf-posix-tests (Files): Likewise.
45019         * modules/vasprintf-posix-tests (Files): Likewise.
45020         * modules/vdprintf-posix-tests (Files): Likewise.
45021         * modules/vfprintf-posix-tests (Files): Likewise.
45022         * modules/vprintf-posix-tests (Files): Likewise.
45023         * modules/vsnprintf-posix-tests (Files): Likewise.
45024         * modules/vsprintf-posix-tests (Files): Likewise.
45025         * modules/xprintf-posix-tests (Files): Likewise.
45027 2011-09-11  Bruno Haible  <bruno@clisp.org>
45029         Ensure pid_t gets defined.
45030         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45031         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45032         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45033         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45034         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45035         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45036         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45037         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45038         * tests/test-fcntl-h.c: Check that pid_t is defined.
45039         * tests/test-sched.c: Likewise.
45040         * tests/test-termios.c: Likewise.
45041         * tests/test-time.c: Likewise.
45042         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45043         * doc/posix-headers/signal.texi: Likewise.
45044         * doc/posix-headers/sys_types.texi: Likewise.
45045         * doc/posix-headers/time.texi: Likewise.
45047 2011-09-11  Bruno Haible  <bruno@clisp.org>
45049         acl: Fix compilation on Solaris 10 (older version).
45050         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45051         of ACE_EVERYONE.
45052         * lib/set-mode-acl.c (qset_acl): Likewise.
45053         Reported by Christian Jullien <eligis@orange.fr>.
45055 2011-09-10  Bruno Haible  <bruno@clisp.org>
45057         iconv, unsetenv: Add support for MSVC compiler.
45058         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45061 2011-09-10  Bruno Haible  <bruno@clisp.org>
45063         *printf: Add support for MSVC compiler.
45064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45065         handles the exception caused by the %n directive. When cross-compiling,
45066         guess no on native Windows.
45067         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45068         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45069         emulate it through vsnprintf.
45070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45071         * doc/posix-functions/dprintf.texi: Update documentation regarding
45072         MSVC 9.
45073         * doc/posix-functions/fprintf.texi: Likewise.
45074         * doc/posix-functions/printf.texi: Likewise.
45075         * doc/posix-functions/snprintf.texi: Likewise.
45076         * doc/posix-functions/sprintf.texi: Likewise.
45077         * doc/posix-functions/swprintf.texi: Likewise.
45078         * doc/posix-functions/vdprintf.texi: Likewise.
45079         * doc/posix-functions/vfprintf.texi: Likewise.
45080         * doc/posix-functions/vprintf.texi: Likewise.
45081         * doc/posix-functions/vsnprintf.texi: Likewise.
45082         * doc/posix-functions/vsprintf.texi: Likewise.
45083         * doc/glibc-functions/asprintf.texi: Likewise.
45084         * doc/glibc-functions/obstack_printf.texi: Likewise.
45085         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45086         * doc/glibc-functions/vasprintf.texi: Likewise.
45088 2011-09-10  Bruno Haible  <bruno@clisp.org>
45090         nocrash: Add support for native Windows.
45091         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45093 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45094             Bruno Haible  <bruno@clisp.org>
45096         absolute-header, include-next: Add support for MSVC compiler.
45097         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45098         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45099         directory separator in #line directives.
45100         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45101         recognize also backslash as directory separator in #line directives.
45103 2011-09-08  Jim Meyering  <meyering@redhat.com>
45105         maint.mk: mark the post-release commit log with "maint: " prefix
45106         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45107         one-line commit-log summary.
45109 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45110             Bruno Haible  <bruno@clisp.org>
45112         Doc about crypt functions.
45113         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45114         systems.
45115         * doc/posix-functions/encrypt.texi: Likewise.
45116         * doc/posix-functions/setkey.texi: Likewise.
45118 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45120         * lib/gc.h: Fix copyright header.
45122 2011-09-07  Bruno Haible  <bruno@clisp.org>
45124         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45125         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45126         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45128 2011-09-07  Bruno Haible  <bruno@clisp.org>
45130         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45131         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45132         * lib/freopen.c: Likewise.
45133         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45134         * lib/lstat.c: Likewise.
45135         * lib/stat.c: Likewise.
45136         * lib/open.c: Use different syntax for include of <fcntl.h>.
45137         * lib/openat.c: Include fcntl.h again, explicitly.
45139 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45141         parse-datetime: document the newly accepted format
45142         * doc/parse-datetime.texi (Combined date and time of day items):
45143         New section.
45145 2011-09-06  Bruno Haible  <bruno@clisp.org>
45147         acl: Fix a test failure on newer Solaris 10 with ZFS.
45148         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45149         ENOSYS as no ACL.
45150         Reported by Jim Meyering.
45152 2011-09-06  Bruno Haible  <bruno@clisp.org>
45154         acl: Update for AIX >= 5.3 with NFS.
45155         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45156         ENOSYS as no ACL.
45158         acl: Fix a test failure on AIX >= 5.3 with NFS.
45159         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45160         as no ACL.
45162 2011-09-06  Bruno Haible  <bruno@clisp.org>
45164         acl: Fix a test failure on IRIX 6.5 with NFS.
45165         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45166         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45167         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45168         * lib/copy-acl.c (qcopy_acl): Likewise.
45170 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45172         openat: port to AIX 7.1 with large files
45173         AIX 7.1 does a "#define openat open64at" if large files are in use,
45174         so we can't simply #undef openat.  Use the orig_openat trick (similar
45175         to orig_open in lib/open.c) to work around the problem.  Problem
45176         reported by Kevin Brott for GNU tar, in the thread containing
45177         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45178         * lib/openat.c (__need_system_fcntl_h): Define first.
45179         Include <fcntl.h> and <sys/types.h> before undefining.
45180         (orig_openat) [HAVE_OPENAT]: New inline function.
45181         (openat) [HAVE_OPENAT]: Do not undef.
45182         (rpl_openat): Use orig_openat, not openat.
45184 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45185             Bruno Haible  <bruno@clisp.org>
45187         acl: Avoid errors on NonStop Kernel.
45188         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45189         ENOTSUP errors.
45191 2011-09-05  Bruno Haible  <bruno@clisp.org>
45193         acl: Clean up Solaris code.
45194         * lib/acl-internal.h: Remove no-op #if.
45195         * lib/file-has-acl.c: Likewise.
45196         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45197         * lib/copy-acl.c (qcopy_acl): Likewise.
45199 2011-09-05  Bruno Haible  <bruno@clisp.org>
45201         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45202         binaries built on the original Solaris 10.
45203         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45204         trivial.
45206 2011-09-05  Bruno Haible  <bruno@clisp.org>
45208         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45209         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45210         10.
45211         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45212         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45213         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45214         instead of acl_get, facl_get, acl_set, facl_set.
45216 2011-09-05  Bruno Haible  <bruno@clisp.org>
45218         copy-file: Try unit tests on more file systems.
45219         * tests/test-copy-file-1.sh: New file.
45220         * tests/test-copy-file-2.sh: New file.
45221         * modules/copy-file-tests (Files): Add them.
45222         (Makefile.am): Add them to TESTS.
45224         acl: Try unit tests on more file systems.
45225         * tests/test-file-has-acl-1.sh: New file.
45226         * tests/test-file-has-acl-2.sh: New file.
45227         * tests/test-set-mode-acl-1.sh: New file.
45228         * tests/test-set-mode-acl-2.sh: New file.
45229         * tests/test-copy-acl-1.sh: New file.
45230         * tests/test-copy-acl-2.sh: New file.
45231         * modules/acl-tests (Files): Add them.
45232         (Makefile.am): Add them to TESTS.
45234 2011-09-04  Bruno Haible  <bruno@clisp.org>
45236         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45237         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45238         10.
45239         (OLD_ALLOW, OLD_DENY): New macros.
45240         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45241         ACE_ACCESS_ALLOWED_ACE_TYPE.
45242         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45243         ACE_ACCESS_DENIED_ACE_TYPE.
45244         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45245         (NEW_ACE_EXECUTE): Fix value.
45246         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45247         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45248         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45249         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45250         NEW_ACE_SYNCHRONIZE): New macros.
45251         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45252         instead of acl_fromtext, acl_set, facl_set.
45253         Fixes a coreutils/tests/cp/perm failure.
45255 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45257         openat: test for fstatat (..., 0) bug
45258         Further testing with tar suggests that fstatat (..., 0)
45259         does not work in general, on AIX 7.1; see
45260         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45261         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45262         replacement fstatat (which is what older AIX releases were using
45263         anyway).
45264         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45265         use is now changed to orig_fstatat.  This was probably the right
45266         thing to do anyway.
45267         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45268         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45269         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45270         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45271         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45272         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45273         if the bug is found.
45275         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45276         This tests for another fstatat bug on AIX 7.1:
45277         fstatat (AT_FDCWD, ..., 0) does not work.  See
45278         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45279         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45280         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45281         (rpl_fstatat): Adjust so that it works around either (or both)
45282         bugs if present.
45283         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45285 2011-09-03  Karl Berry  <karl@gnu.org>
45287         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45288         in index entries.
45290 2011-09-02  Bruno Haible  <bruno@clisp.org>
45292         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45293         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45294         values of AR, ARFLAGS, RANLIB.
45295         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45297 2011-09-02  Bruno Haible  <bruno@clisp.org>
45299         Find 'ar' program that fits with --host argument.
45300         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45302 2011-09-02  Bruno Haible  <bruno@clisp.org>
45304         tests: init.sh: Support any non-GNU diff.
45305         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45306         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45307         Solaris 8.
45309 2011-09-02  Bruno Haible  <bruno@clisp.org>
45311         tests: init.sh: work also with any non-GNU diff that supports -u
45312         * tests/init.sh: Relax check for diff -u support.
45313         Rather than checking for GNU diff via --version, simply check
45314         for support for -u itself.  Useful at least on OpenBSD 4.9,
45315         AIX 7.1, IRIX 6.5, and Solaris 10.
45317 2011-09-01  Bruno Haible  <bruno@clisp.org>
45319         strtoimax, strtoumax: Document problem on HP-UX 11.
45320         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45321         * doc/posix-functions/strtoumax.texi: Likewise.
45323 2011-09-01  Bruno Haible  <bruno@clisp.org>
45325         strtoumax: Avoid link error on OSF/1 with DTK cc.
45326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45327         defined as a function.
45328         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45329         strtoumax is defined, not whether it is declared.
45331 2011-09-01  Bruno Haible  <bruno@clisp.org>
45333         strtoimax: Avoid link error on OSF/1 with DTK cc.
45334         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45335         defined as a function.
45336         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45337         strtoimax is defined, not whether it is declared.
45339 2011-09-01  Bruno Haible  <bruno@clisp.org>
45341         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45342         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45343         as a function.
45344         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45345         whether it is declared.
45347 2011-09-01  Bruno Haible  <bruno@clisp.org>
45349         imaxabs: Avoid link error on OSF/1 with DTK cc.
45350         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45351         as a function.
45352         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45353         whether it is declared.
45355 2011-09-01  Bruno Haible  <bruno@clisp.org>
45357         Tests for module 'strtoumax'.
45358         * modules/strtoumax-tests: New file.
45359         * tests/test-strtoumax.c: New file.
45361         Tests for module 'strtoimax'.
45362         * modules/strtoimax-tests: New file.
45363         * tests/test-strtoimax.c: New file.
45365         Tests for module 'imaxdiv'.
45366         * modules/imaxdiv-tests: New file.
45367         * tests/test-imaxdiv.c: New file.
45369         Tests for module 'imaxabs'.
45370         * modules/imaxabs-tests: New file.
45371         * tests/test-imaxabs.c: New file.
45373 2011-09-01  Bruno Haible  <bruno@clisp.org>
45375         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45376         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45377         pthread_create.
45379 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45381         openat: work around AIX 7.1 fstatat issue
45382         This should fix the problem that was not properly fixed
45383         in the previous change, dated 2011-08-30.
45384         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45385         __need_system_stat_h defined.
45386         (orig_fstatat) [HAVE_FSTATAT]: New function.
45387         (rpl_fstatat): Go back to the old way of doing things,
45388         except call orig_fstatat instead of fstatat.
45389         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45390         Remove unnecessary check whether fstatat fills in st_size etc.
45392 2011-09-01  Bruno Haible  <bruno@clisp.org>
45394         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45395         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45396         just include the system's header.
45398 2011-08-31  Jim Meyering  <meyering@redhat.com>
45400         tests: avoid spurious assertion failure in test-float.c on ppc64
45401         * tests/test-float.c (test_long_double): Comment out an assertion,
45402         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45403         with gcc-4.4.4.
45405         maint: indent with spaces, not TABs
45406         I need to get in the habit of running gnulib's "make check".
45407         Both of these would have been caught.
45408         * m4/largefile.m4: Indent with spaces, not TABs.
45409         * lib/parse-datetime.y (iso_8601_time): Likewise.
45410         Spotted by Pádraig Brady.
45412         test-parse-datetime.c: accommodate a relatively strict gcc warning
45413         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45414         to avoid a warning from gcc's -Werror=missing-declarations.
45415         Insert a few spaces-before-funcall-parenthesis.
45417 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45419         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45420         The parser now accepts ISO 8601 date-time strings with "T" as the
45421         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45422         with a space between the date and time strings.  Now it also parses
45423         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45424         variants like "2004-02-29T16:21:42.333-07:00"
45425         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45426         of day representation using the 'T' separator character.
45427         * doc/parse-datetime.texi (General date syntax): replace use of
45428         deprecated --iso-8601 option with --rfc-3339 in example of date
45429         command output formats that can be parsed.
45430         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45431         lib/parse-datetime.y.
45432         (gmt_offset): New function.
45433         (main): Add additional test cases to validate ISO8601 extended
45434         date and time of day parsing.
45436 2011-08-31  Bruno Haible  <bruno@clisp.org>
45438         freopen: Documentation.
45439         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45440         name.
45441         Reported by Claudio Bley <claudio.bley@gmail.com>.
45443 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45445         freopen: Don't crash if the filename argument is NULL.
45446         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45447         NULL.
45449 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45451         openat: work around AIX 7.1 fstatat bug
45452         Problem reported by Kevin Brott for GNU tar, in the thread containing
45453         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45454         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45455         FSTATAT_ST_SIZE_ETC_BROKEN.
45456         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45457         rpl_fstatat.
45458         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45459         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45460         AC_CHECK_FUNCS_ONCE for fstatat.
45461         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45462         fchmodat, mkdirat, openat and unlinkat.
45464 2011-08-30  Bruno Haible  <bruno@clisp.org>
45466         Avoid endless recursions if config.h includes some header files.
45467         * lib/fopen.c (__need_FILE): Define already before including config.h.
45468         * lib/freopen.c (__need_FILE): Likewise.
45469         * lib/open.c (__need_system_fcntl_h): Likewise.
45470         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45471         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45472         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45474 2011-08-25  Karl Berry  <karl@gnu.org>
45476         * config/srclist.txt (ylwrap): new try.
45477         * build-aux/ylwrap: new file.
45479 2011-08-23  Bruno Haible  <bruno@clisp.org>
45481         tmpdir: Use a good default directory on native Windows.
45482         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45483         (P_tmpdir): Default to _P_tmpdir on native Windows.
45484         (path_search): On native Windows, try the value returned by GetTempPath
45485         before trying P_tmpdir.
45486         * modules/tmpdir (Depends-on): Add pathmax.
45487         Suggested by John Darrington <john@darrington.wattle.id.au>.
45489 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45491         doc: fix typo in README-release
45492         * top/README-release: Capitalize first word of a sentence.
45494 2011-08-19  Jim Meyering  <meyering@redhat.com>
45496         fts: do not exhaust memory when processing million-entry directories
45497         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45498         directory would require about 256*N bytes of memory.  Thus, it was
45499         easy to construct a directory too large to be processed by any of
45500         those tools.  With this change, fts' maximum memory utilization is
45501         now limited to around 30MB.
45502         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45503         (fts_read): When we've processed the final entry (i.e., when
45504         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45505         using the parent entry to read any remaining entries.  Dispatch
45506         depending on what fts_build returns:
45507         - NULL+stop, aka failure: stop
45508         - NULL otherwise: move up in the dir hierarchy
45509         - non-NULL: handle this new entry
45510         (fts_build): Declare and use new local, continue_readdir.
45511         Prepare to be called from fts_read, when the entries
45512         from a partially-read directory have just been exhausted.
45513         In that case, we'll skip the opendir and instead use the parent's
45514         fts_dirp and derive dir_fd from that.
45515         Finally, in the readdir loop, if we read max_entries entries,
45516         exit the loop ensuring *not* to call closedir.  This is required
45517         so that fts_dirp can be reused on a subsequent call.
45518         Prompted by Ben England's report of memory exhaustion in find
45519         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45521         maint: fts: move decl of `dp' down into while loop; split a long line
45522         * lib/fts.c (fts_build): No semantic change.
45524         fts: add/use new struct member, fts_dirp
45525         We are about to use this to manage any directory with
45526         too many entries to read all of them into memory at once.
45527         To do that, we'll need to save the DIR* pointer in each
45528         affected FTSENT struct.
45529         * lib/fts_.h: Include <dirent.h>.
45530         (struct FTSENT) [fts_dirp]: New member.
45531         * lib/fts.c (closedir_and_clear): Define.
45532         Use it in place of closedir so that we are sure to
45533         clear the new fts_dirp member when done with it.
45534         (fts_alloc): Initialize the new member.
45535         (fts_lfree): Free, if needed.
45537         maint: fts: give __opendir2 a new parameter and rename
45538         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45539         than surreptitiously using sole caller's "dir_fd".
45540         (fts_opendir): Rename from __opendir2.
45542         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45543         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45545         maint: fts.c: correct off-by-one indentation
45546         * lib/fts.c (fts_build): Correct indentation, change style
45547         of a couple of block comments, and bracing style.
45549         maint: fts.c: move __opendir2 #define "up" out of function body
45550         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45552         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45553         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45554         out for a long time and besides was useful only on BSD systems.
45556 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45558         regex: port to Stratus OpenVOS
45559         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45560         define to empty, rather than attempting nonportable optimizations.
45561         Problem reported by Paul Green in:
45562         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45563         and fix suggested by Eric Blake in:
45564         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45566 2011-08-17  Eric Blake  <eblake@redhat.com>
45568         getcwd: fix test failures on mingw
45569         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45570         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45571         test if long directory cannot be created, and allow mingw errno.
45573         getcwd-lgpl: fix m4 to match relaxed test for BSD
45574         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45575         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45576         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45577         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45578         signature problem.
45580         getcwd: fix compilation on mingw64
45581         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45582         getcwd.
45583         Reported by Marc-André Lureau.
45585         pipe2: silence compiler warning
45586         * lib/pipe2.c (pipe2): Hide label if it is not used.
45588 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45590         relocatable-prog: fix link error
45591         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45592         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45593         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45594         into modules/relocatable-lib without noticing that
45595         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45596         also needs to build relocatable.c.
45598 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45600         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45602         shell code: it contained a 'break' that was not in a loop.
45603         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45604         via a shell-language loop; this may have been true in old Autoconf
45605         versions, but it's not true in Autoconf 2.68.  I found this bug
45606         when testing coreutils git on Solaris 8, whose shell complains
45607         about the syntax error.
45609 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45611         * lib/base64.c: Fix comment to reference RFC 4648.
45612         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45613         <gvtulder@gmail.com>.
45615 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45617         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45619         po/Makefile.in.in: fix make -q problem
45620         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45621         rule, since there's no file named 'check-macro-version' and its
45622         use as a file breaks make -q.
45623         (all): Don't depend on check-macro-version.
45624         (CHECK_MACRO_VERSION): New macro.
45625         (stamp-po): Use it.
45627         configmake: fix make -q problem
45628         * modules/configmake (configmake.h): Update configmake.h's time stamp
45629         even if the file does not change.  Otherwise, 'make -q' fails.
45630         Problem reported by Simon Josefsson in
45631         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45633 2011-08-11  Jim Meyering  <meyering@redhat.com>
45635         git-version-gen: correct the advice in a comment
45636         * build-aux/git-version-gen: Correct comment.
45637         Don't recommend to list .tarball-version in .gitignore.
45639 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45641         base64: fix off-by-one buffer size bug
45642         Problem and (trivial) fix reported by Gijs van Tulder in
45643         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45644         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45645         * tests/test-base64.c (main): Catch the bug.
45647 2011-08-10  Eric Blake  <eblake@redhat.com>
45649         closein: correct comments
45650         * lib/closein.c (close_stdin): Improve comments.
45652 2011-08-09  Bruno Haible  <bruno@clisp.org>
45654         More tests for 'fseeko'.
45655         * tests/test-fseeko3.c: New file, from Eric Blake.
45656         * tests/test-fseeko3.sh: New file.
45657         * modules/fseeko-tests (Files): Add them.
45658         (TESTS): Add test-fseeko3.sh.
45659         (check_PROGRAMS): Add test-fseeko3.
45661 2011-08-09  Eric Blake  <eblake@redhat.com>
45663         fseeko: remove unneeded hack
45664         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45666         fseeko: fix bug on glibc
45667         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45668         Reported by John W. Eaton.
45670 2011-08-08  Bruno Haible  <bruno@clisp.org>
45672         unictype/base: Fix interoperability with preinstalled libunistring.
45673         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45674         Reported by Simon Josefsson.
45676 2011-08-08  Bruno Haible  <bruno@clisp.org>
45678         iswblank: Detect declaration correctly.
45679         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45680         AC_CHECK_DECLS invocation.
45682 2011-08-08  Bruno Haible  <bruno@clisp.org>
45684         tcgetsid: Detect declaration correctly.
45685         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45686         AC_CHECK_DECLS invocation.
45687         Reported by Simon Josefsson.
45689 2011-08-08  Eric Blake  <eblake@redhat.com>
45691         largefile: fix typo that regressed large file support
45692         * modules/largefile (configure.ac-early): Fix section name.
45694 2011-08-06  Karl Berry  <karl@gnu.org>
45696         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45697         a separate module.
45699 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45701         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45702         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45703         get prototype for free.
45705 2011-08-04  Bruno Haible  <bruno@clisp.org>
45707         Tests for module 'pathmax'.
45708         * modules/pathmax-tests: New file.
45709         * tests/test-pathmax.c: New file.
45711         canonicalize-lgpl: Support larger filenames on the Hurd.
45712         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45713         Reported by Paul Eggert.
45715         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45716         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45717         * lib/chdir-long.h: Include pathmax.h.
45718         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45719         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
45720         (PATH_MAX): Remove code that is done by pathmax.h.
45721         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
45722         * lib/tmpfile.c: Add a comment.
45723         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
45724         * modules/chdir-long (Depends-on): Add pathmax.
45725         * modules/getcwd (Depends-on): Add pathmax.
45726         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
45727         is not defined.
45728         * doc/posix-headers/limits.texi: Mention the pathmax module.
45729         * NEWS: Mention the change.
45731 2011-08-02  Bruno Haible  <bruno@clisp.org>
45733         pthread_sigmask: Actually use results of gl_THREADLIB.
45734         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
45735         gl_THREADLIB, not gl_[]THREADLIB.
45736         Reported by Eric Blake.
45738 2011-08-02  Jim Meyering  <meyering@redhat.com>
45740         maint.mk: relax the default _gl_TS_function_match regexp
45741         * top/maint.mk (_gl_TS_function_match): Don't require at least one
45742         space between function name and "(" in an "extern" declaration.
45743         That would fail to match a decl with no space there: extern void foo();
45745 2011-07-31  Iain Nicol  <iain@thenicols.net>
45747         git-version-gen: document that EXTRA_DIST must include .version
45748         * build-aux/git-version-gen: In the how-to-use comment, document
45749         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
45750         will fail when run from an unpacked distribution tarball.
45752 2011-08-01  Bruno Haible  <bruno@clisp.org>
45754         wctype-h: Fix last change.
45755         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
45756         REPLACE_TOWLOWER to 0.
45757         Reported by Sam Steingold <sds@gnu.org>.
45759 2011-07-31  Bruno Haible  <bruno@clisp.org>
45761         frexpl: Update autoconf test.
45762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
45763         according to changes of 2011-06-20.
45765 2011-07-31  Bruno Haible  <bruno@clisp.org>
45767         sys_utsname: Add support for Minix.
45768         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
45769         <sys/utsname.h>.
45770         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
45771         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
45773 2011-07-31  Bruno Haible  <bruno@clisp.org>
45775         strings: Add support for Minix.
45776         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
45777         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
45778         * doc/posix-headers/strings.texi: Document the Minix problem.
45780 2011-07-31  Bruno Haible  <bruno@clisp.org>
45782         wctype-h: Add support for Minix.
45783         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
45784         REPLACE_TOWLOWER.
45785         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
45786         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
45787         REPLACE_ISWCNTRL.
45789 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
45791         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
45792         This is a performance improvement for 64-bit hosts: it causes the
45793         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
45795 2011-07-31  Bruno Haible  <bruno@clisp.org>
45797         stdioext: Add support for Minix.
45798         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
45799         * lib/fpurge.c (fpurge): Likewise.
45800         * lib/freadahead.c (freadahead): Likewise.
45801         * lib/freadable.c (freadable): Likewise.
45802         * lib/freading.c (freading): Likewise.
45803         * lib/freadptr.c (freadptr): Likewise.
45804         * lib/freadseek.c (freadptrinc): Likewise.
45805         * lib/fseeko.c (rpl_fseeko): Likewise.
45806         * lib/fseterr.c (fseterr): Likewise.
45807         * lib/fwritable.c (fwritable): Likewise.
45808         * lib/fwriting.c (fwriting): Likewise.
45809         * lib/fflush.c (clear_ungetc_buffer): Update comment.
45810         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
45812 2011-07-31  Bruno Haible  <bruno@clisp.org>
45814         errno: Port to Minix.
45815         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
45816         ECONNABORTED are defined.
45817         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
45818         GNULIB_defined_ECONNABORTED): New macros.
45819         * lib/strerror-override.h (strerror_override): Test also
45820         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
45821         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
45822         ECONNABORTED.
45823         * doc/posix-headers/errno.texi: Mention the Minix problem.
45825 2011-07-31  Bruno Haible  <bruno@clisp.org>
45827         Work around declaration collisions on Minix.
45828         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
45829         defined, set REPLACE_MBSINIT.
45830         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
45831         defined, set REPLACE_MBRTOWC.
45832         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
45833         set REPLACE_MBRLEN.
45834         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
45835         defined, set REPLACE_MBSRTOWCS.
45836         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
45837         defined, set REPLACE_WCRTOMB.
45838         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
45839         defined, set REPLACE_WCSRTOMBS.
45841 2011-07-31  Bruno Haible  <bruno@clisp.org>
45843         Add support for Minix with ACK compiler.
45844         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
45845         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
45846         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
45848 2011-07-31  Bruno Haible  <bruno@clisp.org>
45850         Documentation about Minix.
45851         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
45852         * doc/glibc-headers/*.texi: Likewise.
45853         * doc/posix-functions/*.texi: Likewise.
45854         * doc/glibc-functions/*.texi: Likewise.
45856 2011-07-31  Bruno Haible  <bruno@clisp.org>
45858         snippet/warn-on-use: Fix indentation.
45859         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
45861 2011-07-25  Jim Meyering  <meyering@redhat.com>
45863         tests: test-update-copyright.sh: remove unnecessary "rm" commands
45864         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
45865         commands.
45867 2011-07-27  Jim Meyering  <meyering@redhat.com>
45869         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
45870         * top/maint.mk (gl_extract_significant_defines_): Now that
45871         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
45872         gnulib/lib/signal.in.h, and now that we recommend to
45873         define-if-undefined those two symbols in application code,
45874         we must filter them out of the "significant" list.
45875         This avoids a "make syntax-check" failure in coreutils.
45877 2011-07-26  Eric Blake  <eblake@redhat.com>
45879         warnings: add comments about previous patch
45880         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
45881         * m4/include_next.m4: Likewise.
45882         * m4/warn-on-use.m4: Likewise.
45883         * m4/warnings.m4: Likewise, and simplify use.
45884         Suggested by Stefano Lattarini.
45886         include-next, warnings: support older autoconf
45887         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
45888         AS_VAR_PUSHDEF in a way that works with older autoconf.
45889         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
45890         Reported by Daniel P. Berrange.
45892 2011-07-25  Bruno Haible  <bruno@clisp.org>
45894         fseek, ftell: Fix doc.
45895         * doc/posix-functions/fseek.texi: Reword statement about
45896         AC_SYS_LARGEFILE.
45897         * doc/posix-functions/ftell.texi: Likewise.
45899 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
45900             Bruno Haible  <bruno@clisp.org>
45902         Add dependencies to the 'largefile' module.
45903         * modules/fopen (Depends-on): Add 'largefile'.
45904         * modules/freopen (Depends-on): Likewise.
45905         * modules/fseeko (Depends-on): Likewise.
45906         * modules/ftello (Depends-on): Likewise.
45907         * modules/glob (Depends-on): Likewise.
45908         * modules/lseek (Depends-on): Likewise.
45909         * modules/lstat (Depends-on): Likewise.
45910         * modules/mkostemp (Depends-on): Likewise.
45911         * modules/mkostemps (Depends-on): Likewise.
45912         * modules/mkstemp (Depends-on): Likewise.
45913         * modules/mkstemps (Depends-on): Likewise.
45914         * modules/open (Depends-on): Likewise.
45915         * modules/openat (Depends-on): Likewise.
45916         * modules/pread (Depends-on): Likewise.
45917         * modules/pwrite (Depends-on): Likewise.
45918         * modules/scandir (Depends-on): Likewise.
45919         * modules/stat (Depends-on): Likewise.
45920         * modules/tmpfile (Depends-on): Likewise.
45921         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
45922         since the containing module now depends on the largefile module.
45923         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
45924         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
45925         off_t is fixed by gnulib.
45926         * doc/posix-functions/freopen.texi: Likewise.
45927         * doc/posix-functions/fseeko.texi: Likewise.
45928         * doc/posix-functions/fstatat.texi: Likewise.
45929         * doc/posix-functions/ftello.texi: Likewise.
45930         * doc/posix-functions/glob.texi: Likewise.
45931         * doc/posix-functions/lseek.texi: Likewise.
45932         * doc/posix-functions/lstat.texi: Likewise.
45933         * doc/posix-functions/mkstemp.texi: Likewise.
45934         * doc/posix-functions/open.texi: Likewise.
45935         * doc/posix-functions/openat.texi: Likewise.
45936         * doc/posix-functions/pread.texi: Likewise.
45937         * doc/posix-functions/pwrite.texi: Likewise.
45938         * doc/posix-functions/scandir.texi: Likewise.
45939         * doc/posix-functions/stat.texi: Likewise.
45940         * doc/posix-functions/tmpfile.texi: Likewise.
45941         * doc/glibc-functions/mkostemp.texi: Likewise.
45942         * doc/glibc-functions/mkostemps.texi: Likewise.
45943         * doc/glibc-functions/mkstemps.texi: Likewise.
45945 2011-07-25  Bruno Haible  <bruno@clisp.org>
45947         fcntl: Move AC_LIBOBJ invocation to module description.
45948         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
45949         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
45951         fcntl: Remove call-in from fchdir.m4.
45952         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
45953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
45955         dup3: Remove potential call-in from fchdir.m4.
45956         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
45957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
45959         dup2: Move AC_LIBOBJ invocation to module description.
45960         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
45961         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
45962         Don't invoke AC_LIBOBJ.
45963         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
45965         dup2: Remove call-in from fchdir.m4.
45966         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
45967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
45969         fclose: Move AC_LIBOBJ invocation to module description.
45970         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
45971         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
45972         to 1.
45973         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
45975         fclose: Remove call-in from close.m4.
45976         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
45977         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
45979         close: Move AC_LIBOBJ invocation to module description.
45980         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
45981         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
45982         1.
45983         * modules/close (configure.ac): Invoke AC_LIBOBJ.
45985         close: Remove call-in from fchdir.m4.
45986         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
45987         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
45989         open: Move AC_LIBOBJ invocation to module description.
45990         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
45991         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
45992         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
45994         open: Remove call-in from fchdir.m4.
45995         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
45996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
45998         fchdir: Start to remove gl_REPLACE_* idiom.
45999         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46000         (gl_FUNC_FCHDIR): Invoke it.
46002 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46004         * lib/ftell.c (ftell): Comment out cast.
46006         close: use gl_REPLACE_FCLOSE only if defined
46007         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46008         is defined.  The close module doesn't depend on the fclose module
46009         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46010         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46011         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46013 2011-07-24  Jim Meyering  <meyering@redhat.com>
46015         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46016         * tests/test-select.h (test_function): Declare as "static".
46018 2011-07-24  Bruno Haible  <bruno@clisp.org>
46020         doc: Mention the effects of AC_SYS_LARGEFILE.
46021         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46022         on this function.
46023         * doc/posix-functions/aio_error.texi: Likewise.
46024         * doc/posix-functions/aio_fsync.texi: Likewise.
46025         * doc/posix-functions/aio_read.texi: Likewise.
46026         * doc/posix-functions/aio_return.texi: Likewise.
46027         * doc/posix-functions/aio_suspend.texi: Likewise.
46028         * doc/posix-functions/aio_write.texi: Likewise.
46029         * doc/posix-functions/fgetpos.texi: Likewise.
46030         * doc/posix-functions/fopen.texi: Likewise.
46031         * doc/posix-functions/freopen.texi: Likewise.
46032         * doc/posix-functions/fsetpos.texi: Likewise.
46033         * doc/posix-functions/fstatvfs.texi: Likewise.
46034         * doc/posix-functions/ftruncate.texi: Likewise.
46035         * doc/posix-functions/ftw.texi: Likewise.
46036         * doc/posix-functions/getrlimit.texi: Likewise.
46037         * doc/posix-functions/glob.texi: Likewise.
46038         * doc/posix-functions/lio_listio.texi: Likewise.
46039         * doc/posix-functions/lockf.texi: Likewise.
46040         * doc/posix-functions/mkstemp.texi: Likewise.
46041         * doc/posix-functions/mmap.texi: Likewise.
46042         * doc/posix-functions/nftw.texi: Likewise.
46043         * doc/posix-functions/openat.texi: Likewise.
46044         * doc/posix-functions/opendir.texi: Likewise.
46045         * doc/posix-functions/posix_fadvise.texi: Likewise.
46046         * doc/posix-functions/posix_fallocate.texi: Likewise.
46047         * doc/posix-functions/pread.texi: Likewise.
46048         * doc/posix-functions/pwrite.texi: Likewise.
46049         * doc/posix-functions/readdir.texi: Likewise.
46050         * doc/posix-functions/readdir_r.texi: Likewise.
46051         * doc/posix-functions/rewinddir.texi: Likewise.
46052         * doc/posix-functions/scandir.texi: Likewise.
46053         * doc/posix-functions/seekdir.texi: Likewise.
46054         * doc/posix-functions/setrlimit.texi: Likewise.
46055         * doc/posix-functions/statvfs.texi: Likewise.
46056         * doc/posix-functions/telldir.texi: Likewise.
46057         * doc/posix-functions/tmpfile.texi: Likewise.
46058         * doc/posix-functions/truncate.texi: Likewise.
46059         * doc/glibc-functions/fallocate.texi: Likewise.
46060         * doc/glibc-functions/fstatfs.texi: Likewise.
46061         * doc/glibc-functions/fts_children.texi: Likewise.
46062         * doc/glibc-functions/fts_read.texi: Likewise.
46063         * doc/glibc-functions/getdirentries.texi: Likewise.
46064         * doc/glibc-functions/mkostemp.texi: Likewise.
46065         * doc/glibc-functions/mkostemps.texi: Likewise.
46066         * doc/glibc-functions/mkstemps.texi: Likewise.
46067         * doc/glibc-functions/preadv.texi: Likewise.
46068         * doc/glibc-functions/pwritev.texi: Likewise.
46069         * doc/glibc-functions/sendfile.texi: Likewise.
46070         * doc/glibc-functions/statfs.texi: Likewise.
46072 2011-07-24  Bruno Haible  <bruno@clisp.org>
46074         doc: Fix typo.
46075         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46077 2011-07-24  Bruno Haible  <bruno@clisp.org>
46079         doc: Mention fsusage.
46080         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46082 2011-07-24  Bruno Haible  <bruno@clisp.org>
46084         doc: Mention new glibc headers and functions.
46085         * doc/glibc-headers/gshadow.texi: New file.
46086         * doc/glibc-functions/endsgent.texi: New file.
46087         * doc/glibc-functions/fgetsgent.texi: New file.
46088         * doc/glibc-functions/fgetsgent_r.texi: New file.
46089         * doc/glibc-functions/getsgent.texi: New file.
46090         * doc/glibc-functions/getsgent_r.texi: New file.
46091         * doc/glibc-functions/getsgnam.texi: New file.
46092         * doc/glibc-functions/getsgnam_r.texi: New file.
46093         * doc/glibc-functions/putsgent.texi: New file.
46094         * doc/glibc-functions/setsgent.texi: New file.
46095         * doc/glibc-functions/sgetsgent.texi: New file.
46096         * doc/glibc-functions/sgetsgent_r.texi: New file.
46097         * doc/glibc-functions/malloc_info.texi: New file.
46098         * doc/glibc-functions/preadv.texi: New file.
46099         * doc/glibc-functions/pwritev.texi: New file.
46100         * doc/glibc-functions/register_printf_modifier.texi: New file.
46101         * doc/glibc-functions/register_printf_specifier.texi: New file.
46102         * doc/glibc-functions/register_printf_type.texi: New file.
46103         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46104         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46105         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46106         * doc/glibc-functions/pthread_getname_np.texi: New file.
46107         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46108         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46109         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46110         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46111         * doc/glibc-functions/pthread_setname_np.texi: New file.
46112         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46113         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46114         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46115         * doc/glibc-functions/qsort_r.texi: New file.
46116         * doc/glibc-functions/quick_exit.texi: New file.
46117         * doc/glibc-functions/syncfs.texi: New file.
46118         * doc/gnulib.texi: Include them.
46119         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46120         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46121         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46122         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46123         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46124         * doc/glibc-functions/execvpe.texi: Likewise.
46126 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46128         ftell: don't include <unistd.h>
46129         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46130         guaranteed to define off_t, and the ftell module depends on the
46131         stdio module.
46133         ftell: do not assume wraparound signed arithmetic
46134         * lib/ftell.c: Include <limits.h>.
46135         (ftell): Don't assume wraparound signed arithmetic.
46137 2011-07-24  Bruno Haible  <bruno@clisp.org>
46139         close: No longer depend on module 'fclose'.
46140         * modules/close (Depends-on): Remove fclose.
46141         * NEWS: Mention the change.
46142         Suggested by Sam Steingold <sds@gnu.org>.
46144 2011-07-24  Bruno Haible  <bruno@clisp.org>
46146         fsusage: Enable large volume support on AIX >= 5.2.
46147         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46148         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46149         instead of STAT_STATVFS.
46150         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46152         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46153         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46154         f_blocks field only on MacOS X.
46156         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46157         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46158         * modules/fsusage (Depends-on): Add largefile.
46160 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46162         * README: Modernize discussion of signed integers.
46163         Assuming overflow wraparound is no longer safe.
46164         Mention ones' complement and signed magnitude.
46166 2011-07-22  Bruno Haible  <bruno@clisp.org>
46168         select tests, pselect tests: Refactor.
46169         * tests/test-select.h: New file, extracted from tests/test-select.c.
46170         (select_fn): New type.
46171         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46172         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46173         test_pipe): Add my_select argument.
46174         (test_function): Renamed from main. Add my_select argument.
46175         * tests/test-select.c: Move most code to tests/test-select.h. Include
46176         test-select.h.
46177         * modules/select-tests (Files): Add tests/test-select.h.
46178         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46179         (my_select, main): New functions.
46180         * modules/pselect-tests (Files): Add tests/test-select.h,
46181         tests/macros.h, tests/signature.h.
46182         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46183         (configure.ac): Check for <sys/wait.h>.
46185 2011-07-22  Bruno Haible  <bruno@clisp.org>
46187         sys_select tests: Check the signature of FD_*.
46188         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46189         signature tests from here...
46190         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46191         here.
46192         * modules/sys_select-tests (Files): Add tests/signature.h.
46194 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46196         largefile: new module, replacing large-inode
46197         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46198         * MODULES.html.sh: Add largefile, remove large-inode.
46199         * modules/largefile, m4/largefile.m4: New files.
46200         * modules/large-inode, m4/large-inode.m4: Remove.
46202         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46204         implementations that use only 32 bits to count blocks.
46205         On typical hosts with 1024-byte blocks, this fails with file
46206         systems as small as 4 TiB.  Problem reported by Herb Wartens
46207         <http://debbugs.gnu.org/9140> and this should also fix a similar
46208         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46210         large-inode: New module
46211         * MODULES.html.sh: Add it.
46212         * modules/large-inode, m4/large-inode.m4: New files.
46214         extensions: Enable extensions on MacOS X 10.5 and later.
46215         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46217 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46219         file-has-acl: use acl_extended_file_nofollow if available
46220         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46221         (acl_extended_file): New macro.
46222         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46223         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46225 2011-07-21  Bruno Haible  <bruno@clisp.org>
46227         Declare system functions in a way that works with C++.
46228         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46229         declare fdopendir as extern "C".
46230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46231         declare frexpl as extern "C".
46232         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46233         declare gai_strerror as extern "C".
46234         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46235         programs, declare gai_strerror as extern "C".
46236         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46237         declare getlogin_r as extern "C".
46238         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46239         as extern "C".
46240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46241         declare ldexpl as extern "C".
46242         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46243         as extern "C".
46244         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46245         program, declare getmntinfo as extern "C".
46246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46247         stpncpy as extern "C".
46248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46249         program, declare __xpg_strerror_r as extern "C".
46250         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46251         strndup as extern "C".
46252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46253         declare memset and bzero as extern "C".
46254         Reported by Sam Steingold <sds@gnu.org>.
46256 2011-07-12  Jim Meyering  <meyering@redhat.com>
46258         maint.mk: prohibit inclusion of "verify.h" without use
46259         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46261 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46263         timer-time: A new module to check for timer_settime()
46264         * m4/timer_time.m4: Check for the posix function.
46265         * modules/timer-time: Add the new module.
46266         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46267         Mention it.
46269 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46270             Bruno Haible  <bruno@clisp.org>
46272         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46273         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46274         not defined, assume POSIX threads and look for pthread_sigmask in
46275         $LIBS, without changing $CPPFLAGS.
46277 2011-07-19  Bruno Haible  <bruno@clisp.org>
46279         strstr: Update cross-compilation guess.
46280         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46281         CPUs, guess no, in view of glibc
46282         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46283         Suggested by Eric Blake. Reported by Reuben Thomas.
46285 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46287         getopt-gnu: suppress core dumps from detection code
46288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46289         to suppress core dumps that may well occur on glibc systems.
46290         * modules/getopt-gnu: Depend on nocrash.
46292 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46294         pthread_sigmask: ensure usleep is declared
46295         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46296         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46298 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46300         doc: Document NonStop portability issues.
46301         * doc/posix-functions/sigaction.texi (sigaction):
46302         * doc/posix-headers/signal.texi (signal.h):
46303         Document NonStop.  See Joachim Schmitz in
46304         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46306 2011-07-15  Bruno Haible  <bruno@clisp.org>
46308         ffsl, ffsll: Avoid unportable behaviour.
46309         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46311 2011-07-15  Bruno Haible  <bruno@clisp.org>
46313         ffs: More tests.
46314         * tests/test-ffs.c (NBITS): New macro.
46315         (main): Add more tests.
46316         * tests/test-ffsl.c (NBITS): New macro.
46317         (main): Add more tests.
46318         * tests/test-ffsll.c (NBITS): New macro.
46319         (main): Add more tests.
46321 2011-07-15  Eric Blake  <eblake@redhat.com>
46323         ffsl, ffsll: new modules
46324         * modules/ffsl: New file.
46325         * modules/ffsll: Likewise.
46326         * m4/ffsl.m4: Likewise.
46327         * m4/ffsll.m4: Likewise.
46328         * lib/ffsl.c: Likewise.
46329         * lib/ffsl.h: Likewise.
46330         * lib/ffsll.c: Likewise.
46331         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46332         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46333         * modules/string (Makefile.am): Substitute witnesses.
46334         * lib/strings.in.h (ffsl, ffsll): Declare.
46335         * modules/ffsl-tests: New test file.
46336         * modules/ffsll-tests: Likewise.
46337         * tests/test-ffsl.c: Likewise.
46338         * tests/test-ffsll.c: Likewise.
46339         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46340         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46341         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46343         ffs: fix m4 prerequisite
46344         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46346         ffs: avoid undefined behavior
46347         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46348         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46349         Reported by Bruno Haible.
46351 2011-07-12  Bruno Haible  <bruno@clisp.org>
46353         pthread_sigmask: Rely on module 'threadlib'.
46354         * modules/pthread_sigmask (Depends-on): Add threadlib.
46355         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46356         is defined.
46358 2011-07-12  Bruno Haible  <bruno@clisp.org>
46360         regex: Depend on module 'strcase'.
46361         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46363 2011-07-12  Jim Meyering  <meyering@redhat.com>
46365         warn-on-use: fix typo in file name
46366         * modules/snippet/warn-on-use (Files): Correct file name:
46367         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46369 2011-07-12  Bruno Haible  <bruno@clisp.org>
46371         strings: Document module.
46372         * doc/posix-headers/strings.texi: Mention module 'strings'.
46374 2011-07-12  Bruno Haible  <bruno@clisp.org>
46376         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46377         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46378         (Files, Makefile.am): Update.
46379         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46380         * modules/stdlib (Depends-on): Update.
46382 2011-07-12  Bruno Haible  <bruno@clisp.org>
46384         * NEWS: Mention the changes.
46386         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46387         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46388         (Files, Makefile.am): Update.
46389         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46390         * modules/arpa_inet (Depends-on): Update.
46391         * modules/ctype (Depends-on): Update.
46392         * modules/dirent (Depends-on): Update.
46393         * modules/fcntl-h (Depends-on): Update.
46394         * modules/glob (Depends-on): Update.
46395         * modules/iconv-h (Depends-on): Update.
46396         * modules/inttypes-incomplete (Depends-on): Update.
46397         * modules/langinfo (Depends-on): Update.
46398         * modules/locale (Depends-on): Update.
46399         * modules/math (Depends-on): Update.
46400         * modules/netdb (Depends-on): Update.
46401         * modules/poll-h (Depends-on): Update.
46402         * modules/pty (Depends-on): Update.
46403         * modules/search (Depends-on): Update.
46404         * modules/signal (Depends-on): Update.
46405         * modules/spawn (Depends-on): Update.
46406         * modules/stdio (Depends-on): Update.
46407         * modules/stdlib (Depends-on): Update.
46408         * modules/string (Depends-on): Update.
46409         * modules/strings (Depends-on): Update.
46410         * modules/sys_file (Depends-on): Update.
46411         * modules/sys_ioctl (Depends-on): Update.
46412         * modules/sys_select (Depends-on): Update.
46413         * modules/sys_socket (Depends-on): Update.
46414         * modules/sys_stat (Depends-on): Update.
46415         * modules/sys_time (Depends-on): Update.
46416         * modules/sys_times (Depends-on): Update.
46417         * modules/sys_utsname (Depends-on): Update.
46418         * modules/sys_wait (Depends-on): Update.
46419         * modules/termios (Depends-on): Update.
46420         * modules/time (Depends-on): Update.
46421         * modules/unistd (Depends-on): Update.
46422         * modules/wchar (Depends-on): Update.
46423         * modules/wctype-h (Depends-on): Update.
46424         * MODULES.html.sh (Support for building libraries and executables):
46425         Update.
46427         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46428         * modules/snippet/unused-parameter: Renamed from
46429         modules/unused-parameter.
46430         (Files, Makefile.am): Update.
46431         * build-aux/snippet/unused-parameter.h: Renamed from
46432         build-aux/unused-parameter.h.
46433         * modules/selinux-h (Depends-on): Update.
46434         * modules/unistr/base (Depends-on): Update.
46435         * MODULES.html.sh (Core language properties): Update.
46437         Rename module 'link-warning' to 'snippet/link-warning'.
46438         * modules/snippet/link-warning: Renamed from modules/link-warning.
46439         (Files, Makefile.am): Update.
46440         * build-aux/snippet/link-warning.h: Renamed from
46441         build-aux/link-warning.h.
46442         * MODULES.html.sh (Support for building libraries and executables):
46443         Update.
46445         Rename module 'c++defs' to 'snippet/c++defs'.
46446         * modules/snippet/c++defs: Renamed from modules/c++defs.
46447         (Files, Makefile.am): Update.
46448         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46449         * modules/arpa_inet (Depends-on): Update.
46450         * modules/ctype (Depends-on): Update.
46451         * modules/dirent (Depends-on): Update.
46452         * modules/fcntl-h (Depends-on): Update.
46453         * modules/glob (Depends-on): Update.
46454         * modules/iconv-h (Depends-on): Update.
46455         * modules/langinfo (Depends-on): Update.
46456         * modules/locale (Depends-on): Update.
46457         * modules/math (Depends-on): Update.
46458         * modules/netdb (Depends-on): Update.
46459         * modules/poll-h (Depends-on): Update.
46460         * modules/pty (Depends-on): Update.
46461         * modules/search (Depends-on): Update.
46462         * modules/signal (Depends-on): Update.
46463         * modules/spawn (Depends-on): Update.
46464         * modules/stdio (Depends-on): Update.
46465         * modules/stdlib (Depends-on): Update.
46466         * modules/string (Depends-on): Update.
46467         * modules/strings (Depends-on): Update.
46468         * modules/sys_ioctl (Depends-on): Update.
46469         * modules/sys_select (Depends-on): Update.
46470         * modules/sys_socket (Depends-on): Update.
46471         * modules/sys_stat (Depends-on): Update.
46472         * modules/sys_time (Depends-on): Update.
46473         * modules/sys_wait (Depends-on): Update.
46474         * modules/termios (Depends-on): Update.
46475         * modules/time (Depends-on): Update.
46476         * modules/unistd (Depends-on): Update.
46477         * modules/wchar (Depends-on): Update.
46478         * modules/wctype-h (Depends-on): Update.
46480         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46481         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46482         (Files, Makefile.am): Update.
46483         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46484         * modules/argv-iter (Depends-on): Update.
46485         * modules/arpa_inet (Depends-on): Update.
46486         * modules/dirent (Depends-on): Update.
46487         * modules/fcntl-h (Depends-on): Update.
46488         * modules/fnmatch (Depends-on): Update.
46489         * modules/getopt-posix (Depends-on): Update.
46490         * modules/glob (Depends-on): Update.
46491         * modules/iconv-h (Depends-on): Update.
46492         * modules/inttypes-incomplete (Depends-on): Update.
46493         * modules/locale (Depends-on): Update.
46494         * modules/math (Depends-on): Update.
46495         * modules/netdb (Depends-on): Update.
46496         * modules/search (Depends-on): Update.
46497         * modules/signal (Depends-on): Update.
46498         * modules/spawn (Depends-on): Update.
46499         * modules/stdio (Depends-on): Update.
46500         * modules/stdlib (Depends-on): Update.
46501         * modules/string (Depends-on): Update.
46502         * modules/strings (Depends-on): Update.
46503         * modules/sys_socket (Depends-on): Update.
46504         * modules/sys_stat (Depends-on): Update.
46505         * modules/sys_time (Depends-on): Update.
46506         * modules/sys_times (Depends-on): Update.
46507         * modules/sys_utsname (Depends-on): Update.
46508         * modules/time (Depends-on): Update.
46509         * modules/unistd (Depends-on): Update.
46510         * modules/wchar (Depends-on): Update.
46511         * MODULES.html.sh (Support for building libraries and executables):
46512         Update.
46514 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46516         Improvements on _Noreturn and related modules.
46518         modules/_Exit-tests: test _Noreturn too
46519         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46520         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46521         (main): Use them.
46523         stdnoreturn, stdnoreturn-tests: remove modules
46524         They're not needed here and a bit premature for use elsewhere.  See
46525         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46526         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46527         * tests/test-stdnoreturn.c: Remove files.
46528         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46529         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46530         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46531         and using noreturn.
46532         * modules/openat, modules/sigpipe-die, modules/xalloc:
46533         * modules/xmemdup0, modules/xstrtol:
46534         Remove dependency on stdnoreturn.
46536         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46537         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46538         Reparenthesize to avoid GCC warning.
46539         Support Microsoft's syntax.
46540         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46542         _Noreturn-tests: remove module
46543         * modules/_Noreturn-tests: Remove.
46544         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46545         * tests/test-_Noreturn.c: Remove.
46546         * tests/test-stdnoreturn.c: Merge from the old
46547         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46549 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46551         _Noreturn, stdnoreturn, and related modules.
46553         * top/maint.mk: Adjust to new noreturn support.
46554         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46555         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46557         xalloc: use stdnoreturn.h
46558         * lib/xalloc.h: Include <stdnoreturn.h>.
46559         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46560         * modules/xalloc (Depends-on): Add stdnoreturn.
46562         xstrtol: use stdnoreturn.h
46563         * lib/xstrtol.h: Include <stdnoreturn.h>.
46564         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46565         * modules/xstrtol (Depends-on): Add stdnoreturn.
46567         xmemdup0: use stdnoreturn.h
46568         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46569         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46570         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46572         sigpipe-die: use stdnoreturn.h
46573         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46574         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46575         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46577         openat: use stdnoreturn.h
46578         * lib/openat.h: Include <stdnoreturn.h>.
46579         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46580         * modules/openat (Depends-on): Add stdnoreturn.
46582         * lib/openat-die.c (openat_save_fail): Modernize comment.
46584         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46586         * lib/glthread/thread.h: Modernize comment.
46588         obstack: use _Noreturn
46589         * lib/obstack.c (__attribute__): Remove macro.
46590         (print_and_abort): Use _Noreturn.
46592         c-stack: use _Noreturn
46593         * lib/c-stack.c (die, overflow_handler, segv_handler):
46594         Use _Noreturn rather than __attribute__((noreturn)).
46596         argmatch-tests, exclude_tests: use _Noreturn
46597         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46598         Remove.
46599         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46601         stdlib: use _Noreturn
46602         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46603         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46604         * modules/stdlib (Depends-on): Add _Noreturn.
46605         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46607         stdnoreturn-tests: new module
46608         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46610         stdnoreturn: new module
46611         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46612         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46614         _Noreturn-tests: new module
46615         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46617         _Noreturn: new module
46618         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46619         New section, mentioning it.
46620         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46622         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46624 2011-07-11  Eric Blake  <eblake@redhat.com>
46626         ffs: new module
46627         * modules/ffs: New file.
46628         * m4/ffs.m4: Likewise.
46629         * lib/ffs.c: Likewise.
46630         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46631         * modules/strings (Makefile.am): Substitute witness.
46632         (Depends-on): Add c++defs.
46633         * lib/strings.in.h (ffs): Declare.
46634         * modules/ffs-tests: New test file.
46635         * tests/test-ffs.c: Test new module.
46636         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46637         * doc/posix-functions/ffs.texi (ffs): Likewise.
46639         regex: avoid compiler warning
46640         * lib/regex.c (includes): Include <strings.h>, for use of
46641         strcasecmp in regcomp.c.
46642         Reported by Joachim Schmitz.
46644 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46646         stdint: respect system's intmax_t if INTMAX_MAX
46647         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46648         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46649         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46650         long but int64_t is long long, and where we will clash with the
46651         system intmax_t if we override it.  See
46652         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46653         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46654         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46655         similarly for UINTMAX_C.
46657 2011-07-08  Bruno Haible  <bruno@clisp.org>
46659         pthread_sigmask tests: Avoid a compiler warning.
46660         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46661         non-zero.
46663         sigprocmask tests: A better way to avoid a compiler warning.
46664         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46665         (main): Complain if system() returns non-zero.
46666         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46668 2011-07-08  Bruno Haible  <bruno@clisp.org>
46670         pthread_sigmask: Work around IRIX bug.
46671         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46672         bug.
46673         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46674         there may be unblocked pending signals.
46675         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46677 2011-07-08  Bruno Haible  <bruno@clisp.org>
46679         pthread_sigmask: Work around Cygwin bug.
46680         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46681         bug.
46682         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46683         the system's pthread_sigmask function.
46684         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46686 2011-07-08  Bruno Haible  <bruno@clisp.org>
46688         pthread_sigmask: Work around bug in single-threaded implementation.
46689         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46690         FreeBSD, HP-UX, Solaris bug.
46691         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46692         * lib/pthread_sigmask.c: Include <stddef.h>.
46693         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46694         the system's pthread_sigmask function.
46695         * modules/pthread_sigmask (configure.ac): Invoke
46696         gl_PREREQ_PTHREAD_SIGMASK.
46697         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46698         HP-UX, Solaris.
46700 2011-07-08  Eric Blake  <eblake@redhat.com>
46702         test-sigprocmask: avoid compiler warning
46703         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46704         * tests/test-sigprocmask.c (main): Use it to silence warning.
46705         Reported by Jim Meyering.
46707         test-snprintf: avoid compiler warning
46708         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46709         * tests/test-vsnprintf.c (main): Likewise.
46710         Reported by Jim Meyering.
46712 2011-07-08  Bruno Haible  <bruno@clisp.org>
46714         Tests for module 'pthread_sigmask'.
46715         * modules/pthread_sigmask-tests: New file.
46716         * tests/test-pthread_sigmask1.c: New file, based on
46717         tests/test-sigprocmask.c.
46718         * tests/test-pthread_sigmask2.c: New file.
46720 2011-07-08  Jim Meyering  <meyering@redhat.com>
46722         test-getopt.h: avoid warning about an unused variable
46723         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
46725 2011-07-07  Jim Meyering  <meyering@redhat.com>
46727         maint: reduce list of files exempt from sc_prohibit_leading_TABs
46728         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
46729         now that it no longer contains leading TABs.
46730         Remove unused "url=FIXME" statement.
46732 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46734         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
46735         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46736         When gl_THREADLIB is not in use, assume that the POSIX sematics
46737         are desired.  This is better for Emacs, which uses POSIX semantics
46738         on GNUish and/or POSIXish platforms, and does not use threads at
46739         all otherwise.
46741         pthread_sigmask: fix typo when testing for libraries
46742         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46743         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
46745 2011-07-08  Eric Blake  <eblake@redhat.com>
46747         fts: introduce FTS_NOATIME
46748         * lib/fts_.h (FTS_NOATIME): New bit flag.
46749         (FTS_OPTIONMASK): Adjust.
46750         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
46751         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
46753 2011-07-08  Bruno Haible  <bruno@clisp.org>
46755         Tests for module 'thread'.
46756         * modules/thread-tests: New file.
46757         * tests/test-thread_self.c: New file.
46758         * tests/test-thread_create.cc: New file.
46760 2011-07-08  Bruno Haible  <bruno@clisp.org>
46762         thread: Avoid gcc warnings when using gl_thread_self().
46763         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
46764         'void *'.
46765         (gl_thread_self_pointer): Update.
46767 2011-07-07  Bruno Haible  <bruno@clisp.org>
46769         signal-c++-tests: Check declaration of pthread_sigmask.
46770         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
46771         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
46772         $(LIB_PTHREAD_SIGMASK).
46774 2011-07-07  Bruno Haible  <bruno@clisp.org>
46776         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
46777         * lib/signal.in.h (pthread_sigmask): Override if
46778         REPLACE_PTHREAD_SIGMASK is 1.
46779         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46780         REPLACE_PTHREAD_SIGMASK.
46781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
46782         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
46783         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
46784         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46785         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
46787 2011-07-07  Bruno Haible  <bruno@clisp.org>
46789         pthread_sigmask: Ensure declaration in <signal.h>.
46790         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
46791         include <pthread.h>.
46792         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
46793         problem.
46795 2011-07-07  Bruno Haible  <bruno@clisp.org>
46797         pthread_sigmask: Document the module.
46798         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
46800 2011-07-07  Bruno Haible  <bruno@clisp.org>
46802         pthread_sigmask: Follow gnulib conventions.
46803         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
46804         gl_PTHREAD_SIGMASK.
46805         * modules/pthread_sigmask (configure.ac): Update.
46807 2011-07-07  Bruno Haible  <bruno@clisp.org>
46809         pthread_sigmask: Make declaration C++ safe.
46810         * lib/signal.in.h: In two special conditions, just do an #include_next.
46811         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46812         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
46813         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46814         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46815         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
46816         not REPLACE_PTHREAD_MASK.
46817         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
46818         not REPLACE_PTHREAD_MASK.
46819         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46821 2011-07-07  Bruno Haible  <bruno@clisp.org>
46823         pthread_sigmask: Fix return value.
46824         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
46825         * lib/pthread_sigmask.c: New file.
46826         * modules/pthread_sigmask (Files): Add it.
46827         (configure.ac): Invoke AC_LIBOBJ.
46829 2011-07-07  Eric Blake  <eblake@redhat.com>
46831         getopt: more portable argv creation
46832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
46833         const, use char arrays rather than strings.
46834         Suggested by Paul Eggert.
46836 2011-07-07  Bruno Haible  <bruno@clisp.org>
46838         Tests for module 'sigprocmask'.
46839         * modules/sigprocmask-tests: New file.
46840         * tests/test-sigprocmask.c: New file.
46842 2011-07-07  Bruno Haible  <bruno@clisp.org>
46844         float tests: Tweak.
46845         * tests/test-float.c (main): Tweak skip message.
46847 2011-07-07  Eric Blake  <eblake@redhat.com>
46849         getopt: avoid compiler warning during configure
46850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
46851         assigning string literals to non-const pointer.
46853         getopt-gnu: avoid crash in glibc getopt
46854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
46855         * tests/test-getopt.h (test_getopt): Enhance test.
46856         * tests/test-getopt_long.h (test_getopt_long): Likewise.
46857         * doc/posix-functions/getopt.texi (getopt): Document it.
46858         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46859         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46860         Likewise.
46862 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
46864         getopt: handle W; without long options in getopt [BZ #12922]
46865         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
46866         but no long options are defined, just return 'W'.
46868 2011-07-07  Bruno Haible  <bruno@clisp.org>
46870         Avoid literal tabs.
46871         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
46872         variable containing a tab instead of a literal tab.
46873         Reported by Jim Meyering.
46875 2011-07-07  Bruno Haible  <bruno@clisp.org>
46877         Comments.
46878         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
46880 2011-07-06  Bruno Haible  <bruno@clisp.org>
46882         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
46883         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
46884         <winsock2.h>.
46885         (rpl_fd_isset, FD_ISSET): New definitions, copied from
46886         lib/sys_socket.in.h.
46887         (close, gethostname): Hide declarations from <winsock2.h>.
46888         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46889         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
46890         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
46891         (select): Don't override if gnulib's <sys/select.h> was already
46892         included.
46893         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
46894         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
46895         setsockopt, shutdown, select): Tweak indentation.
46897 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46899         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
46900         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
46901         in an application that does not use the sys_select module.
46903 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
46905         poll: do not return 0 on timeout=-1
46906         * lib/poll.c: Loop with yield if no events occurred.
46908 2011-07-06  Eric Blake  <eblake@redhat.com>
46910         pthread_sigmask: always replace when not using pthread
46911         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
46912         replacement when using some threading other than pthread.  Fix
46913         logic bug.
46915 2011-07-06  Bruno Haible  <bruno@clisp.org>
46917         Comments.
46918         * m4/printf.m4: Update comments about mingw.
46920 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46922         sys_select: define sigset_t more portably
46923         * lib/sys_select.in.h: Always include <sys/types.h>, since
46924         we now need sigset_t and mingw defines it there.
46925         Include <signal.h> before split inclusion guard, to avoid
46926         mishaps on Solaris, whose <signal.h> eventually includes us.
46927         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
46928         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
46929         which come from ...
46930         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
46931         gl_CHECK_TYPE_SIGSET_T.
46932         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
46933         does the real work.
46934         * modules/sys_select (Depends-on): Add 'signal'.
46936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
46937         Suggested by Bruno Haible.
46939         pselect: Use pthread_sigmask, not sigprocmask.
46940         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
46941         multithreaded apps better than sigprocmask does.
46942         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
46943         sigprocmask directly.
46945 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46947         * lib/pselect.c (pselect): Use plain name, without "rpl_".
46948         Don't #undef,  since we don't need any underlying pselect.
46949         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
46950         (Depends-on): Add select.
46951         (Link): Add $(LIBSOCKET).
46952         These changes suggested by Bruno Haible.
46954         pselect: document better
46955         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
46956         * doc/posix-functions/pselect.texi (pselect): Document new module.
46958         pthread_sigmask: new module
46959         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
46960         * doc/posix-functions/pthread_sigmask.texi: Document new module.
46961         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
46962         This is done only as a macro; I don't know how well that'll
46963         work for C++.  Move <sys/types.h> include before the include_next,
46964         to avoid mishap on Solaris.
46965         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
46966         * modules/signal (Makefile.am): Substitute the check's results.
46967         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
46969         test-pselect: new module
46970         * modules/pselect-tests, tests/test-pselect.c: New files.
46971         * tests/test-select.c, tests/test-sys_select-c++.cc:
46972         If TEST_PSELECT is defined, test pselect instead of testing select.
46974         * tests/test-sys_select.c (sigset_t): Test for it, too.
46975         Suggested by Bruno Haible.
46977 2011-07-05  Eric Blake  <eblake@redhat.com>
46979         snprintf: guarantee %1$d, for libintl
46980         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
46981         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46982         * doc/posix-functions/snprintf.texi (snprintf): Update.
46983         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46984         * tests/test-snprintf.c (main): Enhance test.
46985         * tests/test-vsnprintf.c (main): Likewise.
46987 2011-07-05  Jim Meyering  <meyering@redhat.com>
46989         maint: exempt stdio-read.c and stdio-write.c from the cppi check
46990         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
46991         per Bruno's request, to accommodate this idiom (no space after "#")
46992         even when the function is inside an #if block:
46993         char *
46994         gets (char *s)
46995         #undef gets
46996         {
46997           ...
46998         }
47000 2011-07-04  Jim Meyering  <meyering@redhat.com>
47002         maint: indent with spaces, not TABs, and add a rule to check this
47003         * tests/test-userspec.c: Indent with spaces, not TABs.
47004         * tests/test-argp.c: Likewise.
47005         * tests/test-c-stack2.sh: Likewise.
47006         * tests/test-parse-duration.sh: Likewise
47007         * m4/strtod.m4: Likewise.
47008         * m4/alloca.m4: Likewise.
47009         * m4/pselect.m4: Likewise.
47010         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47012 2011-07-03  Jim Meyering  <meyering@redhat.com>
47014         maint.mk: correct omissions in prohibit_argmatch_without_use check
47015         This rule would mistakenly report that argmatch.h is included without
47016         use even when both the argmatch and invalid_arg macro were used.
47017         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47018         of argmatch and invalid_arg.
47020 2011-07-03  Bruno Haible  <bruno@clisp.org>
47022         Comments about EINTR.
47023         * lib/safe-read.h: Explain the purpose of this module.
47024         * lib/safe-write.h: Likewise.
47025         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47026         module.
47027         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47028         module.
47029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47031 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47033         xnanosleep: Rewrite to use new dtotimespec module.
47034         It has the conversion code that used to be in xnanosleep.
47035         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47036         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47037         (TIME_T_MAX): Remove.
47038         (xnanosleep): Rewrite in terms of dtotimespec.
47039         * modules/xnanosleep (Depends-on): Add dtotimespec.
47040         Remove intprops, stdbool.
47042         timespec-add, timespec-sub: new modules
47043         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47044         * lib/timespec-add.c, lib/timespec-sub.c:
47045         * modules/timespec-add, modules/timespec-sub: New files.
47047         dtotimespec: new module
47048         * lib/timespec.h (dtotimespec): New decl.
47049         * lib/dtotimespec.c, modules/dtotimespec: New files.
47051         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47053         pselect: new module
47054         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47055         (pselect): New decls.
47056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47057         since the standard pselect decl uses 'restrict'.
47058         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47059         HAVE_PSELECT, REPLACE_PSELECT.
47060         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47061         HAVE_PSELECT, REPLACE_PSELECT.
47062         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47064         sys_select: don't depend on sys_socket
47065         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47066         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47067         This fix works on GNU and GNU-like platforms, but has not been tested
47068         on native Windows.
47069         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47070         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47071         gl_HEADER_SYS_SOCKET.
47072         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47073         gl_PREREQ_SYS_H_WINSOCK2.
47075 2011-06-29  Eric Blake  <eblake@redhat.com>
47077         pipe2: fix C89 compile problem
47078         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47079         Reported by Bruno Haible.
47081         pipe, pipe2: don't corrupt fd on error
47082         * lib/pipe.c (pipe): Leave fd unchanged on error.
47083         * lib/pipe2.c (pipe2): Likewise.
47084         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47085         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47087 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47089         mmap-anon: do not use regular expressions inadvertently
47090         * m4/mmap-anon.m4: Remove trailing period from strings sought
47091         in the output.
47093 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47095         nanosleep: fix integer overflow problem
47096         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47097         arithmetic wraps around on overflow.
47099         nanosleep: simplify carrying
47100         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47101         first call to the underyling nanosleep, not for the last one.
47102         This doesn't fix any bugs, but it simplifies the computation of
47103         the remaining delay.  Found while auditing integer overflow issues.
47105         dup2: remove test for existence of fcntl
47106         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47107         "#if HAVE_FCNTL", in the configure-time test program.
47108         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47109         and therefore speeds up "configure" a bit.  Found while
47110         adding the dup2 module to Emacs.
47112 2011-06-24  Eric Blake  <eblake@redhat.com>
47114         maint.mk: enhance useless header checks
47115         * top/maint.mk (_sc_header_without_use): Check both include
47116         styles.
47117         (sc_prohibit_assert_without_use)
47118         (sc_prohibit_close_stream_without_use)
47119         (sc_prohibit_getopt_without_use)
47120         (sc_prohibit_quotearg_without_use)
47121         (sc_prohibit_quote_without_use)
47122         (sc_prohibit_long_options_without_use)
47123         (sc_prohibit_inttostr_without_use)
47124         (sc_prohibit_ignore_value_without_use)
47125         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47126         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47127         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47128         (sc_prohibit_hash_pjw_without_use)
47129         (sc_prohibit_safe_read_without_use)
47130         (sc_prohibit_argmatch_without_use)
47131         (sc_prohibit_canonicalize_without_use)
47132         (sc_prohibit_root_dev_ino_without_use)
47133         (sc_prohibit_openat_without_use)
47134         (sc_prohibit_c_ctype_without_use)
47135         (sc_prohibit_signal_without_use)
47136         (sc_prohibit_stdio--_without_use)
47137         (sc_prohibit_stdio-safer_without_use)
47138         (sc_prohibit_strings_without_use)
47139         (sc_prohibit_intprops_without_use)
47140         (sc_prohibit_stddef_without_use)
47141         (sc_prohibit_xfreopen_without_use): Update clients.
47143 2011-06-24  Jim Meyering  <meyering@redhat.com>
47145         syntax-check: keep one maint.mk rule in sync with its header
47146         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47147         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47148         I prefer to avoid temporary files here, so use <(...), but that
47149         is not supported by /bin/sh, so...
47150         (SHELL): Define to /bin/bash.
47152 2011-06-24  Eric Blake  <eblake@redhat.com>
47154         maint.mk: update sc_prohibit_intprops_without_use
47155         * top/maint.mk (_intprops_names): Match recent changes.
47157 2011-06-24  Bruno Haible  <bruno@clisp.org>
47159         strerror-override: No-op tweak.
47160         * lib/strerror-override.h (strerror_override): Reorder conditions,
47161         for consistency with lib/strerror-override.c.
47163 2011-06-23  Eric Blake  <eblake@redhat.com>
47165         maint.mk: test further PATH_MAX issues
47166         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47167         (sc_prohibit_path_max_allocation): ...and also test alloca.
47168         Suggested by Jim Meyering.
47170 2011-06-22  Eric Blake  <eblake@redhat.com>
47172         maint.mk: add syntax-check to avoid char[PATH_MAX]
47173         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47175         stat: be robust to PATH_MAX definition
47176         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47177         * modules/stat (Depends-on): Add verify.
47179         link: work around IRIX bug
47180         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47181         * lib/link.c (rpl_link): Work around it.
47182         * tests/test-link.h (test_link): Enhance test.
47183         * doc/posix-functions/link.texi (link): Document the bug.
47185         getopt: silence clang warning
47186         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47187         dereference.
47188         Reported by Gustavo Martin Domato.
47190 2011-06-22  Jim Meyering  <meyering@redhat.com>
47192         bootstrap: do not insert a blank line into each .gitignore file
47193         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47195 2011-06-21  Eric Blake  <eblake@redhat.com>
47197         perror: test for output mismatch
47198         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47199         perror on IRIX.
47201         strerror_r: fix OpenBSD behavior on out-of-range
47202         * lib/strerror_r.c (strerror_r): Always use maximal string.
47203         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47205         strerror_r: fix OpenBSD behavior on 0
47206         * lib/strerror-override.c (strerror_override): Also override 0
47207         when needed.
47208         * lib/strerror-override.h (strerror_override): Likewise.
47209         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47210         earlier.
47211         * lib/strerror_r.c (strerror_r): Likewise.
47212         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47213         behavior...
47214         (gl_FUNC_STRERROR_0): ...into new macro.
47215         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47216         is overridden.
47217         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47218         * modules/strerror-override (Files): Add strerror.m4.
47219         (configure.ac): Also provide override for 0 when needed.
47220         * doc/posix-functions/strerror.texi (strerror): Document this.
47221         * doc/posix-functions/perror.texi (perror): Likewise.
47223         perror: adjust array size
47224         * modules/perror (Depends-on): Add strerror-override.
47225         * lib/perror.c (perror): Use it to avoid magic number.
47227         strerror-override: reduce size
47228         * lib/strerror-override.c (strerror_override): Use fewer lines.
47230 2011-06-20  Bruno Haible  <bruno@clisp.org>
47232         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47233         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47235 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47237         alloca: port to compilers that can optimize like GCC 4.6.0
47238         * lib/alloca.c (find_stack_direction): New signature, taken from
47239         Autoconf git.  This works with GCC 4.6.0.  This code should never
47240         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47241         be used with other compilers that optimize as well as GCC 4.6.0 does.
47242         (alloca): Adjust to new signature.
47243         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47244         New macro, which patches Autoconf in a similar way.
47246         c-stack: stop worrying about stack direction
47247         * lib/c-stack.c (find_stack_direction): Remove.
47248         (segv_handler): Don't worry about stack direction growth, as it's
47249         too much of a pain to configure this correctly, given how compilers
47250         are optimizing-away our stack-growth detection code.  Instead, assume
47251         that any access to just before or just after the stack is OK.
47252         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47253         Don't require AC_FUNC_ALLOCA; no longer needed.
47255 2011-06-20  Eric Blake  <eblake@redhat.com>
47257         test-stat: don't allocate PATH_MAX bytes
47258         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47259         PATH_MAX-sized buffer.
47260         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47261         * modules/stat-tests (Depends-on): Likewise.
47262         * tests/test-fstatat.c (includes): Drop pathmax.h.
47263         * tests/test-stat.c (includes): Likewise.
47264         Reported by Bruno Haible.
47266 2011-06-20  Bruno Haible  <bruno@clisp.org>
47268         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47269         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47270         * lib/float.c: New file.
47271         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47272         REPLACE_FLOAT_LDBL.
47273         * modules/float (Files): Add lib/float.c.
47274         (configure.ac): Invoke AC_LIBOBJ.
47275         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47277 2011-06-20  Bruno Haible  <bruno@clisp.org>
47279         Tests for module 'float'.
47280         * modules/float-tests: New file.
47281         * tests/test-float.c: New file.
47283 2011-06-19  Bruno Haible  <bruno@clisp.org>
47285         isinf: Coding style.
47286         * lib/isinf.c: Use GNU coding style.
47288 2011-06-19  Bruno Haible  <bruno@clisp.org>
47290         linkat test: Avoid test failure on AIX 7.1.
47291         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47292         * tests/test-link.h (test_link): Likewise.
47294 2011-06-19  Bruno Haible  <bruno@clisp.org>
47296         pread test: Avoid test failure on OpenBSD 4.9.
47297         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47299 2011-06-19  Bruno Haible  <bruno@clisp.org>
47301         sprintf-posix: Fix test failure on AIX 7.1.
47302         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47303         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47304         on AIX.
47305         * doc/posix-functions/fprintf.texi: Likewise.
47306         * doc/posix-functions/printf.texi: Likewise.
47307         * doc/posix-functions/snprintf.texi: Likewise.
47308         * doc/posix-functions/sprintf.texi: Likewise.
47309         * doc/posix-functions/vdprintf.texi: Likewise.
47310         * doc/posix-functions/vfprintf.texi: Likewise.
47311         * doc/posix-functions/vprintf.texi: Likewise.
47312         * doc/posix-functions/vsnprintf.texi: Likewise.
47313         * doc/posix-functions/vsprintf.texi: Likewise.
47315 2011-06-19  Bruno Haible  <bruno@clisp.org>
47317         roundl-ieee: Fix test failure on AIX 7.1.
47318         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47319         * doc/posix-functions/roundl.texi: Mention problem with negative
47320         arguments.
47322 2011-06-19  Bruno Haible  <bruno@clisp.org>
47324         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47325         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47326         * doc/posix-functions/round.texi: Mention problem with negative
47327         arguments.
47328         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47330 2011-06-19  Bruno Haible  <bruno@clisp.org>
47332         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47334         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47335         * doc/posix-functions/roundf.texi: Mention problem with negative
47336         arguments.
47337         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47339 2011-06-19  Bruno Haible  <bruno@clisp.org>
47341         ceilf-ieee: Work around bug on MacOS X 10.5.
47342         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47344         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47345         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47346         IEEE compliant, avoid compiler optimizations.
47347         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47348         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47349         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47350         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47351         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47352         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47353         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47354         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47355         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47356         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47358 2011-06-19  Bruno Haible  <bruno@clisp.org>
47360         ceilf-ieee: Work around bug on AIX 7.1.
47361         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47362         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47364 2011-06-19  Bruno Haible  <bruno@clisp.org>
47366         ceil-ieee: Work around bug on AIX 7.1.
47367         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47368         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47370 2011-06-18  Bruno Haible  <bruno@clisp.org>
47372         fsync test: Avoid test failure on MacOS X and AIX.
47373         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47374         EINVAL.
47376 2011-06-18  Bruno Haible  <bruno@clisp.org>
47378         openat, fdopendir tests: Fix link errors.
47379         * modules/openat-tests (Depends-on): Add progname.
47380         * modules/fdopendir-tests (Depends-on): Likewise.
47381         * tests/test-fchownat.c: Include progname.h.
47382         (main): Call set_program_name.
47383         * tests/test-fstatat.c: Include progname.h.
47384         (main): Call set_program_name.
47385         * tests/test-mkdirat.c: Include progname.h.
47386         (main): Call set_program_name.
47387         * tests/test-openat.c: Include progname.h.
47388         (main): Call set_program_name.
47389         * tests/test-unlinkat.c: Include progname.h.
47390         (main): Call set_program_name.
47391         * tests/test-fdopendir.c: Include progname.h.
47392         (main): Call set_program_name.
47394 2011-06-18  Bruno Haible  <bruno@clisp.org>
47396         Doc update.
47397         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47398         HP-UX.
47399         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47401 2011-06-18  Bruno Haible  <bruno@clisp.org>
47403         getcwd tests: Avoid compilation error on HP-UX 11.31.
47404         * modules/getcwd-tests (Depends-on): Add pathmax.
47405         * tests/test-getcwd.c: Include pathmax.h.
47407 2011-06-18  Bruno Haible  <bruno@clisp.org>
47409         isfinite, isinf: Fix link error on AIX 6 and 7.
47410         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47411         needed, also test the macro with a 'float' argument.
47412         * m4/isinf.m4 (gl_ISINF): Likewise.
47414 2011-06-18  Bruno Haible  <bruno@clisp.org>
47416         getloadavg: Don't clobber LIBS. Regression from previous commit.
47417         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47418         AC_CHECK_LIB from here...
47419         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47420         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47421         gl_func_getloadavg_done.
47422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47424 2011-06-18  Bruno Haible  <bruno@clisp.org>
47426         clean-temp: Improve documentation.
47427         * lib/clean-temp.h: Explain better how to use this module.
47428         Reported by John Darrington <john@darrington.wattle.id.au>.
47430 2011-06-17  Bruno Haible  <bruno@clisp.org>
47432         pread, pwrite: Avoid cc warning on AIX.
47433         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47434         (pwrite): Likewise.
47436 2011-06-17  Bruno Haible  <bruno@clisp.org>
47438         spawn-pipe tests: Fix link error.
47439         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47442 2011-06-17  Bruno Haible  <bruno@clisp.org>
47444         Tests: Remove unnecessary dependency.
47445         * modules/canonicalize-tests (Depends-on): Remove progname.
47446         * modules/chown-tests (Depends-on): Likewise.
47447         * modules/dirname-tests (Depends-on): Likewise.
47448         * modules/fdopendir-tests (Depends-on): Likewise.
47449         * modules/fdutimensat-tests (Depends-on): Likewise.
47450         * modules/hash-tests (Depends-on): Likewise.
47451         * modules/lchown-tests (Depends-on): Likewise.
47452         * modules/linkat-tests (Depends-on): Likewise.
47453         * modules/renameat-tests (Depends-on): Likewise.
47454         * modules/spawn-pipe-tests (Depends-on): Likewise.
47455         * modules/utimensat-tests (Depends-on): Likewise.
47457 2011-06-17  Bruno Haible  <bruno@clisp.org>
47459         spawn-pipe tests: Fix link error.
47460         * tests/test-spawn-pipe-child.c: Undefine fflush.
47462 2011-06-17  Bruno Haible  <bruno@clisp.org>
47464         Fix tests link errors.
47465         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47466         * modules/chown-tests (Makefile.am): Don't link test-chown with
47467         LIBINTL.
47468         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47469         LIBINTL.
47470         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47471         LIBINTL.
47472         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47473         LIBINTL.
47475 2011-06-16  Bruno Haible  <bruno@clisp.org>
47477         crypto/gc-sha1: Fix recent regression.
47478         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47479         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47481         crypto/gc-md5: Fix recent regression.
47482         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47484         crypto/gc-md4: Fix recent regression.
47485         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47486         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47488         crypto/gc-arctwo: Fix recent regression.
47489         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47490         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47492         crypto/gc-rijndael: Fix recent regression.
47493         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47494         (configure.ac): Invoke AC_LIBOBJ here.
47495         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47498         crypto/gc-hmac-sha1: Fix recent regression.
47499         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47500         (configure.ac): Invoke AC_LIBOBJ here.
47501         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47504         crypto/gc-hmac-md5: Fix recent regression.
47505         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47506         (configure.ac): Invoke AC_LIBOBJ here.
47507         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47510         crypto/gc-des: Fix recent regression.
47511         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47512         (configure.ac): Invoke AC_LIBOBJ here.
47513         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47516         crypto/gc-arcfour: Fix recent regression.
47517         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47518         (configure.ac): Invoke AC_LIBOBJ here.
47519         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47522 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47524         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47525         After the 2011-05-21 change, this macro requires
47526         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47527         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47529 2011-06-16  Bruno Haible  <bruno@clisp.org>
47531         fprintftime: Move AC_LIBOBJ invocations to module description.
47532         * m4/fprintftime.m4: Remove file.
47533         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47534         (configure.ac): Remove gl_FPRINTFTIME call.
47535         (Makefile.am): Augment lib_SOURCES.
47536         Reported by Jim Meyering.
47538 2011-06-16  Bruno Haible  <bruno@clisp.org>
47540         tmpfile-safer: Finish 2011-05-23 commit.
47541         * m4/stdio-safer.m4: Really remove file.
47542         Reported by Jim Meyering.
47544 2011-06-16  Bruno Haible  <bruno@clisp.org>
47546         syntax-check: Fix typo.
47547         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47548         printf-posix.m4.
47549         Reported by Jim Meyering.
47551 2011-06-13  Jim Meyering  <meyering@redhat.com>
47553         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47554         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47556 2011-05-23  Bruno Haible  <bruno@clisp.org>
47558         yesno: Move AC_LIBOBJ invocations to module description.
47559         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47560         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47562 2011-05-23  Bruno Haible  <bruno@clisp.org>
47564         xstrtol: Move AC_LIBOBJ invocations to module description.
47565         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47566         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47568 2011-05-23  Bruno Haible  <bruno@clisp.org>
47570         xstrtold: Move AC_LIBOBJ invocations to module description.
47571         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47572         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47574 2011-05-23  Bruno Haible  <bruno@clisp.org>
47576         xstrtod: Move AC_LIBOBJ invocations to module description.
47577         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47578         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47580 2011-05-23  Bruno Haible  <bruno@clisp.org>
47582         xnanosleep: Move AC_LIBOBJ invocations to module description.
47583         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47584         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47586 2011-05-23  Bruno Haible  <bruno@clisp.org>
47588         xgetcwd: Move AC_LIBOBJ invocations to module description.
47589         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47590         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47592 2011-05-23  Bruno Haible  <bruno@clisp.org>
47594         xalloc: Move AC_LIBOBJ invocations to module description.
47595         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47596         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47598 2011-05-23  Bruno Haible  <bruno@clisp.org>
47600         write-any-file: Move AC_LIBOBJ invocations to module description.
47601         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47602         invocation.
47603         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47605 2011-05-23  Bruno Haible  <bruno@clisp.org>
47607         utimens: Move AC_LIBOBJ invocations to module description.
47608         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47609         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47611 2011-05-23  Bruno Haible  <bruno@clisp.org>
47613         utimecmp: Move AC_LIBOBJ invocations to module description.
47614         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47615         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47617 2011-05-23  Bruno Haible  <bruno@clisp.org>
47619         userspec: Move AC_LIBOBJ invocations to module description.
47620         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47621         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47623 2011-05-23  Bruno Haible  <bruno@clisp.org>
47625         unlinkdir: Move AC_LIBOBJ invocations to module description.
47626         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47627         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47629 2011-05-23  Bruno Haible  <bruno@clisp.org>
47631         unistd-safer: Move AC_LIBOBJ invocations to module description.
47632         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47633         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47635 2011-05-23  Bruno Haible  <bruno@clisp.org>
47637         tempname: Move AC_LIBOBJ invocations to module description.
47638         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47639         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47641 2011-05-23  Bruno Haible  <bruno@clisp.org>
47643         strftime: Move AC_LIBOBJ invocations to module description.
47644         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47645         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47647 2011-05-23  Bruno Haible  <bruno@clisp.org>
47649         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47650         * m4/stdlib-safer.m4: Remove file.
47651         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47652         (configure.ac): Remove gl_STDLIB_SAFER call.
47653         (Makefile.am): Augment lib_SOURCES.
47655 2011-05-23  Bruno Haible  <bruno@clisp.org>
47657         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47658         * m4/stdio-safer.m4: Remove file.
47659         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47660         (configure.ac): Remove gl_TMPFILE_SAFER call.
47661         (Makefile.am): Augment lib_SOURCES.
47663 2011-05-23  Bruno Haible  <bruno@clisp.org>
47665         popen-safer: Move AC_LIBOBJ invocations to module description.
47666         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47667         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47668         (configure.ac): Remove gl_POPEN_SAFER call.
47669         (Makefile.am): Augment lib_SOURCES.
47671 2011-05-23  Bruno Haible  <bruno@clisp.org>
47673         freopen-safer: Move AC_LIBOBJ invocations to module description.
47674         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47675         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47676         (configure.ac): Remove gl_FREOPEN_SAFER call.
47677         (Makefile.am): Augment lib_SOURCES.
47679 2011-05-23  Bruno Haible  <bruno@clisp.org>
47681         fopen-safer: Move AC_LIBOBJ invocations to module description.
47682         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47683         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47684         (configure.ac): Remove gl_FOPEN_SAFER call.
47685         (Makefile.am): Augment lib_SOURCES.
47687 2011-05-23  Bruno Haible  <bruno@clisp.org>
47689         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47690         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47691         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47693 2011-05-23  Bruno Haible  <bruno@clisp.org>
47695         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47696         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47697         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47699 2011-05-23  Bruno Haible  <bruno@clisp.org>
47701         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47702         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47703         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47705 2011-05-23  Bruno Haible  <bruno@clisp.org>
47707         settime: Move AC_LIBOBJ invocations to module description.
47708         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47709         * modules/settime (Makefile.am): Augment lib_SOURCES.
47711 2011-05-23  Bruno Haible  <bruno@clisp.org>
47713         savedir: Move AC_LIBOBJ invocations to module description.
47714         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47715         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47717 2011-05-23  Bruno Haible  <bruno@clisp.org>
47719         save-cwd: Move AC_LIBOBJ invocations to module description.
47720         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
47721         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
47723 2011-05-23  Bruno Haible  <bruno@clisp.org>
47725         same: Move AC_LIBOBJ invocations to module description.
47726         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
47727         * modules/same (Makefile.am): Augment lib_SOURCES.
47729 2011-05-23  Bruno Haible  <bruno@clisp.org>
47731         safe-write: Move AC_LIBOBJ invocations to module description.
47732         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
47733         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
47734         instead of gl_SAFE_WRITE.
47735         (Makefile.am): Augment lib_SOURCES.
47737 2011-05-23  Bruno Haible  <bruno@clisp.org>
47739         safe-read: Move AC_LIBOBJ invocations to module description.
47740         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
47741         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
47742         of gl_SAFE_READ.
47743         (Makefile.am): Augment lib_SOURCES.
47745 2011-05-23  Bruno Haible  <bruno@clisp.org>
47747         safe-alloc: Move AC_LIBOBJ invocations to module description.
47748         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
47749         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
47751 2011-05-23  Bruno Haible  <bruno@clisp.org>
47753         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
47754         * m4/rijndael.m4: Remove file.
47755         * modules/crypto/rijndael (Files): Remove it.
47756         (configure.ac): Remove gl_RIJNDAEL call.
47757         (Makefile.am): Augment lib_SOURCES.
47759 2011-05-23  Bruno Haible  <bruno@clisp.org>
47761         readtokens: Move AC_LIBOBJ invocations to module description.
47762         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
47763         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
47765 2011-05-23  Bruno Haible  <bruno@clisp.org>
47767         read-file: Move AC_LIBOBJ invocations to module description.
47768         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
47769         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
47770         of gl_FUNC_READ_FILE.
47771         (Makefile.am): Augment lib_SOURCES.
47773 2011-05-23  Bruno Haible  <bruno@clisp.org>
47775         quotearg: Move AC_LIBOBJ invocations to module description.
47776         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
47777         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
47779 2011-05-23  Bruno Haible  <bruno@clisp.org>
47781         quote: Move AC_LIBOBJ invocations to module description.
47782         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
47783         * modules/quote (Makefile.am): Augment lib_SOURCES.
47785 2011-05-23  Bruno Haible  <bruno@clisp.org>
47787         posixver: Move AC_LIBOBJ invocations to module description.
47788         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
47789         * modules/posixver (Makefile.am): Augment lib_SOURCES.
47791 2011-05-23  Bruno Haible  <bruno@clisp.org>
47793         posixtm: Move AC_LIBOBJ invocations to module description.
47794         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
47795         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
47797 2011-05-23  Bruno Haible  <bruno@clisp.org>
47799         physmem: Move AC_LIBOBJ invocations to module description.
47800         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
47801         * modules/physmem (Makefile.am): Augment lib_SOURCES.
47803 2011-05-23  Bruno Haible  <bruno@clisp.org>
47805         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
47806         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
47807         invocation.
47808         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
47810 2011-05-23  Bruno Haible  <bruno@clisp.org>
47812         mpsort: Move AC_LIBOBJ invocations to module description.
47813         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
47814         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
47816 2011-05-23  Bruno Haible  <bruno@clisp.org>
47818         modechange: Move AC_LIBOBJ invocations to module description.
47819         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
47820         * modules/modechange (Makefile.am): Augment lib_SOURCES.
47822 2011-05-23  Bruno Haible  <bruno@clisp.org>
47824         mkdir-p: Move AC_LIBOBJ invocations to module description.
47825         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
47826         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
47828 2011-05-23  Bruno Haible  <bruno@clisp.org>
47830         mkancesdirs: Move AC_LIBOBJ invocations to module description.
47831         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
47832         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
47834 2011-05-23  Bruno Haible  <bruno@clisp.org>
47836         mgetgroups: Move AC_LIBOBJ invocations to module description.
47837         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
47838         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
47840 2011-05-23  Bruno Haible  <bruno@clisp.org>
47842         memxor: Move AC_LIBOBJ invocations to module description.
47843         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
47844         * modules/memxor (Makefile.am): Augment lib_SOURCES.
47846 2011-05-23  Bruno Haible  <bruno@clisp.org>
47848         memcoll: Move AC_LIBOBJ invocations to module description.
47849         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
47850         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
47852 2011-05-23  Bruno Haible  <bruno@clisp.org>
47854         memcasecmp: Move AC_LIBOBJ invocations to module description.
47855         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
47856         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
47858 2011-05-23  Bruno Haible  <bruno@clisp.org>
47860         crypto/md5: Move AC_LIBOBJ invocations to module description.
47861         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
47862         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
47864 2011-05-23  Bruno Haible  <bruno@clisp.org>
47866         crypto/md4: Move AC_LIBOBJ invocations to module description.
47867         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
47868         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
47870 2011-05-23  Bruno Haible  <bruno@clisp.org>
47872         crypto/md2: Move AC_LIBOBJ invocations to module description.
47873         * m4/md2.m4: Remove file.
47874         * modules/crypto/md2 (Files): Remove it.
47875         (configure.ac): Remove gl_MD2 call.
47876         (Makefile.am): Augment lib_SOURCES.
47878 2011-05-23  Bruno Haible  <bruno@clisp.org>
47880         long-options: Move AC_LIBOBJ invocations to module description.
47881         * m4/long-options.m4: Remove file.
47882         * modules/long-options (Files): Remove it.
47883         (configure.ac): Remove gl_LONG_OPTIONS call.
47884         (Makefile.am): Augment lib_SOURCES.
47886 2011-05-23  Bruno Haible  <bruno@clisp.org>
47888         i-ring: Move AC_LIBOBJ invocations to module description.
47889         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
47890         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
47892 2011-05-23  Bruno Haible  <bruno@clisp.org>
47894         idcache: Move AC_LIBOBJ invocations to module description.
47895         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
47896         * modules/idcache (Makefile.am): Augment lib_SOURCES.
47898 2011-05-23  Bruno Haible  <bruno@clisp.org>
47900         human: Move AC_LIBOBJ invocations to module description.
47901         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
47902         * modules/human (Makefile.am): Augment lib_SOURCES.
47904 2011-05-23  Bruno Haible  <bruno@clisp.org>
47906         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
47907         * m4/hmac-sha1.m4: Remove file.
47908         * modules/crypto/hmac-sha1 (Files): Remove it.
47909         (configure.ac): Remove gl_HMAC_SHA1 call.
47910         (Makefile.am): Augment lib_SOURCES.
47912 2011-05-23  Bruno Haible  <bruno@clisp.org>
47914         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
47915         * m4/hmac-md5.m4: Remove file.
47916         * modules/crypto/hmac-md5 (Files): Remove it.
47917         (configure.ac): Remove gl_HMAC_MD5 call.
47918         (Makefile.am): Augment lib_SOURCES.
47920 2011-05-23  Bruno Haible  <bruno@clisp.org>
47922         hash: Move AC_LIBOBJ invocations to module description.
47923         * m4/hash.m4: Remove file.
47924         * modules/hash (Files): Remove it.
47925         (configure.ac): Remove gl_HASH call.
47926         (Makefile.am): Augment lib_SOURCES.
47928 2011-05-23  Bruno Haible  <bruno@clisp.org>
47930         hard-locale: Move AC_LIBOBJ invocations to module description.
47931         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
47932         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
47934 2011-05-23  Bruno Haible  <bruno@clisp.org>
47936         getugroups: Move AC_LIBOBJ invocations to module description.
47937         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
47938         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
47940 2011-05-23  Bruno Haible  <bruno@clisp.org>
47942         gettime: Move AC_LIBOBJ invocations to module description.
47943         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
47944         * modules/gettime (Makefile.am): Augment lib_SOURCES.
47946 2011-05-23  Bruno Haible  <bruno@clisp.org>
47948         getndelim2: Move AC_LIBOBJ invocations to module description.
47949         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
47950         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
47952 2011-05-23  Bruno Haible  <bruno@clisp.org>
47954         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
47955         * m4/gc-pbkdf2-sha1.m4: Remove file.
47956         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
47957         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
47958         (Makefile.am): Augment lib_SOURCES.
47960 2011-05-23  Bruno Haible  <bruno@clisp.org>
47962         fts: Move AC_LIBOBJ invocations to module description.
47963         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
47964         * modules/fts (configure.ac): ... to here.
47966 2011-05-23  Bruno Haible  <bruno@clisp.org>
47968         file-type: Move AC_LIBOBJ invocations to module description.
47969         * m4/file-type.m4: Remove file.
47970         * modules/file-type (Files): Remove it.
47971         (configure.ac): Remove gl_FILE_TYPE call.
47972         (Makefile.am): Augment lib_SOURCES.
47974 2011-05-23  Bruno Haible  <bruno@clisp.org>
47976         filenamecat*: Respect rules for use of AC_LIBOBJ.
47977         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
47978         Remove AC_LIBOBJ invocation.
47979         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
47980         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
47982 2011-05-23  Bruno Haible  <bruno@clisp.org>
47984         filemode: Move AC_LIBOBJ invocations to module description.
47985         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
47986         * modules/filemode (Makefile.am): Augment lib_SOURCES.
47988 2011-05-23  Bruno Haible  <bruno@clisp.org>
47990         openat-safer: Move AC_LIBOBJ invocations to module description.
47991         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
47992         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
47994 2011-05-23  Bruno Haible  <bruno@clisp.org>
47996         fcntl-safer: Move AC_LIBOBJ invocations to module description.
47997         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
47998         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48000 2011-05-23  Bruno Haible  <bruno@clisp.org>
48002         exclude: Move AC_LIBOBJ invocations to module description.
48003         * m4/exclude.m4: Remove file.
48004         * modules/exclude (Files): Remove it.
48005         (configure.ac): Remove gl_EXCLUDE call.
48006         (Makefile.am): Augment lib_SOURCES.
48008 2011-05-23  Bruno Haible  <bruno@clisp.org>
48010         dirname*: Respect rules for use of AC_LIBOBJ.
48011         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48012         invocations.
48013         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48014         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48016 2011-05-23  Bruno Haible  <bruno@clisp.org>
48018         dirent-safer: Move AC_LIBOBJ invocations to module description.
48019         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48020         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48022 2011-05-23  Bruno Haible  <bruno@clisp.org>
48024         crypto/des: Move AC_LIBOBJ invocations to module description.
48025         * m4/des.m4: Remove file.
48026         * modules/crypto/des (Files): Remove it.
48027         (configure.ac): Remove gl_DES call.
48028         (Makefile.am): Augment lib_SOURCES.
48030 2011-05-23  Bruno Haible  <bruno@clisp.org>
48032         cycle-check: Move AC_LIBOBJ invocations to module description.
48033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48034         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48036 2011-05-23  Bruno Haible  <bruno@clisp.org>
48038         c-strtold: Move AC_LIBOBJ invocations to module description.
48039         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48040         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48042 2011-05-23  Bruno Haible  <bruno@clisp.org>
48044         c-strtod: Move AC_LIBOBJ invocations to module description.
48045         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48046         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48048 2011-05-23  Bruno Haible  <bruno@clisp.org>
48050         crc: Move AC_LIBOBJ invocations to module description.
48051         * m4/crc.m4: Remove file.
48052         * modules/crc (Files): Remove it.
48053         (configure.ac): Remove gl_CRC call.
48054         (Makefile.am): Augment lib_SOURCES.
48056 2011-05-23  Bruno Haible  <bruno@clisp.org>
48058         close-stream: Move AC_LIBOBJ invocations to module description.
48059         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48060         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48062 2011-05-23  Bruno Haible  <bruno@clisp.org>
48064         closeout: Move AC_LIBOBJ invocations to module description.
48065         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48066         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48068 2011-05-23  Bruno Haible  <bruno@clisp.org>
48070         closein: Move AC_LIBOBJ invocations to module description.
48071         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48072         * modules/closein (Makefile.am): Augment lib_SOURCES.
48074 2011-05-23  Bruno Haible  <bruno@clisp.org>
48076         cloexec: Move AC_LIBOBJ invocations to module description.
48077         * m4/cloexec.m4: Remove file.
48078         * modules/cloexec (Files): Remove it.
48079         (configure.ac): Remove gl_CLOEXEC call.
48080         (Makefile.am): Augment lib_SOURCES.
48082 2011-05-23  Bruno Haible  <bruno@clisp.org>
48084         check-version: Move AC_LIBOBJ invocations to module description.
48085         * m4/check-version.m4: Remove file.
48086         * modules/check-version (Files): Remove it.
48087         (configure.ac): Remove gl_CHECK_VERSION call.
48088         (Makefile.am): Augment lib_SOURCES.
48090 2011-05-23  Bruno Haible  <bruno@clisp.org>
48092         chdir-safer: Move AC_LIBOBJ invocations to module description.
48093         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48094         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48096 2011-05-23  Bruno Haible  <bruno@clisp.org>
48098         canonicalize: Move AC_LIBOBJ invocations to module description.
48099         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48100         AC_LIBOBJ invocation.
48101         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48103 2011-05-23  Bruno Haible  <bruno@clisp.org>
48105         canon-host: Move AC_LIBOBJ invocations to module description.
48106         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48107         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48108         instead of gl_CANON_HOST.
48109         (Makefile.am): Augment lib_SOURCES.
48111 2011-05-23  Bruno Haible  <bruno@clisp.org>
48113         backupfile: Move AC_LIBOBJ invocations to module description.
48114         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48115         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48117 2011-05-23  Bruno Haible  <bruno@clisp.org>
48119         argmatch: Move AC_LIBOBJ invocations to module description.
48120         * m4/argmatch.m4: Remove file.
48121         * modules/argmatch (Files): Remove it.
48122         (configure.ac): Remove gl_ARGMATCH call.
48123         (Makefile.am): Augment lib_SOURCES.
48125 2011-05-23  Bruno Haible  <bruno@clisp.org>
48127         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48128         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48129         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48131 2011-05-23  Bruno Haible  <bruno@clisp.org>
48133         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48134         * m4/arcfour.m4: Remove file.
48135         * modules/crypto/arcfour (Files): Remove it.
48136         (configure.ac): Remove gl_ARCFOUR call.
48137         (Makefile.am): Augment lib_SOURCES.
48139 2011-05-22  Bruno Haible  <bruno@clisp.org>
48141         write: Move AC_LIBOBJ invocations to module description.
48142         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48143         * modules/write (configure.ac): ... to here.
48145 2011-05-22  Bruno Haible  <bruno@clisp.org>
48147         wmemset: Move AC_LIBOBJ invocations to module description.
48148         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48149         here...
48150         * modules/wmemset (configure.ac): ... to here.
48152 2011-05-22  Bruno Haible  <bruno@clisp.org>
48154         wmemmove: Move AC_LIBOBJ invocations to module description.
48155         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48156         here...
48157         * modules/wmemmove (configure.ac): ... to here.
48159 2011-05-22  Bruno Haible  <bruno@clisp.org>
48161         wmemcpy: Move AC_LIBOBJ invocations to module description.
48162         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48163         here...
48164         * modules/wmemcpy (configure.ac): ... to here.
48166 2011-05-22  Bruno Haible  <bruno@clisp.org>
48168         wmemcmp: Move AC_LIBOBJ invocations to module description.
48169         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48170         here...
48171         * modules/wmemcmp (configure.ac): ... to here.
48173 2011-05-22  Bruno Haible  <bruno@clisp.org>
48175         wmemchr: Move AC_LIBOBJ invocations to module description.
48176         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48177         here...
48178         * modules/wmemchr (configure.ac): ... to here.
48180 2011-05-22  Bruno Haible  <bruno@clisp.org>
48182         wcswidth: Move AC_LIBOBJ invocations to module description.
48183         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48184         here...
48185         * modules/wcswidth (configure.ac): ... to here.
48187 2011-05-22  Bruno Haible  <bruno@clisp.org>
48189         wcwidth: Respect rules for use of AC_LIBOBJ.
48190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48191         invocation from here...
48192         * modules/wcwidth (configure.ac): ... to here.
48193         (Depends-on): Update conditions.
48195 2011-05-22  Bruno Haible  <bruno@clisp.org>
48197         wctype: Move AC_LIBOBJ invocations to module description.
48198         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48199         invocation from here...
48200         * modules/wctype (configure.ac): ... to here.
48201         (Depends-on): Update conditions.
48203 2011-05-22  Bruno Haible  <bruno@clisp.org>
48205         wctrans: Move AC_LIBOBJ invocations to module description.
48206         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48207         invocation from here...
48208         * modules/wctrans (configure.ac): ... to here.
48210 2011-05-22  Bruno Haible  <bruno@clisp.org>
48212         wctomb: Move AC_LIBOBJ invocations to module description.
48213         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48214         invocations from here...
48215         * modules/wctomb (configure.ac): ... to here.
48217 2011-05-22  Bruno Haible  <bruno@clisp.org>
48219         wctob: Move AC_LIBOBJ invocations to module description.
48220         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48221         gl_PREREQ_WCTOB invocations from here...
48222         * modules/wctob (configure.ac): ... to here.
48223         (Depends-on): Update conditions.
48225 2011-05-22  Bruno Haible  <bruno@clisp.org>
48227         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48228         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48229         here...
48230         * modules/wcsxfrm (configure.ac): ... to here.
48232 2011-05-22  Bruno Haible  <bruno@clisp.org>
48234         wcstok: Move AC_LIBOBJ invocations to module description.
48235         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48236         * modules/wcstok (configure.ac): ... to here.
48238 2011-05-22  Bruno Haible  <bruno@clisp.org>
48240         wcsstr: Move AC_LIBOBJ invocations to module description.
48241         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48242         * modules/wcsstr (configure.ac): ... to here.
48244 2011-05-22  Bruno Haible  <bruno@clisp.org>
48246         wcsspn: Move AC_LIBOBJ invocations to module description.
48247         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48248         * modules/wcsspn (configure.ac): ... to here.
48250 2011-05-22  Bruno Haible  <bruno@clisp.org>
48252         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48253         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48254         gl_PREREQ_WCSRTOMBS invocations from here...
48255         * modules/wcsrtombs (configure.ac): ... to here.
48257 2011-05-22  Bruno Haible  <bruno@clisp.org>
48259         wcsrchr: Move AC_LIBOBJ invocations to module description.
48260         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48261         here...
48262         * modules/wcsrchr (configure.ac): ... to here.
48264 2011-05-22  Bruno Haible  <bruno@clisp.org>
48266         wcspbrk: Move AC_LIBOBJ invocations to module description.
48267         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48268         here...
48269         * modules/wcspbrk (configure.ac): ... to here.
48271 2011-05-22  Bruno Haible  <bruno@clisp.org>
48273         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48274         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48275         gl_PREREQ_WCSNRTOMBS invocations from here...
48276         * modules/wcsnrtombs (configure.ac): ... to here.
48278 2011-05-22  Bruno Haible  <bruno@clisp.org>
48280         wcsnlen: Move AC_LIBOBJ invocations to module description.
48281         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48282         here...
48283         * modules/wcsnlen (configure.ac): ... to here.
48285 2011-05-22  Bruno Haible  <bruno@clisp.org>
48287         wcsncpy: Move AC_LIBOBJ invocations to module description.
48288         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48289         here...
48290         * modules/wcsncpy (configure.ac): ... to here.
48292 2011-05-22  Bruno Haible  <bruno@clisp.org>
48294         wcsncmp: Move AC_LIBOBJ invocations to module description.
48295         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48296         here...
48297         * modules/wcsncmp (configure.ac): ... to here.
48299 2011-05-22  Bruno Haible  <bruno@clisp.org>
48301         wcsncat: Move AC_LIBOBJ invocations to module description.
48302         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48303         here...
48304         * modules/wcsncat (configure.ac): ... to here.
48306 2011-05-22  Bruno Haible  <bruno@clisp.org>
48308         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48309         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48310         from here...
48311         * modules/wcsncasecmp (configure.ac): ... to here.
48313 2011-05-22  Bruno Haible  <bruno@clisp.org>
48315         wcslen: Move AC_LIBOBJ invocations to module description.
48316         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48317         * modules/wcslen (configure.ac): ... to here.
48319 2011-05-22  Bruno Haible  <bruno@clisp.org>
48321         wcsdup: Move AC_LIBOBJ invocations to module description.
48322         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48323         * modules/wcsdup (configure.ac): ... to here.
48325 2011-05-22  Bruno Haible  <bruno@clisp.org>
48327         wcscspn: Move AC_LIBOBJ invocations to module description.
48328         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48329         here...
48330         * modules/wcscspn (configure.ac): ... to here.
48332 2011-05-22  Bruno Haible  <bruno@clisp.org>
48334         wcscpy: Move AC_LIBOBJ invocations to module description.
48335         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48336         * modules/wcscpy (configure.ac): ... to here.
48338 2011-05-22  Bruno Haible  <bruno@clisp.org>
48340         wcscoll: Move AC_LIBOBJ invocations to module description.
48341         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48342         here...
48343         * modules/wcscoll (configure.ac): ... to here.
48345 2011-05-22  Bruno Haible  <bruno@clisp.org>
48347         wcscmp: Move AC_LIBOBJ invocations to module description.
48348         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48349         * modules/wcscmp (configure.ac): ... to here.
48351 2011-05-22  Bruno Haible  <bruno@clisp.org>
48353         wcschr: Move AC_LIBOBJ invocations to module description.
48354         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48355         * modules/wcschr (configure.ac): ... to here.
48357 2011-05-22  Bruno Haible  <bruno@clisp.org>
48359         wcscat: Move AC_LIBOBJ invocations to module description.
48360         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48361         * modules/wcscat (configure.ac): ... to here.
48363 2011-05-22  Bruno Haible  <bruno@clisp.org>
48365         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48366         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48367         here...
48368         * modules/wcscasecmp (configure.ac): ... to here.
48370 2011-05-22  Bruno Haible  <bruno@clisp.org>
48372         wcrtomb: Move AC_LIBOBJ invocations to module description.
48373         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48374         invocations from here...
48375         * modules/wcrtomb (configure.ac): ... to here.
48377 2011-05-22  Bruno Haible  <bruno@clisp.org>
48379         wcpncpy: Move AC_LIBOBJ invocations to module description.
48380         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48381         here...
48382         * modules/wcpncpy (configure.ac): ... to here.
48384 2011-05-22  Bruno Haible  <bruno@clisp.org>
48386         wcpcpy: Move AC_LIBOBJ invocations to module description.
48387         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48388         * modules/wcpcpy (configure.ac): ... to here.
48390 2011-05-22  Bruno Haible  <bruno@clisp.org>
48392         waitpid: Move AC_LIBOBJ invocations to module description.
48393         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48394         invocation from here...
48395         * modules/waitpid (configure.ac): ... to here.
48397 2011-05-22  Bruno Haible  <bruno@clisp.org>
48399         utimensat: Move AC_LIBOBJ invocations to module description.
48400         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48401         here...
48402         * modules/utimensat (configure.ac): ... to here.
48404 2011-05-22  Bruno Haible  <bruno@clisp.org>
48406         usleep: Move AC_LIBOBJ invocations to module description.
48407         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48408         here...
48409         * modules/usleep (configure.ac): ... to here.
48411 2011-05-22  Bruno Haible  <bruno@clisp.org>
48413         unlockpt: Move AC_LIBOBJ invocations to module description.
48414         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48415         gl_PREREQ_UNLOCKPT invocations from here...
48416         * modules/unlockpt (configure.ac): ... to here.
48418 2011-05-22  Bruno Haible  <bruno@clisp.org>
48420         unlink: Respect rules for use of AC_LIBOBJ.
48421         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48422         * modules/unlink (configure.ac): ... to here.
48424 2011-05-22  Bruno Haible  <bruno@clisp.org>
48426         uname: Move AC_LIBOBJ invocations to module description.
48427         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48429         here...
48430         * modules/uname (configure.ac): ... to here.
48432 2011-05-22  Bruno Haible  <bruno@clisp.org>
48434         ttyname_r: Move AC_LIBOBJ invocations to module description.
48435         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48436         gl_PREREQ_TTYNAME_R invocations from here...
48437         * modules/ttyname_r (configure.ac): ... to here.
48439 2011-05-22  Bruno Haible  <bruno@clisp.org>
48441         tsearch: Move AC_LIBOBJ invocations to module description.
48442         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48443         invocations from here...
48444         * modules/tsearch (configure.ac): ... to here.
48446 2011-05-22  Bruno Haible  <bruno@clisp.org>
48448         towctrans: Move AC_LIBOBJ invocations to module description.
48449         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48450         AC_LIBOBJ invocation from here...
48451         * modules/towctrans (configure.ac): ... to here.
48453 2011-05-22  Bruno Haible  <bruno@clisp.org>
48455         tmpfile: Move AC_LIBOBJ invocations to module description.
48456         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48457         invocations from here...
48458         * modules/tmpfile (configure.ac): ... to here.
48460 2011-05-22  Bruno Haible  <bruno@clisp.org>
48462         times: Move AC_LIBOBJ invocations to module description.
48463         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48464         * modules/times (configure.ac): ... to here.
48466 2011-05-22  Bruno Haible  <bruno@clisp.org>
48468         time_r: Move AC_LIBOBJ invocations to module description.
48469         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48470         invocations from here...
48471         * modules/time_r (configure.ac): ... to here.
48473 2011-05-22  Bruno Haible  <bruno@clisp.org>
48475         timegm: Move AC_LIBOBJ invocations to module description.
48476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48477         invocations from here...
48478         * modules/timegm (configure.ac): ... to here.
48480 2011-05-22  Bruno Haible  <bruno@clisp.org>
48482         tcgetsid: Move AC_LIBOBJ invocations to module description.
48483         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48484         and gl_PREREQ_TCGETSID invocations from here...
48485         * modules/tcgetsid (configure.ac): ... to here.
48486         (Depends-on): Update conditions.
48488 2011-05-22  Bruno Haible  <bruno@clisp.org>
48490         symlinkat: Move AC_LIBOBJ invocations to module description.
48491         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48492         here...
48493         * modules/symlinkat (configure.ac): ... to here.
48495 2011-05-22  Bruno Haible  <bruno@clisp.org>
48497         symlink: Move AC_LIBOBJ invocations to module description.
48498         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48499         here...
48500         * modules/symlink (configure.ac): ... to here.
48502 2011-05-22  Bruno Haible  <bruno@clisp.org>
48504         strverscmp: Move AC_LIBOBJ invocations to module description.
48505         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48507         from here...
48508         * modules/strverscmp (configure.ac): ... to here.
48510 2011-05-22  Bruno Haible  <bruno@clisp.org>
48512         strtok_r: Move AC_LIBOBJ invocations to module description.
48513         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48514         and gl_PREREQ_STRTOK_R invocations from here...
48515         * modules/strtok_r (configure.ac): ... to here.
48516         (Depends-on): Update conditions.
48518 2011-05-22  Bruno Haible  <bruno@clisp.org>
48520         strtoumax: Move AC_LIBOBJ invocations to module description.
48521         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48523         from here...
48524         * modules/strtoumax (configure.ac): ... to here.
48526 2011-05-22  Bruno Haible  <bruno@clisp.org>
48528         strtoimax: Move AC_LIBOBJ invocations to module description.
48529         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48531         from here...
48532         * modules/strtoimax (configure.ac): ... to here.
48534 2011-05-22  Bruno Haible  <bruno@clisp.org>
48536         strtoull: Move AC_LIBOBJ invocations to module description.
48537         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48539         from here...
48540         * modules/strtoull (configure.ac): ... to here.
48542 2011-05-22  Bruno Haible  <bruno@clisp.org>
48544         strtoll: Move AC_LIBOBJ invocations to module description.
48545         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48547         here...
48548         * modules/strtoll (configure.ac): ... to here.
48550 2011-05-22  Bruno Haible  <bruno@clisp.org>
48552         strtoul: Move AC_LIBOBJ invocations to module description.
48553         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48554         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48555         * modules/strtoul (configure.ac): ... to here.
48557 2011-05-22  Bruno Haible  <bruno@clisp.org>
48559         strtol: Move AC_LIBOBJ invocations to module description.
48560         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48561         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48562         * modules/strtol (configure.ac): ... to here.
48564 2011-05-22  Bruno Haible  <bruno@clisp.org>
48566         strtod: Move AC_LIBOBJ invocations to module description.
48567         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48568         invocations from here...
48569         * modules/strtod (configure.ac): ... to here.
48571 2011-05-22  Bruno Haible  <bruno@clisp.org>
48573         strstr*: Move AC_LIBOBJ invocations to module description.
48574         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48575         invocations from here...
48576         * modules/strstr-simple (configure.ac): ... to here.
48577         * modules/strstr (configure.ac): ... and here.
48579 2011-05-22  Bruno Haible  <bruno@clisp.org>
48581         strsignal: Move AC_LIBOBJ invocations to module description.
48582         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48583         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48584         * modules/strsignal (configure.ac): ... to here.
48585         (Depends-on): Update conditions.
48587 2011-05-22  Bruno Haible  <bruno@clisp.org>
48589         strsep: Move AC_LIBOBJ invocations to module description.
48590         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48592         here...
48593         * modules/strsep (configure.ac): ... to here.
48595 2011-05-22  Bruno Haible  <bruno@clisp.org>
48597         strptime: Move AC_LIBOBJ invocations to module description.
48598         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48599         gl_PREREQ_STRPTIME invocations from here...
48600         * modules/strptime (configure.ac): ... to here.
48602 2011-05-22  Bruno Haible  <bruno@clisp.org>
48604         strpbrk: Move AC_LIBOBJ invocations to module description.
48605         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48607         here...
48608         * modules/strpbrk (configure.ac): ... to here.
48610 2011-05-22  Bruno Haible  <bruno@clisp.org>
48612         strnlen: Move AC_LIBOBJ invocations to module description.
48613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48614         invocations from here...
48615         * modules/strnlen (configure.ac): ... to here.
48617 2011-05-22  Bruno Haible  <bruno@clisp.org>
48619         strndup: Move AC_LIBOBJ invocations to module description.
48620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48621         invocations from here...
48622         * modules/strndup (configure.ac): ... to here.
48623         (Depends-on): Update conditions.
48625 2011-05-22  Bruno Haible  <bruno@clisp.org>
48627         strncat: Move AC_LIBOBJ invocations to module description.
48628         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48629         invocations from here...
48630         * modules/strncat (configure.ac): ... to here.
48632 2011-05-22  Bruno Haible  <bruno@clisp.org>
48634         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48635         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48636         invocations from here...
48637         * modules/strdup (configure.ac): ... to here.
48638         * modules/strdup-posix (configure.ac): ... and here.
48640 2011-05-22  Bruno Haible  <bruno@clisp.org>
48642         strcspn: Move AC_LIBOBJ invocations to module description.
48643         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48645         here...
48646         * modules/strcspn (configure.ac): ... to here.
48648 2011-05-22  Bruno Haible  <bruno@clisp.org>
48650         strchrnul: Move AC_LIBOBJ invocations to module description.
48651         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48652         gl_PREREQ_STRCHRNUL invocations from here...
48653         * modules/strchrnul (configure.ac): ... to here.
48655 2011-05-22  Bruno Haible  <bruno@clisp.org>
48657         strcasestr*: Move AC_LIBOBJ invocations to module description.
48658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48659         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48660         * modules/strcasestr-simple (configure.ac): ... to here.
48661         * modules/strcasestr (configure.ac): ... and here.
48663 2011-05-22  Bruno Haible  <bruno@clisp.org>
48665         strcase: Move AC_LIBOBJ invocations to module description.
48666         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48667         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48668         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48669         gl_PREREQ_STRNCASECMP invocations from here...
48670         * modules/strcase (configure.ac): ... to here.
48672 2011-05-22  Bruno Haible  <bruno@clisp.org>
48674         stpncpy: Move AC_LIBOBJ invocations to module description.
48675         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48676         here...
48677         * modules/stpncpy (configure.ac): ... to here.
48679 2011-05-22  Bruno Haible  <bruno@clisp.org>
48681         stpcpy: Move AC_LIBOBJ invocations to module description.
48682         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48684         here...
48685         * modules/stpcpy (configure.ac): ... to here.
48687 2011-05-21  Bruno Haible  <bruno@clisp.org>
48689         stat: Move AC_LIBOBJ invocations to module description.
48690         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48691         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48692         here...
48693         * modules/stat (configure.ac): ... to here.
48695 2011-05-21  Bruno Haible  <bruno@clisp.org>
48697         sleep: Move AC_LIBOBJ invocations to module description.
48698         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48699         * modules/sleep (configure.ac): ... to here.
48701 2011-05-21  Bruno Haible  <bruno@clisp.org>
48703         signbit: Move AC_LIBOBJ invocations to module description.
48704         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48705         * modules/signbit (configure.ac): ... to here.
48707 2011-05-21  Bruno Haible  <bruno@clisp.org>
48709         sigprocmask: Move AC_LIBOBJ invocations to module description.
48710         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48711         gl_PREREQ_SIGPROMASK invocations from here...
48712         * modules/sigprocmask (configure.ac): ... to here.
48714 2011-05-21  Bruno Haible  <bruno@clisp.org>
48716         sigaction: Move AC_LIBOBJ invocations to module description.
48717         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48718         gl_PREREQ_SIGACTION invocations from here...
48719         * modules/sigaction (configure.ac): ... to here.
48721 2011-05-21  Bruno Haible  <bruno@clisp.org>
48723         sig2str: Move AC_LIBOBJ invocations to module description.
48724         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
48725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
48726         here...
48727         * modules/sig2str (configure.ac): ... to here.
48729 2011-05-21  Bruno Haible  <bruno@clisp.org>
48731         setlocale: Move AC_LIBOBJ invocations to module description.
48732         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
48733         gl_PREREQ_SETLOCALE invocations from here...
48734         * modules/setlocale (configure.ac): ... to here.
48736 2011-05-21  Bruno Haible  <bruno@clisp.org>
48738         unsetenv: Move AC_LIBOBJ invocations to module description.
48739         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
48740         and gl_PREREQ_UNSETENV invocations from here...
48741         * modules/unsetenv (configure.ac): ... to here.
48742         (Depends-on): Update.
48744 2011-05-21  Bruno Haible  <bruno@clisp.org>
48746         setenv: Move AC_LIBOBJ invocations to module description.
48747         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
48748         here...
48749         * modules/setenv (configure.ac): ... to here.
48751 2011-05-21  Bruno Haible  <bruno@clisp.org>
48753         selinux-h: Move AC_LIBOBJ invocations to module description.
48754         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
48755         AC_LIBOBJ invocation from here...
48756         * modules/selinux-h (configure.ac): ... to here.
48758 2011-05-21  Bruno Haible  <bruno@clisp.org>
48760         select: Respect rules for use of AC_LIBOBJ.
48761         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
48762         here...
48763         * modules/select (configure.ac): ... to here.
48765 2011-05-21  Bruno Haible  <bruno@clisp.org>
48767         scandir: Move AC_LIBOBJ invocations to module description.
48768         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
48769         invocations from here...
48770         * modules/scandir (configure.ac): ... to here.
48772 2011-05-21  Bruno Haible  <bruno@clisp.org>
48774         rpmatch: Move AC_LIBOBJ invocations to module description.
48775         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
48776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
48777         here...
48778         * modules/rpmatch (configure.ac): ... to here.
48780 2011-05-21  Bruno Haible  <bruno@clisp.org>
48782         rmdir: Respect rules for use of AC_LIBOBJ.
48783         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
48784         * modules/rmdir (configure.ac): ... to here.
48786 2011-05-21  Bruno Haible  <bruno@clisp.org>
48788         renameat: Move AC_LIBOBJ invocations to module description.
48789         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
48790         here...
48791         * modules/renameat (configure.ac): ... to here.
48793 2011-05-21  Bruno Haible  <bruno@clisp.org>
48795         rename: Respect rules for use of AC_LIBOBJ.
48796         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
48797         here...
48798         * modules/rename (configure.ac): ... to here.
48800 2011-05-21  Bruno Haible  <bruno@clisp.org>
48802         remove: Move AC_LIBOBJ invocations to module description.
48803         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
48804         here...
48805         * modules/remove (configure.ac): ... to here.
48807 2011-05-21  Bruno Haible  <bruno@clisp.org>
48809         relocatable-lib: Move AC_LIBOBJ invocations to module description.
48810         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
48811         macro.
48812         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
48813         * modules/relocatable-lib (configure.ac): ... to here.
48814         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48815         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
48817 2011-05-21  Bruno Haible  <bruno@clisp.org>
48819         relocatable-prog: Move AC_LIBOBJ invocations to module description.
48820         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
48821         here...
48822         * modules/relocatable-prog (configure.ac): ... to here.
48824 2011-05-21  Bruno Haible  <bruno@clisp.org>
48826         regex: Move AC_LIBOBJ invocations to module description.
48827         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
48828         invocations from here...
48829         * modules/regex (configure.ac): ... to here.
48831 2011-05-21  Bruno Haible  <bruno@clisp.org>
48833         realloc-*: Move AC_LIBOBJ invocations to module description.
48834         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
48835         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
48836         AC_LIBOBJ invocations from here...
48837         * modules/realloc-gnu (configure.ac): ... to here.
48838         * modules/realloc-posix (configure.ac): ... and here.
48840 2011-05-21  Bruno Haible  <bruno@clisp.org>
48842         readutmp: Move AC_LIBOBJ invocations to module description.
48843         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
48844         * modules/readutmp (configure.ac): ... to here.
48846 2011-05-21  Bruno Haible  <bruno@clisp.org>
48848         readlinkat: Move AC_LIBOBJ invocations to module description.
48849         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
48850         here...
48851         * modules/readlinkat (configure.ac): ... to here.
48853 2011-05-21  Bruno Haible  <bruno@clisp.org>
48855         readlink: Move AC_LIBOBJ invocations to module description.
48856         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
48857         gl_PREREQ_READLINK invocations from here...
48858         * modules/readlink (configure.ac): ... to here.
48860 2011-05-21  Bruno Haible  <bruno@clisp.org>
48862         readline: Move AC_LIBOBJ invocations to module description.
48863         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
48864         gl_PREREQ_READLINE invocations from here...
48865         * modules/readline (configure.ac): ... to here.
48867 2011-05-21  Bruno Haible  <bruno@clisp.org>
48869         read: Move AC_LIBOBJ invocations to module description.
48870         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
48871         * modules/read (configure.ac): ... to here.
48873 2011-05-21  Bruno Haible  <bruno@clisp.org>
48875         rawmemchr: Move AC_LIBOBJ invocations to module description.
48876         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
48877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
48878         from here...
48879         * modules/rawmemchr (configure.ac): ... to here.
48881 2011-05-21  Bruno Haible  <bruno@clisp.org>
48883         random_r: Move AC_LIBOBJ invocations to module description.
48884         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
48885         gl_PREREQ_RANDOM_R invocations from here...
48886         * modules/random_r (configure.ac): ... to here.
48888 2011-05-21  Bruno Haible  <bruno@clisp.org>
48890         pwrite: Move AC_LIBOBJ invocations to module description.
48891         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
48892         * modules/pwrite (configure.ac): ... to here.
48894 2011-05-21  Bruno Haible  <bruno@clisp.org>
48896         putenv: Move AC_LIBOBJ invocations to module description.
48897         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
48898         * modules/putenv (configure.ac): ... to here.
48900 2011-05-21  Bruno Haible  <bruno@clisp.org>
48902         login_tty: Move AC_LIBOBJ invocations to module description.
48903         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
48904         * modules/login_tty (configure.ac): ... to here.
48906 2011-05-21  Bruno Haible  <bruno@clisp.org>
48908         openpty: Move AC_LIBOBJ invocations to module description.
48909         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
48910         * modules/openpty (configure.ac): ... to here.
48912 2011-05-21  Bruno Haible  <bruno@clisp.org>
48914         forkpty: Move AC_LIBOBJ invocations to module description.
48915         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
48916         * modules/forkpty (configure.ac): ... to here.
48918 2011-05-21  Bruno Haible  <bruno@clisp.org>
48920         ptsname: Move AC_LIBOBJ invocations to module description.
48921         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
48922         invocations from here...
48923         * modules/ptsname (configure.ac): ... to here.
48925 2011-05-21  Bruno Haible  <bruno@clisp.org>
48927         pread: Move AC_LIBOBJ invocations to module description.
48928         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
48929         * modules/pread (configure.ac): ... to here.
48931 2011-05-21  Bruno Haible  <bruno@clisp.org>
48933         posix_spawn*: Move AC_LIBOBJ invocations to module description.
48934         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
48935         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
48936         * modules/posix_spawn (configure.ac): ... to here.
48937         * modules/posix_spawnp (configure.ac): ... and here.
48939 2011-05-21  Bruno Haible  <bruno@clisp.org>
48941         popen: Move AC_LIBOBJ invocations to module description.
48942         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
48943         invocations from here...
48944         * modules/popen (configure.ac): ... to here.
48946 2011-05-21  Bruno Haible  <bruno@clisp.org>
48948         poll: Move AC_LIBOBJ invocations to module description.
48949         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
48950         invocations from here...
48951         * modules/poll (configure.ac): ... to here.
48953 2011-05-21  Bruno Haible  <bruno@clisp.org>
48955         pipe-posix: Move AC_LIBOBJ invocations to module description.
48956         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
48957         * modules/pipe-posix (configure.ac): ... to here.
48959 2011-05-21  Bruno Haible  <bruno@clisp.org>
48961         openat: Respect rules for use of AC_LIBOBJ.
48962         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
48963         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
48964         * modules/openat (configure.ac): ... to here.
48966 2011-05-21  Bruno Haible  <bruno@clisp.org>
48968         obstack-printf*: Move AC_LIBOBJ invocations to module description.
48969         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
48970         invocation from here...
48971         * modules/obstack-printf (configure.ac): ... to here.
48972         * modules/obstack-printf-posix (configure.ac): ... and here.
48974 2011-05-21  Bruno Haible  <bruno@clisp.org>
48976         nl_langinfo: Move AC_LIBOBJ invocations to module description.
48977         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
48978         from here...
48979         * modules/nl_langinfo (configure.ac): ... to here.
48981 2011-05-21  Bruno Haible  <bruno@clisp.org>
48983         nanosleep: Move AC_LIBOBJ invocations to module description.
48984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
48985         gl_PREREQ_NANOSLEEP invocations from here...
48986         * modules/nanosleep (configure.ac): ... to here.
48988 2011-05-21  Bruno Haible  <bruno@clisp.org>
48990         mountlist: Move AC_LIBOBJ invocations to module description.
48991         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
48992         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
48993         * modules/mountlist (configure.ac): ... to here.
48995 2011-05-21  Bruno Haible  <bruno@clisp.org>
48997         mktime: Respect rules for use of AC_LIBOBJ.
48998         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
48999         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49000         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49001         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49002         * modules/mktime (configure.ac): ... to here.
49003         * modules/mktime-internal (configure.ac): ... and here.
49004         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49006 2011-05-21  Bruno Haible  <bruno@clisp.org>
49008         mkstemps: Move AC_LIBOBJ invocations to module description.
49009         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49010         here...
49011         * modules/mkstemps (configure.ac): ... to here.
49013 2011-05-21  Bruno Haible  <bruno@clisp.org>
49015         mkstemp: Move AC_LIBOBJ invocations to module description.
49016         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49017         gl_PREREQ_MKSTEMP invocations from here...
49018         * modules/mkstemp (configure.ac): ... to here.
49020 2011-05-21  Bruno Haible  <bruno@clisp.org>
49022         mkostemps: Move AC_LIBOBJ invocations to module description.
49023         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49024         here...
49025         * modules/mkostemps (configure.ac): ... to here.
49027 2011-05-21  Bruno Haible  <bruno@clisp.org>
49029         mkostemp: Move AC_LIBOBJ invocations to module description.
49030         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49031         gl_PREREQ_MKOSTEMP invocations from here...
49032         * modules/mkostemp (configure.ac): ... to here.
49034 2011-05-21  Bruno Haible  <bruno@clisp.org>
49036         mknod: Move AC_LIBOBJ invocations to module description.
49037         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49038         * modules/mknod (configure.ac): ... to here.
49040 2011-05-21  Bruno Haible  <bruno@clisp.org>
49042         mkfifoat: Move AC_LIBOBJ invocations to module description.
49043         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49044         here...
49045         * modules/mkfifoat (configure.ac): ... to here.
49047 2011-05-21  Bruno Haible  <bruno@clisp.org>
49049         mkfifo: Respect rules for use of AC_LIBOBJ.
49050         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49051         here...
49052         * modules/mkfifo (configure.ac): ... to here.
49054 2011-05-21  Bruno Haible  <bruno@clisp.org>
49056         mkdtemp: Move AC_LIBOBJ invocations to module description.
49057         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49058         invocations from here...
49059         * modules/mkdtemp (configure.ac): ... to here.
49061 2011-05-21  Bruno Haible  <bruno@clisp.org>
49063         mkdir: Move AC_LIBOBJ invocations to module description.
49064         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49065         * modules/mkdir (configure.ac): ... to here.
49067 2011-05-21  Bruno Haible  <bruno@clisp.org>
49069         memset: Move AC_LIBOBJ invocations to module description.
49070         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49071         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49072         here...
49073         * modules/memset (configure.ac): ... to here.
49075 2011-05-21  Bruno Haible  <bruno@clisp.org>
49077         memrchr: Move AC_LIBOBJ invocations to module description.
49078         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49080         here...
49081         * modules/memrchr (configure.ac): ... to here.
49083 2011-05-21  Bruno Haible  <bruno@clisp.org>
49085         mempcpy: Move AC_LIBOBJ invocations to module description.
49086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49088         here...
49089         * modules/mempcpy (configure.ac): ... to here.
49091 2011-05-21  Bruno Haible  <bruno@clisp.org>
49093         memmove: Move AC_LIBOBJ invocations to module description.
49094         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49096         here...
49097         * modules/memmove (configure.ac): ... to here.
49099 2011-05-21  Bruno Haible  <bruno@clisp.org>
49101         memmem*: Move AC_LIBOBJ invocations to module description.
49102         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49103         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49104         here...
49105         (gl_FUNC_MEMMEM): ... and here...
49106         * modules/memmem-simple (configure.ac): ... to here.
49107         * modules/memmem (configure.ac): ... and here.
49109 2011-05-21  Bruno Haible  <bruno@clisp.org>
49111         memcpy: Move AC_LIBOBJ invocations to module description.
49112         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49113         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49114         here...
49115         * modules/memcpy (configure.ac): ... to here.
49117 2011-05-21  Bruno Haible  <bruno@clisp.org>
49119         memcmp: Simplify autoconf macro.
49120         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49121         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49122         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49124 2011-05-21  Bruno Haible  <bruno@clisp.org>
49126         memcmp: Move AC_LIBOBJ invocations to module description.
49127         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49128         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49129         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49130         * modules/memcmp (configure.ac): ... to here.
49131         (Depends-on): Update conditions.
49133 2011-05-21  Bruno Haible  <bruno@clisp.org>
49135         memchr: Respect rules for use of AC_LIBOBJ.
49136         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49137         invocations from here...
49138         * modules/memchr (configure.ac): ... to here.
49140 2011-05-21  Bruno Haible  <bruno@clisp.org>
49142         mbtowc: Move AC_LIBOBJ invocations to module description.
49143         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49144         invocations from here...
49145         * modules/mbtowc (configure.ac): ... to here.
49147 2011-05-21  Bruno Haible  <bruno@clisp.org>
49149         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49150         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49151         gl_PREREQ_MBSRTOWCS invocations from here...
49152         * modules/mbsrtowcs (configure.ac): ... to here.
49154 2011-05-21  Bruno Haible  <bruno@clisp.org>
49156         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49157         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49158         gl_PREREQ_MBSNRTOWCS invocations from here...
49159         * modules/mbsnrtowcs (configure.ac): ... to here.
49161 2011-05-21  Bruno Haible  <bruno@clisp.org>
49163         mbsinit: Move AC_LIBOBJ invocations to module description.
49164         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49165         invocations from here...
49166         * modules/mbsinit (configure.ac): ... to here.
49168 2011-05-21  Bruno Haible  <bruno@clisp.org>
49170         mbrlen: Move AC_LIBOBJ invocations to module description.
49171         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49172         invocations from here...
49173         * modules/mbrlen (configure.ac): ... to here.
49175 2011-05-21  Bruno Haible  <bruno@clisp.org>
49177         mbrtowc: Respect rules for use of AC_LIBOBJ.
49178         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49179         invocations from here...
49180         * modules/mbrtowc (configure.ac): ... to here.
49182 2011-05-21  Bruno Haible  <bruno@clisp.org>
49184         malloc-*: Move AC_LIBOBJ invocations to module description.
49185         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49186         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49187         AC_LIBOBJ invocations from here...
49188         * modules/malloc-gnu (configure.ac): ... to here.
49189         * modules/malloc-posix (configure.ac): ... and here.
49191 2011-05-21  Bruno Haible  <bruno@clisp.org>
49193         lstat, openat: Respect rules for use of AC_LIBOBJ.
49194         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49195         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49196         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49197         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49198         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49199         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49200         here.
49201         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49203 2011-05-21  Bruno Haible  <bruno@clisp.org>
49205         lseek: Move AC_LIBOBJ invocations to module description.
49206         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49207         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49208         * modules/lseek (configure.ac): ... to here.
49210 2011-05-21  Bruno Haible  <bruno@clisp.org>
49212         linkat: Move AC_LIBOBJ invocations to module description.
49213         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49214         here...
49215         * modules/linkat (configure.ac): ... to here.
49217 2011-05-21  Bruno Haible  <bruno@clisp.org>
49219         link: Respect rules for use of AC_LIBOBJ.
49220         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49221         * modules/link (configure.ac): ... to here.
49223 2011-05-21  Bruno Haible  <bruno@clisp.org>
49225         lchown: Move AC_LIBOBJ invocations to module description.
49226         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49227         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49228         * modules/lchown (configure.ac): ... to here.
49230 2011-05-21  Bruno Haible  <bruno@clisp.org>
49232         iswctype: Move AC_LIBOBJ invocations to module description.
49233         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49234         here...
49235         * modules/iswctype (configure.ac): ... to here.
49237 2011-05-21  Bruno Haible  <bruno@clisp.org>
49239         iswblank: Move AC_LIBOBJ invocations to module description.
49240         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49241         here...
49242         * modules/iswblank (configure.ac): ... to here.
49244 2011-05-21  Bruno Haible  <bruno@clisp.org>
49246         atanl: Move AC_LIBOBJ invocations to module description.
49247         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49248         * modules/atanl (configure.ac): ... to here.
49250 2011-05-21  Bruno Haible  <bruno@clisp.org>
49252         acosl: Move AC_LIBOBJ invocations to module description.
49253         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49254         * modules/acosl (configure.ac): ... to here.
49256 2011-05-21  Bruno Haible  <bruno@clisp.org>
49258         asinl: Respect rules for use of AC_LIBOBJ.
49259         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49260         * modules/asinl (configure.ac): ... to here.
49262 2011-05-21  Bruno Haible  <bruno@clisp.org>
49264         tanl: Move AC_LIBOBJ invocations to module description.
49265         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49266         * modules/tanl (configure.ac): ... to here.
49268 2011-05-21  Bruno Haible  <bruno@clisp.org>
49270         cosl: Move AC_LIBOBJ invocations to module description.
49271         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49272         * modules/cosl (configure.ac): ... to here.
49274 2011-05-21  Bruno Haible  <bruno@clisp.org>
49276         sinl: Move AC_LIBOBJ invocations to module description.
49277         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49278         * modules/sinl (configure.ac): ... to here.
49280 2011-05-21  Bruno Haible  <bruno@clisp.org>
49282         logl: Move AC_LIBOBJ invocations to module description.
49283         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49284         * modules/logl (configure.ac): ... to here.
49286 2011-05-21  Bruno Haible  <bruno@clisp.org>
49288         expl: Move AC_LIBOBJ invocations to module description.
49289         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49290         * modules/expl (configure.ac): ... to here.
49292 2011-05-21  Bruno Haible  <bruno@clisp.org>
49294         roundl: Move AC_LIBOBJ invocations to module description.
49295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49296         * modules/roundl (configure.ac): ... to here.
49298 2011-05-21  Bruno Haible  <bruno@clisp.org>
49300         round: Move AC_LIBOBJ invocations to module description.
49301         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49302         * modules/round (configure.ac): ... to here.
49304 2011-05-21  Bruno Haible  <bruno@clisp.org>
49306         roundf: Move AC_LIBOBJ invocations to module description.
49307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49308         * modules/roundf (configure.ac): ... to here.
49310 2011-05-21  Bruno Haible  <bruno@clisp.org>
49312         truncl: Move AC_LIBOBJ invocations to module description.
49313         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49314         * modules/truncl (configure.ac): ... to here.
49316 2011-05-21  Bruno Haible  <bruno@clisp.org>
49318         trunc: Move AC_LIBOBJ invocations to module description.
49319         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49320         * modules/trunc (configure.ac): ... to here.
49322 2011-05-21  Bruno Haible  <bruno@clisp.org>
49324         truncf: Move AC_LIBOBJ invocations to module description.
49325         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49326         * modules/truncf (configure.ac): ... to here.
49328 2011-05-21  Bruno Haible  <bruno@clisp.org>
49330         ceill: Move AC_LIBOBJ invocations to module description.
49331         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49332         * modules/ceill (configure.ac): ... to here.
49334 2011-05-21  Bruno Haible  <bruno@clisp.org>
49336         ceil: Move AC_LIBOBJ invocations to module description.
49337         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49338         * modules/ceil (configure.ac): ... to here.
49340 2011-05-21  Bruno Haible  <bruno@clisp.org>
49342         ceilf: Move AC_LIBOBJ invocations to module description.
49343         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49344         * modules/ceilf (configure.ac): ... to here.
49346 2011-05-21  Bruno Haible  <bruno@clisp.org>
49348         floorl: Respect rules for use of AC_LIBOBJ.
49349         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49350         * modules/floorl (configure.ac): ... to here.
49352 2011-05-21  Bruno Haible  <bruno@clisp.org>
49354         floor: Respect rules for use of AC_LIBOBJ.
49355         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49356         * modules/floor (configure.ac): ... to here.
49358 2011-05-21  Bruno Haible  <bruno@clisp.org>
49360         floorf: Move AC_LIBOBJ invocations to module description.
49361         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49362         * modules/floorf (configure.ac): ... to here.
49364 2011-05-20  Bruno Haible  <bruno@clisp.org>
49366         sqrtl: Respect rules for use of AC_LIBOBJ.
49367         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49368         * modules/sqrtl (configure.ac): ... to here.
49370 2011-05-20  Bruno Haible  <bruno@clisp.org>
49372         ldexpl: Respect rules for use of AC_LIBOBJ.
49373         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49374         * modules/ldexpl (configure.ac): ... to here.
49376 2011-05-20  Bruno Haible  <bruno@clisp.org>
49378         frexpl*: Respect rules for use of AC_LIBOBJ.
49379         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49380         invocation from here...
49381         * modules/frexpl (configure.ac): ... to here.
49382         * modules/frexpl-nolibm (configure.ac): ... and here.
49384 2011-05-20  Bruno Haible  <bruno@clisp.org>
49386         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49387         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49388         invocation from here...
49389         * modules/frexp (configure.ac): ... to here.
49390         * modules/frexp-nolibm (configure.ac): ... and here.
49392 2011-05-20  Bruno Haible  <bruno@clisp.org>
49394         isnan: Respect rules for use of AC_LIBOBJ.
49395         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49396         invocations here.
49397         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49398         REPLACE_ISNAN.
49399         * modules/isnand (configure.ac): Likewise.
49400         * modules/isnanl (configure.ac): Likewise.
49402 2011-05-20  Bruno Haible  <bruno@clisp.org>
49404         isnanl*: Respect rules for use of AC_LIBOBJ.
49405         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49406         invocation from here...
49407         * modules/isnanl (configure.ac): ... to here.
49408         * modules/isnanl-nolibm (configure.ac): ... and here.
49410 2011-05-20  Bruno Haible  <bruno@clisp.org>
49412         isnand*: Move AC_LIBOBJ invocations to module description.
49413         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49414         invocation from here...
49415         * modules/isnand (configure.ac): ... to here.
49416         * modules/isnand-nolibm (configure.ac): ... and here.
49418 2011-05-20  Bruno Haible  <bruno@clisp.org>
49420         isnanf*: Move AC_LIBOBJ invocations to module description.
49421         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49422         invocation from here...
49423         * modules/isnanf (configure.ac): ... to here.
49424         * modules/isnanf-nolibm (configure.ac): ... and here.
49426 2011-05-20  Bruno Haible  <bruno@clisp.org>
49428         isnan*: Separate the AC_LIBOBJ invocations.
49429         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49430         AC_LIBOBJ invocation.
49431         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49432         here.
49433         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49434         AC_LIBOBJ invocation.
49435         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49436         here.
49437         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49438         AC_LIBOBJ invocation.
49439         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49440         here.
49441         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49443 2011-05-08  Bruno Haible  <bruno@clisp.org>
49445         isinf: Move AC_LIBOBJ invocations to module description.
49446         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49447         * modules/isinf (configure.ac): ... to here.
49449 2011-05-08  Bruno Haible  <bruno@clisp.org>
49451         isfinite: Move AC_LIBOBJ invocations to module description.
49452         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49453         * modules/isfinite (configure.ac): ... to here.
49455 2011-05-08  Bruno Haible  <bruno@clisp.org>
49457         isblank: Move AC_LIBOBJ invocations to module description.
49458         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49459         here...
49460         * modules/isblank (configure.ac): ... to here.
49462 2011-05-08  Bruno Haible  <bruno@clisp.org>
49464         isapipe: Move AC_LIBOBJ invocations to module description.
49465         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49466         gl_PREREQ_ISAPIPE invocations from here...
49467         * modules/isapipe (configure.ac): ... to here.
49468         (Depends-on): Update condition.
49470 2011-05-08  Bruno Haible  <bruno@clisp.org>
49472         ioctl: Move AC_LIBOBJ invocations to module description.
49473         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49474         invocations from here...
49475         * modules/ioctl (configure.ac): ... to here.
49476         (Depends-on): Update condition.
49478 2011-05-08  Bruno Haible  <bruno@clisp.org>
49480         imaxdiv: Move AC_LIBOBJ invocations to module description.
49481         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49482         invocations from here...
49483         * modules/imaxdiv (configure.ac): ... to here.
49485 2011-05-08  Bruno Haible  <bruno@clisp.org>
49487         imaxabs: Move AC_LIBOBJ invocations to module description.
49488         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49489         invocations from here...
49490         * modules/imaxabs (configure.ac): ... to here.
49492 2011-05-08  Bruno Haible  <bruno@clisp.org>
49494         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49496         AC_LIBOBJ invocations from here...
49497         * modules/getaddrinfo (configure.ac): ... to here.
49498         (Depends-on): Add conditions.
49500 2011-05-08  Bruno Haible  <bruno@clisp.org>
49502         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49503         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49504         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49505         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49506         (gl_PREREQ_INET_PTON): ... from here.
49507         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49508         gl_PREREQ_INET_PTON here.
49509         (Depends-on): Update condition.
49511 2011-05-08  Bruno Haible  <bruno@clisp.org>
49513         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49514         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49515         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49516         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49517         (gl_PREREQ_INET_NTOP): ... from here.
49518         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49519         gl_PREREQ_INET_NTOP here.
49520         (Depends-on): Update condition.
49522 2011-05-08  Bruno Haible  <bruno@clisp.org>
49524         iconv_open: Move AC_LIBOBJ invocations to module description.
49525         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49526         AC_LIBOBJ invocations from here...
49527         * modules/iconv_open (configure.ac): ... to here.
49529 2011-05-08  Bruno Haible  <bruno@clisp.org>
49531         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49532         If module 'iconv_open' is among the main modules and module
49533         'iconv_open-utf' is among the tests dependencies, then
49534         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49535         return the special iconv_t values. Therefore iconv() and iconv_close()
49536         must support these special iconv_t values, already in lib, not only in
49537         tests.
49538         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49539         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49540         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49541         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49542         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49543         (Depends-on): Add the dependencies of iconv_open-utf.
49544         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49545         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49546         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49548 2011-05-08  Bruno Haible  <bruno@clisp.org>
49550         group-member: Move AC_LIBOBJ invocations to module description.
49551         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49552         gl_PREREQ_GROUP_MEMBER invocations from here...
49553         * modules/group-member (configure.ac): ... to here.
49555 2011-05-08  Bruno Haible  <bruno@clisp.org>
49557         grantpt: Move AC_LIBOBJ invocations to module description.
49558         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49559         invocations from here...
49560         * modules/grantpt (configure.ac): ... to here.
49562 2011-05-08  Bruno Haible  <bruno@clisp.org>
49564         glob: Move AC_LIBOBJ invocations to module description.
49565         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49566         from here...
49567         * modules/glob (configure.ac): ... to here.
49569 2011-05-08  Bruno Haible  <bruno@clisp.org>
49571         getusershell: Move AC_LIBOBJ invocations to module description.
49572         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49573         Move AC_LIBOBJ invocation from here...
49574         * modules/getusershell (configure.ac): ... to here.
49575         (Depends-on): Update condition.
49577 2011-05-08  Bruno Haible  <bruno@clisp.org>
49579         gettimeofday: Move AC_LIBOBJ invocations to module description.
49580         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49581         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49582         gl_PREREQ_GETTIMEOFDAY invocations from here...
49583         * modules/gettimeofday (configure.ac): ... to here.
49585 2011-05-08  Bruno Haible  <bruno@clisp.org>
49587         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49588         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49589         just gl_FUNC_TZSET.
49590         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49591         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49592         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49593         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49595 2011-05-08  Bruno Haible  <bruno@clisp.org>
49597         getsubopt: Move AC_LIBOBJ invocations to module description.
49598         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49599         gl_PREREQ_GETSUBOPT invocations from here...
49600         * modules/getsubopt (configure.ac): ... to here.
49602 2011-05-08  Bruno Haible  <bruno@clisp.org>
49604         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49605         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49606         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49607         * modules/getpass-gnu (configure.ac): ... to here.
49609 2011-05-08  Bruno Haible  <bruno@clisp.org>
49611         getpass: Move AC_LIBOBJ invocations to module description.
49612         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49613         gl_PREREQ_GETPASS invocations from here...
49614         * modules/getpass (configure.ac): ... to here.
49616 2011-05-08  Bruno Haible  <bruno@clisp.org>
49618         getpagesize: Move AC_LIBOBJ invocations to module description.
49619         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49620         from here...
49621         * modules/getpagesize (configure.ac): ... to here.
49623 2011-05-08  Bruno Haible  <bruno@clisp.org>
49625         getopt: Move AC_LIBOBJ invocations to module description.
49626         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49627         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49628         invocations from here...
49629         * modules/getopt-gnu (configure.ac): ... to here.
49630         * modules/getopt-posix (configure.ac): ... and here.
49631         (Depends-on): Update condition.
49633 2011-05-08  Bruno Haible  <bruno@clisp.org>
49635         getopt, argp: Respect rules for use of AC_LIBOBJ.
49636         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49637         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49638         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49639         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49641 2011-05-08  Bruno Haible  <bruno@clisp.org>
49643         getlogin_r: Move AC_LIBOBJ invocations to module description.
49644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49645         gl_PREREQ_GETLOGIN_R invocations from here...
49646         * modules/getlogin_r (configure.ac): ... to here.
49648 2011-05-08  Bruno Haible  <bruno@clisp.org>
49650         getlogin: Move AC_LIBOBJ invocations to module description.
49651         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49652         here...
49653         * modules/getlogin (configure.ac): ... to here.
49655 2011-05-08  Bruno Haible  <bruno@clisp.org>
49657         getloadavg: Move AC_LIBOBJ invocations to module description.
49658         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49659         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49660         * modules/getloadavg (configure.ac): ... to here.
49662 2011-05-08  Bruno Haible  <bruno@clisp.org>
49664         gethrxtime: Move AC_LIBOBJ invocations to module description.
49665         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49666         LIB_GETHRXTIME from here...
49667         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49668         invocations from here...
49669         * modules/gethrxtime (configure.ac): ... to here.
49671 2011-05-08  Bruno Haible  <bruno@clisp.org>
49673         gethostname: Move AC_LIBOBJ invocations to module description.
49674         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49675         gl_PREREQ_GETHOSTNAME invocations from here...
49676         * modules/gethostname (configure.ac): ... to here.
49678 2011-05-08  Bruno Haible  <bruno@clisp.org>
49680         getgroups: Move AC_LIBOBJ invocations to module description.
49681         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49682         here...
49683         * modules/getgroups (configure.ac): ... to here.
49685 2011-05-08  Bruno Haible  <bruno@clisp.org>
49687         getdtablesize: Move AC_LIBOBJ invocations to module description.
49688         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49689         invocation from here...
49690         * modules/getdtablesize (configure.ac): ... to here.
49692 2011-05-08  Bruno Haible  <bruno@clisp.org>
49694         getdomainname: Move AC_LIBOBJ invocations to module description.
49695         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49696         gl_PREREQ_GETDOMAINNAME invocations from here...
49697         * modules/getdomainname (configure.ac): ... to here.
49699 2011-05-08  Bruno Haible  <bruno@clisp.org>
49701         getline: Move AC_LIBOBJ invocations to module description.
49702         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49703         invocations from here...
49704         * modules/getline (configure.ac): ... to here.
49706 2011-05-08  Bruno Haible  <bruno@clisp.org>
49708         getline: Simplify.
49709         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49710         It's already handled through the module dependency.
49712 2011-05-08  Bruno Haible  <bruno@clisp.org>
49714         getdelim: Move AC_LIBOBJ invocations to module description.
49715         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49716         and gl_PREREQ_GETDELIM invocations from here...
49717         * modules/getdelim (configure.ac): ... to here.
49718         (Depends-on): Fix condition.
49720 2011-05-08  Bruno Haible  <bruno@clisp.org>
49722         getcwd: Move AC_LIBOBJ invocations to module description.
49723         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
49724         invocations from here...
49725         * modules/getcwd (configure.ac): ... to here.
49727 2011-05-08  Bruno Haible  <bruno@clisp.org>
49729         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
49730         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
49731         here...
49732         * modules/getcwd-lgpl (configure.ac): ... to here.
49734 2011-05-07  Bruno Haible  <bruno@clisp.org>
49736         crypto/gc: Move AC_LIBOBJ invocations to module description.
49737         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
49738         * modules/crypto/gc (configure.ac): ... to here.
49740 2011-05-07  Bruno Haible  <bruno@clisp.org>
49742         fwriting: Move AC_LIBOBJ invocations to module description.
49743         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
49744         here...
49745         * modules/fwriting (configure.ac): ... to here.
49747 2011-05-07  Bruno Haible  <bruno@clisp.org>
49749         fwritable: Move AC_LIBOBJ invocations to module description.
49750         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
49751         here...
49752         * modules/fwritable (configure.ac): ... to here.
49754 2011-05-07  Bruno Haible  <bruno@clisp.org>
49756         futimens: Move AC_LIBOBJ invocations to module description.
49757         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
49758         here...
49759         * modules/futimens (configure.ac): ... to here.
49761 2011-05-07  Bruno Haible  <bruno@clisp.org>
49763         ftruncate: Move AC_LIBOBJ invocations to module description.
49764         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
49765         gl_PREREQ_FTRUNCATE invocations from here...
49766         * modules/ftruncate (configure.ac): ... to here.
49768 2011-05-07  Bruno Haible  <bruno@clisp.org>
49770         fsync: Move AC_LIBOBJ invocations to module description.
49771         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
49772         invocations from here...
49773         * modules/fsync (configure.ac): ... to here.
49775 2011-05-07  Bruno Haible  <bruno@clisp.org>
49777         fsusage: Move AC_LIBOBJ invocations to module description.
49778         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
49779         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
49780         * modules/fsusage (configure.ac): ... to here.
49782 2011-05-07  Bruno Haible  <bruno@clisp.org>
49784         freopen: Move AC_LIBOBJ invocations to module description.
49785         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
49786         invocations from here...
49787         * modules/freopen (configure.ac): ... to here.
49789 2011-05-07  Bruno Haible  <bruno@clisp.org>
49791         free: Move AC_LIBOBJ invocations to module description.
49792         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
49793         invocations from here...
49794         * modules/free (configure.ac): ... to here.
49796 2011-05-07  Bruno Haible  <bruno@clisp.org>
49798         freadable: Move AC_LIBOBJ invocations to module description.
49799         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
49800         here...
49801         * modules/freadable (configure.ac): ... to here.
49803 2011-05-07  Bruno Haible  <bruno@clisp.org>
49805         fpurge: Move AC_LIBOBJ invocations to module description.
49806         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
49807         invocations from here...
49808         * modules/fpurge (configure.ac): ... to here.
49810 2011-05-07  Bruno Haible  <bruno@clisp.org>
49812         fpending: Move AC_LIBOBJ invocations to module description.
49813         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
49814         gl_FUNC_FPENDING.
49815         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
49816         invocations from here...
49817         * modules/fpending (configure.ac): ... to here.
49819 2011-05-07  Bruno Haible  <bruno@clisp.org>
49821         fopen: Move AC_LIBOBJ invocations to module description.
49822         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
49823         invocations from here...
49824         * modules/fopen (configure.ac): ... to here.
49826 2011-05-07  Bruno Haible  <bruno@clisp.org>
49828         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
49829         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
49830         gl_FUNC_FNMATCH_POSIX.
49831         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
49832         invocations from here...
49833         * modules/fnmatch (configure.ac): ... to here.
49834         * modules/fnmatch-gnu (configure.ac): ... and here.
49836 2011-05-07  Bruno Haible  <bruno@clisp.org>
49838         flock: Move AC_LIBOBJ invocations to module description.
49839         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
49840         invocations from here...
49841         * modules/flock (configure.ac): ... to here.
49843 2011-05-07  Bruno Haible  <bruno@clisp.org>
49845         fileblocks: Move AC_LIBOBJ invocations to module description.
49846         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
49847         gl_PREREQ_FILEBLOCKS invocations from here...
49848         * modules/fileblocks (configure.ac): ... to here.
49850 2011-05-06  Bruno Haible  <bruno@clisp.org>
49852         fflush: Move AC_LIBOBJ invocations to module description.
49853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
49854         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
49855         invocations from here...
49856         * modules/fflush (configure.ac): ... to here.
49858 2011-05-06  Bruno Haible  <bruno@clisp.org>
49860         fdopendir: Move AC_LIBOBJ invocations to module description.
49861         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
49862         here...
49863         * modules/fdopendir (configure.ac): ... to here.
49864         (Depends-on): Improve conditions.
49866 2011-05-06  Bruno Haible  <bruno@clisp.org>
49868         _Exit: Move AC_LIBOBJ invocations to module description.
49869         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
49870         invocations from here...
49871         * modules/_Exit (configure.ac): ... to here.
49873 2011-05-21  Bruno Haible  <bruno@clisp.org>
49875         euidaccess: Respect rules for use of AC_LIBOBJ.
49876         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
49878         from here...
49879         * modules/euidaccess (configure.ac): ... to here.
49881 2011-05-06  Bruno Haible  <bruno@clisp.org>
49883         error: Move AC_LIBOBJ invocations to module description.
49884         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
49885         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
49886         invocations from here...
49887         * modules/error (configure.ac): ... to here.
49889 2011-05-06  Bruno Haible  <bruno@clisp.org>
49891         duplocale: Move AC_LIBOBJ invocations to module description.
49892         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
49893         gl_PREREQ_DUPLOCALE invocations from here...
49894         * modules/duplocale (configure.ac): ... to here.
49896 2011-05-05  Bruno Haible  <bruno@clisp.org>
49898         dirfd: Move AC_LIBOBJ invocations to module description.
49899         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
49900         gl_FUNC_DIRFD.
49901         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
49902         here...
49903         * modules/dirfd (configure.ac): ... to here.
49904         (Depends-on): Fix condition.
49906 2011-05-05  Bruno Haible  <bruno@clisp.org>
49908         chown: Respect rules for use of AC_LIBOBJ.
49909         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
49910         * modules/chown (configure.ac): ... to here.
49912 2011-05-05  Bruno Haible  <bruno@clisp.org>
49914         chdir-long: Move AC_LIBOBJ invocations to module description.
49915         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
49916         gl_PREREQ_CHDIR_LONG invocations from here...
49917         * modules/chdir-long (configure.ac): ... to here.
49919 2011-05-05  Bruno Haible  <bruno@clisp.org>
49921         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
49922         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
49923         from here...
49924         * modules/canonicalize-lgpl (configure.ac): ... to here.
49926 2011-05-05  Bruno Haible  <bruno@clisp.org>
49928         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
49929         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
49930         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
49931         REPLACE_CALLOC.
49932         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
49933         * modules/calloc-gnu (configure.ac): Likewise.
49935 2011-05-05  Bruno Haible  <bruno@clisp.org>
49937         btowc: Move AC_LIBOBJ invocations to module description.
49938         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
49939         invocations from here...
49940         * modules/btowc (configure.ac): ... to here.
49942 2011-05-21  Bruno Haible  <bruno@clisp.org>
49944         atexit: Move AC_LIBOBJ invocations to module description.
49945         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
49946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
49947         here...
49948         * modules/atexit (configure.ac): ... to here.
49950 2011-05-05  Bruno Haible  <bruno@clisp.org>
49952         atoll: Move AC_LIBOBJ invocations to module description.
49953         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
49954         invocations from here...
49955         * modules/atoll (configure.ac): ... to here.
49957 2011-05-05  Bruno Haible  <bruno@clisp.org>
49959         argz: Move AC_LIBOBJ invocations to module description.
49960         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
49961         * modules/argz (configure.ac): ... to here.
49963 2011-05-05  Bruno Haible  <bruno@clisp.org>
49965         alphasort: Move AC_LIBOBJ invocations to module description.
49966         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
49967         gl_PREREQ_ALPHASORT invocations from here...
49968         * modules/alphasort (configure.ac): ... to here.
49970 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49972         verify: new macro verify_expr; verify_true deprecated
49973         * NEWS: Mention this.
49974         * doc/verify.texi (Compile-time Assertions): Document this.
49975         * lib/verify.h (verify_true): Deprecate.
49976         (verify_expr): New macro.
49977         * tests/test-verify.c (function): Test verify_expr.
49979 2011-06-14  Jim Meyering  <meyering@redhat.com>
49981         init.sh: give more portable redirection-related advice in a comment
49982         * tests/init.sh (stderr_fileno_): Update the advice in comments.
49983         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
49984         for lots of discussion.  Stefano Lattarini suggested the solution
49985         of putting "9>&2" after the command.  Reported by Bruno Haible.
49987 2011-06-13  Bruno Haible  <bruno@clisp.org>
49989         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
49990         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
49991         'none'.
49993 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
49995         ftoastr: use strtof only if HAVE_STRTOF
49996         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
49997         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
49998         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
49999         * modules/ftoastr (configure.ac): Check for strtof.
50001 2011-06-13  Bruno Haible  <bruno@clisp.org>
50003         gnulib-tool: Addendum to 2011-06-08 commit.
50004         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50005         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50007 2011-06-13  Bruno Haible  <bruno@clisp.org>
50009         fseeko: Provide a non-inline replacement of fseek().
50010         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50011         * modules/fseeko (Depends-on): Add fseek.
50012         * modules/fseek (License): Change to LGPLv2+.
50014 2011-06-13  Bruno Haible  <bruno@clisp.org>
50016         ftello: Provide a non-inline replacement of ftell().
50017         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50018         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50019         not have ftello() (such as on mingw).
50020         * modules/ftello (Depends-on): Add ftell.
50021         * modules/ftell (License): Change to LGPLv2+.
50023 2011-05-07  Bruno Haible  <bruno@clisp.org>
50025         ftell: Move AC_LIBOBJ invocations to module description.
50026         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50027         * modules/ftell (configure.ac): ... to here.
50029 2011-05-07  Bruno Haible  <bruno@clisp.org>
50031         ftello: Respect rules for use of AC_LIBOBJ.
50032         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50033         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50034         here...
50035         * modules/ftello (configure.ac): ... to here.
50037 2011-05-07  Bruno Haible  <bruno@clisp.org>
50039         fseeko: Simplify.
50040         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50041         (gl_FUNC_FSEEKO): Inline it here.
50043 2011-05-07  Bruno Haible  <bruno@clisp.org>
50045         fseek: Move AC_LIBOBJ invocations to module description.
50046         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50047         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50048         * modules/fseek (configure.ac): ... to here.
50050 2011-05-07  Bruno Haible  <bruno@clisp.org>
50052         fseek: Respect rules for use of AC_LIBOBJ.
50053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50054         here...
50055         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50057 2011-05-07  Bruno Haible  <bruno@clisp.org>
50059         fseeko: Respect rules for use of AC_LIBOBJ.
50060         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50061         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50062         here...
50063         * modules/fseeko (configure.ac): ... to here.
50065 2011-06-13  Bruno Haible  <bruno@clisp.org>
50067         gnulib-tool: Allow comments in the 'Depends-on' section.
50068         * doc/gnulib.texi (Module description): Mention comment syntax in the
50069         Depends-on section.
50070         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50072 2011-06-13  Bruno Haible  <bruno@clisp.org>
50074         file-set.h: guard __attibute__ use, now that it's not always defined
50075         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50076         versions that support it.  This fixes a coreutils build failure with
50077         the vendor cc on HP-UX 11.31.
50079 2011-06-12  Bruno Haible  <bruno@clisp.org>
50081         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50082         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50083         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50084         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50085         (acl, aclsort): New declarations.
50086         (aclv_nontrivial): New declaration.
50087         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50088         (file_has_acl): Read also the second kind of HP-UX ACLs.
50089         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50090         kind of HP-UX ACLs if the first kind fails.
50091         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50092         second kind of HP-UX ACLs.
50093         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50094         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50095         agree.
50096         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50097         hpuxjfs.
50098         Handle hpuxjfs.
50099         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50100         hpuxjfs.
50101         Handle hpuxjfs.
50102         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50103         (func_test_same_acls): Use both lsacl and getacl.
50104         Handle hpuxjfs.
50105         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50106         (func_test_same_acls): Use both lsacl and getacl.
50107         Handle hpuxjfs.
50109 2011-06-12  Bruno Haible  <bruno@clisp.org>
50111         acl: Complete the 2010-08-10 fix.
50112         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50113         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50114         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50115         explicitly.
50116         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50117         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50119 2011-06-12  Bruno Haible  <bruno@clisp.org>
50121         spawn-pipe tests: Comments.
50122         * tests/test-spawn-pipe-child.c (main): Update comment.
50123         Reported by James Youngman <jay@gnu.org>.
50125 2011-06-11  James Youngman  <jay@gnu.org>
50127         New module 'stat-size'.
50128         * modules/stat-size: New module.  Provides macros for accessing
50129         file size information in instances of struct stat.  Depends on the
50130         fileblocks module because it calls st_blocks.
50131         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50132         * doc/gnulib.texi: Include stat-size.texi.
50133         * doc/stat-size.texi: Documentation for this module.
50134         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50135         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50136         AC_STRUCT_ST_BLOCKS.
50138 2011-06-09  Bruno Haible  <bruno@clisp.org>
50140         thread: Support pthreads-win32.
50141         * lib/glthread/thread.h (gl_thread_self): Define differently on
50142         pthreads-win32.
50143         (gl_null_thread): New declaration.
50144         (gl_thread_self_pointer): New macro.
50145         * lib/glthread/thread.c (gl_null_thread): New constant.
50146         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50147         gl_thread_self.
50148         * tests/test-tls.c: Likewise.
50149         Suggested by Paul Eggert. Reported by Eric Blake.
50151 2011-06-09  Bruno Haible  <bruno@clisp.org>
50153         thread: Fix confusion between NULL and 0.
50154         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50155         Reported by Paul Eggert.
50157 2011-06-09  Bruno Haible  <bruno@clisp.org>
50159         spawn-pipe tests: Avoid test failure on HP-UX 11.
50160         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50161         is closed.
50163 2011-06-09  Bruno Haible  <bruno@clisp.org>
50165         acl tests: Fix compilation error on HP-UX 11.
50166         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50168 2011-06-09  Bruno Haible  <bruno@clisp.org>
50170         rmdir: Avoid test failure on HP-UX 10.20.
50171         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50172         EEXIST.
50174 2011-06-08  Eric Blake  <eblake@redhat.com>
50176         perror: fix test on mingw
50177         * modules/perror-tests (Depends-on): Add dup2.
50179         strerror_r-posix: fix on MacOS
50180         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50182         logic bug.
50183         * lib/strerror_r.c (strerror_r): Fix the bug.
50184         * lib/strerror.c (strerror): Likewise.
50185         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50186         problem.
50187         * doc/posix-functions/strerror.texi (strerror): Likewise.
50188         * doc/posix-functions/perror.texi (perror): Likewise.
50189         * tests/test-strerror.c (main): Enhance test.
50190         * tests/test-strerror_r.c (main): Likewise.
50192 2011-06-08  Bruno Haible  <bruno@clisp.org>
50194         gnulib-tool: Better isolation between different gnulib-tool invocations.
50195         * gnulib-tool: New option --witness-c-macro.
50196         (witness_c_macro): New variable.
50197         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50198         AM_CPPFLAGS define it as a C macro.
50199         (func_emit_tests_Makefile_am): Likewise.
50200         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50201         read it from there.
50202         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50203         m4_define, not AC_DEFUN.
50204         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50205         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50206         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50207         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50208         s|...|...|, to substitute the values of the GNULIB_* module indicator
50209         variables.
50210         * modules/dirent (Makefile.am): Likewise.
50211         * modules/fcntl-h (Makefile.am): Likewise.
50212         * modules/iconv-h (Makefile.am): Likewise.
50213         * modules/langinfo (Makefile.am): Likewise.
50214         * modules/locale (Makefile.am): Likewise.
50215         * modules/math (Makefile.am): Likewise.
50216         * modules/netdb (Makefile.am): Likewise.
50217         * modules/poll-h (Makefile.am): Likewise.
50218         * modules/pty (Makefile.am): Likewise.
50219         * modules/search (Makefile.am): Likewise.
50220         * modules/signal (Makefile.am): Likewise.
50221         * modules/spawn (Makefile.am): Likewise.
50222         * modules/stdio (Makefile.am): Likewise.
50223         * modules/stdlib (Makefile.am): Likewise.
50224         * modules/string (Makefile.am): Likewise.
50225         * modules/sys_ioctl (Makefile.am): Likewise.
50226         * modules/sys_select (Makefile.am): Likewise.
50227         * modules/sys_socket (Makefile.am): Likewise.
50228         * modules/sys_stat (Makefile.am): Likewise.
50229         * modules/sys_times (Makefile.am): Likewise.
50230         * modules/sys_utsname (Makefile.am): Likewise.
50231         * modules/sys_wait (Makefile.am): Likewise.
50232         * modules/termios (Makefile.am): Likewise.
50233         * modules/time (Makefile.am): Likewise.
50234         * modules/unistd (Makefile.am): Likewise.
50235         * modules/wchar (Makefile.am): Likewise.
50237 2011-06-08  Eric Blake  <eblake@redhat.com>
50239         strerror: simplify replacement
50240         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50241         * modules/strerror (configure.ac): No prereqs needed here...
50242         * modules/strerror-override (configure.ac): ...but this needs it.
50243         (Files): Add file for needed prereq macro.
50245 2011-06-08  Bruno Haible  <bruno@clisp.org>
50247         strerror_r-posix: Tweaks.
50248         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50249         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50251         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50252         (gl_FUNC_STRERROR_R): ... to here.
50253         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50255 2011-06-07  Eric Blake  <eblake@redhat.com>
50257         perror: document fixed bugs
50258         * doc/posix-functions/perror.texi (perror): Document recent
50259         patches.
50261 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50263         stat-time: get_stat_birthtime failure is better-defined
50264         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50265         return a timestamp whose tv_sec and tv_nsec values are both -1.
50266         Previously, the spec said only that the tv_nsec value was negative.
50267         This upward-compatible change simplifies GNU tar a bit.
50269 2011-06-07  Eric Blake  <eblake@redhat.com>
50271         strerror_r-posix: work around cygwin 1.7.9
50272         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50273         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50274         bug without replacing strerror_r.
50275         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50276         strerror_r is buggy, but without requiring strerror_r compilation.
50277         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50279         test-perror: relax test to ignore cygwin bug
50280         * tests/test-perror2.c (main): Relax test on requiring detection
50281         of stream errors, and use unbuffered stream.
50282         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50283         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50284         * doc/posix-functions/fputc.texi (fputc): Likewise.
50285         * doc/posix-functions/fputs.texi (fputs): Likewise.
50286         * doc/posix-functions/fputws.texi (fputws): Likewise.
50287         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50288         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50289         * doc/posix-functions/getopt.texi (getopt): Likewise.
50290         * doc/posix-functions/perror.texi (perror): Likewise.
50291         * doc/posix-functions/printf.texi (printf): Likewise.
50292         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50293         * doc/posix-functions/psignal.texi (psignal): Likewise.
50294         * doc/posix-functions/putc.texi (putc): Likewise.
50295         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50296         Likewise.
50297         * doc/posix-functions/putchar.texi (putchar): Likewise.
50298         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50299         Likewise.
50300         * doc/posix-functions/puts.texi (puts): Likewise.
50301         * doc/posix-functions/putwc.texi (putwc): Likewise.
50302         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50303         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50304         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50305         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50306         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50307         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50308         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50309         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50311 2011-05-22  Bruno Haible  <bruno@clisp.org>
50313         strerror: Move AC_LIBOBJ invocations to module description.
50314         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50315         gl_PREREQ_STRERROR invocations from here...
50316         * modules/strerror (configure.ac): ... to here.
50318 2011-05-21  Bruno Haible  <bruno@clisp.org>
50320         perror: Use common idiom.
50321         * modules/perror (configure.ac): Reorder statements.
50323 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50325         tests: fix usage message in 'mktempd_'
50326         * tests/init.sh (mktempd_): In the usage message, use literal
50327         'mktempd_', not '$ME' (which is even undefined), as the name of
50328         the subroutine.
50330 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50332         tests init: new function 'fatal_', for hard errors
50333         Before this patch, the only way offered by tests/init.sh to
50334         properly signal a hard error was the `framework_failure_'
50335         function.  But the error message issued by that function,
50336         as its name would suggest, refers to a set-up failure in the
50337         testsuite, while hard errors can obviously also be due to
50338         other reasons.  The best way to fix this inconsistency is to
50339         introduce a new function with a more general error message.
50340         * tests/init.sh (fatal_): New function.
50342 2011-06-06  Eric Blake  <eblake@redhat.com>
50344         canonicalize-lgpl: use common idiom
50345         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50346         over newer POSIX -Rf.
50347         Reported by Bruno Haible.
50349         canonicalize-lgpl: work around AIX realpath bug
50350         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50351         * doc/posix-functions/realpath.texi (realpath): Document it.
50352         Reported by Bruno Haible.
50354         strerror: work around FreeBSD bug
50355         * lib/strerror.c (strerror): Special case 0.
50356         Reported by Bruno Haible.
50358         strerror-override: avoid bloating errno module
50359         * modules/errno (Files, configure.ac): Move replacement strings...
50360         * modules/strerror-override: ...to new module.
50361         * modules/strerror (Depends-on): Add strerror-override.
50362         * modules/strerror_r-posix (Depends-on): Likewise.
50363         * MODULES.html.sh: Document new module.
50364         Reported by Bruno Haible.
50366 2011-06-06  Bruno Haible  <bruno@clisp.org>
50368         spawn-pipe tests: Rename program.
50369         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50370         * tests/test-spawn-pipe-child.c: Update comment.
50371         * tests/test-spawn-pipe.sh: Update.
50372         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50374         spawn-pipe tests: Link the child program only against libc.
50375         * tests/test-spawn-pipe-child.c: New file, extracted from
50376         tests/test-spawn-pipe.c.
50377         (main): Expect only one argument.
50378         (is_open): New function, copied from tests/test-pipe.c.
50379         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50380         (child_main): Remove function.
50381         (test_pipe): Pass only one argument to the child program.
50382         (main): Remove child process code. Expect the child program's name as
50383         first argument.
50384         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50385         argument.
50386         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50387         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50388         test-spawn-pipe-child against no libraries.
50390 2011-06-06  Bruno Haible  <bruno@clisp.org>
50392         careadlinkat: Avoid mismatch between ssize_t and int.
50393         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50394         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50396 2011-06-06  Jim Meyering  <meyering@redhat.com>
50398         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50399         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50400         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50402 2011-06-05  Bruno Haible  <bruno@clisp.org>
50404         ansi-c++-opt: Interoperability with libtool.
50405         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50406         set the variable to "no", not to ":".
50407         * NEWS: Mention the change.
50409 2011-06-05  Bruno Haible  <bruno@clisp.org>
50411         acl: Fix test failure on AIX 7.
50412         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50413         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50415 2011-06-05  Bruno Haible  <bruno@clisp.org>
50417         pipe-filter-ii: Fix test failure on AIX and IRIX.
50418         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50419         with EAGAIN, retry with a smaller buffer size.
50421 2011-06-05  Bruno Haible  <bruno@clisp.org>
50423         localename: Fix link dependencies.
50424         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50425         * modules/localename-tests (Makefile.am): Link test-localename with
50426         $(LIBTHREAD).
50428 2011-06-05  Bruno Haible  <bruno@clisp.org>
50430         error: Avoid gcc warning.
50431         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50433 2011-06-05  Bruno Haible  <bruno@clisp.org>
50435         unsetenv: Avoid gcc warning.
50436         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50438 2011-06-05  Bruno Haible  <bruno@clisp.org>
50440         setenv: Avoid gcc warning.
50441         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50443 2011-06-05  Bruno Haible  <bruno@clisp.org>
50445         sys_select: Ensure memset is declared also on AIX 7.
50446         * lib/sys_select.in.h: Include <string.h> also on AIX.
50447         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50448         self-contained also on AIX 7.1.
50450 2011-06-04  Jim Meyering  <meyering@redhat.com>
50452         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50453         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50454         function name, "error".
50455         (_gl_translatable_diag_func_re): New configurable variable.
50457 2011-06-04  Bruno Haible  <bruno@clisp.org>
50459         getopt: Avoid gcc warning.
50460         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50462 2011-06-04  Bruno Haible  <bruno@clisp.org>
50464         strerror_r: Fix comments.
50465         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50466         commit.
50468 2011-06-04  Bruno Haible  <bruno@clisp.org>
50470         perror: Fix compilation error.
50471         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50472         Undefine fprintf, not sprintf.
50473         * modules/perror (Depends-on): Remove intprops, verify.
50475 2011-06-04  Bruno Haible  <bruno@clisp.org>
50477         setlocale: Enable replacement on Cygwin 1.5.
50478         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50479         Cygwin 1.5.x.
50480         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50481         LC_CTYPE category also exists on Cygwin 1.5.x.
50483 2011-06-04  Bruno Haible  <bruno@clisp.org>
50485         strerror-override: Don't disable symbol renamings.
50486         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50487         * lib/strerror-override.c: Include config.h.
50488         (strerror_override): Don't undefine.
50490 2011-06-03  Bruno Haible  <bruno@clisp.org>
50492         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50493         * lib/localename.h: Update copyright header.
50494         * lib/localename.c: Likewise.
50495         * lib/relocatable.h: Likewise.
50496         * lib/relocatable.c: Likewise.
50498 2011-06-02  Bruno Haible  <bruno@clisp.org>
50500         doc: Fix a module name.
50501         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50503 2011-06-02  Bruno Haible  <bruno@clisp.org>
50505         pipe2: Remove dependency on 'nonblocking' module.
50506         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50507         O_NONBLOCK is defined by gnulib.
50508         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50509         is zero.
50510         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50511         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50512         defined by gnulib.
50513         (get_nonblocking_flag): New function.
50514         (main): Test O_NONBLOCK flag only if it is nonzero.
50515         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50517 2011-06-03  Jim Meyering  <meyering@redhat.com>
50519         maint: three new prohibit-header-without-use rules
50520         Prohibit use of cloexec.h, posixver.h, same.h without use.
50521         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50522         (sc_prohibit_posixver_without_use): Likewise.
50523         (sc_prohibit_same_without_use): Likewise.
50525 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50527         allocator: 'die' routine is now given requested size
50528         * lib/allocator.h (struct allocator.die): New size arg.
50529         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50530         If the actual problem is an ssize_t limitation, not a size_t or
50531         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50533 2011-06-01  Eric Blake  <eblake@redhat.com>
50535         strerror: drop strerror_r dependency
50536         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50537         * lib/strerror-override.c (strerror_override): ...to new file.
50538         * lib/strerror-override.h: Add prototype.
50539         * lib/strerror-impl.h: Delete.
50540         * lib/strerror.c (strerror): New implementation.
50541         * modules/errno (Files): Add new files.
50542         (configure.ac): Compile new file as appropriate.
50543         * modules/strerror (Files): Drop unused file.
50544         (Depends-on): Drop strerror_r-posix.
50545         * MODULES.html.sh: Document strerror_r-posix.
50546         Requested by Sam Steingold.
50548         perror: call strerror_r directly
50549         * modules/perror (Files): Drop strerror-impl.h.
50550         * lib/perror.c (perror): Use our own stack buffer, rather than
50551         calling a wrapper that uses static storage.
50552         * doc/posix-functions/perror.texi (perror): Document a limitation
50553         of our replacement.
50555         strerror_r: fix includes for FreeBSD
50556         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50557         since we use abort on some platforms.
50558         Reported by Matthias Bolte.
50560 2011-05-31  Bruno Haible  <bruno@clisp.org>
50562         Fix link errors in tests: openat-die uses gettext-h.
50563         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50564         against $(LIBINTL).
50565         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50566         against $(LIBINTL).
50567         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50568         $(LIBINTL).
50569         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50570         against $(LIBINTL).
50571         * modules/linkat-tests (Makefile.am): Link test-linkat against
50572         $(LIBINTL).
50573         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50574         $(LIBINTL).
50575         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50576         against $(LIBINTL).
50577         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50578         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50579         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50580         $(LIBINTL).
50581         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50582         $(LIBINTL).
50583         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50584         $(LIBINTL).
50585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50587 2011-05-31  Bruno Haible  <bruno@clisp.org>
50589         Fix link errors in tests: wait-process uses gettext-h.
50590         * modules/nonblocking-pipe-tests (Makefile.am): Set
50591         test_nonblocking_pipe_main_LDADD.
50592         * modules/nonblocking-socket-tests (Makefile.am): Link
50593         test-nonblocking-socket-main against $(LIBINTL).
50594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50596 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50598         assert-h: work around 'verify' incompatibility
50599         * lib/verify.h: Use @...@ directives, not ifdef.
50600         * modules/assert-h (assert.h): Implement the directives.
50601         (assert.h): Substitute the symbol-prefix more consistently.
50603 2011-05-29  Jim Meyering  <meyering@redhat.com>
50605         trim: remove three superfluous assignments
50606         * lib/trim.c (trim2): Remove three superfluous assignments
50607         and correct brace positioning.
50609 2011-05-29  Bruno Haible  <bruno@clisp.org>
50611         wctype-h: Avoid namespace pollution on Solaris 2.6.
50612         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50613         identifiers.
50614         * doc/posix-headers/wctype.texi: Mention the problem.
50615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50617 2011-05-28  Jim Meyering  <meyering@redhat.com>
50619         parse-datetime.y: accommodate -Wstrict-overflow
50620         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50621         placate -Wstrict-overflow.
50623         trim: avoid a warning from -O2 -Wstrict-overflow
50624         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50626 2011-05-29  Bruno Haible  <bruno@clisp.org>
50628         gnulib-tool: Fix bug in yesterday's commit.
50629         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50630         twice.
50632 2011-05-29  Bruno Haible  <bruno@clisp.org>
50634         Allow multiple gnulib generated include files to be combined.
50635         * gnulib-tool (func_compute_include_guard_prefix): New function.
50636         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50637         ${gl_include_guard_prefix} references.
50638         (func_import, func_create_testdir): Invoke
50639         func_compute_include_guard_prefix.
50640         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50641         * lib/ctype.in.h: Likewise.
50642         * lib/dirent.in.h: Likewise.
50643         * lib/errno.in.h: Likewise.
50644         * lib/fcntl.in.h: Likewise.
50645         * lib/float.in.h: Likewise.
50646         * lib/getopt.in.h: Likewise.
50647         * lib/iconv.in.h: Likewise.
50648         * lib/langinfo.in.h: Likewise.
50649         * lib/locale.in.h: Likewise.
50650         * lib/math.in.h: Likewise.
50651         * lib/netdb.in.h: Likewise.
50652         * lib/netinet_in.in.h: Likewise.
50653         * lib/poll.in.h: Likewise.
50654         * lib/pthread.in.h: Likewise.
50655         * lib/pty.in.h: Likewise.
50656         * lib/sched.in.h: Likewise.
50657         * lib/se-selinux.in.h: Likewise.
50658         * lib/search.in.h: Likewise.
50659         * lib/signal.in.h: Likewise.
50660         * lib/spawn.in.h: Likewise.
50661         * lib/stdarg.in.h: Likewise.
50662         * lib/stddef.in.h: Likewise.
50663         * lib/stdint.in.h: Likewise.
50664         * lib/stdio.in.h: Likewise.
50665         * lib/stdlib.in.h: Likewise.
50666         * lib/string.in.h: Likewise.
50667         * lib/strings.in.h: Likewise.
50668         * lib/sys_file.in.h: Likewise.
50669         * lib/sys_ioctl.in.h: Likewise.
50670         * lib/sys_select.in.h: Likewise.
50671         * lib/sys_socket.in.h: Likewise.
50672         * lib/sys_stat.in.h: Likewise.
50673         * lib/sys_time.in.h: Likewise.
50674         * lib/sys_times.in.h: Likewise.
50675         * lib/sys_uio.in.h: Likewise.
50676         * lib/sys_utsname.in.h: Likewise.
50677         * lib/sys_wait.in.h: Likewise.
50678         * lib/sysexits.in.h: Likewise.
50679         * lib/termios.in.h: Likewise.
50680         * lib/time.in.h: Likewise.
50681         * lib/unistd.in.h: Likewise.
50682         * lib/wchar.in.h: Likewise.
50683         * lib/wctype.in.h: Likewise.
50684         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50685         * modules/ctype (Makefile.am): Likewise.
50686         * modules/dirent (Makefile.am): Likewise.
50687         * modules/errno (Makefile.am): Likewise.
50688         * modules/fcntl-h (Makefile.am): Likewise.
50689         * modules/float (Makefile.am): Likewise.
50690         * modules/getopt-posix (Makefile.am): Likewise.
50691         * modules/iconv-h (Makefile.am): Likewise.
50692         * modules/langinfo (Makefile.am): Likewise.
50693         * modules/locale (Makefile.am): Likewise.
50694         * modules/math (Makefile.am): Likewise.
50695         * modules/netdb (Makefile.am): Likewise.
50696         * modules/netinet_in (Makefile.am): Likewise.
50697         * modules/poll-h (Makefile.am): Likewise.
50698         * modules/pthread (Makefile.am): Likewise.
50699         * modules/pty (Makefile.am): Likewise.
50700         * modules/sched (Makefile.am): Likewise.
50701         * modules/search (Makefile.am): Likewise.
50702         * modules/selinux-h (Makefile.am): Likewise.
50703         * modules/signal (Makefile.am): Likewise.
50704         * modules/spawn (Makefile.am): Likewise.
50705         * modules/stdarg (Makefile.am): Likewise.
50706         * modules/stddef (Makefile.am): Likewise.
50707         * modules/stdint (Makefile.am): Likewise.
50708         * modules/stdio (Makefile.am): Likewise.
50709         * modules/stdlib (Makefile.am): Likewise.
50710         * modules/string (Makefile.am): Likewise.
50711         * modules/strings (Makefile.am): Likewise.
50712         * modules/sys_file (Makefile.am): Likewise.
50713         * modules/sys_ioctl (Makefile.am): Likewise.
50714         * modules/sys_select (Makefile.am): Likewise.
50715         * modules/sys_socket (Makefile.am): Likewise.
50716         * modules/sys_stat (Makefile.am): Likewise.
50717         * modules/sys_time (Makefile.am): Likewise.
50718         * modules/sys_times (Makefile.am): Likewise.
50719         * modules/sys_uio (Makefile.am): Likewise.
50720         * modules/sys_utsname (Makefile.am): Likewise.
50721         * modules/sys_wait (Makefile.am): Likewise.
50722         * modules/sysexits (Makefile.am): Likewise.
50723         * modules/termios (Makefile.am): Likewise.
50724         * modules/time (Makefile.am): Likewise.
50725         * modules/unistd (Makefile.am): Likewise.
50726         * modules/wchar (Makefile.am): Likewise.
50727         * modules/wctype-h (Makefile.am): Likewise.
50728         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
50730 2011-05-29  Bruno Haible  <bruno@clisp.org>
50732         assert-h: Allow multiple gnulib generated replacements to coexist.
50733         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
50735 2011-05-29  Bruno Haible  <bruno@clisp.org>
50737         argp: Allow coexistence with strerror_r-posix module.
50738         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
50739         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
50740         by gnulib's <string.h> replacement), assume it has the POSIX signature,
50741         not the glibc signature.
50743 2011-05-28  Bruno Haible  <bruno@clisp.org>
50745         gnulib-tool: Alternative structure of testdirs, similar to --import.
50746         * gnulib-tool: New option --single-configure.
50747         (func_usage): Document it.
50748         (single_configure): New variable.
50749         (func_modules_transitive_closure_separately,
50750         func_modules_transitive_closure_separately,
50751         func_determine_use_libtests, func_modules_add_dummy_separately,
50752         func_modules_to_filelist_separately): New functions, extracted from
50753         func_import.
50754         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
50755         (func_import): Use the new functions.
50756         (func_create_testdir): Set final_modules. Handle $single_configure =
50757         true case.
50759 2011-05-28  Bruno Haible  <bruno@clisp.org>
50761         getloadavg: Remove an unreliable safety check.
50762         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
50763         getloadavg.c is in place.
50764         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
50765         Reported by Sam Steingold <sds@gnu.org>.
50767 2011-05-28  Bruno Haible  <bruno@clisp.org>
50769         doc: Cleanup yet another file produced by texinfo.tex.
50770         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
50772 2011-05-28  Bruno Haible  <bruno@clisp.org>
50774         Finish the conditional dependencies mechanism.
50775         * gnulib-tool: New option --no-conditional-dependencies.
50776         (func_usage): Document it. Don't mark --conditional-dependencies as
50777         experimental.
50778         (cond_dependencies): The possible values can now be true, false, empty.
50779         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
50780         (func_import): Store setting in gnulib-cache.m4 and read it from there.
50781         * doc/gnulib-tool.texi (Conditional dependencies): New section.
50783 2011-05-28  Bruno Haible  <bruno@clisp.org>
50785         doc: Use a recent texinfo.tex.
50786         * doc/Makefile (tex_opts): New variable.
50787         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
50789 2011-05-28  Jim Meyering  <meyering@redhat.com>
50791         intprops.h: adjust comment to match code change
50792         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
50793         only once, it *may* have side effects.  Also fix an unrelated typo.
50794         (_GL_INT_SIGNED): Likewise.
50796 2011-05-26  Simon Josefsson  <simon@josefsson.org>
50798         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
50800 2011-05-26  Bruno Haible  <bruno@clisp.org>
50802         mbsrchr: Avoid collision with system function on Interix.
50803         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
50804         Reported by Markus Duft <mduft@gentoo.org>.
50806 2011-05-15  James Youngman  <jay@gnu.org>
50808         getopt: for ambiguous options, enumerate the possibilities.
50809         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
50810         the ambiguous options when an ambiguous prefix is given. This was
50811         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
50812         glibc change was
50813         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
50815 2011-05-25  Eric Blake  <eblake@redhat.com>
50817         getcwd: work around mingw bug
50818         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
50819         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50820         Reported by Matthias Bolte.
50822 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
50824         test-intprops: disable -Wtype-limits diagnostics
50825         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
50826         diagnostics.  Otherwise, the integer overflow macros generate many
50827         diagnostics.  Reported by Jim Meyering in
50828         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50830         intprops: shorten, to pacify gcc -Woverlength-strings
50831         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
50832         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
50833         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
50834         likely to run afoul of C compiler limits for string constant lengths.
50835         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50837 2011-05-24  Eric Blake  <eblake@redhat.com>
50839         docs: document recently fixed glibc printf bug
50840         * doc/posix-functions/fprintf.texi (fprintf): Document it.
50841         * doc/posix-functions/printf.texi (printf): Likewise.
50842         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50843         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50845         closein-tests: convert to init.sh
50846         * modules/closein-tests (Files): Add init.sh
50847         * tests/test-closein.sh Use it.
50849         yesno-tests: convert to init.sh
50850         * modules/yesno-tests (Files): Add init.sh.
50851         * tests/test-yesno.sh: Use it.
50853         atexit-tests: ensure reliable exit status
50854         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
50855         Reported by Bruno Haible.
50857 2011-05-24  Bruno Haible  <bruno@clisp.org>
50859         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
50860         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
50861         gl_PREREQ_STRERROR_R invocations from here...
50862         * modules/strerror_r-posix (configure.ac): ... to here.
50864 2011-05-24  Eric Blake  <eblake@redhat.com>
50866         strerror_r: fix missing header
50867         * lib/strerror_r.c: Avoid compiler warning about snprintf.
50869         strerror_r: fix AIX test failures
50870         * lib/strerror_r.c (strerror_r): Convert silent truncation to
50871         ERANGE failure.
50873         strerror_r: fix Solaris test failures
50874         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
50875         failures.
50876         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
50878         strerror_r: enforce POSIX recommendations
50879         * lib/strerror_r.c (safe_copy): New helper method.
50880         (strerror_r): Guarantee a non-empty string.
50881         * tests/test-strerror_r.c (main): Enhance tests to incorporate
50882         recent POSIX rulings and to match our strerror guarantees.
50883         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
50885 2011-05-24  Jim Meyering  <meyering@redhat.com>
50887         test-perror2.c: avoid warning about unused variable
50888         * tests/test-perror2.c (main): Remove declaration of unused "fp".
50890 2011-05-24  Eric Blake  <eblake@redhat.com>
50892         perror: avoid spurious test failure on HP-UX
50893         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
50895         tests: fix logic bug in init.sh
50896         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
50897         shell.
50899 2011-05-24  Jim Meyering  <meyering@redhat.com>
50901         utimensat: do not reference an out-of-scope buffer
50902         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
50903         declared in an inner scope, yet "times" would be dereferenced outside
50904         the scope in which "ts" was valid.
50905         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
50906         of ts[2] "out/up", so that the use of aliased "times" (via
50907         "times = ts;") does not end up referencing an out-of-scope "ts"
50909         opendir-safer.c: don't clobber errno; don't close negative FD
50910         * lib/opendir-safer.c (opendir_safer):
50911         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
50912         file descriptor, and more importantly, don't clobber the
50913         offending errno value with EINVAL.  Before, upon failure
50914         of dup_safer, we would pass the negative file descriptor to
50915         fdopendir, which would clobber errno.
50917 2011-05-23  Bruno Haible  <bruno@clisp.org>
50919         idcache: Fix module description.
50920         * modules/idcache (Include): Set to "idcache.h".
50922 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
50924         gnulib-tool: fix portability problem with MacOS sed
50925         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
50926         before the "}".  Problem reported by Leo in
50927         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
50928         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
50929         sed_extract_condition1, sed_extract_condition2.
50931 2011-05-23  Bruno Haible  <bruno@clisp.org>
50933         hash: Simplify autoconf macro.
50934         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
50936 2011-05-23  Bruno Haible  <bruno@clisp.org>
50938         getugroups: Fix module description.
50939         * modules/getugroups (Include): Set to "getugroups.h".
50941 2011-05-23  Bruno Haible  <bruno@clisp.org>
50943         linkat: Simplify autoconf macro.
50944         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
50946 2011-05-23  Bruno Haible  <bruno@clisp.org>
50947             Eric Blake  <eblake@redhat.com>
50949         linkat, renameat: Update dependencies.
50950         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
50951         * modules/linkat (Depends-on): Likewise. Remove also readlink,
50952         symlinkat.
50954 2011-05-23  Jim Meyering  <meyering@redhat.com>
50956         maint.mk: more tight_scope improvements
50957         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
50958         (_gl_TS_headers): Define only in if-0'd block.
50959         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
50960         sometimes we must *not* use it.  Adjust uses accordingly.
50961         (sc_tight_scope): Use much simpler grep-based test to determine
50962         whether we skip this rule.
50964         maint.mk: generalize/improve the tight-scope rule
50965         * top/maint.mk: Emit a warning when the test is skipped.
50966         (_gl_TS_dir): Add $(srcdir)/ prefix.
50967         (_gl_TS_function_match): Simplify, rather than trying
50968         to enumerate common types.  Otherwise, it would fail to match an
50969         "extern unsigned char const *" declaration in idutils.
50970         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
50971         a way to support use of that type of macro.
50972         (_gl_TS_var_match): Simplify regexp.
50973         (_gl_TS_obj_files): New configurable variable.
50974         (_gl_TS_headers): Likewise.
50976 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50978         verify: fix bug when gnulib <assert.h> is also included
50979         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
50980         is defined, not if _GL_STATIC_ASSERT_H is not defined.
50981         Perhaps there's a better way, but this fixes the immediate problem.
50982         Problem reported by Bruno Haible in
50983         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
50985 2011-05-22  Bruno Haible  <bruno@clisp.org>
50987         xgetcwd: Simplify autoconf macro.
50988         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
50990 2011-05-22  Bruno Haible  <bruno@clisp.org>
50992         New module 'mktime-internal'.
50993         * modules/mktime-internal: New file.
50994         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
50995         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
50996         mktime_internal as a C macro if libc has __mktime_internal.
50997         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
50998         conditions.
50999         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51001 2011-05-22  Bruno Haible  <bruno@clisp.org>
51003         timegm: Correct mktime replacement statements.
51004         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51005         defining mktime as a C macro. This completes a 2009-07-28 commit.
51007 2011-05-22  Bruno Haible  <bruno@clisp.org>
51009         timegm: Simplify autoconf macro.
51010         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51012 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51014         clock-time: change to LGPLv2+.
51015         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51016         BSD-like but we have no mark for that; this is good enough for now.
51018 2011-05-21  Bruno Haible  <bruno@clisp.org>
51020         strerror_r: Fix comments.
51021         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51023 2011-05-21  Bruno Haible  <bruno@clisp.org>
51025         relocatable-prog-wrapper: Fix possible link error.
51026         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51027         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51028         (gl_FUNC_SETENV): ... to here.
51029         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51030         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51032 2011-05-21  Bruno Haible  <bruno@clisp.org>
51034         relocatable-prog-wrapper: Assume strerror() exists.
51035         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51036         m4/strerror.m4.
51037         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51038         * lib/relocwrapper.c: Remove mention of strerror module.
51039         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51041         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51042         C macro.
51044 2011-05-21  Bruno Haible  <bruno@clisp.org>
51046         select: Simplify replacement idiom.
51047         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51048         Win32 platforms.
51049         * lib/sys_select.in.h (select): Simplify accordingly.
51050         * modules/select (Depends-on): Likewise.
51052 2011-05-21  Bruno Haible  <bruno@clisp.org>
51054         mkdir-p: Simplify autoconf macro.
51055         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51056         gl_FUNC_LCHOWN.
51058 2011-05-21  Eric Blake  <eblake@redhat.com>
51060         strerror_r: avoid clobbering strerror on cygwin
51061         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51062         fall back instead to sys_errlist.
51063         * modules/strerror (configure.ac): Add witness.
51064         * tests/test-strerror_r.c (main): Enhance test.
51065         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51066         * tests/test-perror2.c (main): Free memory before exit.
51068 2011-05-21  Bruno Haible  <bruno@clisp.org>
51070         mkdtemp: Use gnulib naming conventions.
51071         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51072         * modules/mkdtemp (configure.ac): Update.
51074 2011-05-20  Eric Blake  <eblake@redhat.com>
51076         strerror_r: avoid corrupting errno on Solaris
51077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51078         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51080         strerror_r: avoid compiler warning
51081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51083         strerror_r: simplify AIX code
51084         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51086         test-perror: avoid spurious failure on FreeBSD
51087         * modules/perror-tests (Depends-on): Add strerror, now that
51088         strerror_r no longer pulls it in.
51090 2011-05-20  Bruno Haible  <bruno@clisp.org>
51092         strerror_r-posix: Remove unused dependencies.
51093         * modules/strerror_r-posix (Depends-on): Remove strerror.
51094         Reported by Eric Blake.
51096 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51098         intprops: remove assumption about A|B representation
51099         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51100         is a valid integer if both A and B are.  Although this is true for
51101         all known practical hosts, the C standard doesn't guarantee it,
51102         and the code need not assume it.  Also, this change may work around
51103         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51104         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51106 2011-05-20  Eric Blake  <eblake@redhat.com>
51108         perror: work around FreeBSD bug
51109         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51110         is broken.  Move AC_LIBOBJ...
51111         * modules/perror (configure.ac): Here.
51112         * doc/posix-functions/perror.texi (perror): Document this.
51113         * tests/test-perror2.c (main): Enhance test.
51115         test-perror: check for strerror interactions
51116         * tests/macros.h (STREQ): Add macro.
51117         * modules/perror-tests (Files): Add second test.
51118         * tests/test-perror2.c (main): New file.
51119         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51121         test-perror: rewrite to use init script
51122         * modules/perror-tests (Files): Add init.sh.
51123         * tests/test-perror.sh: Use temporary directory.
51125 2011-05-20  Jim Meyering  <meyering@redhat.com>
51127         maint: replace misused "a" with "an"
51128         * doc/intprops.texi: "a integer"
51129         * doc/regex.texi: "a explanation"
51130         * lib/alignof.h: "a object"
51131         * lib/argmatch.h: "a explanation"
51132         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51133         * lib/stdint.in.h: "a integer"
51134         * lib/userspec.c: "a owner"
51135         * doc/gnulib.texi: Fix "a idea", and reword.
51137 2011-05-19  Jim Meyering  <meyering@redhat.com>
51139         maint: correct misuse of "a" and "an"
51140         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51141         * lib/argp-help.c: "an docum...": s/an/a/
51142         * lib/argp-parse.c: "An vector": s/An/A/
51143         * lib/execute.c: "an native": s/an/a/
51144         * lib/spawn-pipe.c: Likewise.
51145         * lib/gc.h: "an Gc_rc": s/an/a/
51146         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51147         * lib/fts.c: "an stat.st_dev": s/an/a/
51149 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51151         intprops-tests: work around HP-UX 11.23 cc bug with constants
51152         * tests/test-intprops.c (VERIFY): New macro.
51153         (main): Use it, instead of verify, to work around the compiler bug; see
51154         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51156         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51157         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51158         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51159         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51160         (_GL_REMAINDER_OVERFLOW): Use it.
51162         intprops-tests: revert unsigned part of previous change
51163         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51164         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51165         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51166         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51168 2011-05-19  Bruno Haible  <bruno@clisp.org>
51170         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51171         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51172         strerror_r() returned without filling the buffer.
51173         Reported by Eric Blake.
51175 2011-05-19  Eric Blake  <eblake@redhat.com>
51177         strerror_r: guarantee unchanged errno
51178         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51179         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51180         failure.
51181         * tests/test-strerror_r.c (main): Enhance test.
51183 2011-05-19  Bruno Haible  <bruno@clisp.org>
51185         strerror_r: Reorder #if blocks.
51186         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51187         for consistency with the previous commit.
51189 2011-05-19  Bruno Haible  <bruno@clisp.org>
51191         perror: Avoid clobbering the strerror buffer when possible.
51192         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51193         * lib/strerror.c: Include it.
51194         * modules/strerror (Files): Add lib/strerror-impl.h.
51195         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51196         (my_strerror): New function, defined through lib/strerror-impl.h.
51197         (perror): Use it instead of strerror.
51198         * modules/perror (Files): Add lib/strerror-impl.h.
51199         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51201 2011-05-19  Eric Blake  <eblake@redhat.com>
51203         strerror_r: fix on newer cygwin
51204         * lib/strerror_r.c (strerror_r): Cygwin now has
51205         __xpg_strerror_r, use it.
51207 2011-05-19  Bruno Haible  <bruno@clisp.org>
51209         strerror_r: Avoid clobbering the strerror buffer when possible.
51210         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51211         (sys_nerr, sys_errlist): New declarations.
51212         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51213         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51214         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51216 2011-05-19  Bruno Haible  <bruno@clisp.org>
51218         strerror_r: Fix test failure on mingw.
51219         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51220         EXTEND_STRERROR_R.
51221         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51222         macros from errno.in.h instead.
51224 2011-05-19  Eric Blake  <eblake@redhat.com>
51226         strerror: relax test for Solaris
51227         * tests/test-strerror.c (main): Permit Solaris behavior.
51228         * tests/test-strerror_r.c (main): Likewise.
51230         strerror: enforce POSIX ruling on strerror(0)
51231         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51232         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51233         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51234         * doc/posix-functions/strerror.texi (strerror): Document it.
51235         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51236         * tests/test-strerror.c (main): Strengthen test.
51237         * tests/test-strerror_r.c (main): Likewise.
51239 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51241         intprop-tests: port to older and more-pedantic compilers
51242         * modules/intprops-tests (Files): Add tests/macros.h.
51243         * tests/test-intprops.c: Include macros.h.
51244         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51245         it's no longer documented to expand to an integer constant expression.
51246         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51247         argument is floating point, as it's no longer documented to expand
51248         to an integer constant expression in that case.
51249         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51250         compiler bugs reported by Bruno Haible.  See
51251         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51252         (U0, U1): New constants, to work around the same bugs.  Also,
51253         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51255         intprops: work around C compiler bugs
51256         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51257         bug in Sun C 5.11 2010/08/13 and other compilers; see
51258         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51260         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51261         * doc/intprops.texi (Integer Type Determination): Fix
51262         documentation for TYPE_IS_INTEGER: it returns an constant
51263         expression, not an integer constant expression.  Fix doc for
51264         TYPE_SIGNED: it returns an integer constant expression only if its
51265         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51266         hardly worth documented that way....)
51268 2011-05-18  Bruno Haible  <bruno@clisp.org>
51270         strerror_r: Avoid clobbering the strerror buffer when possible.
51271         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51272         Handle gnulib defined errno values here. When strerror() returns NULL
51273         or an empty string, return EINVAL.
51274         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51275         gnulib defined errno values here.
51276         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51278 2011-05-18  Eric Blake  <eblake@redhat.com>
51280         fnmatch: avoid compiler warning
51281         * lib/fnmatch_loop.c (FCT): Use correct type.
51282         Reported by Matthias Bolte.
51284 2011-05-13  Jim Meyering  <meyering@redhat.com>
51286         maint.mk: three new prohibit_<HDR>_without_use rules
51287         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51288         (sc_prohibit_stdio-safer_without_use): Likewise.
51289         (sc_prohibit_xfreopen_without_use): Likewise.
51291 2011-05-17  Jim Meyering  <meyering@redhat.com>
51293         announce-gen: fail if the NEWS delta is empty
51294         If there's nothing noteworthy in NEWS, then either you forgot
51295         or you shouldn't be releasing.
51296         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51298 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51300         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51301         reserved symbols starting with double underscore from the check.
51303 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51305         intprops: add doc
51306         * doc/intprops.texi: New file, documenting intprops.
51307         * doc/gnulib.texi (Particular Modules): Include it.
51309         verify: add doc to gnulib manual and fix example
51310         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51311         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51312         (Compile-time Assertions): Fix example so it can't overflow.
51314 2011-05-17  Jim Meyering  <meyering@redhat.com>
51316         warnings.m4: don't usurp save_CPPFLAGS variable name
51317         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51319         doc: fix typo
51320         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51322 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51323             Bruno Haible  <bruno@clisp.org>
51325         doc: Tweak recent change.
51326         * README (Portability guidelines): Tweak new text.
51327         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51328         Interix 6.1.
51330 2011-05-16  Eric Blake  <eblake@redhat.com>
51332         inttypes: avoid autoconf warning
51333         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51334         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51336 2011-05-16  Sam Steingold  <sds@gnu.org>
51337         and Eric Blake  <eblake@redhat.com>
51339         vc-list-files: accept multiple directory operands
51340         * build-aux/vc-list-files: Iterate over all remaining operands.
51342 2011-05-16  Bruno Haible  <bruno@clisp.org>
51344         Fix confusion regarding deprecated modules.
51345         * modules/calloc (Status, Notice): Mark module as deprecated, not
51346         obsolete.
51347         * modules/fnmatch-posix (Status, Notice): Likewise.
51348         * modules/getdate (Status, Notice): Likewise.
51349         * modules/getopt (Status, Notice): Likewise.
51350         * modules/malloc (Status, Notice): Likewise.
51351         * modules/pipe (Status, Notice): Likewise.
51352         * modules/realloc (Status, Notice): Likewise.
51353         * modules/rename-dest-slash (Status, Notice): Likewise.
51354         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51355         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51356         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51357         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51358         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51360 2011-05-16  Bruno Haible  <bruno@clisp.org>
51362         doc: List the target platforms.
51363         * doc/gnulib-intro.texi (Target Platforms): New section.
51364         * doc/gnulib.texi (Introduction): Update menu.
51365         * README (Portability guidelines): Refer to the new section. Update
51366         statement about oldest supported environment. Remove rationale why
51367         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51368         unportable C89 function.
51369         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51370         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51372 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51374         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51376 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51378         intprops-tests: new module
51379         * modules/intprops-tests, tests/test-intprops.c: New files.
51381         intprops: add safe, portable integer overflow checking
51382         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51383         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51384         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51385         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51386         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51387         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51388         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51389         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51390         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51391         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51392         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51394 2011-05-12  James Youngman  <jay@gnu.org>
51396         Add a test for glibc's Bugzilla bug #12378.
51397         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51398         doesn't allow the literal matching of a lone "[" (which is
51399         required by POSIX).
51400         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51402 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51404         Sync glibc change fixing Bugzilla bug #12378.
51405         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51406         beginning and fall back to matching as normal character if the
51407         string ends before the matching ']' is found.  This is what POSIX
51408         requires.
51410 2011-05-13  Eric Blake  <eblake@redhat.com>
51412         getcwd-lgpl: relax test for FreeBSD
51413         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51414         issue.
51415         * tests/test-getcwd-lgpl.c (main): Relax test.
51416         Reported by Matthias Bolte.
51418 2011-05-11  Eric Blake  <eblake@redhat.com>
51420         test-fflush: silence compiler warning
51421         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51423 2011-05-11  Bruno Haible  <bruno@clisp.org>
51425         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51426         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51427         * modules/canonicalize (Depends-on): Add 'nocrash'.
51428         * modules/canonicalize-lgpl (Depends-on): Likewise.
51429         * doc/posix-functions/realpath.texi: Update platforms list.
51430         Reported by Ryan Schmidt <ryandesign@macports.org>.
51432 2011-05-11  Bruno Haible  <bruno@clisp.org>
51434         group-member: Declare function in <unistd.h>.
51435         * lib/unistd.in.h (group_member): New declaration.
51436         * lib/group-member.h: Remove file.
51437         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51438         * tests/test-unistd-c++.cc: Check signature of group_member.
51439         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51440         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51441         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51442         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51443         HAVE_GROUP_MEMBER.
51444         * modules/group-member (Files): Remove lib/group-member.h.
51445         (Depends-on): Add unistd. Specify conditions.
51446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51447         (Include): Change to <unistd.h>.
51448         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51449         HAVE_GROUP_MEMBER.
51450         * NEWS: Mention the change.
51451         * lib/euidaccess.c: Don't include group-member.h.
51453 2011-05-11  Bruno Haible  <bruno@clisp.org>
51455         group-member: Document module.
51456         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51457         module.
51459 2011-05-11  Bruno Haible  <bruno@clisp.org>
51461         fclose: Fix mistake earlier today.
51462         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51464 2011-05-11  Eric Blake  <eblake@redhat.com>
51466         fclose: preserve fflush errors
51467         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51468         Reported by Jim Meyering.
51470         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51471         * build-aux/bootstrap (check_versions): When no specific version
51472         is required, merely check that the app produces an exit status
51473         that indicates its existence.
51475         maint.mk: drop redundant check
51476         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51477         the same but better.
51479 2011-05-11  Bruno Haible  <bruno@clisp.org>
51481         fclose: Fix possible link error.
51482         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51483         unregister_shadow_fd. Improve comments.
51484         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51485         Eric Blake.
51487 2011-05-11  Jim Meyering  <meyering@redhat.com>
51489         maint.mk: improve "can not" detection and generalize rule name
51490         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51491         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51492         Use the same technique as in sc_prohibit_doubled_word, so that
51493         we recognize "can not" also when the words are separated by a newline.
51494         Suggested by Eric Blake.
51495         (perl_filename_lineno_text_): Define.  Factored out of...
51496         (prohibit_doubled_word_): ...here.  Use the new definition.
51497         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51498         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51499         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51501 2011-05-10  Eric Blake  <eblake@redhat.com>
51503         fclose: avoid double close race when possible
51504         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51505         all but WINDOWS_SOCKETS.
51507 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51509         openat: correct new comment
51510         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51512 2011-05-10  Jim Meyering  <meyering@redhat.com>
51514         openat: add comments
51515         * lib/openat-proc.c (openat_proc_name): Add comments,
51516         mostly from Eric Blake.
51518 2011-05-09  Eric Blake  <eblake@redhat.com>
51520         openat: reduce syscalls in first probe of /proc
51521         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51522         be a directory.  Simplify the probe for .. bugs.
51523         * modules/openat (Depends-on): Drop same-inode.
51524         Reported by Bastien ROUCARIES.
51526 2011-05-09  Jim Meyering  <meyering@redhat.com>
51528         maint.mk: change semantics/name of tight_scope variables
51529         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51530         Rename variables to align with semantics that make them more useful.
51532         maint.mk: tweak new rule's name not to impinge
51533         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51534         (sc_tight_scope): Use new rule name rather than $@-0.
51536         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51537         * top/maint.mk (sc_tight_scope): New rule.
51538         (sc_tight_scope-0): New rule, ifdef'd out.
51539         (_gl_TS_dir): Default.
51540         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51541         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51543 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51545         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51546         Haible <bruno@clisp.org>.
51548 2011-05-08  Bruno Haible  <bruno@clisp.org>
51550         Comments.
51551         * m4/isnanf.m4: Add comment.
51552         * m4/isnanl.m4: Likewise.
51554 2011-05-08  Bruno Haible  <bruno@clisp.org>
51556         glob: Remove obsolete macro.
51557         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51559 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51561         intprops: Sun C 5.11 supports __typeof__
51562         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51563         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51564         which is new.
51565         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51567         intprops: switch to usual gnulib indenting and naming
51568         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51569         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51571         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51573 2011-05-08  Jim Meyering  <meyering@redhat.com>
51575         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51576         * top/maint.mk (release-prep): Use make's --no-print-directory
51577         option when generating the announcement.  This eliminates the
51578         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51579         generated announcement template.
51581 2011-05-08  Bruno Haible  <bruno@clisp.org>
51583         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51584         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51585         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51587 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51589         ignore-value, verify: Omit include files from lib_SOURCES.
51590         * modules/ignore-value, modules/verify (Makefile.am):
51591         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51592         that leads Automake to duplicate use of am__objects_... variables
51593         in Makefile.in.  See
51594         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51596 2011-05-07  Bruno Haible  <bruno@clisp.org>
51598         fclose: Simplify autoconf macro.
51599         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51600         defined.
51602 2011-05-07  Bruno Haible  <bruno@clisp.org>
51604         canonicalize-lgpl: Fix autoconf macro ordering bug.
51605         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51606         gl_STDLIB_H_DEFAULTS.
51608 2011-05-06  Eric Blake  <eblake@redhat.com>
51610         maintainer-makefile: make sc_po_check easier to tune
51611         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51612         to probe for strings, such as an alternate location for gnulib.
51614         fclose: guarantee behavior on seekable stdin
51615         * modules/fclose (Depends-on): Add fflush.
51616         * doc/posix-functions/fclose.texi (fclose): Document this.
51617         * tests/test-fclose.c (main): Make test for this unconditional.
51619 2011-05-06  Bruno Haible  <bruno@clisp.org>
51621         fflush, fpurge: Relicense under LGPLv2+.
51622         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51623         * modules/fpurge (License): Likewise.
51624         With permission from Eric Blake and Jim Meyering.
51625         Suggested by Eric Blake.
51627 2011-05-06  Karl Berry  <karl@gnu.org>
51629         * MODULES.html.sh (func_all_modules): remove exit.
51631 2011-05-06  Jim Meyering  <meyering@redhat.com>
51633         maint.mk: use info-gnu@ as the default only for a stable release
51634         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51635         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51636         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51637         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51639 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51641         assert-h: new module, which supports C1X-style static_assert
51642         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51643         * lib/verify.h: Revamp so that this can be copied into assert.h,
51644         while retaining the ability to use it standalone as before.
51645         Rename private identifiers so as not to encroach on the
51646         standard C namespace, since this is now used by assert.h.
51647         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51648         the old verify_true.
51649         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51650         the old verify_true.  Use _GL_VERIFY_TYPE.
51651         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51652         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51653         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51654         defined when this file is copied into the replacement assert.h.
51655         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51656         and _Static_assert is not built in.
51657         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51658         defined, and use the new macros mentioned above.
51659         * doc/posix-headers/assert.texi: Document this.
51661 2011-05-05  Bruno Haible  <bruno@clisp.org>
51663         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51664         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51665         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51666         gl_REPLACE_FCLOSE here.
51667         * modules/fflush (Depends-on): Remove fclose.
51668         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51669         combination with module 'fclose'.
51671 2011-05-05  Bruno Haible  <bruno@clisp.org>
51673         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51674         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51675         gl_FUNC_FFLUSH.
51676         (gl_FUNC_FFLUSH): Use it.
51677         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51678         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51679         gl_REPLACE_FSEEKO here.
51681 2011-05-05  Bruno Haible  <bruno@clisp.org>
51683         tzset: Relicense under LGPL.
51684         * modules/tzset (License): Change to LGPL.
51685         No agreement needed; it's a no-op.
51687         strtoimax, strtoumax: Relicense under LGPL.
51688         * modules/strtoimax (License): Change to LGPL.
51689         * modules/strtoumax (License): Likewise.
51690         With permission from Jim Meyering, Paul Eggert:
51691         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51692         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51694         getgroups: Relicense under LGPL.
51695         * modules/getgroups (License): Change to LGPL.
51696         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51697         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51698         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51699         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51701         nanosleep: Relicense under LGPL.
51702         * modules/nanosleep (License): Change to LGPL.
51703         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51704         Haible:
51705         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51706         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51707         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51708         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51710         futimens: Relicense under LGPL.
51711         * modules/futimens (License): Change to LGPL.
51712         With permission from Eric Blake:
51713         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51715         fflush: Relicense under LGPL.
51716         * modules/fflush (License): Change to LGPL.
51717         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51718         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51719         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51720         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
51722         tmpfile: Relicense under LGPL.
51723         * modules/tmpfile (License): Change to LGPL.
51724         With permission from Ben Pfaff:
51725         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51727         isfinite: Relicense under LGPL.
51728         * modules/isfinite (License): Change to LGPL.
51729         With permission from Ben Pfaff, Bruno Haible:
51730         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51731         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
51733         acosl..tanl: Relicense under LGPL.
51734         * modules/acosl (License): Change to LGPL.
51735         * modules/asinl (License): Likewise.
51736         * modules/atanl (License): Likewise.
51737         * modules/cosl (License): Likewise.
51738         * modules/expl (License): Likewise.
51739         * modules/logl (License): Likewise.
51740         * modules/sinl (License): Likewise.
51741         * modules/sqrtl (License): Likewise.
51742         * modules/tanl (License): Likewise.
51743         Source code originally from glibc and Paolo Bonzini. Agreements:
51744         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
51745         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
51747 2011-05-05  Bruno Haible  <bruno@clisp.org>
51749         signal: Define sighandler_t.
51750         * lib/signal.in.h (sighandler_t): New type.
51751         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
51752         whether sighandler_t is defined.
51753         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
51754         * modules/signal (Depends-on): Add extensions.
51755         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
51756         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
51757         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
51759 2011-05-05  Eric Blake  <eblake@redhat.com>
51761         maint: remove useless REPLACE_*_H macros
51762         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
51763         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51764         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51765         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
51766         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51767         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51768         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
51769         * m4/btowc.m4: Update callers.
51770         * m4/dirfd.m4: Likewise.
51771         * m4/duplocale.m4: Likewise.
51772         * m4/fchdir.m4: Likewise.
51773         * m4/fdopendir.m4: Likewise.
51774         * m4/inet_ntop.m4: Likewise.
51775         * m4/inet_pton.m4: Likewise.
51776         * m4/ioctl.m4: Likewise.
51777         * m4/mbrlen.m4: Likewise.
51778         * m4/mbrtowc.m4: Likewise.
51779         * m4/mbsinit.m4: Likewise.
51780         * m4/mbsnrtowcs.m4: Likewise.
51781         * m4/mbsrtowcs.m4: Likewise.
51782         * m4/poll.m4: Likewise.
51783         * m4/setlocale.m4: Likewise.
51784         * m4/wcrtomb.m4: Likewise.
51785         * m4/wcsnrtombs.m4: Likewise.
51786         * m4/wcsrtombs.m4: Likewise.
51787         * m4/wctob.m4: Likewise.
51788         * m4/wcwidth.m4: Likewise.
51789         * modules/posix_spawn: Likewise.
51790         * modules/posix_spawn_file_actions_addclose: Likewise.
51791         * modules/posix_spawn_file_actions_adddup2: Likewise.
51792         * modules/posix_spawn_file_actions_addopen: Likewise.
51793         * modules/posix_spawn_file_actions_destroy: Likewise.
51794         * modules/posix_spawn_file_actions_init: Likewise.
51795         * modules/posix_spawnattr_destroy: Likewise.
51796         * modules/posix_spawnattr_getflags: Likewise.
51797         * modules/posix_spawnattr_getpgroup: Likewise.
51798         * modules/posix_spawnattr_getschedparam: Likewise.
51799         * modules/posix_spawnattr_getschedpolicy: Likewise.
51800         * modules/posix_spawnattr_getsigdefault: Likewise.
51801         * modules/posix_spawnattr_getsigmask: Likewise.
51802         * modules/posix_spawnattr_init: Likewise.
51803         * modules/posix_spawnattr_setflags: Likewise.
51804         * modules/posix_spawnattr_setpgroup: Likewise.
51805         * modules/posix_spawnattr_setschedparam: Likewise.
51806         * modules/posix_spawnattr_setschedpolicy: Likewise.
51807         * modules/posix_spawnattr_setsigdefault: Likewise.
51808         * modules/posix_spawnattr_setsigmask: Likewise.
51809         * modules/posix_spawnp: Likewise.
51811 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
51813         Add option to do-release-commit-and-tag to specify branch.
51814         * build-aux/do-release-commit-and-tag: Add --branch.
51816 2011-05-03  Bruno Haible  <bruno@clisp.org>
51818         Avoid unnecessary compilation units, through conditional dependencies.
51819         * modules/accept (Depends-on): Add conditions to the dependencies.
51820         * modules/acosl (Depends-on): Likewise.
51821         * modules/argz (Depends-on): Likewise.
51822         * modules/asinl (Depends-on): Likewise.
51823         * modules/atanl (Depends-on): Likewise.
51824         * modules/atoll (Depends-on): Likewise.
51825         * modules/bind (Depends-on): Likewise.
51826         * modules/btowc (Depends-on): Likewise.
51827         * modules/canonicalize-lgpl (Depends-on): Likewise.
51828         * modules/ceil (Depends-on): Likewise.
51829         * modules/ceilf (Depends-on): Likewise.
51830         * modules/ceill (Depends-on): Likewise.
51831         * modules/chdir-long (Depends-on): Likewise.
51832         * modules/chown (Depends-on): Likewise.
51833         * modules/close (Depends-on): Likewise.
51834         * modules/connect (Depends-on): Likewise.
51835         * modules/cosl (Depends-on): Likewise.
51836         * modules/dirfd (Depends-on): Likewise.
51837         * modules/dprintf (Depends-on): Likewise.
51838         * modules/dprintf-posix (Depends-on): Likewise.
51839         * modules/error (Depends-on): Likewise.
51840         * modules/euidaccess (Depends-on): Likewise.
51841         * modules/expl (Depends-on): Likewise.
51842         * modules/faccessat (Depends-on): Likewise.
51843         * modules/fchdir (Depends-on): Likewise.
51844         * modules/fclose (Depends-on): Likewise.
51845         * modules/fcntl (Depends-on): Likewise.
51846         * modules/fdopendir (Depends-on): Likewise.
51847         * modules/fflush (Depends-on): Likewise.
51848         * modules/floor (Depends-on): Likewise.
51849         * modules/floorf (Depends-on): Likewise.
51850         * modules/floorl (Depends-on): Likewise.
51851         * modules/fnmatch (Depends-on): Likewise.
51852         * modules/fopen (Depends-on): Likewise.
51853         * modules/fprintf-posix (Depends-on): Likewise.
51854         * modules/frexp (Depends-on): Likewise.
51855         * modules/frexp-nolibm (Depends-on): Likewise.
51856         * modules/frexpl (Depends-on): Likewise.
51857         * modules/frexpl-nolibm (Depends-on): Likewise.
51858         * modules/fseek (Depends-on): Likewise.
51859         * modules/fsusage (Depends-on): Likewise.
51860         * modules/ftell (Depends-on): Likewise.
51861         * modules/ftello (Depends-on): Likewise.
51862         * modules/futimens (Depends-on): Likewise.
51863         * modules/getcwd (Depends-on): Likewise.
51864         * modules/getcwd-lgpl (Depends-on): Likewise.
51865         * modules/getdelim (Depends-on): Likewise.
51866         * modules/getdomainname (Depends-on): Likewise.
51867         * modules/getgroups (Depends-on): Likewise.
51868         * modules/gethostname (Depends-on): Likewise.
51869         * modules/getline (Depends-on): Likewise.
51870         * modules/getlogin_r (Depends-on): Likewise.
51871         * modules/getopt-posix (Depends-on): Likewise.
51872         * modules/getpeername (Depends-on): Likewise.
51873         * modules/getsockname (Depends-on): Likewise.
51874         * modules/getsockopt (Depends-on): Likewise.
51875         * modules/getsubopt (Depends-on): Likewise.
51876         * modules/getusershell (Depends-on): Likewise.
51877         * modules/glob (Depends-on): Likewise.
51878         * modules/grantpt (Depends-on): Likewise.
51879         * modules/iconv_open (Depends-on): Likewise.
51880         * modules/iconv_open-utf (Depends-on): Likewise.
51881         * modules/inet_ntop (Depends-on): Likewise.
51882         * modules/inet_pton (Depends-on): Likewise.
51883         * modules/ioctl (Depends-on): Likewise.
51884         * modules/isapipe (Depends-on): Likewise.
51885         * modules/isfinite (Depends-on): Likewise.
51886         * modules/isinf (Depends-on): Likewise.
51887         * modules/lchown (Depends-on): Likewise.
51888         * modules/ldexpl (Depends-on): Likewise.
51889         * modules/link (Depends-on): Likewise.
51890         * modules/linkat (Depends-on): Likewise.
51891         * modules/listen (Depends-on): Likewise.
51892         * modules/logl (Depends-on): Likewise.
51893         * modules/lstat (Depends-on): Likewise.
51894         * modules/mbrlen (Depends-on): Likewise.
51895         * modules/mbrtowc (Depends-on): Likewise.
51896         * modules/mbsinit (Depends-on): Likewise.
51897         * modules/mbsnrtowcs (Depends-on): Likewise.
51898         * modules/mbsrtowcs (Depends-on): Likewise.
51899         * modules/mbtowc (Depends-on): Likewise.
51900         * modules/memcmp (Depends-on): Likewise.
51901         * modules/mkdir (Depends-on): Likewise.
51902         * modules/mkdtemp (Depends-on): Likewise.
51903         * modules/mkfifo (Depends-on): Likewise.
51904         * modules/mkfifoat (Depends-on): Likewise.
51905         * modules/mknod (Depends-on): Likewise.
51906         * modules/mkostemp (Depends-on): Likewise.
51907         * modules/mkostemps (Depends-on): Likewise.
51908         * modules/mkstemp (Depends-on): Likewise.
51909         * modules/mkstemps (Depends-on): Likewise.
51910         * modules/mktime (Depends-on): Likewise.
51911         * modules/nanosleep (Depends-on): Likewise.
51912         * modules/open (Depends-on): Likewise.
51913         * modules/openat (Depends-on): Likewise.
51914         * modules/perror (Depends-on): Likewise.
51915         * modules/poll (Depends-on): Likewise.
51916         * modules/popen (Depends-on): Likewise.
51917         * modules/posix_spawn (Depends-on): Likewise.
51918         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
51919         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51920         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51921         * modules/posix_spawnp (Depends-on): Likewise.
51922         * modules/pread (Depends-on): Likewise.
51923         * modules/printf-posix (Depends-on): Likewise.
51924         * modules/ptsname (Depends-on): Likewise.
51925         * modules/putenv (Depends-on): Likewise.
51926         * modules/pwrite (Depends-on): Likewise.
51927         * modules/readline (Depends-on): Likewise.
51928         * modules/readlink (Depends-on): Likewise.
51929         * modules/readlinkat (Depends-on): Likewise.
51930         * modules/recv (Depends-on): Likewise.
51931         * modules/recvfrom (Depends-on): Likewise.
51932         * modules/regex (Depends-on): Likewise.
51933         * modules/remove (Depends-on): Likewise.
51934         * modules/rename (Depends-on): Likewise.
51935         * modules/renameat (Depends-on): Likewise.
51936         * modules/rmdir (Depends-on): Likewise.
51937         * modules/round (Depends-on): Likewise.
51938         * modules/roundf (Depends-on): Likewise.
51939         * modules/roundl (Depends-on): Likewise.
51940         * modules/rpmatch (Depends-on): Likewise.
51941         * modules/select (Depends-on): Likewise.
51942         * modules/send (Depends-on): Likewise.
51943         * modules/sendto (Depends-on): Likewise.
51944         * modules/setenv (Depends-on): Likewise.
51945         * modules/setlocale (Depends-on): Likewise.
51946         * modules/setsockopt (Depends-on): Likewise.
51947         * modules/shutdown (Depends-on): Likewise.
51948         * modules/sigaction (Depends-on): Likewise.
51949         * modules/signbit (Depends-on): Likewise.
51950         * modules/sigprocmask (Depends-on): Likewise.
51951         * modules/sinl (Depends-on): Likewise.
51952         * modules/sleep (Depends-on): Likewise.
51953         * modules/snprintf (Depends-on): Likewise.
51954         * modules/snprintf-posix (Depends-on): Likewise.
51955         * modules/socket (Depends-on): Likewise.
51956         * modules/sprintf-posix (Depends-on): Likewise.
51957         * modules/sqrtl (Depends-on): Likewise.
51958         * modules/stat (Depends-on): Likewise.
51959         * modules/strchrnul (Depends-on): Likewise.
51960         * modules/strdup-posix (Depends-on): Likewise.
51961         * modules/strerror (Depends-on): Likewise.
51962         * modules/strerror_r-posix (Depends-on): Likewise.
51963         * modules/strndup (Depends-on): Likewise.
51964         * modules/strnlen (Depends-on): Likewise.
51965         * modules/strptime (Depends-on): Likewise.
51966         * modules/strsep (Depends-on): Likewise.
51967         * modules/strsignal (Depends-on): Likewise.
51968         * modules/strstr-simple (Depends-on): Likewise.
51969         * modules/strtod (Depends-on): Likewise.
51970         * modules/strtoimax (Depends-on): Likewise.
51971         * modules/strtok_r (Depends-on): Likewise.
51972         * modules/strtoumax (Depends-on): Likewise.
51973         * modules/symlink (Depends-on): Likewise.
51974         * modules/symlinkat (Depends-on): Likewise.
51975         * modules/tanl (Depends-on): Likewise.
51976         * modules/tcgetsid (Depends-on): Likewise.
51977         * modules/tmpfile (Depends-on): Likewise.
51978         * modules/trunc (Depends-on): Likewise.
51979         * modules/truncf (Depends-on): Likewise.
51980         * modules/truncl (Depends-on): Likewise.
51981         * modules/uname (Depends-on): Likewise.
51982         * modules/unlink (Depends-on): Likewise.
51983         * modules/unlockpt (Depends-on): Likewise.
51984         * modules/unsetenv (Depends-on): Likewise.
51985         * modules/usleep (Depends-on): Likewise.
51986         * modules/utimensat (Depends-on): Likewise.
51987         * modules/vasprintf (Depends-on): Likewise.
51988         * modules/vdprintf (Depends-on): Likewise.
51989         * modules/vdprintf-posix (Depends-on): Likewise.
51990         * modules/vfprintf-posix (Depends-on): Likewise.
51991         * modules/vprintf-posix (Depends-on): Likewise.
51992         * modules/vsnprintf (Depends-on): Likewise.
51993         * modules/vsnprintf-posix (Depends-on): Likewise.
51994         * modules/vsprintf-posix (Depends-on): Likewise.
51995         * modules/wcrtomb (Depends-on): Likewise.
51996         * modules/wcscasecmp (Depends-on): Likewise.
51997         * modules/wcscspn (Depends-on): Likewise.
51998         * modules/wcsdup (Depends-on): Likewise.
51999         * modules/wcsncasecmp (Depends-on): Likewise.
52000         * modules/wcsnrtombs (Depends-on): Likewise.
52001         * modules/wcspbrk (Depends-on): Likewise.
52002         * modules/wcsrtombs (Depends-on): Likewise.
52003         * modules/wcsspn (Depends-on): Likewise.
52004         * modules/wcsstr (Depends-on): Likewise.
52005         * modules/wcstok (Depends-on): Likewise.
52006         * modules/wcswidth (Depends-on): Likewise.
52007         * modules/wctob (Depends-on): Likewise.
52008         * modules/wctomb (Depends-on): Likewise.
52009         * modules/wctype (Depends-on): Likewise.
52010         * modules/wcwidth (Depends-on): Likewise.
52011         * modules/write (Depends-on): Likewise.
52013 2011-05-03  Bruno Haible  <bruno@clisp.org>
52015         Support for conditional dependencies.
52016         * doc/gnulib.texi (Module description): Document the syntax of
52017         conditional dependencies.
52018         * gnulib-tool: New option --conditional-dependencies.
52019         (func_usage): Document it.
52020         (cond_dependencies): New variable.
52021         (func_get_automake_snippet_conditional,
52022         func_get_automake_snippet_unconditional): New functions, extracted from
52023         func_get_automake_snippet.
52024         (func_get_automake_snippet): Use them.
52025         (sed_first_32_chars): New variable.
52026         (func_module_shellfunc_name): New function.
52027         (func_module_shellvar_name): New function.
52028         (func_module_conditional_name): New function.
52029         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52030         func_cond_module_condition): New functions.
52031         (func_modules_transitive_closure): Add support for conditional
52032         dependencies.
52033         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52034         conditional automake snippet in an automake conditional.
52035         (func_emit_autoconf_snippets): Emit shell functions that contain the
52036         code for conditional modules.
52037         (func_import, func_create_testdir): Update specification.
52039 2011-05-03  Eric Blake  <eblake@redhat.com>
52041         test-getaddrinfo: report error information
52042         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52044 2011-05-03  Jim Meyering  <meyering@redhat.com>
52046         bootstrap: avoid build failure when $GZIP is set
52047         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52048         program name.  If defined at all, it is supposed to list gzip options.
52049         Reported by Alan Curry in http://debbugs.gnu.org/8609
52051 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52053         readme-release: new module with release instructions
52054         * modules/readme-release: New module.
52055         * top/README-release: New file, from coreutils, grep, diffutils.
52056         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52058 2011-05-02  Eric Blake  <eblake@redhat.com>
52060         fflush: also replace fclose when fixing fflush
52061         * modules/fflush (Depends-on): Add fclose.
52062         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52063         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52064         memstreams with no backing fd.
52065         * doc/posix-functions/fclose.texi (fclose): Document the use of
52066         fflush module to fix the bug.
52067         * tests/test-fclose.c (main): Relax test when fclose is used in
52068         isolation.
52070         fclose: add some tests
52071         * modules/fclose-tests: New test module.
52072         * tests/test-fclose.c: New file.
52073         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52075         fclose: reduced dependencies
52076         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52077         simpler lseek.
52078         * lib/fclose.c (rpl_fclose): Likewise.
52079         Reported by Simon Josefsson.
52081         exit: drop remaining clients
52082         * modules/argmatch (Depends-on): Replace exit with stdlib.
52083         * modules/copy-file (Depends-on): Likewise.
52084         * modules/execute (Depends-on): Likewise.
52085         * modules/exitfail (Depends-on): Likewise.
52086         * modules/obstack (Depends-on): Likewise.
52087         * modules/pagealign_alloc (Depends-on): Likewise.
52088         * modules/pipe-filter-gi (Depends-on): Likewise.
52089         * modules/pipe-filter-ii (Depends-on): Likewise.
52090         * modules/savewd (Depends-on): Likewise.
52091         * modules/spawn-pipe (Depends-on): Likewise.
52092         * modules/wait-process (Depends-on): Likewise.
52093         * modules/xsetenv (Depends-on): Likewise.
52094         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52095         * modules/git-merge-changelog (Depends-on): Likewise.
52096         * modules/long-options (Depends-on): Likewise.
52097         * modules/pt_chown (Depends-on): Likewise.
52098         * modules/sysexits (Depends-on): Likewise.
52100         freading: relax license from LGPLv3+ to LGPLv2+
52101         * modules/freading (License): Relax LGPL version.
52103 2011-05-02  Bruno Haible  <bruno@clisp.org>
52105         fchdir: Remove unused dependencies.
52106         * modules/fchdir (Depends-on): Remove include_next.
52108 2011-05-02  Bruno Haible  <bruno@clisp.org>
52110         gnulib-tool: Refactor.
52111         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52112         from func_emit_autoconf_snippets.
52113         (func_emit_autoconf_snippets): Use it.
52115 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52117         * NEWS: Document removal of 'exit'.
52118         * modules/exit: Remove file.
52120 2011-05-01  Bruno Haible  <bruno@clisp.org>
52122         Update DEPENDENCIES.
52123         * DEPENDENCIES (gettext): Recommend the newest release.
52124         Reported by Simon Josefsson.
52126 2011-05-01  Bruno Haible  <bruno@clisp.org>
52128         gnulib-tool: Reduce code duplication.
52129         * gnulib-tool (func_emit_autoconf_snippets): New function.
52130         (func_import, func_create_testdir): Use it.
52132 2011-04-30  Eric Blake  <eblake@redhat.com>
52134         fclose: don't fail on non-seekable input stream
52135         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52136         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52137         since fflush is allowed to fail in that case.
52139 2011-04-30  Bruno Haible  <bruno@clisp.org>
52141         dup3: cleanup
52142         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52144 2011-04-30  Bruno Haible  <bruno@clisp.org>
52146         netdb: Make it work in C++ mode.
52147         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52148         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52149         module.
52150         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52151         gl_MODULE_INDICATOR_FOR_TESTS.
52152         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52153         * modules/netdb-c++-tests: New file.
52154         * tests/test-netdb-c++.cc: New file.
52156 2011-04-30  Bruno Haible  <bruno@clisp.org>
52158         New modules 'vfscanf', 'vscanf'.
52159         * modules/vfscanf: New file.
52160         * modules/vscanf: New file.
52161         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52162         here.
52163         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52164         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52166 2011-04-30  Bruno Haible  <bruno@clisp.org>
52168         passfd: Add comments.
52169         * lib/passfd.c: Add comments about platforms.
52171 2011-04-30  Bruno Haible  <bruno@clisp.org>
52173         sys_uio: Make <sys/uio.h> self-contained.
52174         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52175         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52177 2011-04-30  Bruno Haible  <bruno@clisp.org>
52179         sys_socket: Ensure 'struct iovec' definition.
52180         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52181         <sys/socket.h>.
52182         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52184 2011-04-30  Bruno Haible  <bruno@clisp.org>
52186         sys_uio: Protect definition of 'struct iovec'.
52187         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52188         it as a C struct.
52190 2011-04-30  Bruno Haible  <bruno@clisp.org>
52192         manywarnings: fix indentation
52193         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52195 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52197         manywarnings: add -Wno-missing-field-initializers if needed.
52198         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52199         option if it's needed to allow initialization with { 0, }
52201 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52203         announce-gen: cosmetic improvement
52204         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52206 2011-04-29  Jim Meyering  <meyering@redhat.com>
52208         vc-list-files: indent with spaces, not TABs
52209         * build-aux/vc-list-files: Convert leading TABs to spaces,
52210         to match the style of most other files in gnulib.
52212         announce-gen: indent with spaces, not TABs
52213         * build-aux/announce-gen: Convert all TABs to spaces, to match
52214         the style of most other files in gnulib.
52216 2011-04-29  Eric Blake  <eblake@redhat.com>
52218         quotearg: avoid uninitialized variable use
52219         * lib/quotearg.c (quoting_options_from_style): Initialize
52220         remaining fields, and ensure that custom styles are only used via
52221         quoting_options rather than quoting_style.
52223 2011-04-29  Jim Meyering  <meyering@redhat.com>
52225         maint.mk: remove unused VC-tag variable
52226         * top/maint.mk (VC-tag): Remove unused variable.
52228 2011-04-29  Bruno Haible  <bruno@clisp.org>
52230         netdb: fix gai_strerror replacements
52231         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52232         * modules/netdb: Substitute it.
52234 2011-04-29  Jim Meyering  <meyering@redhat.com>
52236         test-getcwd.c: avoid new set-but-not-used warning
52237         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52238         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52239         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52240         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52242         test-hash.c: avoid a new shadowing warning
52243         * tests/test-hash.c (main): Don't shadow "dup".
52245 2011-04-28  Eric Blake  <eblake@redhat.com>
52247         getaddrinfo: fix gai_strerror signature
52248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52249         and work around mingw with UNICODE defined.
52250         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52251         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52252         * modules/netdb (Makefile.am): Substitute it.
52253         * lib/netdb.in.h (gai_strerror): Declare replacement.
52254         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52255         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52256         the fix.
52258         getsockopt: avoid compiler warning
52259         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52260         Reported by Matthias Bolte.
52262         tests: drop unused link dependency
52263         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52264         * modules/dirent-safer-tests (Makefile.am): Likewise.
52265         * modules/fdopendir-tests (Makefile.am): Likewise.
52266         * modules/mkfifoat-tests (Makefile.am): Likewise.
52267         * modules/openat-safer-tests (Makefile.am): Likewise.
52268         * modules/openat-tests (Makefile.am): Likewise.
52269         * modules/readlinkat-tests (Makefile.am): Likewise.
52270         * modules/symlinkat-tests (Makefile.am): Likewise.
52271         * modules/linkat-tests (Makefile.am): Likewise.
52272         (Depends-on): Switch to filenamecat-lgpl.
52273         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52274         LIBINTL.
52275         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52276         * tests/test-linkat.c (main): Don't require xalloc.
52278         hash, mgetgroups: drop xalloc dependency
52279         * lib/hash.c (includes): Adjust includes.
52280         * lib/mgetgroups.c (includes): Likewise.
52281         (xgetgroups): Move...
52282         * lib/xgetgroups.c: ...to new file.
52283         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52284         * modules/xgetgroups: New file, split from...
52285         * modules/mgetgroups: ...here.
52286         (Depends-on): Add xalloc-oversized.
52287         * modules/hash (Depends-on): Likewise.
52288         * modules/hash-tests (Depends-on): Drop xalloc.
52289         (test_hash_LDADD): Drop unused library.
52290         * tests/test-hash.c (main): Break xalloc dependency.
52291         (includes): Drop unused include.
52293         xalloc-oversized: new module
52294         * modules/xalloc-oversized: New module.
52295         * modules/xalloc (Depends-on): Add it.
52296         * lib/xalloc.h (xalloc_oversized): Move...
52297         * lib/xalloc-oversized.h: ...into new file.
52299         utimecmp: drop dependency on xmalloc
52300         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52301         due to memory pressure.
52302         * modules/utimecmp (Depends-on): Drop xalloc.
52304 2011-04-27  Eric Blake  <eblake@redhat.com>
52306         getcwd: fix mingw bugs
52307         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52308         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52309         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52311 2011-04-27  Bruno Haible  <bruno@clisp.org>
52313         mkstemps: Ensure declaration on MacOS X 10.5.
52314         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52315         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52316         MacOS X.
52318 2011-04-27  Bruno Haible  <bruno@clisp.org>
52320         mkstemp: More documentation.
52321         * doc/posix-functions/mkstemp.texi: Document header file problem on
52322         MacOS X.
52324 2011-04-27  Bruno Haible  <bruno@clisp.org>
52326         mkstemp: Tweak configure message when cross-compiling.
52327         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52328         result as a guess.
52330 2011-04-27  Bruno Haible  <bruno@clisp.org>
52332         clean-temp: Clarify what it does.
52333         * lib/clean-temp.h: Add more comments.
52334         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52335         module.
52336         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52337         * doc/glibc-functions/mkstemps.texi: Likewise.
52338         * doc/glibc-functions/mkostemps.texi: Likewise.
52340 2011-04-27  Eric Blake  <eblake@redhat.com>
52342         fchdir: avoid extra chdir and fix test
52343         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52344         getcwd-lgpl.
52345         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52346         have to be canonical.
52347         (canonicalize_file_name): Drop unused macro.
52348         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52350         filenamecat-lgpl: fix licence
52351         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52352         when it was first created.
52354         linkat, renameat: add missing dependency
52355         * modules/linkat (Depends-on): Require getcwd-lgpl.
52356         * modules/renameat (Depends-on): Likewise.
52358         tests: reduce dependencies
52359         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52360         * tests/test-renameat.c (main): Likewise.
52361         * modules/linkat-tests (Depends-on): Relax dependency.
52362         * modules/renameat-tests (Depends-on): Likewise.
52363         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52364         dependency explicit.
52366         save-cwd: reduce default dependency
52367         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52368         * lib/save-cwd.c: Update comments.
52369         * NEWS: Document the semantic change.
52371         getcwd: enhance tests
52372         * tests/test-getcwd-lgpl.c: New file, taken from...
52373         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52374         repeat long path stress tests from m4 probe.
52375         * modules/getcwd-lgpl-tests: New module.
52376         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52377         * m4/getcwd-abort-bug.m4: Update comment.
52378         * m4/getcwd-path-max.m4: Likewise.
52380         getcwd-lgpl: new module
52381         * modules/getcwd-lgpl: New module.
52382         * lib/getcwd-lgpl.c: New file.
52383         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52384         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52385         * modules/getcwd (configure.ac): Set C witness.
52386         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52388         getcwd: tweak comments
52389         * m4/getcwd-abort-bug.m4: Fix comments.
52390         * m4/getcwd-path-max.m4: Likewise.
52391         * m4/getcwd.m4: Likewise.
52393 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52394         and Eric Blake  <eblake@redhat.com>
52396         mkstemp: replace if system version uses wrong permissions
52397         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52398         read/write mode bits set in file created by mkstemp.
52399         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52401 2011-04-27  Eric Blake  <eblake@redhat.com>
52403         passfd: avoid compiler warning
52404         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52405         Reported by Laine Stump.
52407 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52409         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52410         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52412 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52413         and Eric Blake  <eblake@redhat.com>
52415         mkstemp: mention clean-temp module
52416         * lib/mkstemp.c: Add comment.
52417         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52419 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52421         inttypes: also provide default values for 32-bit tests
52422         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52423         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52425 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52427         strtoumax: remove dependency on strtoimax
52428         This is like the strtoull change of yesterday.
52429         * modules/strtoumax (Files): Add lib/strtoimax.c.
52430         (Depends-on): Remove strtoimax and add verify.
52432         inttypes-incomplete: new module
52433         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52434         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52435         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52436         of gl_INTTYPES_H.
52437         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52438         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52439         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52440         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52441         * modules/strtoumax, modules/xstrtol (Depends-on):
52442         Depend on inttypes-incomplete, not inttypes.
52443         * modules/inttypes-incomplete: New module, containing the contents
52444         of the old modules/inttypes module, except that the Files: section
52445         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52446         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52447         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52448         (Depends-on): Depend only on inttypes-incomplete.
52449         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52451         inttypes: omit now-redundant strtoimax and strtoumax work
52452         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52453         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52455         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52456         This supports apps that need pointers to strtoimax and strtoumax,
52457         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52458         nonexistent functions.  See
52459         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52460         et seq.
52461         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52462         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52463         a macro.
52464         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52466 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52468         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52470 2011-04-25  Bruno Haible  <bruno@clisp.org>
52472         strtol, strtoul: Mark modules as obsolete.
52473         * modules/strtol (Status, Notice): New sections.
52474         * modules/strtoul (Status, Notice): New sections.
52476 2011-04-25  Bruno Haible  <bruno@clisp.org>
52478         strtod: Remove check for strtod, unless supporting old platforms.
52479         * modules/strtod-obsolete: New file.
52480         * m4/strtod-obsolete.m4: New file.
52481         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52482         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52483         * modules/strtod (Depends-on): Add strtod-obsolete.
52484         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52486 2011-04-25  Bruno Haible  <bruno@clisp.org>
52488         strcase: Make module obsolete.
52489         * modules/strcase (Status, Notice): New sections.
52491 2011-04-25  Bruno Haible  <bruno@clisp.org>
52493         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52494         * modules/dup2-obsolete: New file.
52495         * m4/dup2-obsolete.m4: New file.
52496         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52497         gl_FUNC_DUP2_OBSOLETE is not also defined.
52498         * modules/dup2 (Depends-on): Add dup2-obsolete.
52499         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52501 2011-04-25  Bruno Haible  <bruno@clisp.org>
52503         strnlen: Avoid memchr related link error on old obsolete platforms.
52504         * modules/memchr-obsolete: New file.
52505         * m4/memchr-obsolete.m4: New file.
52506         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52507         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52508         * modules/memchr (Depends-on): Add memchr-obsolete.
52509         * modules/strnlen (Depends-on): Likewise.
52510         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52512 2011-04-25  Jim Meyering  <meyering@redhat.com>
52514         maint.mk: makefile_at_at_check extend and clean up
52515         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52516         in addition to */Makefile.am.
52517         Exempt legitimate uses of @VAR@ notation, e.g.,
52518         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52519         Remove obsolete coreutils-specific comment.
52520         Prompted by discussion here:
52521         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52523 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52525         strtoul: remove dependency on strtol
52526         This is so that 'configure' need not check for strtol merely because
52527         the application needs strtoul.
52528         * modules/strtoul (Files): Add lib/strtol.c.
52529         (Depends-on): Remove strtol.
52531         strtoull: remove dependency on strtoul
52532         This is like the strtoll change.
52533         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52534         (Depends-on): Remove strtoul.
52536         strtoll: remove dependency on strtol
52537         This is so that 'configure' need not check for strtol merely because
52538         the application needs strtoll.
52539         * modules/strtoll (Files): Add lib/strtol.c.
52540         (Depends-on): Remove strtol.
52542 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52544         inttypes: Move some configure check to module 'imaxdiv'.
52545         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52546         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52547         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52549 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52551         inttypes: Move some configure check to module 'imaxabs'.
52552         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52553         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52554         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52556 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52558         inttypes: Remove configure tests that are not needed since 2009-12-31.
52559         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52560         gl_cv_header_working_inttypes_h.
52562 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52564         * modules/strnlen (Depends-on): Remove memchr.
52565         The strnlen implementation doesn't need the memchr module's fixes; see
52566         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52568         strtol: remove dependency on wchar
52569         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52570         * modules/strtol (Depends-on): Remove wchar.
52572 2011-04-21  Eric Blake  <eblake@redhat.com>
52574         passfd: fix test regression on Linux
52575         * modules/passfd-tests (configure.ac): Correct socketpair check.
52577         passfd: speed up configure and drop unused code
52578         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52579         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52580         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52581         Instead of probing at configure for unix_scm_rights_bsd44_way,
52582         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52583         check to a struct member probe.
52584         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52585         (sendfd, recvfd): Update preprocessor checks.
52586         * modules/passfd (Files): Reflect rename, and drop unused file.
52587         (Depends-on): Drop unused dependency.
52589         passfd: allow compilation on mingw
52590         * modules/sys_socket (Depends-on): Add sys_uio.
52591         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52592         iovec and a minimal struct msghdr.
52593         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52594         * tests/test-sys_socket.c (main): Enhance test.
52595         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52596         guaranteed to provide what we need.
52597         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52598         * modules/passfd-tests (Depends-on): Add sys_wait.
52599         * tests/test-passfd.c (main): Skip test on mingw, for now.
52600         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52601         partial 'struct msghdr' implementation.
52603         sys_uio: new module
52604         * modules/sys_uio: New module.
52605         * modules/sys_uio-tests: Likewise.
52606         * lib/sys_uio.in.h: New file.
52607         * m4/sys_uio_h.m4: Likewise.
52608         * tests/test-sys_uio.c: Likewise.
52609         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52610         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52612 2011-04-20  Jim Meyering  <meyering@redhat.com>
52614         useless-if-before-free: avoid false-positive
52615         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52616         disjunct so that it too requires a terminating ";".  Without that,
52617         this script would identify as useless one statement from gcc that
52618         was not:
52619           if (aligned_ptr)
52620             free (((void **) aligned_ptr) [-1]);
52622 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52624         doc: update users.txt.
52625         * users.txt: Add barcode.
52627 2011-04-19  Bruno Haible  <bruno@clisp.org>
52629         ioctl: Remove link dependency on native Windows.
52630         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52631         (gl_close_fn, gl_ioctl_fn): New types.
52632         (struct fd_hook): Renamed from struct close_hook. Change type of
52633         private_close_fn field. Add private_ioctl_fn field.
52634         (close_hook_fn): Add parameter for primary close method.
52635         (execute_close_hooks, execute_all_close_hooks): Likewise.
52636         (ioctl_hook_fn): New type.
52637         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52638         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52639         argument.
52640         (unregister_fd_hook): Renamed from unregister_close_hook.
52641         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52642         Don't include <unistd.h>.
52643         (close): Remove undef.
52644         (anchor): Update.
52645         (execute_close_hooks): Add argument for primary close method.
52646         (execute_all_close_hooks): Likewise.
52647         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52648         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52649         argument. Allow each argument to be NULL.
52650         (unregister_fd_hook): Renamed from unregister_close_hook.
52651         * lib/close.c (rpl_close): Pass 'close' function pointer to
52652         execute_all_close_hooks.
52653         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52654         (primary_ioctl): New function.
52655         (ioctl): Don't call ioctlsocket here. Instead, call
52656         execute_all_ioctl_hooks.
52657         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52658         close method.
52659         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52660         (fd_sockets_hook): Renamed from close_sockets_hook.
52661         (gl_sockets_startup, gl_sockets_cleanup): Update.
52662         * modules/fd-hook: Renamed from modules/close-hook. Update.
52663         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52664         * modules/sockets (Depends-on): Likewise.
52665         * modules/ioctl (Depends-on): Add fd-hook.
52666         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52667         GNULIB_SOCKET.
52669 2011-04-19  Bruno Haible  <bruno@clisp.org>
52671         Move the support of O_NONBLOCK in open() to the 'open' module.
52672         * modules/nonblocking (Depends-on): Remove 'open'.
52673         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52674         gl_cv_have_open_O_NONBLOCK.
52675         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52676         O_NONBLOCK support.
52677         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52679 2011-04-17  Bruno Haible  <bruno@clisp.org>
52681         pipe2: Simplify code.
52682         * lib/pipe2.c (pipe2): Reduce code duplication.
52684 2011-04-17  Bruno Haible  <bruno@clisp.org>
52686         nonblocking: Add comment.
52687         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52689 2011-04-17  Bruno Haible  <bruno@clisp.org>
52691         nonblocking: Add tests for sockets.
52692         * tests/test-nonblocking-socket.sh: New file.
52693         * tests/test-nonblocking-socket-main.c: New file.
52694         * tests/test-nonblocking-socket-child.c: New file.
52695         * tests/test-nonblocking-socket.h: New file.
52696         * tests/socket-server.h: New file.
52697         * tests/socket-client.h: New file.
52698         * modules/nonblocking-socket-tests: New file.
52699         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52701 2011-04-17  Bruno Haible  <bruno@clisp.org>
52703         nonblocking: Add tests for pipes.
52704         * tests/test-nonblocking-pipe.sh: New file.
52705         * tests/test-nonblocking-pipe-main.c: New file.
52706         * tests/test-nonblocking-pipe-child.c: New file.
52707         * tests/test-nonblocking-pipe.h: New file.
52708         * tests/test-nonblocking-writer.h: New file.
52709         * tests/test-nonblocking-reader.h: New file.
52710         * tests/test-nonblocking-misc.h: New file.
52711         * modules/nonblocking-pipe-tests: New file.
52712         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52714 2011-04-16  Bruno Haible  <bruno@clisp.org>
52716         gettext: Clarify the needed programmer actions.
52717         * modules/gettext (Notice): New field.
52718         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52720 2011-04-16  Bruno Haible  <bruno@clisp.org>
52722         strchrnul: Tweak last commit.
52723         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
52724         bug.
52725         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
52726         as in _GL_FUNCDECL_SYS.
52727         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
52728         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
52730 2011-04-15  Eric Blake  <eblake@redhat.com>
52732         strchrnul: work around cygwin bug
52733         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
52734         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
52736         * modules/string (Makefile.am): Substitute it.
52737         * lib/string.in.h (strchrnul): Use it.
52739 2011-04-15  Bruno Haible  <bruno@clisp.org>
52741         Don't require lib/stdio-write.c when only module 'stdio' is used.
52742         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
52743         invocation.
52744         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
52746 2011-04-14  Bruno Haible  <bruno@clisp.org>
52748         Support non-blocking pipe I/O in read() on native Windows.
52749         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
52750         (read): New declaration.
52751         * lib/read.c: New file.
52752         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
52753         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
52754         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
52755         vscanf): New declarations.
52756         * lib/stdio-read.c: New file.
52757         * m4/read.m4: New file.
52758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
52759         REPLACE_READ.
52760         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
52761         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52762         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
52763         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
52764         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
52765         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52766         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52767         * modules/read: New file.
52768         * modules/nonblocking (Files): Add lib/stdio-read.c.
52769         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
52770         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
52771         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52772         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52773         * modules/pread (Depends-on): Add read.
52774         * modules/safe-read (Depends-on): Likewise.
52775         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
52776         gets, scanf, vfscanf, vscanf): Verify signatures.
52777         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
52778         problem with non-blocking pipes.
52779         * doc/posix-functions/fgetc.texi: Likewise.
52780         * doc/posix-functions/fgets.texi: Likewise.
52781         * doc/posix-functions/fread.texi: Likewise.
52782         * doc/posix-functions/fscanf.texi: Likewise.
52783         * doc/posix-functions/getc.texi: Likewise.
52784         * doc/posix-functions/getchar.texi: Likewise.
52785         * doc/posix-functions/gets.texi: Likewise.
52786         * doc/posix-functions/scanf.texi: Likewise.
52787         * doc/posix-functions/vfscanf.texi: Likewise.
52788         * doc/posix-functions/vscanf.texi: Likewise.
52790 2011-04-14  Bruno Haible  <bruno@clisp.org>
52792         Support non-blocking pipe I/O in write() on native Windows.
52793         * lib/write.c (rpl_write): Split a write request that failed merely
52794         because the byte count was larger than the pipe buffer's size.
52795         * doc/posix-functions/write.texi: Mention the problem with large byte
52796         counts.
52798 2011-04-14  Bruno Haible  <bruno@clisp.org>
52800         wchar: Ensure that wchar_t gets defined on uClibc.
52801         * lib/wchar.in.h: On uClibc, include <stddef.h>.
52802         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
52804 2011-04-13  Bruno Haible  <bruno@clisp.org>
52806         safe-write, full-read: Avoid unnecessary compilation units.
52807         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
52808         (Depends-on): Remove safe-read. Add ssize_t.
52809         * modules/full-read (Files): Add lib/full-write.c.
52810         (Depends-on): Add full-write.
52812 2011-04-13  Bruno Haible  <bruno@clisp.org>
52814         Support non-blocking pipe I/O and SIGPIPE in pwrite().
52815         * modules/pwrite (Depends-on): Add 'write'.
52817 2011-04-13  Bruno Haible  <bruno@clisp.org>
52819         Support non-blocking pipe I/O in write() on native Windows.
52820         * lib/unistd.in.h (write): Enable replacement also if
52821         GNULIB_UNISTD_H_NONBLOCKING is 1.
52822         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
52823         (rpl_write): When failing to write on a non-blocking pipe, change
52824         errno from ENOSPC to EAGAIN.
52825         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
52826         putchar, puts, vfprintf, vprintf): Enable replacement also if
52827         GNULIB_STDIO_H_NONBLOCKING is 1.
52828         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
52829         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
52830         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
52831         CALL_WITH_SIGPIPE_EMULATION.
52832         (CALL_WITH_SIGPIPE_EMULATION): Use them.
52833         * m4/nonblocking.m4: New file.
52834         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
52835         for non-blocking I/O support.
52836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52837         GNULIB_UNISTD_H_NONBLOCKING.
52838         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
52839         required for non-blocking I/O support.
52840         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
52841         * modules/nonblocking (Files): Add m4/nonblocking.m4,
52842         lib/stdio-write.c, m4/asm-underscore.m4.
52843         (Depends-on): Add stdio, unistd.
52844         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
52845         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
52846         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
52847         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
52848         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
52849         problem with non-blocking pipes.
52850         * doc/posix-functions/fputc.texi: Likewise.
52851         * doc/posix-functions/fputs.texi: Likewise.
52852         * doc/posix-functions/fwrite.texi: Likewise.
52853         * doc/posix-functions/printf.texi: Likewise.
52854         * doc/posix-functions/putc.texi: Likewise.
52855         * doc/posix-functions/putchar.texi: Likewise.
52856         * doc/posix-functions/puts.texi: Likewise.
52857         * doc/posix-functions/vfprintf.texi: Likewise.
52858         * doc/posix-functions/vprintf.texi: Likewise.
52859         * doc/posix-functions/write.texi: Likewise.
52861 2011-04-10  Jim Meyering  <meyering@redhat.com>
52863         maint.mk: prohibit doubled words
52864         Detect them also when they're separated by a newline.
52865         There are 3 ways to customize it:
52866           - disable the test on a per file basis, as usual with rules using
52867             $(VC_LIST_EXCEPT)
52868           - replace the default doubled-word-selecting regexp (affects all files)
52869           - ignore a particular file-vs-doubled-word match
52870         I nearly used that last one to ignore the "is is" match in
52871         coreutils' NEWS file, since the text was "ls -is is ..."
52872         To do that, I would have added this line to cfg.mk:
52873           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
52874         but it would have ignored any "is is" match in NEWS.
52875         Low probability, but still...
52876         Instead, I changed the text, slightly:
52877           -  ls -is is now consistent with ls -lis in ignoring values returned
52878           +  "ls -is" is now consistent with ls -lis in ignoring values returned
52879         * top/maint.mk (prohibit_double_word_RE_): Provide default.
52880         (prohibit_doubled_word_): Define.
52881         (sc_prohibit_doubled_word): New rule.
52882         (sc_prohibit_the_the): Remove.  Subsumed by the above.
52884 2011-04-10  Jim Meyering  <meyering@redhat.com>
52886         maint: fix doubled-word typo in comment
52887         * m4/gethostname.m4: s/is is/it is/
52888         * m4/getdomainname.m4: Likewise.
52890 2011-04-10  Jim Meyering  <meyering@redhat.com>
52892         maint: remove doubled word: s/it it/it/
52893         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
52895 2011-04-10  Jim Meyering  <meyering@redhat.com>
52897         maint.mk: remove useless semicolon and backslash
52898         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
52899         semicolon and backslash.
52901 2011-04-10  Bruno Haible  <bruno@clisp.org>
52903         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
52904         * modules/stdint-tests (Depends-on): Add wchar.
52906 2011-04-10  Jim Meyering  <meyering@redhat.com>
52908         maint: remove doubled words in comments, e.g., s/a a/a/
52909         * lib/strptime.c (day_of_the_week): s/the the/the/
52910         * tests/test-chown.h (test_chown): s/a a/a/
52912         test-chown.h: correct a cast
52913         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
52914         when the destination is a stat.st_gid.
52916 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
52918         getaddrinfo: Fix test for sa_len member.
52919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
52920         include <sys/types.h> before <sys/socket.h>.
52922 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52924         maint: change "can not" to "cannot"
52925         * doc/posix-functions/iconv.texi (iconv): This one crossed line
52926         boundaries.
52928 2011-04-09  Jim Meyering  <meyering@redhat.com>
52930         maint: change "a a" to "a"
52931         * tests/test-lchown.h (test_lchown): s/a a/a/
52933         maint.mk: prohibit \<the the\>
52934         * top/maint.mk (sc_prohibit_the_the): New rule.
52936         maint: fix "the the" in comment
52937         * lib/count-one-bits.h: s/the the/the/
52939         maint: change "can not" to "cannot"
52940         But do not change the occurrences in maintain.texi or in
52941         build-aux/po/Makefile.in.in, which I presume comes from gettext.
52942         * doc/gnulib-tool.texi: s/can not/cannot/
52943         * doc/posix-functions/accept.texi (accept): Likewise.
52944         * doc/posix-functions/socket.texi (socket): Likewise.
52945         * lib/mbrtowc.c: Likewise.
52947         maint.mk: prohibit use of "can not"
52948         * top/maint.mk (sc_prohibit_can_not): New rule.
52949         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
52951 2011-04-09  Bruno Haible  <bruno@clisp.org>
52953         careadlinkat: Guard against misuse of careadlinkatcwd.
52954         * lib/careadlinkat.c: Include <stdlib.h>.
52955         (careadlinkatcwd): Check that the fd argument is as expected.
52957 2011-04-09  Bruno Haible  <bruno@clisp.org>
52959         careadlinkat: Use common coding style.
52960         * lib/careadlinkat.c: Move gnulib includes after system includes.
52962 2011-04-09  Bruno Haible  <bruno@clisp.org>
52964         careadlinkat: Clarify specification.
52965         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
52966         (careadlinkatcwd): Add comment.
52967         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
52969 2011-04-09  Bruno Haible  <bruno@clisp.org>
52971         areadlinkat: Avoid link error on many platforms.
52972         * modules/areadlinkat (Depends-on): Add areadlink.
52974 2011-04-09  Bruno Haible  <bruno@clisp.org>
52976         allocator, careadlinkat: Fix double-inclusion guard.
52977         * lib/allocator.h: Fix double-inclusion guard.
52978         * lib/careadlinkat.h: Likewise.
52980 2011-04-09  Bruno Haible  <bruno@clisp.org>
52982         relocatable-prog-wrapper: Update after module 'areadlink' changed.
52983         * lib/relocwrapper.c: Update dependencies hierarchy.
52984         * build-aux/install-reloc: Update list of files to be compiled.
52985         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
52986         lib/allocator.[hc].
52988 2011-04-08  Eric Blake  <eblake@redhat.com>
52990         strftime: silence gnulib-tool warning
52991         * modules/strftime-tests (Depends-on): Drop automatic dependency.
52993 2011-04-08  Bruno Haible  <bruno@clisp.org>
52995         verify: Fix syntax error with GCC 4.6 in C++ mode.
52996         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
52997         (HAVE_STATIC_ASSERT): New macro.
52998         (verify_true, verify): Use 'static_assert' if it is supported and
52999         '_Static_assert' is not supported.
53001 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53003         allocator: New module.
53004         * modules/allocator, lib/allocator.c: New files.
53005         * lib/allocator.h (stdlib_allocator): New decl.
53006         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53007         Remove.  Do not include <stdlib.h>.
53008         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53009         * modules/careadlinkat (Files): Remove lib/allocator.h.
53010         (Depends-on): Add allocator.
53012         stdlib: let modules use system malloc, realloc
53013         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53014         if !_GL_USE_STDLIB_ALLOC.
53015         (malloc, realloc): Limit this change to a smaller scope.
53017         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53018         (malloc, realloc): Don't #undef; no longer needed.
53019         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53020         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53021         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53022         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53023         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53024         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53025         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53026         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53028         careadlinkat: rename members to avoid problem
53029         * lib/allocator.h (struct allocator): Rename members from
53030         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53031         and realloc are #define'd.  Reported by Eric Blake in
53032         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53033         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53035 2011-04-08  Eric Blake  <eblake@redhat.com>
53037         nonblocking: reduce dependency
53038         * tests/test-nonblocking.c: Only test sockets when in use.
53039         * modules/nonblocking-tests (Depends-on): Drop socket.
53040         (Makefile.am): Link even if sockets are not present.
53041         * modules/pipe2-tests (Makefile.am): Likewise.
53042         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53044         pipe2: fix O_NONBLOCK support on mingw
53045         * modules/pipe2 (Depends-on): Add nonblocking.
53046         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53047         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53048         * tests/test-nonblocking.c (main): Likewise.
53049         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53051         fcntl-h: fix O_ACCMODE on cygwin
53052         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53053         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53055         pipe-filter: drop O_NONBLOCK workarounds
53056         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53057         * modules/pipe-filter-ii (Depends-on): Likewise.
53058         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53060         nonblocking: provide O_NONBLOCK for mingw
53061         * modules/nonblocking (Depends-on): Add open.
53062         (configure.ac): Set new witness macro.
53063         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53064         * modules/fcntl-h (Makefile.am): Substitute it.
53065         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53066         nonblocking module is in use.
53067         * lib/nonblocking.c: Adjust portability test.
53068         * lib/open.c (open): Don't let native open see gnulib flag.
53069         * tests/test-fcntl-h.c (main): Enhance test.
53070         * tests/test-open.h (test_open): Likewise.
53071         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53073         careadlinkat: fix compilation error on mingw
53074         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53075         within struct allocator.
53077 2011-04-06  Eric Blake  <eblake@redhat.com>
53079         binary-io: relicense under LGPLv2+
53080         * modules/binary-io (License): Relax to LGPLv2+.
53081         Requested for libvirt, and required by pipe2.
53083 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53085         verify: use _Static_assert if available
53086         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53087         (verify_true, verify): Use it if available.  This generates better
53088         diagnostics with GCC 4.6.0 and later.
53090 2011-04-05  Bruno Haible  <bruno@clisp.org>
53092         Remove leftover generated .h files after config.status changed.
53094         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53095         GL_GENERATE_ALLOCA_H.
53096         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53097         GL_GENERATE_ALLOCA_H evaluates to false.
53099         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53100         GL_GENERATE_ARGZ_H.
53101         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53102         evaluates to false.
53104         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53105         GL_GENERATE_BYTESWAP_H.
53106         * modules/byteswap (Makefile.am): Remove byteswap.h if
53107         GL_GENERATE_BYTESWAP_H evaluates to false.
53109         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53110         GL_GENERATE_ERRNO_H.
53111         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53112         evaluates to false.
53114         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53115         GL_GENERATE_FLOAT_H.
53116         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53117         evaluates to false.
53119         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53120         GL_GENERATE_FNMATCH_H.
53121         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53122         GL_GENERATE_FNMATCH_H evaluates to false.
53124         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53125         GL_GENERATE_GLOB_H.
53126         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53127         evaluates to false.
53129         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53130         automake conditional GL_GENERATE_ICONV_H.
53131         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53132         evaluates to false.
53134         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53135         GL_GENERATE_NETINET_IN_H.
53136         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53137         GL_GENERATE_NETINET_IN_H evaluates to false.
53139         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53140         conditional GL_GENERATE_PTHREAD_H.
53141         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53142         * modules/pthread (Makefile.am): Remove pthread.h if
53143         GL_GENERATE_PTHREAD_H evaluates to false.
53145         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53146         GL_GENERATE_SCHED_H.
53147         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53148         evaluates to false.
53150         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53151         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53152         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53153         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53155         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53156         GL_GENERATE_STDARG_H.
53157         * modules/stdarg (Makefile.am): Remove stdarg.h if
53158         GL_GENERATE_STDARG_H evaluates to false.
53160         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53161         GL_GENERATE_STDBOOL_H.
53162         * modules/stdbool (Makefile.am): Remove stdbool.h if
53163         GL_GENERATE_STDBOOL_H evaluates to false.
53165         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53166         conditional GL_GENERATE_STDDEF_H.
53167         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53168         * modules/stddef (Makefile.am): Remove stddef.h if
53169         GL_GENERATE_STDDEF_H evaluates to false.
53171         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53172         GL_GENERATE_STDINT_H.
53173         * modules/stdint (Makefile.am): Remove stdint.h if
53174         GL_GENERATE_STDINT_H evaluates to false.
53176         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53177         GL_GENERATE_SYSEXITS_H.
53178         * modules/sysexits (Makefile.am): Remove sysexits.h if
53179         GL_GENERATE_SYSEXITS_H evaluates to false.
53181         Reported by Karl Berry and Ralf Wildenhues.
53183 2011-04-05  Bruno Haible  <bruno@clisp.org>
53185         Ensure to rebuild generated .h files when config.status has changed.
53186         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53187         config.status.
53188         * modules/ctype (Makefile.am): Likewise.
53189         * modules/dirent (Makefile.am): Likewise.
53190         * modules/errno (Makefile.am): Likewise.
53191         * modules/fcntl-h (Makefile.am): Likewise.
53192         * modules/float (Makefile.am): Likewise.
53193         * modules/getopt-posix (Makefile.am): Likewise.
53194         * modules/glob (Makefile.am): Likewise.
53195         * modules/iconv-h (Makefile.am): Likewise.
53196         * modules/inttypes (Makefile.am): Likewise.
53197         * modules/langinfo (Makefile.am): Likewise.
53198         * modules/locale (Makefile.am): Likewise.
53199         * modules/math (Makefile.am): Likewise.
53200         * modules/netdb (Makefile.am): Likewise.
53201         * modules/netinet_in (Makefile.am): Likewise.
53202         * modules/poll-h (Makefile.am): Likewise.
53203         * modules/pthread (Makefile.am): Likewise.
53204         * modules/pty (Makefile.am): Likewise.
53205         * modules/sched (Makefile.am): Likewise.
53206         * modules/search (Makefile.am): Likewise.
53207         * modules/selinux-h (Makefile.am): Likewise.
53208         * modules/signal (Makefile.am): Likewise.
53209         * modules/spawn (Makefile.am): Likewise.
53210         * modules/stdarg (Makefile.am): Likewise.
53211         * modules/stdbool (Makefile.am): Likewise.
53212         * modules/stddef (Makefile.am): Likewise.
53213         * modules/stdint (Makefile.am): Likewise.
53214         * modules/stdio (Makefile.am): Likewise.
53215         * modules/stdlib (Makefile.am): Likewise.
53216         * modules/string (Makefile.am): Likewise.
53217         * modules/strings (Makefile.am): Likewise.
53218         * modules/sys_file (Makefile.am): Likewise.
53219         * modules/sys_ioctl (Makefile.am): Likewise.
53220         * modules/sys_select (Makefile.am): Likewise.
53221         * modules/sys_socket (Makefile.am): Likewise.
53222         * modules/sys_stat (Makefile.am): Likewise.
53223         * modules/sys_time (Makefile.am): Likewise.
53224         * modules/sys_times (Makefile.am): Likewise.
53225         * modules/sys_utsname (Makefile.am): Likewise.
53226         * modules/sys_wait (Makefile.am): Likewise.
53227         * modules/sysexits (Makefile.am): Likewise.
53228         * modules/termios (Makefile.am): Likewise.
53229         * modules/time (Makefile.am): Likewise.
53230         * modules/unistd (Makefile.am): Likewise.
53231         * modules/wchar (Makefile.am): Likewise.
53232         * modules/wctype-h (Makefile.am): Likewise.
53233         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53235 2011-04-05  Bruno Haible  <bruno@clisp.org>
53237         pipe2: Relicense under LGPLv2+.
53238         * modules/pipe2 (License): Change to LGPLv2+.
53239         Requested by Eric Blake, for libvirt.
53241 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53243         bootstrap: compute gnulib_extra_files after updating build_aux
53244         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53245         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53247 2011-04-05  Eric Blake  <eblake@redhat.com>
53249         bootstrap: preserve git whitelist item sorting
53250         * build-aux/bootstrap (sort_patterns): New function.
53251         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53253 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53255         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53256         sc_space_tab check.
53258 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53260         areadlink, areadlinkat: rewrite in terms of careadlinkat
53261         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53262         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53263         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53264         (malloc, realloc): Remove #undefs.
53265         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53266         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53267         readlink, ssize_t, stdint, unistd.
53268         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53269         areadlink, stdint.
53271         careadlinkat: new module
53272         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53273         * modules/careadlinkat: New files, written by me with
53274         a review and feedback from Ben Pfaff in
53275         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53277 2011-04-01  Bruno Haible  <bruno@clisp.org>
53279         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53280         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53281         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53282         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53283         Reported by Bruce Korb <bruce.korb@gmail.com>.
53285 2011-04-01  Bruno Haible  <bruno@clisp.org>
53287         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53288         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53289         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53290         * modules/wcpcpy (Depends-on): Add extensions.
53291         * modules/wcpncpy (Depends-on): Likewise.
53292         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53293         systems.
53294         * doc/posix-functions/wcpncpy.texi: Likewise.
53295         * doc/posix-functions/wcwidth.texi: Likewise.
53297 2011-03-31  Eric Blake  <eblake@redhat.com>
53299         nonblocking: fix mingw test failures
53300         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53301         non-blocking flag on regular file.
53302         (get_nonblocking_flag): Set errno on invalid fd.
53303         * tests/test-nonblocking.c (main): Avoid test failure on
53304         directories if fchdir is not active.
53305         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53307 2011-03-31  Bruno Haible  <bruno@clisp.org>
53309         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53310         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53311         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53312         Reported by Simon Josefsson <simon@josefsson.org>.
53314 2011-03-31  Bruno Haible  <bruno@clisp.org>
53315         and Eric Blake  <eblake@redhat.com>
53317         nonblocking: new module
53318         * modules/nonblocking: New module.
53319         * modules/nonblocking-tests: Likewise.
53320         * lib/nonblocking.h: New file.
53321         * lib/nonblocking.c: Likewise.
53322         * tests/test-nonblocking.c: New test.
53323         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53325 2011-03-30  Bruno Haible  <bruno@clisp.org>
53327         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53328         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53329         instead of 'printf' format for GCC >= 4.4.
53330         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53331         (fprintf, printf, vfprintf, vprintf): Declare with
53332         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53333         the system's vfprintf() function.
53334         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53336 2011-03-30  Eric Blake  <eblake@redhat.com>
53338         passfd: fix scoping bug
53339         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53340         before sendmsg/recvmsg.
53342         passfd: standardize coding conventions
53343         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53344         can be learned at compile time.
53345         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53346         ifdefs.
53347         (sendfd, recvfd): Follow gnulib code conventions.
53349         passfd: fix incorrect sendmsg arguments
53350         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53351         incorrect msg_controllen value.
53352         * modules/passfd-tests (Depends-on): Check for alarm.
53353         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53354         Reported by Bastien ROUCARIES.
53356 2011-03-30  Bruno Haible  <bruno@clisp.org>
53358         c-strcasestr: Relicense under LGPLv2+.
53359         * modules/c-strcasestr (License): Change to LGPLv2+.
53360         Requested by Eric Blake, for libvirt.
53362 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53364         * users.txt: Add libidn2.  Fix libtasn1 link.
53366 2011-03-30  Jim Meyering  <meyering@redhat.com>
53368         tests: readlink* ("",... fails with EINVAL on newer kernels
53369         readlink and readlinkat have typically failed with ENOENT for
53370         the invalid, empty file name,  "".  However, with the advent
53371         of linux-2.6.39, they fail with EINVAL.
53372         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53373         when operating on the empty file name.
53374         * tests/test-readlink.h (test_readlink): Likewise.
53376 2011-03-29  Bruno Haible  <bruno@clisp.org>
53378         Relicense some modules under LGPLv2+, for libidn2.
53379         * modules/array-mergesort (License): Change to LGPLv2+.
53380         * modules/c-strcaseeq (License): Likewise.
53381         * modules/striconveh (License): Likewise.
53382         * modules/striconveha (License): Likewise.
53383         * modules/uniconv/base (License): Likewise.
53384         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53385         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53386         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53387         * modules/unictype/base (License): Likewise.
53388         * modules/unictype/bidiclass-of (License): Likewise.
53389         * modules/unictype/category-M (License): Likewise.
53390         * modules/unictype/category-none (License): Likewise.
53391         * modules/unictype/category-of (License): Likewise.
53392         * modules/unictype/category-test (License): Likewise.
53393         * modules/unictype/category-test-withtable (License): Likewise.
53394         * modules/unictype/combining-class (License): Likewise.
53395         * modules/unictype/joiningtype-of (License): Likewise.
53396         * modules/unictype/scripts (License): Likewise.
53397         * modules/uninorm/base (License): Likewise.
53398         * modules/uninorm/canonical-decomposition (License): Likewise.
53399         * modules/uninorm/composition (License): Likewise.
53400         * modules/uninorm/decompose-internal (License): Likewise.
53401         * modules/uninorm/decomposition-table (License): Likewise.
53402         * modules/uninorm/nfc (License): Likewise.
53403         * modules/uninorm/nfd (License): Likewise.
53404         * modules/uninorm/u32-normalize (License): Likewise.
53405         * modules/unistr/base (License): Likewise.
53406         * modules/unistr/u32-cpy (License): Likewise.
53407         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53408         * modules/unistr/u32-to-u8 (License): Likewise.
53409         * modules/unistr/u32-uctomb (License): Likewise.
53410         * modules/unistr/u8-check (License): Likewise.
53411         * modules/unistr/u8-mblen (License): Likewise.
53412         * modules/unistr/u8-mbtouc (License): Likewise.
53413         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53414         * modules/unistr/u8-mbtoucr (License): Likewise.
53415         * modules/unistr/u8-prev (License): Likewise.
53416         * modules/unistr/u8-strlen (License): Likewise.
53417         * modules/unistr/u8-to-u32 (License): Likewise.
53418         * modules/unistr/u8-uctomb (License): Likewise.
53419         * modules/unitypes (License): Likewise.
53420         Requested by Simon Josefsson.
53422 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53424         lib-symbol-visibility: Add a notice.
53425         * modules/lib-symbol-visibility (Notice): New field.
53427 2011-03-29  Bruno Haible  <bruno@clisp.org>
53429         getaddrinfo: Doc fix.
53430         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53431         section "fixed in Gnulib".
53433 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53435         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53436         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53438 2011-03-26  Bruno Haible  <bruno@clisp.org>
53440         unictype/property-byname: Reduce the number of load-time relocations.
53441         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53442         (UC_PROPERTY_INDEX_*): New enumeration values.
53443         (uc_property_byname): Convert an index from the lookup table to an
53444         uc_property_t.
53445         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53446         values.
53448 2011-03-26  Bruno Haible  <bruno@clisp.org>
53450         unictype/property-byname: Allow omitted word separators and aliases.
53451         * lib/unictype/pr_byname.gperf: Add property names without word
53452         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53453         for 'space'.
53455 2011-03-26  Bruno Haible  <bruno@clisp.org>
53457         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53458         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53459         also hyphens to space.
53460         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53461         without spaces.
53462         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53464 2011-03-26  Bruno Haible  <bruno@clisp.org>
53466         unictype/joiningtype-byname: Recognize long names as well.
53467         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53468         a long name.
53469         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53470         unictype/joiningtype_byname.h.
53471         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53472         * lib/unictype/joiningtype_byname.gperf: New file.
53473         * modules/unictype/joiningtype-byname (Files): Add
53474         lib/unictype/joiningtype_byname.gperf.
53475         (Depends-on): Add gperf.
53476         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53477         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53478         long names.
53480         Tests for module 'unictype/joiningtype-longname'.
53481         * modules/unictype/joiningtype-longname-tests: New file.
53482         * tests/unictype/test-joiningtype_longname.c: New file.
53484         New module 'unictype/joiningtype-longname'.
53485         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53486         * lib/unictype/joiningtype_longname.c: New file.
53487         * modules/unictype/joiningtype-longname: New file.
53488         * modules/unictype/joiningtype-all (Depends-on): Add
53489         unictype/joiningtype-longname.
53491 2011-03-26  Bruno Haible  <bruno@clisp.org>
53493         unictype/bidiclass-byname: Recognize long names as well.
53494         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53495         name.
53496         * lib/unictype/bidi_byname.c: Include <string.h>,
53497         unictype/bidi_byname.h.
53498         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53499         * lib/unictype/bidi_byname.gperf: New file.
53500         * modules/unictype/bidiclass-byname (Files): Add
53501         lib/unictype/bidi_byname.gperf.
53502         (Depends-on): Add gperf.
53503         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53504         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53505         long names.
53507         Tests for module 'unictype/bidiclass-longname'.
53508         * modules/unictype/bidiclass-longname-tests: New file.
53509         * tests/unictype/test-bidi_longname.c: New file.
53511         New module 'unictype/bidiclass-longname'.
53512         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53513         * lib/unictype/bidi_longname.c: New file.
53514         * modules/unictype/bidiclass-longname: New file.
53515         * modules/unictype/bidiclass-all (Depends-on): Add
53516         unictype/bidiclass-longname.
53518 2011-03-26  Bruno Haible  <bruno@clisp.org>
53520         unictype/bidi*: Rename modules.
53521         * modules/unictype/bidiclass-all: Renamed from
53522         modules/unictype/bidicategory-all.
53523         * modules/unictype/bidiclass-name: Renamed from
53524         modules/unictype/bidiclass-name.
53525         (Description): Update.
53526         * modules/unictype/bidiclass-name-tests: Renamed from
53527         modules/unictype/bidicategory-name-tests.
53528         * modules/unictype/bidiclass-byname: Renamed from
53529         modules/unictype/bidicategory-byname.
53530         (Description): Update.
53531         * modules/unictype/bidiclass-byname-tests: Renamed from
53532         modules/unictype/bidicategory-byname-tests.
53533         * modules/unictype/bidiclass-of: Renamed from
53534         modules/unictype/bidicategory-of.
53535         (Description): Update.
53536         * modules/unictype/bidiclass-of-tests: Renamed from
53537         modules/unictype/bidicategory-of-tests.
53538         * modules/unictype/bidiclass-test: Renamed from
53539         modules/unictype/bidicategory-test.
53540         (Description): Update.
53541         * modules/unictype/bidiclass-test-tests: Renamed from
53542         modules/unictype/bidicategory-test-tests.
53543         * modules/unictype/bidicategory-all: New file, a simple redirection.
53544         * modules/unictype/bidicategory-name: Likewise.
53545         * modules/unictype/bidicategory-byname: Likewise.
53546         * modules/unictype/bidicategory-of: Likewise.
53547         * modules/unictype/bidicategory-test: Likewise.
53548         * modules/unictype/property-bidi-* (Dependencies): Update.
53549         * lib/unictype/bidi_*.c: Update comment.
53551 2011-03-26  Bruno Haible  <bruno@clisp.org>
53553         unictype/bidi*: Rename functions, part 2.
53554         * modules/unictype/bidicategory-name (configure.ac): Update required
53555         libunistring version.
53556         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53558 2011-03-25  Bruno Haible  <bruno@clisp.org>
53560         New module 'unictype/combining-class-all'.
53561         * modules/unictype/combining-class-all: New file.
53563         Tests for module 'unictype/combining-class-byname'.
53564         * modules/unictype/combining-class-byname-tests: New file.
53565         * tests/unictype/test-combiningclass_byname.c: New file.
53567         New module 'unictype/combining-class-byname'.
53568         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53569         * lib/unictype/combiningclass_byname.c: New file.
53570         * lib/unictype/combiningclass_byname.gperf: New file.
53571         * modules/unictype/combining-class-byname: New file.
53573         Tests for module 'unictype/combining-class-longname'.
53574         * modules/unictype/combining-class-longname-tests: New file.
53575         * tests/unictype/test-combiningclass_longname.c: New file.
53577         New module 'unictype/combining-class-longname'.
53578         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53579         * lib/unictype/combiningclass_longname.c: New file.
53580         * modules/unictype/combining-class-longname: New file.
53582         Tests for module 'unictype/combining-class-name'.
53583         * modules/unictype/combining-class-name-tests: New file.
53584         * tests/unictype/test-combiningclass_name.c: New file.
53586         New module 'unictype/combining-class-name'.
53587         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53588         * lib/unictype/combiningclass_name.c: New file.
53589         * modules/unictype/combining-class-name: New file.
53591 2011-03-25  Bruno Haible  <bruno@clisp.org>
53593         unictype/combining-class: Rename source files.
53594         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53595         of unictype/combining.h.
53596         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53597         Update.
53598         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53599         * modules/unictype/combining-class (Description): Fix.
53600         (Files, Makefile.am): Update.
53601         * tests/unictype/test-combiningclass.c: Renamed from
53602         tests/unictype/test-combining.c.
53603         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53605 2011-03-25  Bruno Haible  <bruno@clisp.org>
53607         unictype: Update list of canonical combining classes.
53608         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53610 2011-03-25  Bruno Haible  <bruno@clisp.org>
53612         unictype/category-byname: Recognize long names as well.
53613         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53614         a long name.
53615         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53616         unictype/categ_byname.h.
53617         (UC_CATEGORY_INDEX_*): New enumeration values.
53618         (uc_general_category_byname): Use uc_general_category_lookup and
53619         convert from index to value.
53620         * lib/unictype/categ_byname.gperf: New file.
53621         * modules/unictype/category-byname (Files): Add
53622         lib/unictype/categ_byname.gperf.
53623         (Depends-on): Add gperf.
53624         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53625         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53626         long names.
53628         Tests for module 'unictype/category-longname'.
53629         * modules/unictype/category-longname-tests: New file.
53630         * tests/unictype/test-categ_longname.c: New file.
53632         New module 'unictype/category-longname'.
53633         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53634         * lib/unictype/categ_longname.c: New file.
53635         * modules/unictype/category-longname: New file.
53636         * modules/unictype/category-all (Depends-on): Add it.
53638 2011-03-25  Bruno Haible  <bruno@clisp.org>
53640         Tests for module 'unictype/category-LC'.
53641         * modules/unictype/category-LC-tests: New file.
53642         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53644         New module 'unictype/category-LC'.
53645         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53646         (UC_CATEGORY_LC): New declaration.
53647         (UC_CASED_LETTER): New macro.
53648         * lib/gen-uni-tables.c (is_category_LC): New function.
53649         (output_categories): Also handle category LC.
53650         (UC_CATEGORY_MASK_LC): New enumeration value.
53651         (general_category_byname): Also handle category LC.
53652         * lib/unictype/categ_LC.c: New file.
53653         * lib/unictype/categ_LC.h: New file, automatically generated.
53654         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53655         category LC.
53656         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53657         * modules/unictype/category-LC: New file.
53658         * modules/unictype/category-byname (Depends-on): Add
53659         unictype/category-LC.
53660         * modules/unictype/category-all (Depends-on): Likewise.
53662 2011-03-25  Eric Blake  <eblake@redhat.com>
53664         xmalloc: revert yesterday's regression
53665         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53666         realloc's underlying behavior (allowing allocation of zero-size
53667         objects, especially if malloc-gnu is also in use).
53669 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53671         maint.mk: add missing version to VC-tag
53672         * top/maint.mk: git tag was missing actual tag name; add it.
53674         valgrind: do leak checking, and exit with code 1 on error (not 0)
53675         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53676         to VALGRIND.
53678 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53680         posix-modules: say what it does.
53681         * posix-modules: Add a line to the --help output saying what it does.
53683 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53685         xmalloc: Do not leak if underlying realloc is C99 compatible.
53686         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53687         This avoids a leak on C99-based systems.  See
53688         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53690 2011-03-24  Eric Blake  <eblake@redhat.com>
53692         realloc: document portability problem
53693         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53694         passing 0 size to realloc.
53696 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53698         doc: update users.txt
53699         * users.txt: Add cvsps, tmpwatch
53701 2011-03-23  Matt Rice  <ratmice@gmail.com>
53703         doc: update users.txt
53704         * users.txt: Add gdb.
53706 2011-03-23  Jim Meyering  <meyering@redhat.com>
53708         doc: update users.txt
53709         Looking through matches up to the following URL (there are still
53710         several more pages), I found several projects that use gnulib:
53711         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53712         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53713         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53715 2011-03-22  Bruno Haible  <bruno@clisp.org>
53717         unictype/bidi*: Rename functions.
53718         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53719         uc_bidi_class, uc_is_bidi_class): New declarations.
53720         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
53721         uc_bidi_category_byname.
53722         (uc_bidi_category_byname): New function.
53723         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53724         u_bidi_category_name.
53725         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
53726         (uc_bidi_category_name): New function.
53727         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
53728         uc_bidi_category.
53729         (uc_bidi_category): New function.
53730         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
53731         uc_is_bidi_category. Invoke uc_bidi_class.
53732         (uc_is_bidi_category): New function.
53733         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
53734         instead of uc_bidi_category_byname.
53735         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
53736         instead of uc_bidi_category_name.
53737         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
53738         uc_bidi_category.
53739         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
53740         instead of uc_is_bidi_category.
53742 2011-03-21  Bruno Haible  <bruno@clisp.org>
53744         New module 'unictype/joininggroup-all'.
53745         * modules/unictype/joininggroup-all: New file.
53747         Tests for module 'unictype/joininggroup-of'.
53748         * modules/unictype/joininggroup-of-tests: New file.
53749         * tests/unictype/test-joininggroup_of.c: New file.
53750         * tests/unictype/test-joininggroup_of.h: New file, automatically
53751         generated by gen-uni-tables.
53753         New module 'unictype/joininggroup-of'.
53754         * modules/unictype/joininggroup-of: New file.
53755         * lib/unictype/joininggroup_of.c: New file.
53756         * lib/unictype/joininggroup_of.h: New file, automatically generated by
53757         gen-uni-tables.
53759         Tests for module 'unictype/joininggroup-byname'.
53760         * modules/unictype/joininggroup-byname-tests: New file.
53761         * tests/unictype/test-joininggroup_byname.c: New file.
53763         New module 'unictype/joininggroup-byname'.
53764         * modules/unictype/joininggroup-byname: New file.
53765         * lib/unictype/joininggroup_byname.c: New file.
53766         * lib/unictype/joininggroup_byname.gperf: New file.
53768         Tests for module 'unictype/joininggroup-name'.
53769         * modules/unictype/joininggroup-name-tests: New file.
53770         * tests/unictype/test-joininggroup_name.c: New file.
53772         New module 'unictype/joininggroup-name'.
53773         * modules/unictype/joininggroup-name: New file.
53774         * lib/unictype/joininggroup_name.c: New file.
53775         * lib/unictype/joininggroup_name.h: New file.
53777         New module 'unictype/joiningtype-all'.
53778         * modules/unictype/joiningtype-all: New file.
53780         Tests for module 'unictype/joiningtype-of'.
53781         * modules/unictype/joiningtype-of-tests: New file.
53782         * tests/unictype/test-joiningtype_of.c: New file.
53783         * tests/unictype/test-joiningtype_of.h: New file, automatically
53784         generated by gen-uni-tables.
53786         New module 'unictype/joiningtype-of'.
53787         * modules/unictype/joiningtype-of: New file.
53788         * lib/unictype/joiningtype_of.c: New file.
53789         * lib/unictype/joiningtype_of.h: New file, automatically generated by
53790         gen-uni-tables.
53792         Tests for module 'unictype/joiningtype-byname'.
53793         * modules/unictype/joiningtype-byname-tests: New file.
53794         * tests/unictype/test-joiningtype_byname.c: New file.
53796         New module 'unictype/joiningtype-byname'.
53797         * modules/unictype/joiningtype-byname: New file.
53798         * lib/unictype/joiningtype_byname.c: New file.
53800         Tests for module 'unictype/joiningtype-name'.
53801         * modules/unictype/joiningtype-name-tests: New file.
53802         * tests/unictype/test-joiningtype_name.c: New file.
53804         New module 'unictype/joiningtype-name'.
53805         * modules/unictype/joiningtype-name: New file.
53806         * lib/unictype/joiningtype_name.c: New file.
53808         unictype: Add support for Arabic shaping properties.
53809         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
53810         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
53811         declarations.
53812         (UC_JOINING_GROUP_*): New enumeration values.
53813         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
53814         declarations.
53815         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
53816         (unicode_joining_type): New variable.
53817         (UC_JOINING_GROUP_*): New enumeration values.
53818         (unicode_joining_group): New variable.
53819         (fill_arabicshaping, joining_type_as_c_identifier,
53820         output_joining_type_test, output_joining_type,
53821         joining_group_as_c_identifier, output_joining_group_test,
53822         output_joining_group): New functions.
53823         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
53824         fill_arabicshaping and output_joining_type_test, output_joining_type,
53825         output_joining_group_test, output_joining_group.
53826         Reported by Simon Josefsson.
53828 2011-03-21  Jim Meyering  <meyering@redhat.com>
53830         strftime: fix a bug in yesterday's change
53831         * lib/strftime.c (add): Accommodate width's initial value of -1.
53832         Otherwise, nstrftime would copy uninitialized data into
53833         the result buffer.
53835 2011-03-21  Jim Meyering  <meyering@redhat.com>
53837         tests: add strftime-tests module
53838         * tests/test-strftime.c: New file.
53839         * modules/strftime-tests: New module.
53841 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53843         strftime: don't assume a byte count fits in 'int'
53844         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
53845         found this problem by static analysis, using gcc -Wstrict-overflow
53846         (GCC 4.5.2, x86-64).  This reported an optimization that depended
53847         on an integer overflow having undefined behavior, but it turns out
53848         that the argument is a size, which might not fit in 'int' anyway,
53850 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53852         stdio: don't require ignore_value around fwrite
53854         This patch works around libc bug 11959
53855         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
53856         Without this patch, applications must often write
53857         ignore_value (fwrite (...)) even though the ignore_value is
53858         not helpful here.  It's common to write many objects, using
53859         fwrite/printf/etc., and then use ferror to detect output error.
53861         I considered making this patch optional, but decided against it,
53862         because libc is obviously being inconsistent here: there is no
53863         reason libc should insist that user code must inspect fwrite
53864         return's value without also insisting that it inspect printf's,
53865         putchar's, etc.  If user code wants to have a strict style where
53866         all these functions' values are checked (so that ferror need not
53867         be checked), we could add support for that style in a new gnulib
53868         module, but in the meantime it's better to be consistent and to
53869         support common usage.
53871         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
53872         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
53873         that we are compiling in checking mode, and if not C++, and
53874         if not already wrapping fwrite for some other reason.
53875         (fwrite): #define to rpl_fwrite if the latter is defined.
53877 2011-03-20  Bruno Haible  <bruno@clisp.org>
53879         verror: Fix compilation error introduced on 2011-02-13.
53880         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
53881         instead of __attribute__.
53882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53884 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53885             Bruno Haible  <bruno@clisp.org>
53887         socklen: do not depend on sys_socket
53888         While trying to modify Emacs to use gnulib's socklen module,
53889         I discovered a circular dependency: socklen depends on sys_socket
53890         and vice versa.  Emacs can use socklen, but it does not need
53891         sys_socket because it has its own substitute for sys/socket.h.
53892         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
53893         gl_TYPE_SOCKLEN_T.
53894         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
53895         gl_PREREQ_SYS_H_SOCKET.
53896         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
53897         gl_PREREQ_SYS_H_SOCKET.
53898         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
53899         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
53900         * modules/socklen (Depends-on): Do not depend on sys_socket.
53901         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
53903 2011-03-20  Jim Meyering  <meyering@redhat.com>
53905         maint.mk: sort file names *after* new transformation
53906         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
53907         prefix would have led to an unwarranted failure in GNU parted.
53908         Sort after that transformation.
53910 2011-03-19  Jim Meyering  <meyering@redhat.com>
53912         maint.mk: fix po-file syntax-check rule
53913         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
53914         Patch by Bruno Haible.
53916 2011-03-19  Bruno Haible  <bruno@clisp.org>
53918         socklen: Update comment.
53919         * m4/socklen.m4: Update comment about platforms.
53921 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53922             Bruno Haible  <bruno@clisp.org>
53924         inet_ntop, inet_pton: Simplify.
53925         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
53926         documented to provide socklen_t and we already depend on sys_socket.
53927         * modules/inet_pton (Depends-on): Likewise.
53928         * lib/arpa_inet.in.h: Adjust comment.
53930 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53931             Bruno Haible  <bruno@clisp.org>
53933         netdb: Simplify.
53934         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
53935         documented to provide socklen_t and we already depend on sys_socket.
53936         * lib/netdb.in.h: Adjust comment.
53938 2011-03-19  Bruno Haible  <bruno@clisp.org>
53940         sys_socket, netdb: Document problem with socklen_t.
53941         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
53942         platforms.
53943         * doc/posix-headers/netdb.texi: Likewise.
53945 2011-03-18  Eric Blake  <eblake@redhat.com>
53947         maint.mk: let po check work in VPATH build
53948         * top/maint.mk (po_file): Allow cfg.mk override.
53949         (sc_po_check): Allow VPATH use.
53950         Reported by Jiri Denemark.
53952 2011-03-16  Jim Meyering  <meyering@redhat.com>
53954         maint.mk: allow fine-grained syntax-check exclusion via Make variables
53955         Before, you would have had to create one .x-sc_ file per rule in order
53956         to exempt offending files.  Now, you may instead use a Make variable --
53957         usually defined in cfg.mk -- whose name identifies the affected rule.
53958         * top/maint.mk (_sc_excl): Define.
53959         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
53960         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
53962 2011-03-13  Bruno Haible  <bruno@clisp.org>
53964         ignore-value tests: Avoid warnings.
53965         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
53966         empty for gcc < 3.4.
53968 2011-03-13  Bruno Haible  <bruno@clisp.org>
53970         passfd: Fix link error on Solaris.
53971         * modules/passfd (Description): Correct.
53972         (Depends-on): Add socketlib.
53973         (Link): New section.
53974         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
53976 2011-03-13  Bruno Haible  <bruno@clisp.org>
53978         passfd: Fix link error on AIX 5.2.
53979         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
53981 2011-03-13  Bruno Haible  <bruno@clisp.org>
53983         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
53984         * lib/sys_socket.in.h: Include <stddef.h>.
53985         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
53986         CMSG_FIRSTHDR. Remove unused variable.
53988 2011-03-13  Bruno Haible  <bruno@clisp.org>
53990         passfd: Fix compilation error on OpenBSD.
53991         * lib/passfd.c: Include <sys/uio.h>.
53993 2011-03-13  Bruno Haible  <bruno@clisp.org>
53995         passfd test: Fix warnings.
53996         * tests/test-passfd.c: Include <sys/wait.h>.
53997         (main): Fix typo.
53999 2011-03-13  Bruno Haible  <bruno@clisp.org>
54001         passfd module, part 4, tweaks.
54002         * tests/test-passfd.c: Reorder includes.
54003         (main): Fix perror and printf calls.
54005 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54007         passfd module, part 4.
54008         * modules/passfd-tests: New file.
54009         * tests/test-passfd.c: New file.
54011 2011-03-13  Jim Meyering  <meyering@redhat.com>
54013         Makefile: rely on GNU make; derive syntax-check rule names
54014         Rather than requiring that each sc_ rule be listed as a dependent
54015         of "check", use features of GNU make to derive the list.
54016         * Makefile (syntax-check-rules): Define.
54017         (check): Depend on the new variable, not the hard-coded list.
54019 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54020             Bruno Haible  <bruno@clisp.org>
54022         passfd module, part 3.
54023         * lib/passfd.h (recvfd): Add a flags argument.
54024         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54025         (recvfd): Add a flags argument.
54026         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54027         exists.
54028         * modules/passfd (Depends-on): Add cloexec.
54029         Suggested by Eric Blake.
54031 2011-03-13  Bruno Haible  <bruno@clisp.org>
54033         passfd module, part 2, tweaks.
54034         * modules/passfd (Files): Reorder.
54035         (Depends-on): Remove errno.
54036         (Include): Remove <sys/socket.h>, <sys/un.h>.
54037         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54038         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54039         specification header. Include <sys/socket.h> always. Don't include
54040         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54041         (sendfd): Clarify that it sets errno when it fails.
54042         (recvfd): Fix specification.
54044 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54046         passfd module, part 2.
54047         * modules/passfd: New file.
54048         * lib/passfd.h: New file.
54049         * lib/passfd.c: New file.
54051 2011-03-12  Bruno Haible  <bruno@clisp.org>
54053         wcswidth, mbswidth: Avoid integer overflow.
54054         * lib/wcswidth.c: Include <limits.h>.
54055         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54056         * lib/mbswidth.c: Include <limits.h>.
54057         (mbsnwidth): Avoid 'int' overflow.
54058         Reported by Jim Meyering.
54060 2011-03-12  Bruno Haible  <bruno@clisp.org>
54062         futimens, utimensat: Avoid endless recursion on Solaris 10.
54063         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54064         Solaris.
54065         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54066         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54068 2011-03-11  Jim Meyering  <meyering@redhat.com>
54070         maint.mk: relax a regexp to accommodate other formatting styles
54071         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54072         between "ngettext" and the following "(".
54074 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54076         maint.mk: suppress a false positive warning
54077         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54078         diagnostics are marked with ngettext.
54080 2011-03-10  Eric Blake  <eblake@redhat.com>
54082         wchar: add explicit dependencies, for Tru64
54083         * modules/mbmemcasecoll (Depends-on): Add wchar.
54084         * modules/mbtowc (Depends-on): Likewise.
54085         * modules/vasnprintf (Depends-on): Likewise.
54086         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54087         * modules/wctomb (Depends-on): Likewise.
54088         Reported by Peter O'Gorman.
54090 2011-03-08  Bruno Haible  <bruno@clisp.org>
54092         passfd module, part 1, tweaks.
54093         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54094         Improve indentation. Improve AC_MSG_CHECKING messages.
54095         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54096         gl_SOCKET_FAMILIES.
54098 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54100         passfd module, part 1.
54101         * m4/afunix.m4: New file.
54102         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54103         sockets.
54105 2011-03-08  Bruno Haible  <bruno@clisp.org>
54107         regex-quote: New API.
54108         * lib/regex-quote.h: Include <stdbool.h>.
54109         (struct regex_quote_spec): New type.
54110         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54111         New declarations.
54112         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54113         'const struct regex_quote_spec *' argument.
54114         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54115         (pcre_special): New constant.
54116         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54117         New functions.
54118         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54119         'const struct regex_quote_spec *' argument.
54120         * modules/regex-quote (Depends-on): Add stdbool.
54121         * tests/test-regex-quote.c (check): Update for new API. Add test for
54122         anchored results.
54123         * NEWS: Mention the API change.
54124         Reported by Reuben Thomas and Eric Blake.
54126 2011-03-06  Bruno Haible  <bruno@clisp.org>
54128         regex-quote: Fix creation of POSIX extended regular expressions.
54129         * lib/regex-quote.c (ere_special): Add grouping and alternation
54130         operators.
54132 2011-03-05  Bruno Haible  <bruno@clisp.org>
54134         doc: Improve doc regarding autopoint vs. gnulib.
54135         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54136         disable autopoint while running autoreconf.
54137         Suggested by Ralf Wildenhues.
54139 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54141         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54142         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54144 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54146         parse-duration: remove xalloc.h dependency
54147         * lib/parse-duration.c (parse_period): handle NULL return from
54148         strdup instead of calling xstrdup().
54149         * modules/parse-duration: remove "xalloc" dependency
54151 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54153         bootstrap: honor m4_base when running aclocal
54154         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54156 2011-03-02  Jim Meyering  <meyering@redhat.com>
54158         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54159         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54160         on request from Matt Booth.
54162 2011-03-01  Eric Blake  <eblake@redhat.com>
54164         test-link: work on Hurd
54165         * tests/test-link.h (test_link): Hurd rejects linking directories
54166         with EISDIR instead of the POSIX-mandated EPERM.
54168 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54170         stdio: simplify by moving files to printf-posix, sigpipe
54171         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54172         since this symbol is needed only if printf is replaced.
54173         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54174         Require gl_ASM_SYMBOL_PREFIX.
54175         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54176         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54177         (Depends-on): Add 'raise'.
54178         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54179         * modules/stdio (Files): Remove lib/stdio-write.c,
54180         m4/asm-underscore.m4.
54181         (Depends-on): Remove 'raise'.
54183         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54184         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54185         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54186         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54188 2011-02-28  Bruno Haible  <bruno@clisp.org>
54190         localcharset: Assume ANSI C behaviour of free().
54191         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54192         calling free().
54193         Suggested by Simon Josefsson <simon@josefsson.org>.
54195 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54196             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54197             Bruno Haible  <bruno@clisp.org>  (tiny change)
54199         On Cygwin, use /proc file system instead of win32 API.
54200         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54201         Win32 file names.
54202         (DllMain): Simplify by removing Cygwin specific code.
54203         (find_shared_library_fullname): Use Linux specific implementation also
54204         for Cygwin.
54205         (get_shared_library_fullname): Update accordingly.
54206         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54207         Win32 file names.
54208         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54209         Cygwin specific code.
54211 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54212             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54214         Fix OpenMP flag detection for various Fortran compilers.
54215         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54216         OpenMP-conditional compilation construct, to force compile
54217         failure with missing OpenMP flag.
54218         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54220 2011-02-25  Eric Blake  <eblake@redhat.com>
54222         strstr: expand test coverage
54223         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54224         compilation.
54225         * tests/test-memmem.c (main): Duplicate tests.
54226         * tests/test-strcasestr.c (main): Likewise.
54227         * tests/test-c-strcasestr.c (main): Likewise.
54229 2011-02-25  Jim Meyering  <meyering@redhat.com>
54231         maint.mk: detect missing-NL-at-EOF, too
54232         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54233         it also detects when a file lacks a newline at EOF.
54234         (require_exactly_one_NL_at_EOF_): Renamed from
54235         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54236         since people may well have .x-sc_... file names tied to the
54237         existing name.  Suggested by Eric Blake.
54239 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54241         dirname: move m4/dos.m4 functionality into lib/dosname.h
54243         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54244         extracts symbols from it, puts them into config.h; but it's much
54245         easier to use the symbols directly.  filename.h already does this,
54246         but it disagrees with dos.m4 in some respects.  This patch
54247         introduces a different include file dosname.h that packages up
54248         dos.m4, and then later we can work on merging filename.h and
54249         dosname.h.  Applications that need only the easy-to-configure
54250         symbols should consider including dosname.h rather than dirname.h.
54251         * NEWS: Mention incompatible changes.
54252         * m4/dos.m4: Remove.
54253         * lib/dosname.h, modules/dosname: New files.
54254         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54255         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54256         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54257         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54258         Include dosname.h, not dirname.h.
54259         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54260         Include dosname.h, for definitions of symbols like ISSLASH
54261         that used to be in config.h.
54262         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54263         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54264         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54265         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54266         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54267         * modules/rmdir (Files): Likewise.
54268         * modules/stat (Files): Likewise.
54269         * modules/unlink (Files): Likewise.
54270         * modules/dirname-lgpl (Depends-on): Add dosname.
54271         * modules/lstat (Depends-on): Likewise.
54272         * modules/openat (Depends-on): Likewise.
54273         * modules/rmdir (Depends-on): Likewise.
54274         * modules/savewd (Depends-on): Likewise.
54275         * modules/stat (Depends-on): Likewise.
54276         * modules/unlink (Depends-on): Likewise.
54277         * modules/openat (Depends-on): Remove dirname-lgpl.
54278         * modules/savewd (Depends-on): Likewise.
54279         * tests/test-dirname.c: Do not use removed symbols like
54280         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54281         the remaining symbols, e.g., ISSLASH ('\\').
54283 2011-02-25  Eric Blake  <eblake@redhat.com>
54285         strstr: revert patches that introduced bug and pessimization
54286         * lib/str-two-way.h: Add another reference.
54287         (two_way_short_needle, two_way_long_needle): Revert changes from
54288         2011-02-24; they pessimize search speed.
54289         (critical_factorization): Partially revert changes from
54290         2010-06-22; they violate the requirement that the left half of the
54291         needle be smaller than the period of the needle.
54293 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54295         filenamecat: remove unnecessary dependency on dirname-lgpl
54296         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54297         is no direct dependency, just an indirect one via filenamecat-lgpl.
54299         remove: remove unnecessary use of m4/dos.m4
54300         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54301         * modules/remove (FILES): Remove m4/dos.m4.
54303         * lib/openat-proc.c: Don't include dirname.h; not needed.
54305         backupfile: remove unnecessary use of m4/dos.m4
54306         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54307         of its symbols are used by the backupfile code.  backupfile.c does
54308         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54309         for the rare case of programs that want all their backup file
54310         names to live within 8+3 limits, and dos.m4 doesn't address that.
54311         * modules/backupfile (Files): Remove m4/dos.m4.
54313 2011-02-24  Jim Meyering  <meyering@redhat.com>
54315         strstr: fix a bug whereby strstr would mistakenly return NULL
54316         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54317         in period calculation.
54318         (two_way_long_needle): Likewise.
54319         The original problem was reported by Mike Stump in
54320         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54321         Ralf Wildenhues provided the short needle and haystack.
54322         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54323         Add a more involved test to trigger the bug in two_way_long_needle.
54325 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54327         gnulib-tool: remove use of bold display in help screen
54328         * gnulib-tool (func_usage): Do not use bold display anymore in the
54329         help screen.  That was just meant to be a temporary emphasis for a
54330         backward-incompatible change.
54332 2011-02-23  Bruno Haible  <bruno@clisp.org>
54334         Fix misindentation of preprocessor directives.
54335         * lib/argp-namefrob.h: Reindent preprocessor directives.
54336         * lib/getopt_int.h (struct _getopt_data): Likewise.
54337         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54338         * lib/vasnprintf.c (decode_long_double): Likewise.
54339         * tests/test-argmatch.c: Insert blank lines, for clarity.
54340         * tests/test-exclude.c: Likewise.
54342 2011-02-22  Bruno Haible  <bruno@clisp.org>
54344         ioctl: Fix for MacOS X in 64-bit mode.
54345         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54346         value.
54347         Suggested by Eric Blake.
54348         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54350 2011-02-22  Jim Meyering  <meyering@redhat.com>
54352         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54353         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54354         in lib/.
54356 2011-02-22  Eric Blake  <eblake@redhat.com>
54358         maint: avoid any CDPATH issue
54359         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54361         maint: adjust cpp indentation for my modules, as well
54362         * Makefile (sc_cpp_indent_check): Add my name.
54363         * lib/fbufmode.c: Filter through cppi.
54364         * lib/fpurge.c: Likewise.
54365         * lib/freadable.c: Likewise.
54366         * lib/freading.c: Likewise.
54367         * lib/fwritable.c: Likewise.
54368         * lib/fwriting.c: Likewise.
54369         * lib/sigaction.c: Likewise.
54371 2011-02-22  Jim Meyering  <meyering@redhat.com>
54373         maint: adjust cpp indentation to reflect nesting depth
54374         I.e., in a block of code that begins with an unnested "#if",
54375         put one space between the "#" in column 1 and following token.
54376         For example,
54377         -#include <sys/vfs.h>
54378         +# include <sys/vfs.h>
54379         Do this only in .c files that are part of a module I maintain.
54380         * lib/linkat.c: Filter through cppi.
54381         * lib/nanosleep.c: Likewise.
54382         * lib/openat.c: Likewise.
54383         * lib/openat-die.c: Likewise.
54384         * lib/dup3.c: Likewise.
54385         * lib/fchownat.c: Likewise.
54386         * lib/flock.c: Likewise.
54387         * lib/fsync.c: Likewise.
54388         * lib/fts.c: Likewise.
54389         * lib/getpass.c: Likewise.
54390         * lib/gettimeofday.c: Likewise.
54391         * lib/userspec.c: Likewise.
54392         * Makefile (sc_cpp_indent_check): New rule, to check this.
54394 2011-02-22  Bruno Haible  <bruno@clisp.org>
54396         New module 'wctomb'.
54397         * lib/stdlib.in.h (wctomb): New declaration.
54398         * lib/wctomb.c: New file.
54399         * lib/wctomb-impl.h: New file.
54400         * m4/wctomb.m4: New file.
54401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54402         REPLACE_WCTOMB.
54403         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54404         REPLACE_WCTOMB.
54405         * modules/wctomb: New file.
54406         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54407         * doc/posix-functions/wctomb.texi: Mention the new module.
54408         * modules/wctob (Depends-on): Add wctomb.
54410 2011-02-22  Bruno Haible  <bruno@clisp.org>
54412         New module 'mbtowc'.
54413         * lib/stdlib.in.h (mbtowc): New declaration.
54414         * lib/mbtowc.c: New file.
54415         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54416         * m4/mbtowc.m4: New file.
54417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54418         REPLACE_MBTOWC.
54419         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54420         REPLACE_MBTOWC.
54421         * modules/mbtowc: New file.
54422         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54423         * doc/posix-functions/mbtowc.texi: Mention the new module.
54424         * modules/btowc (Depends-on): Add mbtowc.
54426 2011-02-22  Bruno Haible  <bruno@clisp.org>
54428         wcrtomb: Add more tests for native Windows platforms.
54429         * tests/test-wcrtomb-w32-1.sh: New file.
54430         * tests/test-wcrtomb-w32-2.sh: New file.
54431         * tests/test-wcrtomb-w32-3.sh: New file.
54432         * tests/test-wcrtomb-w32-4.sh: New file.
54433         * tests/test-wcrtomb-w32-5.sh: New file.
54434         * tests/test-wcrtomb-w32.c: New file.
54435         * modules/wcrtomb-tests (Files): Add them.
54436         (Makefile.am): Arrange to run these tests.
54437         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54438         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54440 2011-02-20  Bruno Haible  <bruno@clisp.org>
54442         wcrtomb: Enhance test.
54443         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54445 2011-02-20  Bruno Haible  <bruno@clisp.org>
54447         mbrtowc: Tiny optimization.
54448         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54450 2011-02-20  Jim Meyering  <meyering@redhat.com>
54452         test-exclude.c: remove unmatched #endif
54453         * tests/test-exclude.c: Remove stray #endif, left over from
54454         the change of a week ago.
54456 2011-02-19  Jim Meyering  <meyering@redhat.com>
54458         git-version-gen: skip "-dirty" check when appropriate
54459         * build-aux/git-version-gen: Don't run any git commands when the
54460         version string comes from .tarball-version.  Prior to this, we
54461         would run git update-index --refresh even from a just-unpacked
54462         tarball directory, and that could affect a .git/ directory in a
54463         parent of the build directory.  Reported by Mike Frysinger.
54465 2011-02-19  Bruno Haible  <bruno@clisp.org>
54467         unictype/property-byname: Reduce the size of the 'data' segment.
54468         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54470 2011-02-19  Bruno Haible  <bruno@clisp.org>
54472         unictype/scripts: Reduce the size of the 'data' segment.
54473         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54474         '%pic'.
54475         * lib/unictype/scripts_byname.gperf: Regenerated.
54477 2011-02-19  Bruno Haible  <bruno@clisp.org>
54479         stdint: Update documentation.
54480         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54482 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54484         stdint: omit redundant check for wchar.h
54485         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54486         always tests whether wchar.h exists, so remove the now-redundant test.
54488 2011-02-18  Bruno Haible  <bruno@clisp.org>
54490         stdint: Cut dependency to module 'wchar'.
54491         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54492         include the necessary prerequisites.
54493         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54494         * modules/stdint (Depends-on): Remove wchar.
54495         (Makefile.am): Substitute HAVE_WCHAR_H.
54496         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54498 2011-02-18  Eric Blake  <eblake@redhat.com>
54500         longlong: skip, rather than fail, on cross-compilation
54501         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54502         when cross-compiling; regression from 2011-02-16.
54504 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54506         * NEWS: Mention 2011-02-08 change to stdlib.
54508 2011-02-17  Bruno Haible  <bruno@clisp.org>
54510         getloadavg: Add comments about platforms.
54511         * m4/getloadavg.m4: Add comment.
54512         * lib/getloadavg.c: Likewise.
54514 2011-02-17  Bruno Haible  <bruno@clisp.org>
54516         getloadavg: Fix link error on Solaris 2.6.
54517         * modules/getloadavg (Link): New section.
54518         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54519         linking test-getloadavg.
54520         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54521         getloadavg.
54523 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54525         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54526         It was 'int', but this doesn't match the IRIX 6.5 manual.
54527         Suggested by Bruno Haible in
54528         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54530 2011-02-17  Bruno Haible  <bruno@clisp.org>
54532         havelib: Fix comments.
54533         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54534         change.
54536 2011-02-17  Bruno Haible  <bruno@clisp.org>
54538         havelib: Update config.rpath.
54539         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54541 2011-02-17  Bruno Haible  <bruno@clisp.org>
54543         getloadavg test: Add some plausibility checks.
54544         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54545         is improbable.
54547 2011-02-16  Eric Blake  <eblake@redhat.com>
54549         maintainer-makefile: make syntax-check a no-op from tarballs
54550         * top/maint.mk (no-vc-detected): New rule.
54551         (local-checks-available): Use it to avoid hanging if someone tries
54552         'make syntax-check' from a tarball.  Also append to any non-syntax
54553         checks already defined in cfg.mk.
54555 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54557         longlong: tune, particularly for common case of c99
54559         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54560         or running anything if c99, or if unsigned long long int does not
54561         work.  In either case, we know the answer without further tests.
54562         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54563         it at most once, and use its results for both long long int and
54564         unsigned long long int.  This is more likely to be efficient in
54565         the common case where the program wants to check for both long
54566         long int and unsigned long long int.
54567         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54568         since the answer is already known.
54570 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54572         getloadavg: set errno
54573         * lib/getloadavg.c: Set errno when returning -1.  If no other
54574         error number looks appropriate, set it to ENOSYS if the getloadavg
54575         looks like it can't possibly ever work, ENOTSUP otherwise.
54576         Suggested by Bruno Haible in
54577         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54579         getloadavg: trim unused parts and speed up 'configure'
54580         * NEWS: Document this.
54581         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54582         always compiled if getloadavg is absent.
54583         Move test code to ...
54584         * tests/test-getloadavg.c: New file, containing previous
54585         contents of test from lib/getloadavg.c.  It also contains
54586         suggestions by Bruno Haible in
54587         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54588         * modules/getloadavg-tests: New file.
54589         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54590         Do tests in the same order as they're needed for getloadavg.c.
54591         Omit setgid-related tests that generate symbols KMEM_GROUP,
54592         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54593         Do only the tests that are needed to see whether the system has
54594         getloadavg, moving the other tests into ...
54595         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54596         NLIST_NAME_UNION; nobody should be using it.  Do not define
54597         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54598         relevant, as the user of this module shouldn't care how getloadavg
54599         is implemented.
54601         getloadavg: omit unused var
54602         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54604 2011-02-15  Jim Meyering  <meyering@redhat.com>
54606         doc: update users.txt
54607         * users.txt: Update iwhd's URL.
54609 2011-02-13  Bruno Haible  <bruno@clisp.org>
54611         Consistent macro naming for macros that use GCC __attribute__.
54612         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54613         _ATTRIBUTE_NONNULL_.
54614         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54615         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54616         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54617         ATTRIBUTE_DEPRECATED.
54618         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54619         ATTRIBUTE_NORETURN.
54620         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54621         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54622         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54623         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54624         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54625         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54626         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54627         ATTRIBUTE_SENTINEL.
54628         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54629         ATTRIBUTE_RETURN_CHECK.
54630         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54631         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54632         ATTRIBUTE_NORETURN.
54633         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54634         Reported by Paul Eggert.
54636 2011-02-13  Bruno Haible  <bruno@clisp.org>
54638         Don't interfere with a program's definition of __attribute__.
54639         * lib/argp.h (__attribute__): Remove definition.
54640         (_GL_ATTRIBUTE_FORMAT): New macro.
54641         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54642         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54643         (_GL_ATTRIBUTE_FORMAT): New macro.
54644         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54645         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54646         GCC 3 or newer.
54647         * lib/error.h (__attribute__): Remove definition.
54648         (_GL_ATTRIBUTE_FORMAT): New macro.
54649         (error, error_at_line): Use it.
54650         * lib/hash.h (__attribute__): Remove definition.
54651         (ATTRIBUTE_WUR): Update definition. Define always.
54652         * lib/openat.h (__attribute__): Remove definition.
54653         (ATTRIBUTE_NORETURN): Update definition. Define always.
54654         * lib/sigpipe-die.h (__attribute__): Remove definition.
54655         (ATTRIBUTE_NORETURN): Update definition. Define always.
54656         * lib/vasnprintf.h (__attribute__): Remove definition.
54657         (_GL_ATTRIBUTE_FORMAT): New macro.
54658         (asnprintf, vasnprintf): Use it.
54659         * lib/xalloc.h (__attribute__): Remove definition.
54660         (ATTRIBUTE_NORETURN): Update definition. Define always.
54661         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54662         * lib/xmemdup0.h (__attribute__): Remove definition.
54663         (ATTRIBUTE_NORETURN): Update definition. Define always.
54664         * lib/xprintf.h (__attribute__): Remove definition.
54665         (_GL_ATTRIBUTE_FORMAT): New macro.
54666         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54667         * lib/xstrtol.h (__attribute__): Remove definition.
54668         (ATTRIBUTE_NORETURN): Update definition. Define always.
54669         * lib/xvasprintf.h (__attribute__): Remove definition.
54670         (_GL_ATTRIBUTE_FORMAT): New macro.
54671         (xasprintf, xvasprintf): Use it.
54672         * tests/test-argmatch.c (__attribute__): Remove definition.
54673         (ATTRIBUTE_NORETURN): Update definition. Define always.
54674         * tests/test-exclude.c (__attribute__): Remove definition.
54675         (ATTRIBUTE_NORETURN): Update definition. Define always.
54676         Reported by Paul Eggert.
54678 2011-02-13  Bruno Haible  <bruno@clisp.org>
54680         mbrtowc: Add more tests for native Windows platforms.
54681         * tests/test-mbrtowc-w32-1.sh: New file.
54682         * tests/test-mbrtowc-w32-2.sh: New file.
54683         * tests/test-mbrtowc-w32-3.sh: New file.
54684         * tests/test-mbrtowc-w32-4.sh: New file.
54685         * tests/test-mbrtowc-w32-5.sh: New file.
54686         * tests/test-mbrtowc-w32.c: New file.
54687         * modules/mbrtowc-tests (Files): Add them.
54688         (Makefile.am): Arrange to run these tests.
54689         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54690         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54692 2011-02-13  Bruno Haible  <bruno@clisp.org>
54694         mbrtowc: Work around native Windows bug.
54695         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54696         guess when no suitable locale for testing was found.
54697         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54699 2011-02-13  Bruno Haible  <bruno@clisp.org>
54701         mbsinit: Work around mingw bug.
54702         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54703         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54704         Windows.
54705         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54707 2011-02-13  Bruno Haible  <bruno@clisp.org>
54709         mbsinit: Don't crash for a NULL argument.
54710         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54711         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54713 2011-02-13  Bruno Haible  <bruno@clisp.org>
54715         Don't interfere with a program's definition of __attribute__.
54716         * lib/stdio.in.h (__attribute__): Remove definition.
54717         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54718         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54719         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
54720         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
54721         * lib/string.in.h (__attribute__): Remove definition.
54722         Reported by Paul Eggert.
54724 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54726         stdlib: don't get in the way of non-GCC __attribute__
54727         See thread starting at
54728         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
54729         Revert previous stdlib change, installing the following instead:
54730         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
54731         to get in the way of a non-GCC compiler that supports __attribute__.
54732         (_GL_ATTRIBUTE_RETURN): New macro.
54733         (_Exit): Use it instead of __attribute__.
54735 2011-02-12  Bruno Haible  <bruno@clisp.org>
54737         quotearg test: Avoid test failure on mingw.
54738         * tests/test-quotearg.sh: Convert the locale identifier from native
54739         Windows syntax to Unix syntax.
54741 2011-02-12  Bruno Haible  <bruno@clisp.org>
54743         setlocale: Prefer gnulib's override over libintl's override.
54744         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
54745         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
54746         GNULIB_defined_setlocale is set.
54748 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54750         stdlib: support non-GCC __attribute__
54752         Fix a serious and tricky problem encountered when attempting to
54753         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
54754         5.5, but it crashed due to memory corruption on Solaris 10 with
54755         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
54756         bits that are otherwise zero.  This tagging is optional inside
54757         Emacs but is preferred and is used when __attribute__ ((__aligned
54758         (8))) works, as it does with both recent-enough GCC and with Sun C
54759         5.11.  However, Sun C 5.11 is not GCC and does not #define
54760         __GNUC__ and __GNUC_MINOR__.
54762         When I added the getloadavg module to Emacs, it brought in
54763         stdlib.in.h, which contained this fragment:
54765            #ifndef __attribute__
54766            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
54767            #  define __attribute__(Spec)   /* empty */
54768            # endif
54769            #endif
54771         When files that include <stdlib.h> were compiled with Sun C 5.11,
54772         the above code disabled __attribute__ ((__aligned (8))), which
54773         caused variables to not be properly aligned, which eventually led
54774         to the pointer corruption mentioned above.  (This was a bit hard
54775         to diagnose, unfortunately.)
54777         Several "#define __attribute__(X) /* empty */" code snippets need
54778         to be eradicated from Gnulib to work with non-GCC compilers that
54779         support __attribute__.  The Autoconf way to do this is to test for
54780         each kind of attribute that we want support for, and selectively
54781         enable that in source code.
54783         Fix this problem just for stdlib.h, by adding a test for the
54784         __noreturn__ attribute, and change stdlib.in.h to use that test
54785         when needed.  This technique can be easily generalized to the
54786         other *.in.h files and attributes, and a similar technique can be
54787         used for *.h and *.c files.  This patch is enough to solve the
54788         problem for Emacs + getloadavg, and I thought I'd publish it for
54789         feedback before undertaking further, similar fixes in other
54790         modules.
54792         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
54793         because it's not needed for stdlib.h.  It merely substitutes the
54794         value directly into stdlib.h.  We may well need to #define it, or
54795         similar symbols, for other modules, but it's nice to also have an
54796         option to not #define it for applications like Emacs that do not
54797         need it.
54799         * lib/stdlib.in.h (__attribute__): Do not #define.
54800         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
54801         be defined only if the _Exit module is also used.
54802         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
54803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
54804         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
54805         platforms.
54806         * modules/_Exit (Files): Add m4/attribute.m4.
54807         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
54808         * m4/attribute.m4: New file.
54810 2011-02-12  Bruno Haible  <bruno@clisp.org>
54812         wcsrtombs: Work around bug on native Windows.
54813         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
54814         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
54815         instead of len.
54816         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
54818 2011-02-12  Bruno Haible  <bruno@clisp.org>
54820         mbsrtowcs: Work around bug on native Windows.
54821         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
54822         against mingw bug.
54823         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
54825 2011-02-12  Bruno Haible  <bruno@clisp.org>
54827         Avoid setlocale bugs in tests.
54828         * modules/btowc (Dependencies): Add setlocale.
54829         * modules/c-strcase (Dependencies): Likewise.
54830         * modules/mbmemcasecmp (Dependencies): Likewise.
54831         * modules/mbmemcasecoll (Dependencies): Likewise.
54832         * modules/mbrtowc (Dependencies): Likewise.
54833         * modules/mbscasecmp (Dependencies): Likewise.
54834         * modules/mbscasestr (Dependencies): Likewise.
54835         * modules/mbschr (Dependencies): Likewise.
54836         * modules/mbscspn (Dependencies): Likewise.
54837         * modules/mbsinit (Dependencies): Likewise.
54838         * modules/mbsncasecmp (Dependencies): Likewise.
54839         * modules/mbsnrtowcs (Dependencies): Likewise.
54840         * modules/mbspbrk (Dependencies): Likewise.
54841         * modules/mbspcasecmp (Dependencies): Likewise.
54842         * modules/mbsrchr (Dependencies): Likewise.
54843         * modules/mbsrtowcs (Dependencies): Likewise.
54844         * modules/mbsspn (Dependencies): Likewise.
54845         * modules/mbsstr (Dependencies): Likewise.
54846         * modules/nl_langinfo (Dependencies): Likewise.
54847         * modules/quotearg (Dependencies): Likewise.
54848         * modules/unicase/locale-language (Dependencies): Likewise.
54849         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
54850         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
54851         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
54852         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
54853         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
54854         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
54855         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
54856         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
54857         * modules/vasnprintf-posix (Dependencies): Likewise.
54858         * modules/wcrtomb (Dependencies): Likewise.
54859         * modules/wcsnrtombs (Dependencies): Likewise.
54860         * modules/wcsrtombs (Dependencies): Likewise.
54862 2011-02-12  Bruno Haible  <bruno@clisp.org>
54864         setlocale: Workaround native Windows bug.
54865         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
54866         succeeds but sets LC_CTYPE to "C", report a failure.
54867         * tests/test-setlocale2.sh: New file.
54868         * tests/test-setlocale2.c: New file.
54869         * modules/setlocale-tests (Files): Add the new files.
54870         (Makefile.am): Enable test-setlocale2.sh test.
54871         * doc/posix-functions/setlocale.texi: Mention workaround.
54873 2011-02-11  Bruno Haible  <bruno@clisp.org>
54875         Tests for module 'setlocale'.
54876         * modules/setlocale-tests: New file.
54877         * tests/test-setlocale1.sh: New file.
54878         * tests/test-setlocale1.c: New file.
54880         New module 'setlocale'.
54881         * lib/locale.in.h (setlocale): New declaration.
54882         * lib/setlocale.c: New file, based on
54883         gettext/gettext-runtime/intl/setlocale.c.
54884         * m4/setlocale.m4: New file.
54885         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
54886         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
54887         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
54888         REPLACE_SETLOCALE.
54889         * modules/setlocale: New file.
54890         * tests/test-locale-c++.cc: Test the declaration of setlocale.
54891         * doc/posix-functions/setlocale.texi: Mention the new module.
54893 2011-02-11  Bruno Haible  <bruno@clisp.org>
54895         Prepare for locale dependent tests on mingw.
54896         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
54897         because it has the wrong locale encoding.
54898         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
54899         French_France.1252 instead of "fr".
54900         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
54901         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
54902         because it has the wrong locale encoding.
54903         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
54904         native Windows, try Turkish_Turkey.65001.
54905         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
54906         Chinese_China.54936.
54908         Prepare for locale dependent tests on mingw.
54909         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
54910         differently.
54911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
54912         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
54913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54914         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54916 2011-02-11  Eric Blake  <eblake@redhat.com>
54918         strptime: avoid compiler warnings
54919         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
54920         compiler warnings about dead code.
54921         Reported by Daniel P. Berrange.
54923 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
54925         doc: update users.txt
54926         * users.txt: Add rcs.
54928 2011-02-10  John W. Eaton  <jwe@gnu.org>
54930         doc: update users.txt
54931         * users.txt: Add octave.
54933 2011-02-10  Jim Meyering  <meyering@redhat.com>
54935         doc: update users.txt
54936         * users.txt: Add iwhd.
54938 2011-02-09  Bruno Haible  <bruno@clisp.org>
54940         gnulib-tool: Make copyright notice adjustment more robust.
54941         * gnulib-tool (func_import): In sed_transform_main_lib_file,
54942         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
54943         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
54944         License".
54945         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
54947 2011-02-06  Bruno Haible  <bruno@clisp.org>
54949         New module 'towctrans'.
54950         * modules/towctrans: New file.
54951         * lib/wctype.in.h (towctrans): New declaration.
54952         * lib/towctrans.c: New file.
54953         * lib/towctrans-impl.h: New file.
54954         * m4/towctrans.m4: New file.
54955         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
54956         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
54957         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
54958         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
54959         * doc/posix-functions/towctrans.texi: Mention the new module.
54961 2011-02-06  Bruno Haible  <bruno@clisp.org>
54963         New module 'wctrans'.
54964         * modules/wctrans: New file.
54965         * lib/wctype.in.h (wctrans): New declaration.
54966         * lib/wctrans.c: New file.
54967         * lib/wctrans-impl.h: New file.
54968         * m4/wctrans.m4: New file.
54969         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
54970         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
54971         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
54972         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
54973         * doc/posix-functions/wctrans.texi: Mention the new module.
54975 2011-02-06  Bruno Haible  <bruno@clisp.org>
54977         New module 'iswctype'.
54978         * modules/iswctype: New file.
54979         * lib/wctype.in.h (iswctype): New declaration.
54980         * lib/iswctype.c: New file.
54981         * lib/iswctype-impl.h: New file.
54982         * m4/iswctype.m4: New file.
54983         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
54984         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
54985         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
54986         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
54987         * doc/posix-functions/iswctype.texi: Mention the new module and the
54988         HP-UX 11.00 problem.
54990 2011-02-06  Bruno Haible  <bruno@clisp.org>
54992         New module 'wctype'.
54993         * modules/wctype: Change to represent the wctype() substitute.
54994         * lib/wctype.in.h (wctype): New declaration.
54995         * lib/wctype.c: New file.
54996         * lib/wctype-impl.h: New file.
54997         * m4/wctype.m4: New file.
54998         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
54999         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55000         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55001         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55002         * doc/posix-functions/wctype.texi: Mention the new module and the
55003         HP-UX 11.00 problem.
55005 2011-02-06  Bruno Haible  <bruno@clisp.org>
55007         wctype-h: Ensure wctype_t and wctrans_t are defined.
55008         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55009         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55010         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55011         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55012         HAVE_WCTRANS_T.
55013         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55015 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55017         flock: fix license typo
55019         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55020         omitted.
55022 2011-02-08  Bruno Haible  <bruno@clisp.org>
55024         Split large sed scripts, for HP-UX sed.
55025         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55026         to avoid HP-UX limit of 99 commands, in the near future.
55027         * modules/stdlib (Makefile.am): Likewise.
55028         * modules/unistd (Makefile.am): Likewise.
55029         * modules/wchar (Makefile.am): Likewise.
55030         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55031         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55032         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55034 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55035             Bruno Haible  <bruno@clisp.org>
55037         stdlib: improve random_r modularization
55038         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55039         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55040         you also need the random_r module to get this material right.
55041         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55042         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55043         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55045 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55047         stdlib: don't depend on stdint
55048         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55049         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55050         be independent of whether stdint.h is needed.
55051         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55052         here, instead of ...
55053         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55054         struct random_data should be using the random_r module, not just
55055         the stdlib module (which wouldn't make sense: what package needs
55056         just struct random_data without also needing random_r?).
55057         * modules/stdlib (Depends-on): Remove stdint.
55059         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55060         See the thread rooted at
55061         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55062         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55063         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55064         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55065         __VMS)); previously it was always included (via fcntl--.h).
55066         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55067         hand; this is good enough for load averages.  Also, do not use
55068         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55069         flags directly if available and don't bother otherwise.  (Packages
55070         that need the extra reliability should use the modules that define
55071         these flags on older platforms that lack them.)
55072         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55073         fcntl-safer.
55075 2011-02-08  Jim Meyering  <meyering@redhat.com>
55077         di-set.h, ino-map.h: add multiple-inclusion guard
55078         Technically, the guard is required only for ino-map.h, due to its
55079         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55080         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55081         * lib/ino-map.h: Likewise.
55083 2011-02-06  Bruno Haible  <bruno@clisp.org>
55085         iswblank: Ensure declaration on glibc systems.
55086         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55087         * modules/iswblank (Dependencies): Add 'extensions'.
55088         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55090 2011-02-06  Bruno Haible  <bruno@clisp.org>
55092         New module 'iswblank'.
55093         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55094         * modules/iswblank: New file.
55095         * modules/wctype-h (Files): Remove lib/iswblank.c.
55096         (Makefile.am): Substitute GNULIB_ISWBLANK.
55097         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55098         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55099         (gl_WCTYPE_H_DEFAULTS): New macro.
55100         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55101         * modules/iswblank-tests: New file.
55102         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55103         * tests/test-wctype-h.c (main): Remove iswblank tests.
55104         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55105         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55106         of 'wctype-h'.
55107         * NEWS: Mention the change.
55108         * modules/mbchar (Depends-on): Add iswblank.
55110 2011-02-08  Bruno Haible  <bruno@clisp.org>
55112         di-set tests: Refactor.
55113         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55114         unnecessary includes.
55115         (ASSERT): Remove macro.
55116         (main): Make C90 compliant by avoiding variable declaration after
55117         statement.
55118         * modules/di-set-tests (Files): Add tests/macros.h.
55120 2011-02-08  Bruno Haible  <bruno@clisp.org>
55122         ino-map tests: Refactor.
55123         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55124         unnecessary includes.
55125         (ASSERT): Remove macro.
55126         (main): Make C90 compliant by avoiding variable declaration after
55127         statement.
55128         * modules/ino-map-tests (Files): Add tests/macros.h.
55130 2011-02-08  Jim Meyering  <meyering@redhat.com>
55132         di-set: add "const" to a cast
55133         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55134         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55136 2011-02-06  Bruno Haible  <bruno@clisp.org>
55138         Rename module 'wctype' to 'wctype-h'.
55139         * modules/wctype-h: Renamed from modules/wctype.
55140         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55141         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55142         (Files, Depends-on, Makefile.am): Update.
55143         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55144         (Files, Makefile.am): Update.
55145         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55146         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55147         * doc/posix-headers/wctype.texi: Update.
55148         * doc/posix-functions/iswalnum.texi: Update.
55149         * doc/posix-functions/iswalpha.texi: Update.
55150         * doc/posix-functions/iswblank.texi: Update.
55151         * doc/posix-functions/iswcntrl.texi: Update.
55152         * doc/posix-functions/iswdigit.texi: Update.
55153         * doc/posix-functions/iswgraph.texi: Update.
55154         * doc/posix-functions/iswlower.texi: Update.
55155         * doc/posix-functions/iswprint.texi: Update.
55156         * doc/posix-functions/iswpunct.texi: Update.
55157         * doc/posix-functions/iswspace.texi: Update.
55158         * doc/posix-functions/iswupper.texi: Update.
55159         * doc/posix-functions/iswxdigit.texi: Update.
55160         * doc/posix-functions/towlower.texi: Update.
55161         * doc/posix-functions/towupper.texi: Update.
55162         * NEWS: Mention the change.
55163         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55164         * modules/mbchar (Dependencies): Likewise.
55165         * modules/mbswidth (Dependencies): Likewise.
55166         * modules/quotearg (Dependencies): Likewise.
55167         * modules/regex (Dependencies): Likewise.
55168         * modules/wcscasecmp (Dependencies): Likewise.
55169         * modules/wcsncasecmp (Dependencies): Likewise.
55170         * modules/wcwidth (Dependencies): Likewise.
55172 2011-02-06  Bruno Haible  <bruno@clisp.org>
55174         New module 'wcswidth'.
55175         * modules/wcswidth: New file.
55176         * lib/wchar.in.h (wcswidth): New declaration.
55177         * lib/wcswidth.c: New file.
55178         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55179         * m4/wcswidth.m4: New file.
55180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55182         REPLACE_WCSWIDTH.
55183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55184         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55185         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55186         * doc/posix-functions/wcswidth.texi: Mention the new module.
55188 2011-02-06  Bruno Haible  <bruno@clisp.org>
55190         New module 'wcstok'.
55191         * modules/wcstok: New file.
55192         * lib/wchar.in.h (wcstok): New declaration.
55193         * lib/wcstok.c: New file.
55194         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55195         * m4/wcstok.m4: New file.
55196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55199         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55200         * doc/posix-functions/wcstok.texi: Mention the new module.
55202 2011-02-06  Bruno Haible  <bruno@clisp.org>
55204         New module 'wcsstr'.
55205         * modules/wcsstr: New file.
55206         * lib/wchar.in.h (wcsstr): New declaration.
55207         * lib/wcsstr.c: New file.
55208         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55209         * m4/wcsstr.m4: New file.
55210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55213         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55214         * doc/posix-functions/wcsstr.texi: Mention the new module.
55216 2011-02-06  Bruno Haible  <bruno@clisp.org>
55218         New module 'wcspbrk'.
55219         * modules/wcspbrk: New file.
55220         * lib/wchar.in.h (wcspbrk): New declaration.
55221         * lib/wcspbrk.c: New file.
55222         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55223         * m4/wcspbrk.m4: New file.
55224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55227         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55228         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55230 2011-02-06  Bruno Haible  <bruno@clisp.org>
55232         New module 'wcsspn'.
55233         * modules/wcsspn: New file.
55234         * lib/wchar.in.h (wcsspn): New declaration.
55235         * lib/wcsspn.c: New file.
55236         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55237         * m4/wcsspn.m4: New file.
55238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55241         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55242         * doc/posix-functions/wcsspn.texi: Mention the new module.
55244 2011-02-06  Bruno Haible  <bruno@clisp.org>
55246         New module 'wcscspn'.
55247         * modules/wcscspn: New file.
55248         * lib/wchar.in.h (wcscspn): New declaration.
55249         * lib/wcscspn.c: New file.
55250         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55251         * m4/wcscspn.m4: New file.
55252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55255         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55256         * doc/posix-functions/wcscspn.texi: Mention the new module.
55258 2011-02-06  Bruno Haible  <bruno@clisp.org>
55260         New module 'wcsrchr'.
55261         * modules/wcsrchr: New file.
55262         * lib/wchar.in.h (wcsrchr): New declaration.
55263         * lib/wcsrchr.c: New file.
55264         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55265         * m4/wcsrchr.m4: New file.
55266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55268         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55269         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55270         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55272 2011-02-06  Bruno Haible  <bruno@clisp.org>
55274         New module 'wcschr'.
55275         * modules/wcschr: New file.
55276         * lib/wchar.in.h (wcschr): New declaration.
55277         * lib/wcschr.c: New file.
55278         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55279         * m4/wcschr.m4: New file.
55280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55283         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55284         * doc/posix-functions/wcschr.texi: Mention the new module.
55286 2011-02-06  Bruno Haible  <bruno@clisp.org>
55288         New module 'wcsdup'.
55289         * modules/wcsdup: New file.
55290         * lib/wchar.in.h (wcsdup): New declaration.
55291         * lib/wcsdup.c: New file.
55292         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55293         * m4/wcsdup.m4: New file.
55294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55297         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55298         * doc/posix-functions/wcsdup.texi: Mention the new module.
55300 2011-02-06  Bruno Haible  <bruno@clisp.org>
55302         New module 'wcsxfrm'.
55303         * modules/wcsxfrm: New file.
55304         * lib/wchar.in.h (wcsxfrm): New declaration.
55305         * lib/wcsxfrm.c: New file.
55306         * lib/wcsxfrm-impl.h: New file.
55307         * m4/wcsxfrm.m4: New file.
55308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55311         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55312         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55314 2011-02-06  Bruno Haible  <bruno@clisp.org>
55316         New module 'wcscoll'.
55317         * modules/wcscoll: New file.
55318         * lib/wchar.in.h (wcscoll): New declaration.
55319         * lib/wcscoll.c: New file.
55320         * lib/wcscoll-impl.h: New file.
55321         * m4/wcscoll.m4: New file.
55322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55325         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55326         * doc/posix-functions/wcscoll.texi: Mention the new module.
55328 2011-02-06  Bruno Haible  <bruno@clisp.org>
55330         New module 'wcsncasecmp'.
55331         * modules/wcsncasecmp: New file.
55332         * lib/wchar.in.h (wcsncasecmp): New declaration.
55333         * lib/wcsncasecmp.c: New file.
55334         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55335         * m4/wcsncasecmp.m4: New file.
55336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55339         HAVE_WCSNCASECMP.
55340         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55341         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55343 2011-02-06  Bruno Haible  <bruno@clisp.org>
55345         New module 'wcscasecmp'.
55346         * modules/wcscasecmp: New file.
55347         * lib/wchar.in.h (wcscasecmp): New declaration.
55348         * lib/wcscasecmp.c: New file.
55349         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55350         * m4/wcscasecmp.m4: New file.
55351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55354         HAVE_WCSCASECMP.
55355         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55356         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55358 2011-02-05  Bruno Haible  <bruno@clisp.org>
55360         New module 'wcsncmp'.
55361         * modules/wcsncmp: New file.
55362         * lib/wchar.in.h (wcsncmp): New declaration.
55363         * lib/wcsncmp.c: New file.
55364         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55365         * m4/wcsncmp.m4: New file.
55366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55369         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55370         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55372 2011-02-05  Bruno Haible  <bruno@clisp.org>
55374         New module 'wcscmp'.
55375         * modules/wcscmp: New file.
55376         * lib/wchar.in.h (wcscmp): New declaration.
55377         * lib/wcscmp.c: New file.
55378         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55379         * m4/wcscmp.m4: New file.
55380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55383         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55384         * doc/posix-functions/wcscmp.texi: Mention the new module.
55386 2011-02-05  Bruno Haible  <bruno@clisp.org>
55388         New module 'wcsncat'.
55389         * modules/wcsncat: New file.
55390         * lib/wchar.in.h (wcsncat): New declaration.
55391         * lib/wcsncat.c: New file.
55392         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55393         * m4/wcsncat.m4: New file.
55394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55397         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55398         * doc/posix-functions/wcsncat.texi: Mention the new module.
55400 2011-02-05  Bruno Haible  <bruno@clisp.org>
55402         New module 'wcscat'.
55403         * modules/wcscat: New file.
55404         * lib/wchar.in.h (wcscat): New declaration.
55405         * lib/wcscat.c: New file.
55406         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55407         * m4/wcscat.m4: New file.
55408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55411         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55412         * doc/posix-functions/wcscat.texi: Mention the new module.
55414 2011-02-05  Bruno Haible  <bruno@clisp.org>
55416         New module 'wcpncpy'.
55417         * modules/wcpncpy: New file.
55418         * lib/wchar.in.h (wcpncpy): New declaration.
55419         * lib/wcpncpy.c: New file.
55420         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55421         * m4/wcpncpy.m4: New file.
55422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55424         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55425         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55426         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55428 2011-02-05  Bruno Haible  <bruno@clisp.org>
55430         New module 'wcsncpy'.
55431         * modules/wcsncpy: New file.
55432         * lib/wchar.in.h (wcsncpy): New declaration.
55433         * lib/wcsncpy.c: New file.
55434         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55435         * m4/wcsncpy.m4: New file.
55436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55439         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55440         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55442 2011-02-05  Bruno Haible  <bruno@clisp.org>
55444         New module 'wcpcpy'.
55445         * modules/wcpcpy: New file.
55446         * lib/wchar.in.h (wcpcpy): New declaration.
55447         * lib/wcpcpy.c: New file.
55448         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55449         * m4/wcpcpy.m4: New file.
55450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55452         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55453         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55454         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55456 2011-02-05  Bruno Haible  <bruno@clisp.org>
55458         New module 'wcscpy'.
55459         * modules/wcscpy: New file.
55460         * lib/wchar.in.h (wcscpy): New declaration.
55461         * lib/wcscpy.c: New file.
55462         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55463         * m4/wcscpy.m4: New file.
55464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55467         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55468         * doc/posix-functions/wcscpy.texi: Mention the new module.
55470 2011-02-05  Bruno Haible  <bruno@clisp.org>
55472         New module 'wcsnlen'.
55473         * modules/wcsnlen: New file.
55474         * lib/wchar.in.h (wcsnlen): New declaration.
55475         * lib/wcsnlen.c: New file.
55476         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55477         * m4/wcsnlen.m4: New file.
55478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55481         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55482         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55484 2011-02-05  Bruno Haible  <bruno@clisp.org>
55486         New module 'wcslen'.
55487         * modules/wcslen: New file.
55488         * lib/wchar.in.h (wcslen): New declaration.
55489         * lib/wcslen.c: New file.
55490         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55491         * m4/wcslen.m4: New file.
55492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55495         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55496         * doc/posix-functions/wcslen.texi: Mention the new module.
55498 2011-02-05  Bruno Haible  <bruno@clisp.org>
55500         New module 'wmemset'.
55501         * modules/wmemset: New file.
55502         * lib/wchar.in.h (wmemset): New declaration.
55503         * lib/wmemset.c: New file.
55504         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55505         * m4/wmemset.m4: New file.
55506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55508         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55509         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55510         * doc/posix-functions/wmemset.texi: Mention the new module.
55512 2011-02-05  Bruno Haible  <bruno@clisp.org>
55514         New module 'wmemmove'.
55515         * modules/wmemmove: New file.
55516         * lib/wchar.in.h (wmemmove): New declaration.
55517         * lib/wmemmove.c: New file.
55518         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55519         * m4/wmemmove.m4: New file.
55520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55522         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55523         HAVE_WMEMMOVE.
55524         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55525         * doc/posix-functions/wmemmove.texi: Mention the new module.
55527 2011-02-05  Bruno Haible  <bruno@clisp.org>
55529         New module 'wmemcpy'.
55530         * modules/wmemcpy: New file.
55531         * lib/wchar.in.h (wmemcpy): New declaration.
55532         * lib/wmemcpy.c: New file.
55533         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55534         * m4/wmemcpy.m4: New file.
55535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55537         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55538         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55539         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55541 2011-02-05  Bruno Haible  <bruno@clisp.org>
55543         New module 'wmemcmp'.
55544         * modules/wmemcmp: New file.
55545         * lib/wchar.in.h (wmemcmp): New declaration.
55546         * lib/wmemcmp.c: New file.
55547         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55548         * m4/wmemcmp.m4: New file.
55549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55551         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55552         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55553         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55555 2011-02-07  Jim Meyering  <meyering@redhat.com>
55557         di-set, ino-map: new modules, from coreutils
55558         * lib/di-set.c: New file.
55559         * lib/di-set.h: Likewise.
55560         * lib/ino-map.c: Likewise.
55561         * lib/ino-map.h: Likewise.
55562         * modules/di-set: Likewise.
55563         * modules/di-set-tests: Likewise.
55564         * modules/ino-map: Likewise.
55565         * modules/ino-map-tests: Likewise.
55566         * tests/test-di-set.c: Likewise.
55567         * tests/test-ino-map.c: Likewise.
55569 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55571         getloadavg: merge minor changes from Emacs
55573         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55574         (getloadavg): Use memset, not bzero.
55576         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55577         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55578         clash (bug#86).
55580 2010-11-14  Bruno Haible  <bruno@clisp.org>
55582         Allow multiple gnulib generated replacements to coexist.
55583         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55584         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55585         * lib/langinfo.in.h (nl_item): Likewise.
55586         * lib/math.in.h (_NaN, NAN): Likewise.
55587         * lib/netdb.in.h (struct addrinfo): Likewise.
55588         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55589         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55590         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55591         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55592         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55593         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55594         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55595         pthread_mutexattr_init, pthread_mutexattr_settype,
55596         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55597         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55598         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55599         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55600         * lib/sched.in.h (struct sched_param): Likewise.
55601         * lib/se-selinux.in.h (security_class_t, security_context_t,
55602         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55603         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55604         lsetfilecon, fsetfilecon, security_check_context,
55605         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55606         Likewise.
55607         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55608         Likewise.
55609         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55610         _gl_function_taking_int_returning_void_t, union sigval,
55611         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55612         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55613         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55614         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55615         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55616         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55617         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55618         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55619         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55620         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55621         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55622         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55623         socklen_t, rpl_fd_isset): Likewise.
55624         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55625         * lib/sys_time.in.h (struct timeval): Likewise.
55626         * lib/sys_times.in.h (struct tms): Likewise.
55627         * lib/sys_utsname.in.h (struct utsname):
55628         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55629         * lib/unistd.in.h (getpagesize): Likewise.
55630         * lib/wchar.in.h (mbstate_t): Likewise.
55631         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55632         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55633         towlower, towupper): Likewise.
55634         Reported by Sam Steingold <sds@gnu.org>.
55636 2011-02-05  Eric Blake  <eblake@redhat.com>
55638         unsetenv: work around Haiku issues
55639         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55640         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55642 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55644         libposix: avoid calling error() within libposix
55645         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55646         is defined.
55648 2011-02-05  Eric Blake  <eblake@redhat.com>
55650         strerror_r-posix: port to cygwin
55651         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55652         implementation.
55653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55654         * tests/test-strerror_r.c (main): Fix test.
55655         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55656         issue.
55658 2011-02-05  Bruno Haible  <bruno@clisp.org>
55660         New module 'wmemchr'.
55661         * modules/wmemchr: New file.
55662         * lib/wchar.in.h (wmemchr): New declaration.
55663         * lib/wmemchr.c: New file.
55664         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55665         * m4/wmemchr.m4: New file.
55666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55668         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55669         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55670         * doc/posix-functions/wmemchr.texi: Mention the new module.
55672 2011-02-04  Eric Blake  <eblake@redhat.com>
55674         fdopendir: detect FreeBSD bug
55675         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55676         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55678 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55680         stdbool: do not define HAVE_STDBOOL_H
55681         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55682         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55683         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55684         imported from the latest Autoconf git.  It was motivated by Emacs,
55685         which uses gnulib but does not need HAVE_STDBOOL_H.
55687 2011-02-04  Bruno Haible  <bruno@clisp.org>
55689         wcsnrtombs: Prepare for new module wwcsnrtombs.
55690         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55691         * lib/wcsnrtombs.c: Include it.
55692         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55694         wcsrtombs: Prepare for new module wwcsrtombs.
55695         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55696         * lib/wcsrtombs.c: Include it.
55697         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55699         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55700         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55701         * lib/mbsnrtowcs.c: Include it.
55702         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55704         mbsrtowcs: Prepare for new module mbsrtowwcs.
55705         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55706         * lib/mbsrtowcs.c: Include it.
55707         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55709 2011-02-04  Bruno Haible  <bruno@clisp.org>
55711         vasnprintf: Reduce use of malloc for small format strings.
55712         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55713         (arguments): Add room for the first 7 arguments.
55714         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55715         (char_directives, u8_directives, u16_directives, u32_directives): Add
55716         room for the first 7 directives.
55717         * lib/printf-parse.c: Include <string.h>.
55718         (PRINTF_PARSE): Change memory handling code so that it uses the first
55719         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
55720         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
55721         Reported by Pádraig Brady <P@draigbrady.com>.
55723 2011-01-31  Eric Blake  <eblake@redhat.com>
55725         dup2: work around Haiku bug
55726         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
55727         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
55728         * doc/posix-functions/dup2.texi (dup2): Document the bug.
55729         * tests/test-dup2.c (main): Enhance test.
55731 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55733         doc: off_t is not available in eglibc 2.11.2 stdio.h.
55734         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
55735         declared by eglibc 2.11.2.
55736         * lib/stdio.in.h: Likewise.
55738 2011-01-31  Eric Blake  <eblake@redhat.com>
55740         ignore-value: add missing test dependency
55741         * tests/test-ignore-value.c: Revert previous change; stdio.h
55742         provides off_t.
55743         * modules/ignore-value-tests (Depends-on): Add missing dependency.
55745 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
55747         mktime: clarify long_int width checking
55748         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
55749         the top level, to make it clearer that the assumption about
55750         long_int width is being checked.  See
55751         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
55753 2011-01-30  Simon Josefsson  <simon@josefsson.org>
55755         ignore-value: Fix self-test.
55756         * tests/test-ignore-value.c: Include sys/types.h for off_t.
55758 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55760         TYPE_MAXIMUM: avoid theoretically undefined behavior
55761         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
55762         negative number, which the C Standard says has undefined behavior.
55763         In practice this is not a problem, but might as well do it by the book.
55764         Reported by Rich Felker and Eric Blake; see
55765         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
55766         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
55767         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55769         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
55770         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55771         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
55773         mktime: #undef mktime before #defining it
55774         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
55776         mktime: systematically normalize tm_isdst comparisons
55777         * lib/mktime.c (isdst_differ): New function.
55778         (__mktime_internal): Use it systematically for all isdst comparisons.
55779         This completes the fix for libc BZ #6723, and removes the need for
55780         normalizing tm_isdst.  See
55781         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
55782         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
55784         mktime: fix some integer overflow issues and sidestep the rest
55786         This was prompted by a bug report by Benjamin Lindner for MinGW
55787         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
55788         His bug is due to signed integer overflow (0 - INT_MIN), and I
55789         I scanned through mktime.c looking for other integer overflow
55790         problems, fixing all the bugs I found.
55792         Although the C Standard says the resulting code is still not safe
55793         in the presence of integer overflow, in practice it should be good
55794         enough for all real-world two's-complement implementations, except
55795         for debugging environments that deliberately trap on integer
55796         overflow (e.g., gcc -ftrapv).
55798         * lib/mktime.c (WRAPV): New macro.
55799         (SHR): Also check that long_int and time_t shift right in the
55800         usual way, before using the fast-but-unportable method.
55801         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
55802         used.  The code already assumed two's complement, so there's
55803         no need to test for alternatives.  All uses removed.
55804         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
55805         the C standard.  Problem reported by Rich Felker in
55806         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
55807         (twos_complement_arithmetic): Also check long_int and time_t.
55808         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
55809         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
55810         (__mktime_internal): Avoid integer overflow with unary subtraction
55811         in two instances where -1 - X is an adequate replacement for -X,
55812         since the calculations are approximate.
55814 2011-01-29  Eric Blake  <eblake@redhat.com>
55816         mktime: avoid infinite loop
55817         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
55818         type; behavior is still undefined but portable to all known targets.
55819         Reported by Rich Felker.
55821 2011-01-29  Simon Josefsson  <simon@josefsson.org>
55823         rename, unlink, same-inode: Relicense.
55824         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
55825         * modules/unlink (License): Likewise.
55826         * modules/same-inode (License): Likewise.
55828 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55830         mktime: avoid problems on NetBSD 5 / i386
55831         * lib/mktime.c (long_int): New type.  This works around a problem
55832         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
55833         but time_t is 64 bits, and where I expect the existing code is
55834         wrong in some cases.
55835         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
55836         (ydhms_diff): Bring back the compile-time check for wide-enough
55837         year and yday.
55839         mktime: fix misspelling in comment
55840         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
55841         This merges all recent glibc changes of importance.
55843 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55845         move-if-change: cope with concurrent mv of identical file.
55846         * build-aux/move-if-change (CMPPROG): Accept environment
55847         variable as an override for `cmp'.
55848         (usage): Document CMPPROG.
55849         Adjust comparison to drop stdout.  Cope with failure of mv if
55850         the target file exists and is identical to the source, for
55851         parallel builds.
55852         Report from H.J. Lu against binutils in PR binutils/12283.
55854 2011-01-28  Bruce Korb  <bkorb@gnu.org>
55856         * users.txt: Mention sharutils.
55858 2011-01-28  Simon Josefsson  <simon@josefsson.org>
55860         * users.txt: Mention OATH Toolkit.
55862 2011-01-27  Bruno Haible  <bruno@clisp.org>
55864         Prepare for supporting FreeBSD 10.
55865         * build-aux/config.libpath: Remove handling of freebsd1*.
55867 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
55869         Prepare for supporting FreeBSD 10.
55870         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
55871         match FreeBSD 10.0.
55873 2011-01-27  Bruno Haible  <bruno@clisp.org>
55875         vma-iter, get-rusage-as: Add OpenBSD support.
55876         * modules/vma-iter (configure.ac): Test for mquery.
55877         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
55878         * lib/vma-iter.c: Include <sys/mman.h>.
55879         (vma_iterate): Add an implementation based on mquery().
55880         * lib/resource-ext.h (get_rusage_as): Update comments.
55881         * lib/get-rusage-as.c: Likewise.
55882         * lib/get-rusage-data.c: Likewise.
55884 2011-01-26  Karl Berry  <karl@gnu.org>
55886         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
55887         variables to make it easier to override the makeinfo program used.
55889 2011-01-26  Eric Blake  <eblake@redhat.com>
55891         fcntl: work around Haiku F_DUPFD bugs
55892         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
55893         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
55894         cloexec bit on duplication.
55895         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
55897 2011-01-26  Bruno Haible  <bruno@clisp.org>
55899         Enable memory leak tests on AIX.
55900         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
55901         * tests/test-fprintf-posix3.c (main): Likewise.
55903 2011-01-26  Bruno Haible  <bruno@clisp.org>
55905         Tests for module 'get-rusage-data'.
55906         * modules/get-rusage-data-tests: New file.
55907         * tests/test-get-rusage-data.c: New file.
55909         New module 'get-rusage-data'.
55910         * lib/resource-ext.h (get_rusage_data): New declaration.
55911         * lib/get-rusage-data.c: New file.
55912         * modules/get-rusage-data: New file.
55914 2011-01-25  Bruno Haible  <bruno@clisp.org>
55916         get-rusage-as: Allow for easier testing.
55917         * lib/resource-ext.h (get_rusage_as): Add comment.
55918         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
55919         (main): New function for interactive testing.
55921 2011-01-25  Bruno Haible  <bruno@clisp.org>
55923         vma-iter: Treat Haiku like BeOS.
55924         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
55925         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
55927 2011-01-25  Eric Blake  <eblake@redhat.com>
55929         c-stack: fix regression on cygwin when libsigsegv is present
55930         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
55932 2011-01-24  Bruno Haible  <bruno@clisp.org>
55934         vma-iter: Avoid empty intervals.
55935         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
55936         on an empty interval.
55938 2011-01-24  Jim Meyering  <meyering@redhat.com>
55940         u64: remove unnecessary #include
55941         * lib/u64.h: Don't include <stddef.h>.  It was not used.
55943 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55945         Allow the user to avoid the HAVE_RAW_DECL_* macros.
55946         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
55948 2011-01-23  Bruno Haible  <bruno@clisp.org>
55950         New module 'vma-iter'.
55951         * lib/vma-iter.h: New file.
55952         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
55953         * modules/vma-iter: New file.
55954         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
55955         for get_rusage_as_via_iterator.
55956         (vma_iterate_callback): New function.
55957         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
55958         * modules/get-rusage-as (Depends-on): Add vma-iter.
55960 2011-01-23  Bruno Haible  <bruno@clisp.org>
55962         uninorm: Tweak includes.
55963         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
55964         Reported by Jim Meyering.
55966 2011-01-23  Bruno Haible  <bruno@clisp.org>
55968         get-rusage-as: Improve on NetBSD.
55969         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
55970         /proc, like on FreeBSD.
55972 2011-01-23  Jim Meyering  <meyering@redhat.com>
55974         xreadlink.h: remove unnecessary #include
55975         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
55977         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
55978         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
55980 2011-01-23  Bruno Haible  <bruno@clisp.org>
55982         get-rusage-as: Fix bug.
55983         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
55984         original limit when aborting the first loop.
55986 2011-01-23  Bruno Haible  <bruno@clisp.org>
55988         wctype: Ensure valid C syntax.
55989         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
55990         unconditionally, instead of gl_NEXT_HEADERS conditionally.
55992 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
55994         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
55995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
55996         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
55997         as they are needed only for configure's test case.
55998         This removes two unnecessary symbols from config.h.
56000         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56001         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56003         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56004         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56005         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56006         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56007         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56008         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56009         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56010         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56011         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56012         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56013         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56014         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56015         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56016         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56017         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56019 2011-01-21  Eric Blake  <eblake@redhat.com>
56021         maintainer-makefile: work with older git for submodule check
56022         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56023         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56024         Reported by Matthias Bolte.
56026         bootstrap: minor portability fixes
56027         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56028         (usage): Omit leading capital and trailing . on help phrases, per
56029         GNU Coding Standards.
56030         (check_versions, top level): Prefix messages with script name.
56032 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56034         bootstrap: support --no-git option
56035         * build-aux/bootstrap: Add --no-git option, to be used when
56036         --gnulib-srcdir points to the exact desired checkout.
56038 2011-01-21  Eric Blake  <eblake@redhat.com>
56040         strerror_r-posix: work with glibc 2.13
56041         * lib/strerror_r.c (strerror_r): Fix return type.
56043 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56044             Bruno Haible  <bruno@clisp.org>
56046         uN_strstr: New unit tests.
56047         * modules/unistr/u8-strstr-tests: New file.
56048         * modules/unistr/u16-strstr-tests: New file.
56049         * modules/unistr/u32-strstr-tests: New file.
56050         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56051         * tests/unistr/test-u8-strstr.c: New file.
56052         * tests/unistr/test-u16-strstr.c: New file.
56053         * tests/unistr/test-u32-strstr.c: New file.
56055 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56056             Bruno Haible  <bruno@clisp.org>
56058         Make uN_strstr functions O(n) worst-case.
56059         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56060         16-bit and 32-bit unit cases, use the unibyte algorithm from
56061         lib/mbsstr.c.
56062         * lib/unistr/u8-strstr.c: Include <string.h>.
56063         (UNIT_IS_UINT8_T): New macro.
56064         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56065         (U_STRLEN, U_STRNLEN): New macros.
56066         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56067         (U_STRLEN, U_STRNLEN): New macros.
56068         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56069         (configure.ac): Update required libunistring version.
56070         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56071         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56072         malloca.
56073         (configure.ac): Update required libunistring version.
56074         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56075         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56076         malloca.
56077         (configure.ac): Update required libunistring version.
56079 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56080             Bruno Haible  <bruno@clisp.org>
56082         Prepare for faster uN_strstr functions.
56083         * lib/str-kmp.h: Support definable UNITs.
56084         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56085         needle_len argument.
56086         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56087         * lib/mbscasestr.c (mbscasestr): Likewise.
56089 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56091         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56092         * tests/test-malloca.c (main): Unset the environment variable
56093         to greatly speed up the test.
56094         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56095         * modules/malloca-tests: Depend on unsetenv.
56097 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56099         ignore-value: remove stdint dependency
56100         * lib/ignore-value.h: Remove <stdint.h>
56101         * modules/ignore-value: Remove stdint dependency.
56103 2011-01-21  Jim Meyering  <meyering@redhat.com>
56105         maint.mk: adjust variable name to be consistent with other gl_ vars
56106         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56107         to be lower case.
56109 2011-01-20  Jim Meyering  <meyering@redhat.com>
56111         maint.mk: make "check" depend on public-submodule-commit by default
56112         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56114 2011-01-20  Bruno Haible  <bruno@clisp.org>
56116         mbfile, mbiter: Complete change from 2008-12-21.
56117         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56118         * m4/mbiter.m4 (gl_MBITER): Likewise.
56120 2011-01-20  Jim Meyering  <meyering@redhat.com>
56122         init.sh: insert space between each function name and "()"
56123         * tests/init.sh: Make it a little easier to see that a function's
56124         name is "warn_", and not "warn" when looking at the first part of
56125         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56127 2011-01-20  Jim Meyering  <meyering@redhat.com>
56129         mountlist: clean up code formatting
56130         * lib/mountlist.c (read_file_system_list): Split a long line,
56131         correct bracing style, use NULL in place of "(struct statfs *)0",
56132         don't parenthesize return value, add spaces around "=" and after
56133         ";-in-for-stmt".
56135 2011-01-14  Markus Duft  <mduft@gentoo.org>
56137         mountlist: add support for Interix
56138         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56139         Apply statvfs to all entries of /dev/fs.
56140         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56141         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56143 2011-01-20  Jim Meyering  <meyering@redhat.com>
56145         maint.mk: improve the public-submodule-commit rule
56146         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56147         to suppress printing of its commands... unless V=1.
56148         Add git submodule's --quiet option to suppress printing of e.g.,
56149         "Entering gnulib" output.
56150         "cd" into $(srcdir) before running git submodule.
56152 2011-01-20  Bruno Haible  <bruno@clisp.org>
56154         include_next: Fix bug introduced on 2011-01-18.
56155         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56156         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56157         ac_cv_header_... variable if the second argument is not 'check'.
56158         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56159         gl_NEXT_HEADERS_INTERNAL.
56161 2011-01-20  Bruno Haible  <bruno@clisp.org>
56163         Allow the user to avoid the GNULIB_TEST_* macros.
56164         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56165         Suggested by Paul Eggert.
56167 2011-01-14  Jim Meyering  <meyering@redhat.com>
56169         bootstrap: avoid failure when there is no .gitmodules file
56170         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56171         has been assigned to, even when its value is the empty string.
56172         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56173         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56174         Reported by John W. Eaton <jwe@gnu.org>.
56176 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56178         assume <ctype.h>, ..., <time.h> exist
56179         For years gnulib has been assuming the existence of the headers
56180         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56181         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56182         them, since they don't appear to be needed.
56183         * README (Portability guidelines): Document this.
56184         * lib/flock.c: Assume <fcntl.h> exists.
56185         * lib/regex_internal.h: Assume <locale.h> exists.
56186         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56187         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56188         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56189         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56190         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56191         * m4/regex.m4 (gl_REGEX): Likewise.
56192         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56193         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56194         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56195         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56196         * tests/test-argp.c: Likewise.
56197         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56199         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56200         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56201         AA_APPLE_UNIVERSAL_BUILD.  See
56202         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56203         * NEWS: Document this.
56205 2011-01-19  Eric Blake  <eblake@redhat.com>
56207         c-stack: assume stack overflow if SA_SIGINFO unsupported
56208         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56209         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56210         sigaction will work.
56211         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56212         behavior match Linux.
56213         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56215         stdbool-tests: accommodate Haiku
56216         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56218         binary-io: fix O_TEXT on Haiku
56219         * modules/binary-io (Depends-on): Add fcntl-h.
56220         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56221         than blindly undefining O_TEXT.
56222         Reported by Scott McCreary.
56224 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56226         include_next: do not check for standard headers like stddef.h
56228         I found this problem when modifying Emacs to use gnulib.
56229         I noticed that it added HAVE_STDDEF_H to config.h, even though
56230         gnulib always assumes <stddef.h> exists as per README and this
56231         symbol is unnecessary.
56232         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56233         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56234         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56235         faster for headers like stddef.h that are known to exist.
56236         (gl_CHECK_NEXT_HEADERS): Use it.
56237         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56238         rather than gl_CHECK_NEXT_HEADERS.
56239         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56240         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56242 2011-01-18  Eric Blake  <eblake@redhat.com>
56244         ansi-c++-opt: skip C++ dependency style if C++ is unused
56245         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56246         tests when we know C++ compilation is not desired.
56247         Reported by Scott McCreary.
56249 2011-01-18  Bruno Haible  <bruno@clisp.org>
56251         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56252         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56253         (main): Perform test also when getrlimit and setrlimit don't exist or
56254         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56255         limiting the address space size using setrlimit, compare the address
56256         space size before and after the test.
56257         * tests/test-dprintf-posix2.c: Likewise.
56258         * tests/test-fprintf-posix3.sh: Update skip messages.
56259         * tests/test-dprintf-posix2.sh: Likewise.
56260         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56261         * modules/dprintf-posix-tests (Depends-on): Likewise.
56262         Reported by Bruce Korb <bkorb@gnu.org> and
56263         Gary V. Vaughan <gary@gnu.org>.
56265 2011-01-18  Bruno Haible  <bruno@clisp.org>
56267         get-rusage-as: Improvement for Cygwin.
56268         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56269         areas that are merely reserved.
56271 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56273         strftime: remove dependencies on multibyte modules
56275         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56276         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56277         only if __osf__ is defined, and I suspect OSF doesn't need these
56278         other modules.  If my guess is wrong, we'll need to come up with a
56279         variant of strftime that doesn't need the multibyte modules.
56281         I discovered this problem when attempting modify Emacs to use the
56282         strftime module.  With the previous gnulib, this caused Emacs to
56283         need 31 new files, ranging from lib/config.charset to
56284         m4/wint_t.m4.  This was overkill and I expect would be offputting
56285         to the Emacs maintainers.  After this change, only 6 new files are
56286         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56287         stdbool.m4, and tm_gmtoff.m4.
56289         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56290         Suggested by Bruno Haible in
56291         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56292         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56293         and do not check for wchar.h.
56294         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56295         (Depends-on): Remove mbrlen, mbsinit, wchar.
56297 2011-01-18  Bruno Haible  <bruno@clisp.org>
56299         Tests for module 'get-rusage-as'.
56300         * modules/get-rusage-as-tests: New file.
56301         * tests/test-get-rusage-as.c: New file.
56303         New module 'get-rusage-as'.
56304         * modules/get-rusage-as: New file.
56305         * lib/resource-ext.h: New file.
56306         * lib/get-rusage-as.c: New file.
56308 2011-01-17  Eric Blake  <eblake@redhat.com>
56310         sigaction: relax license from LGPLv3+ to LGPLv2+
56311         * modules/sigaction (License): Relax to LGPLv2+.
56313 2011-01-14  Bruno Haible  <bruno@clisp.org>
56315         filemode: Make function declarations usable in C++ mode.
56316         * lib/filemode.h: Enclose function declarations in extern "C" block.
56317         Reported by John W. Eaton <jwe@gnu.org>.
56319 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56321         save-cwd: no longer include "xgetcwd.h"
56322         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56323         This avoids a compilation failure in projects that use save-cwd
56324         without also using the xgetcwd module.
56326 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56328         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56329         This is so that a program like Emacs, which needs only dtoastr,
56330         does not have to bother with distributing and compiling ftoastr
56331         and ldtoastr.
56332         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56333         * modules/dtoastr, modules/ldtoastr: New files.
56334         * modules/ftoastr: Now works just for 'float'.
56335         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56336         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56337         dtoastr.c, ldtoastr.c.
56339 2011-01-11  Jim Meyering  <meyering@redhat.com>
56341         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56342         There is no need to work around the lack of the fchdir function,
56343         since gnulib can now provide a replacement when required.
56344         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56345         * modules/save-cwd (Depends-on): Add fchdir.
56347 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56349         openat, save-cwd: avoid xmalloc
56351         This removes a direct (but undocumented) dependency of openat on
56352         xalloc, along with an indirect dependency via save-cwd.  It also
56353         removes a dependency of save-cwd on xgetcwd, and thereby
56354         indirectly on xalloc.  This change causes the openat substitute
56355         to fall back on save_cwd when memory is tight, and for save_cwd to
56356         fail instead of dying when memory is tight, but that's good enough.
56357         Problem and initial idea for fix reported by Bastien Roucaries in
56358         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56360         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56361         xalloc.h (for xmalloc).
56362         (openat_proc_name): Use malloc, not xmalloc.
56363         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56364         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56366         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56367         This avoids heap allocation for file names whose lengths are in
56368         the range 512..1023, with the upper bound increasing to at most
56369         4031 depending on the platform's PATH_MAX.  (We do not want
56370         pathmax.h here as it might supply a non-constant PATH_MAX.)
56371         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56372         Perhaps they should be moved to malloca.h?
56373         (OPENAT_BUFFER_SIZE): Use them.
56375 2011-01-10  Bruno Haible  <bruno@clisp.org>
56377         doc: Update users.txt.
56378         * users.txt: Add recutils.
56380 2011-01-09  Karl Berry  <karl@gnu.org>
56382         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56384         * doc/configmake.texi: New file.
56385         * doc/gnulib.texi: Include it.
56386         * modules/configmake: Move documentation from here.
56388 2011-01-09  Bruno Haible  <bruno@clisp.org>
56390         Update to Unicode 6.0.0.
56391         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56392         (get_lbp): Update for Unicode 6.0.0.
56393         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56394         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56395         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56396         U+11001, U+11038..U+11046. Remove U+06DE.
56397         (uc_width): Fix bounds of planes.
56398         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56399         lib/uniwidth/width.c.
56400         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56401         trailing whitespace removed.
56402         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56403         without comments, but with the original copyright notice.
56404         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56405         * lib/unicase/ignorable.h: Likewise.
56406         * lib/unicase/tocasefold.h: Likewise.
56407         * lib/unicase/tolower.h: Likewise.
56408         * lib/unicase/totitle.h: Likewise.
56409         * lib/unicase/toupper.h: Likewise.
56410         * lib/unictype/bidi_of.h: Likewise.
56411         * lib/unictype/blocks.h: Likewise.
56412         * lib/unictype/categ_C.h: Likewise.
56413         * lib/unictype/categ_Cn.h: Likewise.
56414         * lib/unictype/categ_L.h: Likewise.
56415         * lib/unictype/categ_Ll.h: Likewise.
56416         * lib/unictype/categ_Lm.h: Likewise.
56417         * lib/unictype/categ_Lo.h: Likewise.
56418         * lib/unictype/categ_Lu.h: Likewise.
56419         * lib/unictype/categ_M.h: Likewise.
56420         * lib/unictype/categ_Mc.h: Likewise.
56421         * lib/unictype/categ_Me.h: Likewise.
56422         * lib/unictype/categ_Mn.h: Likewise.
56423         * lib/unictype/categ_N.h: Likewise.
56424         * lib/unictype/categ_Nd.h: Likewise.
56425         * lib/unictype/categ_No.h: Likewise.
56426         * lib/unictype/categ_P.h: Likewise.
56427         * lib/unictype/categ_Po.h: Likewise.
56428         * lib/unictype/categ_S.h: Likewise.
56429         * lib/unictype/categ_Sc.h: Likewise.
56430         * lib/unictype/categ_Sk.h: Likewise.
56431         * lib/unictype/categ_Sm.h: Likewise.
56432         * lib/unictype/categ_So.h: Likewise.
56433         * lib/unictype/categ_of.h: Likewise.
56434         * lib/unictype/combining.h: Likewise.
56435         * lib/unictype/ctype_alnum.h: Likewise.
56436         * lib/unictype/ctype_alpha.h: Likewise.
56437         * lib/unictype/ctype_graph.h: Likewise.
56438         * lib/unictype/ctype_lower.h: Likewise.
56439         * lib/unictype/ctype_print.h: Likewise.
56440         * lib/unictype/ctype_punct.h: Likewise.
56441         * lib/unictype/ctype_upper.h: Likewise.
56442         * lib/unictype/decdigit.h: Likewise.
56443         * lib/unictype/digit.h: Likewise.
56444         * lib/unictype/numeric.h: Likewise.
56445         * lib/unictype/pr_alphabetic.h: Likewise.
56446         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56447         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56448         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56449         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56450         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56451         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56452         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56453         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56454         * lib/unictype/pr_case_ignorable.h: Likewise.
56455         * lib/unictype/pr_cased.h: Likewise.
56456         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56457         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56458         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56459         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56460         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56461         * lib/unictype/pr_combining.h: Likewise.
56462         * lib/unictype/pr_composite.h: Likewise.
56463         * lib/unictype/pr_currency_symbol.h: Likewise.
56464         * lib/unictype/pr_decimal_digit.h: Likewise.
56465         * lib/unictype/pr_deprecated.h: Likewise.
56466         * lib/unictype/pr_format_control.h: Likewise.
56467         * lib/unictype/pr_grapheme_base.h: Likewise.
56468         * lib/unictype/pr_grapheme_extend.h: Likewise.
56469         * lib/unictype/pr_grapheme_link.h: Likewise.
56470         * lib/unictype/pr_id_continue.h: Likewise.
56471         * lib/unictype/pr_id_start.h: Likewise.
56472         * lib/unictype/pr_ideographic.h: Likewise.
56473         * lib/unictype/pr_lowercase.h: Likewise.
56474         * lib/unictype/pr_math.h: Likewise.
56475         * lib/unictype/pr_numeric.h: Likewise.
56476         * lib/unictype/pr_other_alphabetic.h: Likewise.
56477         * lib/unictype/pr_other_id_continue.h: Likewise.
56478         * lib/unictype/pr_other_math.h: Likewise.
56479         * lib/unictype/pr_punctuation.h: Likewise.
56480         * lib/unictype/pr_sentence_terminal.h: Likewise.
56481         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56482         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56483         * lib/unictype/pr_unified_ideograph.h: Likewise.
56484         * lib/unictype/pr_uppercase.h: Likewise.
56485         * lib/unictype/pr_xid_continue.h: Likewise.
56486         * lib/unictype/pr_xid_start.h: Likewise.
56487         * lib/unictype/scripts.h: Likewise.
56488         * lib/unictype/scripts_byname.gperf: Likewise.
56489         * lib/unictype/sy_java_ident.h: Likewise.
56490         * lib/unigbrk/gbrkprop.h: Likewise.
56491         * lib/unilbrk/lbrkprop1.h: Likewise.
56492         * lib/unilbrk/lbrkprop2.h: Likewise.
56493         * lib/uninorm/decomposition-table2.h: Likewise.
56494         * lib/uniwbrk/wbrkprop.h: Likewise.
56495         * tests/unicase/test-cased.c: Likewise.
56496         * tests/unicase/test-ignorable.c: Likewise.
56497         * tests/unicase/test-uc_tolower.c: Likewise.
56498         * tests/unicase/test-uc_totitle.c: Likewise.
56499         * tests/unicase/test-uc_toupper.c: Likewise.
56500         * tests/unictype/test-categ_C.c: Likewise.
56501         * tests/unictype/test-categ_Cn.c: Likewise.
56502         * tests/unictype/test-categ_L.c: Likewise.
56503         * tests/unictype/test-categ_Ll.c: Likewise.
56504         * tests/unictype/test-categ_Lm.c: Likewise.
56505         * tests/unictype/test-categ_Lo.c: Likewise.
56506         * tests/unictype/test-categ_Lu.c: Likewise.
56507         * tests/unictype/test-categ_M.c: Likewise.
56508         * tests/unictype/test-categ_Mc.c: Likewise.
56509         * tests/unictype/test-categ_Me.c: Likewise.
56510         * tests/unictype/test-categ_Mn.c: Likewise.
56511         * tests/unictype/test-categ_N.c: Likewise.
56512         * tests/unictype/test-categ_Nd.c: Likewise.
56513         * tests/unictype/test-categ_No.c: Likewise.
56514         * tests/unictype/test-categ_P.c: Likewise.
56515         * tests/unictype/test-categ_Po.c: Likewise.
56516         * tests/unictype/test-categ_S.c: Likewise.
56517         * tests/unictype/test-categ_Sc.c: Likewise.
56518         * tests/unictype/test-categ_Sk.c: Likewise.
56519         * tests/unictype/test-categ_Sm.c: Likewise.
56520         * tests/unictype/test-categ_So.c: Likewise.
56521         * tests/unictype/test-ctype_alnum.c: Likewise.
56522         * tests/unictype/test-ctype_alpha.c: Likewise.
56523         * tests/unictype/test-ctype_graph.c: Likewise.
56524         * tests/unictype/test-ctype_lower.c: Likewise.
56525         * tests/unictype/test-ctype_print.c: Likewise.
56526         * tests/unictype/test-ctype_punct.c: Likewise.
56527         * tests/unictype/test-ctype_upper.c: Likewise.
56528         * tests/unictype/test-decdigit.h: Likewise.
56529         * tests/unictype/test-digit.h: Likewise.
56530         * tests/unictype/test-numeric.h: Likewise.
56531         * tests/unictype/test-pr_alphabetic.c: Likewise.
56532         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56533         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56534         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56535         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56536         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56537         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56538         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56539         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56540         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56541         * tests/unictype/test-pr_cased.c: Likewise.
56542         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56543         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56544         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56545         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56546         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56547         * tests/unictype/test-pr_combining.c: Likewise.
56548         * tests/unictype/test-pr_composite.c: Likewise.
56549         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56550         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56551         * tests/unictype/test-pr_deprecated.c: Likewise.
56552         * tests/unictype/test-pr_format_control.c: Likewise.
56553         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56554         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56555         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56556         * tests/unictype/test-pr_id_continue.c: Likewise.
56557         * tests/unictype/test-pr_id_start.c: Likewise.
56558         * tests/unictype/test-pr_ideographic.c: Likewise.
56559         * tests/unictype/test-pr_lowercase.c: Likewise.
56560         * tests/unictype/test-pr_math.c: Likewise.
56561         * tests/unictype/test-pr_numeric.c: Likewise.
56562         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56563         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56564         * tests/unictype/test-pr_other_math.c: Likewise.
56565         * tests/unictype/test-pr_punctuation.c: Likewise.
56566         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56567         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56568         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56569         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56570         * tests/unictype/test-pr_uppercase.c: Likewise.
56571         * tests/unictype/test-pr_xid_continue.c: Likewise.
56572         * tests/unictype/test-pr_xid_start.c: Likewise.
56573         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56574         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56575         changes.
56576         * lib/unictype/categ_Cc.h: Likewise.
56577         * lib/unictype/categ_Cf.h: Likewise.
56578         * lib/unictype/categ_Co.h: Likewise.
56579         * lib/unictype/categ_Cs.h: Likewise.
56580         * lib/unictype/categ_Lt.h: Likewise.
56581         * lib/unictype/categ_Nl.h: Likewise.
56582         * lib/unictype/categ_Pc.h: Likewise.
56583         * lib/unictype/categ_Pd.h: Likewise.
56584         * lib/unictype/categ_Pe.h: Likewise.
56585         * lib/unictype/categ_Pf.h: Likewise.
56586         * lib/unictype/categ_Pi.h: Likewise.
56587         * lib/unictype/categ_Ps.h: Likewise.
56588         * lib/unictype/categ_Z.h: Likewise.
56589         * lib/unictype/categ_Zl.h: Likewise.
56590         * lib/unictype/categ_Zp.h: Likewise.
56591         * lib/unictype/categ_Zs.h: Likewise.
56592         * lib/unictype/ctype_blank.h: Likewise.
56593         * lib/unictype/ctype_cntrl.h: Likewise.
56594         * lib/unictype/ctype_digit.h: Likewise.
56595         * lib/unictype/ctype_space.h: Likewise.
56596         * lib/unictype/ctype_xdigit.h: Likewise.
56597         * lib/unictype/mirror.h: Likewise.
56598         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56599         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56600         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56601         * lib/unictype/pr_bidi_control.h: Likewise.
56602         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56603         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56604         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56605         * lib/unictype/pr_bidi_pdf.h: Likewise.
56606         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56607         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56608         * lib/unictype/pr_dash.h: Likewise.
56609         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56610         * lib/unictype/pr_diacritic.h: Likewise.
56611         * lib/unictype/pr_extender.h: Likewise.
56612         * lib/unictype/pr_hex_digit.h: Likewise.
56613         * lib/unictype/pr_hyphen.h: Likewise.
56614         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56615         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56616         * lib/unictype/pr_ignorable_control.h: Likewise.
56617         * lib/unictype/pr_iso_control.h: Likewise.
56618         * lib/unictype/pr_join_control.h: Likewise.
56619         * lib/unictype/pr_left_of_pair.h: Likewise.
56620         * lib/unictype/pr_line_separator.h: Likewise.
56621         * lib/unictype/pr_logical_order_exception.h: Likewise.
56622         * lib/unictype/pr_non_break.h: Likewise.
56623         * lib/unictype/pr_not_a_character.h: Likewise.
56624         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56625         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56626         * lib/unictype/pr_other_id_start.h: Likewise.
56627         * lib/unictype/pr_other_lowercase.h: Likewise.
56628         * lib/unictype/pr_other_uppercase.h: Likewise.
56629         * lib/unictype/pr_paired_punctuation.h: Likewise.
56630         * lib/unictype/pr_paragraph_separator.h: Likewise.
56631         * lib/unictype/pr_pattern_syntax.h: Likewise.
56632         * lib/unictype/pr_pattern_white_space.h: Likewise.
56633         * lib/unictype/pr_private_use.h: Likewise.
56634         * lib/unictype/pr_quotation_mark.h: Likewise.
56635         * lib/unictype/pr_radical.h: Likewise.
56636         * lib/unictype/pr_soft_dotted.h: Likewise.
56637         * lib/unictype/pr_space.h: Likewise.
56638         * lib/unictype/pr_titlecase.h: Likewise.
56639         * lib/unictype/pr_variation_selector.h: Likewise.
56640         * lib/unictype/pr_white_space.h: Likewise.
56641         * lib/unictype/pr_zero_width.h: Likewise.
56642         * lib/unictype/sy_c_ident.h: Likewise.
56643         * lib/unictype/sy_c_whitespace.h: Likewise.
56644         * lib/unictype/sy_java_whitespace.h: Likewise.
56645         * lib/uninorm/composition-table.gperf: Likewise.
56646         * lib/uninorm/decomposition-table1.h: Likewise.
56647         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56648         LB8.
56649         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56650         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56651         * modules/unictype/*: Bump version number of expected libunistring
56652         version.
56654 2011-01-09  Bruno Haible  <bruno@clisp.org>
56656         Update to Unicode 5.2.0.
56657         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56658         trailing whitespace removed.
56660 2011-01-09  Bruno Haible  <bruno@clisp.org>
56662         New Unicode character properties, from Unicode 5.2.0.
56663         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56664         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56665         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56666         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56667         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56668         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56669         uc_is_property_cased, uc_is_property_case_ignorable,
56670         uc_is_property_changes_when_lowercased,
56671         uc_is_property_changes_when_uppercased,
56672         uc_is_property_changes_when_titlecased,
56673         uc_is_property_changes_when_casefolded,
56674         uc_is_property_changes_when_casemapped): New declarations.
56675         * lib/unictype/pr_byname.gperf: Add the new properties.
56676         * modules/unictype/property-byname (Depends-on): Depend on the new
56677         properties modules.
56678         * modules/unictype/property-all (Depends-on): Likewise.
56679         * MODULES.html.sh (Unicode string functions): Add
56680         unictype/property-case-ignorable, unictype/property-cased,
56681         unictype/property-changes-when-casefolded,
56682         unictype/property-changes-when-casemapped,
56683         unictype/property-changes-when-lowercased,
56684         unictype/property-changes-when-titlecased,
56685         unictype/property-changes-when-uppercased.
56687         New module 'unictype/property-changes-when-casemapped'.
56688         * modules/unictype/property-changes-when-casemapped: New file.
56689         * lib/unictype/pr_changes_when_casemapped.c: New file.
56690         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56691         generated by gen-uni-tables.
56692         * modules/unictype/property-changes-when-casemapped-tests: New file.
56693         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56694         automatically generated by gen-uni-tables.
56696         New module 'unictype/property-changes-when-casefolded'.
56697         * modules/unictype/property-changes-when-casefolded: New file.
56698         * lib/unictype/pr_changes_when_casefolded.c: New file.
56699         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56700         generated by gen-uni-tables.
56701         * modules/unictype/property-changes-when-casefolded-tests: New file.
56702         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56703         automatically generated by gen-uni-tables.
56705         New module 'unictype/property-changes-when-titlecased'.
56706         * modules/unictype/property-changes-when-titlecased: New file.
56707         * lib/unictype/pr_changes_when_titlecased.c: New file.
56708         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56709         generated by gen-uni-tables.
56710         * modules/unictype/property-changes-when-titlecased-tests: New file.
56711         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56712         automatically generated by gen-uni-tables.
56714         New module 'unictype/property-changes-when-uppercased'.
56715         * modules/unictype/property-changes-when-uppercased: New file.
56716         * lib/unictype/pr_changes_when_uppercased.c: New file.
56717         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56718         generated by gen-uni-tables.
56719         * modules/unictype/property-changes-when-uppercased-tests: New file.
56720         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
56721         automatically generated by gen-uni-tables.
56723         New module 'unictype/property-changes-when-lowercased'.
56724         * modules/unictype/property-changes-when-lowercased: New file.
56725         * lib/unictype/pr_changes_when_lowercased.c: New file.
56726         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
56727         generated by gen-uni-tables.
56728         * modules/unictype/property-changes-when-lowercased-tests: New file.
56729         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
56730         automatically generated by gen-uni-tables.
56732         New module 'unictype/property-case-ignorable'.
56733         * modules/unictype/property-case-ignorable: New file.
56734         * lib/unictype/pr_case_ignorable.c: New file.
56735         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
56736         by gen-uni-tables.
56737         * modules/unictype/property-case-ignorable-tests: New file.
56738         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
56739         generated by gen-uni-tables.
56741         New module 'unictype/property-cased'.
56742         * modules/unictype/property-cased: New file.
56743         * lib/unictype/pr_cased.c: New file.
56744         * lib/unictype/pr_cased.h: New file, automatically generated by
56745         gen-uni-tables.
56746         * modules/unictype/property-cased-tests: New file.
56747         * tests/unictype/test-pr_cased.c: New file, automatically generated by
56748         gen-uni-tables.
56750 2011-01-09  Bruno Haible  <bruno@clisp.org>
56752         Update to Unicode 5.2.0.
56753         * lib/gen-uni-tables.c (output_predicate, output_category,
56754         output_combclass, output_bidi_category, output_decimal_digit_test,
56755         output_decimal_digit, output_digit_test, output_digit,
56756         output_numeric_test, output_numeric, output_mirror, output_scripts,
56757         output_scripts_byname, output_blocks, output_ident_category): Fix
56758         comment header.
56759         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
56760         get_wbp.
56761         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
56762         items.
56763         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
56764         Changes_When_Lowercased, Changes_When_Uppercased,
56765         Changes_When_Titlecased, Changes_When_Casefolded,
56766         Changes_When_Casemapped.
56767         (is_property_alphabetic, is_property_default_ignorable_code_point):
56768         Update for Unicode 5.2.0.
56769         (is_property_cased, is_property_case_ignorable,
56770         is_property_changes_when_lowercased,
56771         is_property_changes_when_uppercased,
56772         is_property_changes_when_titlecased,
56773         is_property_changes_when_casefolded,
56774         is_property_changes_when_casemapped): New functions.
56775         (output_properties): Output also the properties cased, case_ignorable,
56776         changes_when_lowercased, changes_when_uppercased,
56777         changes_when_titlecased, changes_when_casefolded,
56778         changes_when_casemapped.
56779         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
56780         Unicode TR#11 revision 17 -> 19.
56781         (LBP_CP): New enumeration value.
56782         (LBP_*): Adjust values accordingly.
56783         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56784         TR#14 revision 22 -> 24.
56785         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
56786         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
56787         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56788         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
56789         is_WBP_MIDLETTER.
56790         (output_composition_tables): Allow for 24 bits instead of 16 bits in
56791         the code1 and code2 of each composition rule.
56792         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
56793         * lib/unicase/ignorable.h: Likewise.
56794         * lib/unicase/tocasefold.h: Likewise.
56795         * lib/unicase/tolower.h: Likewise.
56796         * lib/unicase/totitle.h: Likewise.
56797         * lib/unicase/toupper.h: Likewise.
56798         * lib/unictype/bidi_of.h: Likewise.
56799         * lib/unictype/blocks.h: Likewise.
56800         * lib/unictype/categ_C.h: Likewise.
56801         * lib/unictype/categ_Cf.h: Likewise.
56802         * lib/unictype/categ_Cn.h: Likewise.
56803         * lib/unictype/categ_L.h: Likewise.
56804         * lib/unictype/categ_Ll.h: Likewise.
56805         * lib/unictype/categ_Lm.h: Likewise.
56806         * lib/unictype/categ_Lo.h: Likewise.
56807         * lib/unictype/categ_Lu.h: Likewise.
56808         * lib/unictype/categ_M.h: Likewise.
56809         * lib/unictype/categ_Mc.h: Likewise.
56810         * lib/unictype/categ_Mn.h: Likewise.
56811         * lib/unictype/categ_N.h: Likewise.
56812         * lib/unictype/categ_Nd.h: Likewise.
56813         * lib/unictype/categ_Nl.h: Likewise.
56814         * lib/unictype/categ_No.h: Likewise.
56815         * lib/unictype/categ_P.h: Likewise.
56816         * lib/unictype/categ_Pd.h: Likewise.
56817         * lib/unictype/categ_Po.h: Likewise.
56818         * lib/unictype/categ_S.h: Likewise.
56819         * lib/unictype/categ_Sc.h: Likewise.
56820         * lib/unictype/categ_So.h: Likewise.
56821         * lib/unictype/categ_of.h: Likewise.
56822         * lib/unictype/combining.h: Likewise.
56823         * lib/unictype/ctype_alnum.h: Likewise.
56824         * lib/unictype/ctype_alpha.h: Likewise.
56825         * lib/unictype/ctype_graph.h: Likewise.
56826         * lib/unictype/ctype_lower.h: Likewise.
56827         * lib/unictype/ctype_print.h: Likewise.
56828         * lib/unictype/ctype_punct.h: Likewise.
56829         * lib/unictype/ctype_upper.h: Likewise.
56830         * lib/unictype/decdigit.h: Likewise.
56831         * lib/unictype/digit.h: Likewise.
56832         * lib/unictype/numeric.h: Likewise.
56833         * lib/unictype/pr_alphabetic.h: Likewise.
56834         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56835         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56836         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56837         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56838         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56839         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56840         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56841         * lib/unictype/pr_combining.h: Likewise.
56842         * lib/unictype/pr_composite.h: Likewise.
56843         * lib/unictype/pr_currency_symbol.h: Likewise.
56844         * lib/unictype/pr_dash.h: Likewise.
56845         * lib/unictype/pr_decimal_digit.h: Likewise.
56846         * lib/unictype/pr_deprecated.h: Likewise.
56847         * lib/unictype/pr_diacritic.h: Likewise.
56848         * lib/unictype/pr_extender.h: Likewise.
56849         * lib/unictype/pr_grapheme_base.h: Likewise.
56850         * lib/unictype/pr_grapheme_extend.h: Likewise.
56851         * lib/unictype/pr_grapheme_link.h: Likewise.
56852         * lib/unictype/pr_id_continue.h: Likewise.
56853         * lib/unictype/pr_id_start.h: Likewise.
56854         * lib/unictype/pr_ideographic.h: Likewise.
56855         * lib/unictype/pr_ignorable_control.h: Likewise.
56856         * lib/unictype/pr_logical_order_exception.h: Likewise.
56857         * lib/unictype/pr_lowercase.h: Likewise.
56858         * lib/unictype/pr_numeric.h: Likewise.
56859         * lib/unictype/pr_other_alphabetic.h: Likewise.
56860         * lib/unictype/pr_punctuation.h: Likewise.
56861         * lib/unictype/pr_sentence_terminal.h: Likewise.
56862         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56863         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56864         * lib/unictype/pr_unified_ideograph.h: Likewise.
56865         * lib/unictype/pr_uppercase.h: Likewise.
56866         * lib/unictype/pr_xid_continue.h: Likewise.
56867         * lib/unictype/pr_xid_start.h: Likewise.
56868         * lib/unictype/pr_zero_width.h: Likewise.
56869         * lib/unictype/scripts.h: Likewise.
56870         * lib/unictype/scripts_byname.gperf: Likewise.
56871         * lib/unictype/sy_java_ident.h: Likewise.
56872         * lib/unigbrk/gbrkprop.h: Likewise.
56873         * lib/unilbrk/lbrkprop1.h: Likewise.
56874         * lib/unilbrk/lbrkprop2.h: Likewise.
56875         * lib/unilbrk/lbrktables.h: Likewise.
56876         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
56877         LBP_CP. Implement rule LB30.
56878         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
56879         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
56880         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
56881         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
56882         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
56883         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
56884         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
56885         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
56886         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
56887         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
56888         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
56889         bits instead of 16 bits in the code1 and code2 of each composition
56890         rule.
56891         (uc_composition): Update for Unicode 5.2.0.
56892         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
56893         * lib/uninorm/decomposition-table2.h: Likewise.
56894         * lib/uniwbrk/wbrkprop.h: Likewise.
56895         * tests/unicase/test-cased.c: Likewise.
56896         * tests/unicase/test-ignorable.c: Likewise.
56897         * tests/unicase/test-uc_tolower.c: Likewise.
56898         * tests/unicase/test-uc_totitle.c: Likewise.
56899         * tests/unicase/test-uc_toupper.c: Likewise.
56900         * tests/unictype/test-categ_C.c: Likewise.
56901         * tests/unictype/test-categ_Cf.c: Likewise.
56902         * tests/unictype/test-categ_Cn.c: Likewise.
56903         * tests/unictype/test-categ_L.c: Likewise.
56904         * tests/unictype/test-categ_Ll.c: Likewise.
56905         * tests/unictype/test-categ_Lm.c: Likewise.
56906         * tests/unictype/test-categ_Lo.c: Likewise.
56907         * tests/unictype/test-categ_Lu.c: Likewise.
56908         * tests/unictype/test-categ_M.c: Likewise.
56909         * tests/unictype/test-categ_Mc.c: Likewise.
56910         * tests/unictype/test-categ_Mn.c: Likewise.
56911         * tests/unictype/test-categ_N.c: Likewise.
56912         * tests/unictype/test-categ_Nd.c: Likewise.
56913         * tests/unictype/test-categ_Nl.c: Likewise.
56914         * tests/unictype/test-categ_No.c: Likewise.
56915         * tests/unictype/test-categ_P.c: Likewise.
56916         * tests/unictype/test-categ_Pd.c: Likewise.
56917         * tests/unictype/test-categ_Po.c: Likewise.
56918         * tests/unictype/test-categ_S.c: Likewise.
56919         * tests/unictype/test-categ_Sc.c: Likewise.
56920         * tests/unictype/test-categ_So.c: Likewise.
56921         * tests/unictype/test-ctype_alnum.c: Likewise.
56922         * tests/unictype/test-ctype_alpha.c: Likewise.
56923         * tests/unictype/test-ctype_graph.c: Likewise.
56924         * tests/unictype/test-ctype_lower.c: Likewise.
56925         * tests/unictype/test-ctype_print.c: Likewise.
56926         * tests/unictype/test-ctype_punct.c: Likewise.
56927         * tests/unictype/test-ctype_upper.c: Likewise.
56928         * tests/unictype/test-decdigit.h: Likewise.
56929         * tests/unictype/test-digit.h: Likewise.
56930         * tests/unictype/test-numeric.h: Likewise.
56931         * tests/unictype/test-pr_alphabetic.c: Likewise.
56932         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56933         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56934         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56935         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56936         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56937         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56938         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56939         * tests/unictype/test-pr_combining.c: Likewise.
56940         * tests/unictype/test-pr_composite.c: Likewise.
56941         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56942         * tests/unictype/test-pr_dash.c: Likewise.
56943         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56944         * tests/unictype/test-pr_deprecated.c: Likewise.
56945         * tests/unictype/test-pr_diacritic.c: Likewise.
56946         * tests/unictype/test-pr_extender.c: Likewise.
56947         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56948         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56949         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56950         * tests/unictype/test-pr_id_continue.c: Likewise.
56951         * tests/unictype/test-pr_id_start.c: Likewise.
56952         * tests/unictype/test-pr_ideographic.c: Likewise.
56953         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56954         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56955         * tests/unictype/test-pr_lowercase.c: Likewise.
56956         * tests/unictype/test-pr_numeric.c: Likewise.
56957         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56958         * tests/unictype/test-pr_punctuation.c: Likewise.
56959         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56960         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56961         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56962         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56963         * tests/unictype/test-pr_uppercase.c: Likewise.
56964         * tests/unictype/test-pr_xid_continue.c: Likewise.
56965         * tests/unictype/test-pr_xid_start.c: Likewise.
56966         * tests/unictype/test-pr_zero_width.c: Likewise.
56967         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56968         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
56969         changed behaviour: line breaking is now disallowed between a letter
56970         or '=' and '('.
56971         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56972         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56973         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56974         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
56975         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56976         lib/uniwidth/width.c.
56977         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
56978         without comments, but with the original copyright notice.
56979         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56980         changes.
56981         * lib/unictype/categ_Cc.h: Likewise.
56982         * lib/unictype/categ_Co.h: Likewise.
56983         * lib/unictype/categ_Cs.h: Likewise.
56984         * lib/unictype/categ_Lt.h: Likewise.
56985         * lib/unictype/categ_Me.h: Likewise.
56986         * lib/unictype/categ_Pc.h: Likewise.
56987         * lib/unictype/categ_Pe.h: Likewise.
56988         * lib/unictype/categ_Pf.h: Likewise.
56989         * lib/unictype/categ_Pi.h: Likewise.
56990         * lib/unictype/categ_Ps.h: Likewise.
56991         * lib/unictype/categ_Sk.h: Likewise.
56992         * lib/unictype/categ_Sm.h: Likewise.
56993         * lib/unictype/categ_Z.h: Likewise.
56994         * lib/unictype/categ_Zl.h: Likewise.
56995         * lib/unictype/categ_Zp.h: Likewise.
56996         * lib/unictype/categ_Zs.h: Likewise.
56997         * lib/unictype/ctype_blank.h: Likewise.
56998         * lib/unictype/ctype_cntrl.h: Likewise.
56999         * lib/unictype/ctype_digit.h: Likewise.
57000         * lib/unictype/ctype_space.h: Likewise.
57001         * lib/unictype/ctype_xdigit.h: Likewise.
57002         * lib/unictype/mirror.h: Likewise.
57003         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57004         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57005         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57006         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57007         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57008         * lib/unictype/pr_bidi_control.h: Likewise.
57009         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57010         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57011         * lib/unictype/pr_bidi_pdf.h: Likewise.
57012         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57013         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57014         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57015         * lib/unictype/pr_format_control.h: Likewise.
57016         * lib/unictype/pr_hex_digit.h: Likewise.
57017         * lib/unictype/pr_hyphen.h: Likewise.
57018         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57019         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57020         * lib/unictype/pr_iso_control.h: Likewise.
57021         * lib/unictype/pr_join_control.h: Likewise.
57022         * lib/unictype/pr_left_of_pair.h: Likewise.
57023         * lib/unictype/pr_line_separator.h: Likewise.
57024         * lib/unictype/pr_math.h: Likewise.
57025         * lib/unictype/pr_non_break.h: Likewise.
57026         * lib/unictype/pr_not_a_character.h: Likewise.
57027         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57028         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57029         * lib/unictype/pr_other_id_continue.h: Likewise.
57030         * lib/unictype/pr_other_id_start.h: Likewise.
57031         * lib/unictype/pr_other_lowercase.h: Likewise.
57032         * lib/unictype/pr_other_math.h: Likewise.
57033         * lib/unictype/pr_other_uppercase.h: Likewise.
57034         * lib/unictype/pr_paired_punctuation.h: Likewise.
57035         * lib/unictype/pr_paragraph_separator.h: Likewise.
57036         * lib/unictype/pr_pattern_syntax.h: Likewise.
57037         * lib/unictype/pr_pattern_white_space.h: Likewise.
57038         * lib/unictype/pr_private_use.h: Likewise.
57039         * lib/unictype/pr_quotation_mark.h: Likewise.
57040         * lib/unictype/pr_radical.h: Likewise.
57041         * lib/unictype/pr_soft_dotted.h: Likewise.
57042         * lib/unictype/pr_space.h: Likewise.
57043         * lib/unictype/pr_titlecase.h: Likewise.
57044         * lib/unictype/pr_variation_selector.h: Likewise.
57045         * lib/unictype/pr_white_space.h: Likewise.
57046         * lib/unictype/sy_c_ident.h: Likewise.
57047         * lib/unictype/sy_c_whitespace.h: Likewise.
57048         * lib/unictype/sy_java_whitespace.h: Likewise.
57049         * modules/uni*/*: Bump version number of expected libunistring version.
57050         Reported by Simon Josefsson.
57052 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57054         useless-if-before-free: fix typo in --help and make the internal,
57055         automatic version date update process work once again.
57056         --help output contained a NUL character instead of the
57057         backslash-zero that was intended.  Also, the "must lie within
57058         the first 8 lines" line is on line 9, and hence not getting
57059         automatically updated.
57060         * build-aux/useless-if-before-free: Fix the former by adding a
57061         backslash, and the latter by condensing the three lines of what-it-does
57062         to a single line, leaving one line of slack for the future.
57064 2011-01-09  Bruno Haible  <bruno@clisp.org>
57066         uniwidth/width: Fix width of U+1D173..U+1D17A.
57067         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57068         symbolic_width, output_width_property_test): New functions.
57069         (main): Invoke output_nonspacing_property, output_width_property_test.
57070         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57071         U+1D173..U+1D17A.
57072         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57073         1.
57074         * modules/uniwidth/*: Bump version number of expected libunistring
57075         version.
57076         * modules/unilbrk/*: Likewise.
57078 2011-01-08  Bruno Haible  <bruno@clisp.org>
57080         uninorm tests: Preserve copyright of Unicode data file.
57081         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57082         Mention modifications.
57084 2011-01-08  Bruno Haible  <bruno@clisp.org>
57086         gen-uni-tables: Prepare for Unicode 5.2.0.
57087         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57088         (debug_output_lbp, output_lbp): Update.
57090 2011-01-08  Bruno Haible  <bruno@clisp.org>
57092         unilbrk: Clarify gen-uni-tables.c code.
57093         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57094         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57095         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57097 2011-01-07  Bruno Haible  <bruno@clisp.org>
57099         strtod: Restore errno when successfully parsing Infinity or NaN.
57100         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57101         restore the original errno.
57103 2011-01-07  Bruno Haible  <bruno@clisp.org>
57105         remove test: Avoid failure on HP-UX 11.
57106         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57108 2011-01-07  Bruno Haible  <bruno@clisp.org>
57110         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57111         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57112         error code.
57114 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57116         ignore-value: fixup comments, and add Eric Blake
57117         as an author since he rewrote the macros.
57118         * lib/ignore-value.h (ignore_value):  State that
57119         we now support aggregates.  Also specify exactly
57120         when the GCC warn_unused_result feature was added.
57122 2011-01-06  Eric Blake  <eblake@redhat.com>
57124         ignore-value: support aggregate types
57125         * lib/ignore-value.h (ignore_value): Provide separate gcc
57126         definition.
57127         * modules/ignore-value-tests: New test module.
57128         * tests/test-ignore-value.c: New test.
57130         maint.mk: improve sc_prohibit_strcmp regex
57131         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57132         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57133         definition of STRNEQ.
57135         signal: work around Haiku issue with SIGBUS
57136         * lib/siglist.h: Add comment.
57137         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57138         strsignal's favoring of SIGSEGV.
57139         * tests/test-signal.c (main): Avoid test failure.
57140         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57141         Reported by Scott McCreary.
57143         maint.mk: add pre-release check to ensure submodule commits are public
57144         * top/maint.mk (public-submodule-commit): New rule.
57145         (submodule-checks): New variable.
57146         (alpha beta stable): Depend on the variable.
57148 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57149         and Jim Meyering  <meyering@redhat.com>
57151         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57152         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57153         (ATTRIBUTE_DEPRECATED): Define.
57154         (_ignore_case): New function.
57155         (ignore_value): New macro, to replace the old function.
57156         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57157         * modules/ignore-value (Depends-on): Add stdint.
57159 2011-01-04  Eric Blake  <eblake@redhat.com>
57161         doc: regenerate INSTALL
57162         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57163         @firstparagraphindent support, now that autoconf dropped it.
57164         (INSTALL_PRELUDE): Reinstate old macro.
57165         * doc/install.texi: Resync from autoconf.
57166         * doc/INSTALL: Reflect recent autoconf update.
57167         * doc/INSTALL.ISO: Likewise.
57168         * doc/INSTALL.UTF-8: Likewise.
57169         Reported by Karl Berry.
57171 2011-01-04  Bruce Korb  <address@hidden>
57173         git-version-gen: avoid a sub-shell
57174         * build-aux/git-version-gen: Redirect stderr in `...` via
57175         "exec 2>...", rather than via an added sub-shell.
57177 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57179         git-version-gen: use (...) rather than sh -c '...'
57180         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57181         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57183 2011-01-03  Jim Meyering  <meyering@redhat.com>
57185         git-version-gen: convert leading TABs to spaces
57186         * build-aux/git-version-gen: Expand leading TABs.
57188         git-version-gen: handle failed "git rev-list"
57189         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57190         from git and proceeding as if it had succeeded but printed no SHA1
57191         checksums, suppress the diagnostic and handle the failure.
57192         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57194         git-version-gen: include command name in one more diagnostic
57195         * build-aux/git-version-gen: When the required .tarball-version file
57196         was missing or unreadable, you might see the diagnostic from "cat",
57197         but no trace of the name of the invoking script.  Now, you still see
57198         the diagnostic from cat, but also get one from "git-version-gen: ".
57199         Inspired by a patch from Bruce Korb.
57201         update-copyright: adjust test to match changed code
57202         * tests/test-update-copyright.sh: Change test's expected output
57203         to match new actual output.
57205 2011-01-02  Bruno Haible  <bruno@clisp.org>
57207         getlogin_r: Avoid test failure on HP-UX 11.
57208         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57209         ERANGE when the second argument is zero.
57210         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57211         portability problem.
57213 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57215         * build-aux/update-copyright: doc Simon's changes
57217 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57219         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57220         environment variable.
57222 2011-01-02  Bruno Haible  <bruno@clisp.org>
57224         unigbrk: Avoid gcc warnings.
57225         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57226         unused variable.
57227         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57228         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57229         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57230         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57231         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57232         Change type of first argument to 'const char *'.
57233         (main): Remove unused variable.
57234         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57235         type of first argument to 'const char *'.
57236         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57237         Likewise.
57238         (main): Change type of variable 's'.
57239         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57240         to 'int'.
57242 2011-01-02  Bruno Haible  <bruno@clisp.org>
57244         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57245         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57246         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57247         bug.
57248         * lib/pwrite.c: Undo 2010-12-31 patch.
57249         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57251 2011-01-02  Bruno Haible  <bruno@clisp.org>
57253         pread: Fix test whether it works.
57254         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57256 2011-01-02  Bruno Haible  <bruno@clisp.org>
57258         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57259         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57260         ends in "6". Don't require a specific month name. Try also the locale
57261         names found on HP-UX 11 and Solaris 7.
57263 2011-01-02  Bruno Haible  <bruno@clisp.org>
57265         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57266         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57267         C linkage.
57268         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57270 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57272         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57273         for consistency, since the "cluster" term is not used elsewhere.
57274         * lib/unigbrk.in.h: Update name.
57275         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57276         * lib/unigbrk/u16-grapheme-next.c: Update name.
57277         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57278         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57279         * lib/unigbrk/u32-grapheme-next.c: Update name.
57280         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57281         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57282         * lib/unigbrk/u8-grapheme-next.c: Update name.
57283         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57284         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57285         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57286         Suggested by Bruno Haible.
57288 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57290         Remove module 'u8-grapheme-len' as too redundant with
57291         'u8-grapheme-next'.
57292         * modules/unigbrk/u8-grapheme-len: Delete file.
57293         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57294         * lib/unigbrk.in.h: Remove prototype for deleted function.
57295         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57296         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57298         Remove module 'u16-grapheme-len' as too redundant with
57299         'u16-grapheme-next'.
57300         * modules/unigbrk/u16-grapheme-len: Delete file.
57301         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57302         * lib/unigbrk.in.h: Remove prototype for deleted function.
57303         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57304         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57306         Remove module 'u32-grapheme-len' as too redundant with
57307         'u32-grapheme-next'.
57308         * modules/unigbrk/u32-grapheme-len: Delete file.
57309         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57310         * lib/unigbrk.in.h: Remove prototype for deleted function.
57311         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57312         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57314         Suggested by Bruno Haible.
57316 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57318         * unigbrk.in.h: Fix typo: "ben" => "been".
57319         Reported by Bruno Haible.
57321 2011-01-01  Jim Meyering  <meyering@redhat.com>
57323         maint: update almost all copyright ranges to include 2011
57324         Run the new "make update-copyright" rule.
57326 2011-01-01  Jim Meyering  <meyering@redhat.com>
57328         maint: update-copyright: exempt doc/INSTALL*
57329         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57330         since they are generated.  Suggested by Bruno Haible.
57332 2011-01-01  Jim Meyering  <meyering@redhat.com>
57334         maint: refine the update-copyright rule
57335         * Makefile (update-copyright): Also exclude any file that includes
57336         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57337         code that merely generates the comment.
57339 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57341         New module 'u8-grapheme-len'.
57342         * modules/unigbrk/u8-grapheme-len: New file.
57343         * modules/unigbrk/u8-grapheme-len-tests: New file.
57344         * lib/unigbrk.in.h: Add prototype for new function.
57345         * lib/unigbrk/u8-grapheme-len.c: New file.
57346         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57348         New module 'u16-grapheme-len'.
57349         * modules/unigbrk/u16-grapheme-len: New file.
57350         * modules/unigbrk/u16-grapheme-len-tests: New file.
57351         * lib/unigbrk.in.h: Add prototype for new function.
57352         * lib/unigbrk/u16-grapheme-len.c: New file.
57353         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57355         New module 'u32-grapheme-len'.
57356         * modules/unigbrk/u32-grapheme-len: New file.
57357         * modules/unigbrk/u32-grapheme-len-tests: New file.
57358         * lib/unigbrk.in.h: Add prototype for new function.
57359         * lib/unigbrk/u32-grapheme-len.c: New file.
57360         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57362         New module 'u8-grapheme-next'.
57363         * modules/unigbrk/u8-grapheme-next: New file.
57364         * modules/unigbrk/u8-grapheme-next-tests: New file.
57365         * lib/unigbrk.in.h: Add prototype for new function.
57366         * lib/unigbrk/u8-grapheme-next.c: New file.
57367         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57369         New module 'u16-grapheme-next'.
57370         * modules/unigbrk/u16-grapheme-next: New file.
57371         * modules/unigbrk/u16-grapheme-next-tests: New file.
57372         * lib/unigbrk.in.h: Add prototype for new function.
57373         * lib/unigbrk/u16-grapheme-next.c: New file.
57374         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57376         New module 'u32-grapheme-next'.
57377         * modules/unigbrk/u32-grapheme-next: New file.
57378         * modules/unigbrk/u32-grapheme-next-tests: New file.
57379         * lib/unigbrk.in.h: Add prototype for new function.
57380         * lib/unigbrk/u32-grapheme-next.c: New file.
57381         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57383         New module 'u8-grapheme-prev'.
57384         * modules/unigbrk/u8-grapheme-prev: New file.
57385         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57386         * lib/unigbrk.in.h: Add prototype for new function.
57387         * lib/unigbrk/u8-grapheme-prev.c: New file.
57388         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57390         New module 'u16-grapheme-prev'.
57391         * modules/unigbrk/u16-grapheme-prev: New file.
57392         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57393         * lib/unigbrk.in.h: Add prototype for new function.
57394         * lib/unigbrk/u16-grapheme-prev.c: New file.
57395         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57397         New module 'u32-grapheme-prev'.
57398         * modules/unigbrk/u32-grapheme-prev: New file.
57399         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57400         * lib/unigbrk.in.h: Add prototype for new function.
57401         * lib/unigbrk/u32-grapheme-prev.c: New file.
57402         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57404         New module 'u8-grapheme-breaks'.
57405         * modules/unigbrk/u8-grapheme-breaks: New file.
57406         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57407         * lib/unigbrk.in.h: Add prototype for new function.
57408         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57409         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57411         New module 'u16-grapheme-breaks'.
57412         * modules/unigbrk/u16-grapheme-breaks: New file.
57413         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57414         * lib/unigbrk.in.h: Add prototype for new function.
57415         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57416         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57418         New module 'u32-grapheme-breaks'.
57419         * modules/unigbrk/u32-grapheme-breaks: New file.
57420         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57421         * lib/unigbrk.in.h: Add prototype for new function.
57422         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57423         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57425         New module 'ulc-grapheme-breaks'.
57426         * modules/unigbrk/ulc-grapheme-breaks: New file.
57427         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57428         * m4/locale-ar.m4: New file.
57429         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57430         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57431         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57433 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57435         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57436         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57437         modified how this file was generated before I initially submitted
57438         the module, but failed to regenerate it.  This meant that several
57439         of the level2 entries were wrong.
57440         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57441         Remove the division-by-2 that is folded into the table now that
57442         gbrkprop.h has been regenerated properly.  Now -1 entries are
57443         handled correctly.
57445         New module 'unigbrk/uc-gbrk-prop-tests'.
57446         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57447         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57448         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57449         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57451 2011-01-01  Bruno Haible  <bruno@clisp.org>
57453         Avoid use of hexadecimal escapes.
57454         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57455         instead of hexadecimal escapes.
57457 2011-01-01  Jim Meyering  <meyering@redhat.com>
57459         maint: new rule to update copyright year ranges
57460         * Makefile (update-copyright): New rule.
57462         maint: indent with TABs in Makefile
57463         * Makefile: Expand leading sequences of spaces to TABs
57465         version-etc: update the copyright year it reports
57466         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57468 2010-12-31  Bruno Haible  <bruno@clisp.org>
57470         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57471         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57472         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57473         zero.
57475 2010-12-31  Bruno Haible  <bruno@clisp.org>
57477         pwrite: Work around HP-UX 11.11 bug.
57478         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57479         works and set REPLACE_PWRITE if not.
57480         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57481         function.
57482         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57484 2010-12-31  Bruno Haible  <bruno@clisp.org>
57486         pread: Work around HP-UX 11 bugs.
57487         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57488         and set REPLACE_PREAD if not.
57489         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57491 2010-12-31  Eric Blake  <eblake@redhat.com>
57493         nl_langinfo: fix YESEXPR on Irix 6.5
57494         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57495         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57496         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57497         it.
57499 2010-12-31  Bruno Haible  <bruno@clisp.org>
57501         iconv: Document HP-UX 11 bug.
57502         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57504 2010-12-31  Bruno Haible  <bruno@clisp.org>
57506         ldexpl: Fix link error on HP-UX 11.
57507         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57508         LDEXPL_LIBM, using $ISNANL_LIBM.
57510 2010-12-31  Eric Blake  <eblake@redhat.com>
57512         ftello: avoid compilation failure with SunStudio c89
57513         * lib/ftello.c (ftello): Use lseek, not llseek.
57515         tests: avoid failing coreutils tests on cygwin
57516         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57517         (create_exe_shims_): Return 0 when skipping.
57519 2010-12-31  Bruno Haible  <bruno@clisp.org>
57521         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57522         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57524 2010-12-31  Bruno Haible  <bruno@clisp.org>
57526         waitpid: Fix link error in C++ mode.
57527         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57529 2010-12-31  Bruno Haible  <bruno@clisp.org>
57531         isnan: Use GCC built-ins when possible.
57532         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57533         __builtin_isnan.
57534         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57535         (isnan): Define using GCC built-ins for GCC >= 4.0.
57537 2010-12-31  Bruno Haible  <bruno@clisp.org>
57539         isnand: Fix mistake.
57540         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57541         __builtin_isnand.
57543 2010-12-31  Bruno Haible  <bruno@clisp.org>
57545         open: Avoid C++ error on HP-UX 11.
57546         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57548 2010-12-31  Bruno Haible  <bruno@clisp.org>
57550         time_r: Add missing declarations on HP-UX 11.
57551         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57552         instead of HAVE_LOCALTIME_R.
57553         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57554         HAVE_LOCALTIME_R always.
57555         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57556         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57557         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57558         HAVE_LOCALTIME_R.
57559         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57560         * doc/posix-functions/localtime_r.texi: Likewise.
57562 2010-12-29  Eric Blake  <eblake@redhat.com>
57564         mountlist: tweak previous commit
57565         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57566         Reported by Paul Eggert.
57568         mountlist: fix local drive detection on cygwin
57569         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57570         that works for cygwin.
57572 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57574         ftoastr, snprintf: ftoastr + snprintf module
57575         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57576         since the snprintf module now should be good enough here.
57577         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57578         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57579         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57580         GNULIB_SNPRINTF only for the test directory, and the latter
57581         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57582         seems to suffice by itself.
57584 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57586         alloca: one step towards thread-safety
57587         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57588         need for a static variable.  All callers changed.  This does not
57589         make the alloca replacement thread-safe, but it's one step.
57591         tests: minor indenting change
57592         * tests/init.sh: Sync from coreutils housekeeping patch
57593         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57594         to keep lines within 80 columns.
57596 2010-12-28  Jim Meyering  <meyering@redhat.com>
57598         regex: don't infloop on persistent failing calloc
57599         * lib/regexec.c (build_trtable): Return failure indication upon
57600         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57601         In glibc, this was fixed for version 2.13:
57602         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57604 2010-12-28  Bruno Haible  <bruno@clisp.org>
57605             Paul Eggert <eggert@cs.ucla.edu>
57607         linkat: Make implementation robust against system behaviour variations.
57608         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57609         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57610         way, and to -2 if it needs a generic runtime test.
57611         * lib/linkat.c (solaris_optimized_link_immediate,
57612         solaris_optimized_link_follow): New functions.
57613         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57614         (check_same_link): Use it.
57616 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57618         New module 'unigbrk/base'.
57619         * modules/unigbrk/base: New file.
57620         * lib/unigbrk.in.h: New file.
57622         New module 'unigbrk/uc-gbrk-prop'.
57623         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57624         * modules/unigbrk/uc-gbrk-prop: New file.
57625         * lib/unigbrk/gbrkprop.h: New file.
57626         * lib/unigbrk/uc-gbrk-prop.c: New file.
57628         New module 'unigbrk/uc-is-grapheme-break'.
57629         * modules/unigbrk/uc-is-grapheme-break: New file.
57630         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57631         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57632         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57633         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57634         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57636         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57638 2010-12-27  Bruno Haible  <bruno@clisp.org>
57640         linkat test: Avoid failure on Solaris 11 2010-11.
57641         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57643 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57645         utimens: work around glibc rounding bug on more platforms
57646         * lib/utimens.c (fdutimens): Work around rounding bug even if
57647         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57648         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57650 2010-12-27  Bruno Haible  <bruno@clisp.org>
57652         select tests: Improve comments.
57653         * tests/test-select.c (do_select): Add comments.
57655 2010-12-27  Bruno Haible  <bruno@clisp.org>
57657         select tests: Safer way of handling timeout.
57658         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57659         at every invocation.
57661 2010-12-27  Bruno Haible  <bruno@clisp.org>
57663         select tests: Use 'bool' where appropriate.
57664         * tests/test-select.c (connect_to_socket): Change argument type to
57665         'bool'.
57667 2010-12-27  Bruno Haible  <bruno@clisp.org>
57669         select tests: Use existing modules.
57670         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57671         (configure.ac): Don't test for unistd.h.
57672         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57673         declared in <unistd.h>.
57675 2010-12-27  Bruno Haible  <bruno@clisp.org>
57677         mbrtowc: Work around a Solaris 7 bug.
57678         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57679         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57680         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57681         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57682         MBRTOWC_NULL_ARG1_BUG.
57683         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57684         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57685         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57686         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57688 2010-12-27  Jim Meyering  <meyering@redhat.com>
57690         read-file.c: tweak syntax
57691         * lib/read-file.c (fread_file): Remove space after "*" in function
57692         definitions.
57694 2010-12-27  Bruno Haible  <bruno@clisp.org>
57696         times test: Avoid gcc warnings on OSF/1.
57697         * tests/test-times.c (main): Cast printf arguments from clock_t to
57698         'long int'.
57700 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57702         utimens: work around glibc rounding bug on older Linux kernels
57703         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57704         on Linux with a glibc whose utimes might not work, then work
57705         around a longstanding glibc bug involving rounding rather than
57706         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57707         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57709 2010-12-26  Bruno Haible  <bruno@clisp.org>
57711         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57712         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57713         _GL_CXXALIAS_SYS.
57714         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57716 2010-12-26  Bruno Haible  <bruno@clisp.org>
57718         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57719         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
57720         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57721         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
57722         looking for the declaration.
57723         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57724         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
57725         problem.
57726         * doc/posix-functions/inet_pton.texi: Likewise.
57728 2010-12-26  Bruno Haible  <bruno@clisp.org>
57730         arpa_inet: Use the common idioms with C++ support.
57731         * lib/arpa_inet.in.h: Include c++defs.h.
57732         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
57733         support.
57734         * modules/arpa_inet (Depends-on): Add c++defs.
57735         (Makefile.am): Substitute the contents of c++defs.h.
57736         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
57737         * modules/arpa_inet-c++-tests: New file.
57738         * tests/test-arpa_inet-c++.cc: New file.
57740 2010-12-25  Bruno Haible  <bruno@clisp.org>
57742         Fix more C++ link errors on Solaris 8.
57743         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
57744         $(LIB_EACCESS).
57745         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
57746         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
57747         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
57748         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
57749         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
57751 2010-12-25  Bruno Haible  <bruno@clisp.org>
57753         printf-posix: Fix link error when a non-GCC compiler is used.
57754         * lib/stdio.in.h (printf): When not using GCC, override printf
57755         correctly.
57756         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57758 2010-12-25  Bruno Haible  <bruno@clisp.org>
57760         strerror_r-posix: Update doc.
57761         * doc/posix-functions/strerror_r.texi: Update doc about the return
57762         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
57764 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57766         utimens: simplify the logic of the previous change
57767         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
57768         This should not affect whether the test succeeds or fails.
57770         utimens: configure better on hosts with NFS clock skew
57771         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
57772         uses the clock of the local host.  It might use the clock of the
57773         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
57774         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57776 2010-12-25  Bruno Haible  <bruno@clisp.org>
57778         ptsname test: Avoid failure on Solaris.
57779         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
57780         open a pseudo-terminal; don't use BSD-style ptys.
57781         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
57783 2010-12-25  Bruno Haible  <bruno@clisp.org>
57785         ptsname: Avoid ERANGE failure on some systems.
57786         * lib/ptsname.c (buffer): Increase size.
57788 2010-12-25  Bruno Haible  <bruno@clisp.org>
57790         rename, renameat: Avoid test failures at NFS mounted locations.
57791         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
57792         so that subsequent mkdir calls succeed.
57794 2010-12-25  Bruno Haible  <bruno@clisp.org>
57796         iswblank: Fix C++ link error on Solaris 8.
57797         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
57798         _GL_FUNCDECL_SYS.
57800 2010-12-25  Bruno Haible  <bruno@clisp.org>
57802         unistd: Fix C++ link error on Solaris 8.
57803         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
57805 2010-12-25  Bruno Haible  <bruno@clisp.org>
57807         readlink doc: Mention an old glibc bug.
57808         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
57810 2010-12-25  Bruno Haible  <bruno@clisp.org>
57812         fcntl-h: Fix for use of C++ on glibc systems.
57813         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57814         also on glibc systems in C++ mode.
57815         Reported by Gary V. Vaughan <gary@gnu.org>.
57817 2010-12-25  Bruno Haible  <bruno@clisp.org>
57819         roundl-ieee: Make it work on OSF/1 5.1 with cc.
57820         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
57822 2010-12-25  Bruno Haible  <bruno@clisp.org>
57824         truncl-ieee: Make it work on OSF/1 5.1 with cc.
57825         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
57826         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
57827         test whether truncl works according to ISO C 99 with IEC 60559.
57828         * m4/truncl-ieee.m4: New file.
57829         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
57830         m4/signbit.m4.
57831         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
57833 2010-12-25  Bruno Haible  <bruno@clisp.org>
57835         ceill-ieee: Make it work on OSF/1 5.1 with cc.
57836         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
57837         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
57838         test whether ceill works according to ISO C 99 with IEC 60559.
57839         * m4/ceill-ieee.m4: New file.
57840         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
57841         m4/signbit.m4.
57842         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
57844 2010-12-25  Bruno Haible  <bruno@clisp.org>
57846         Ensure all prerequisites of <wchar.h> are included.
57847         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
57848         before <wchar.h>.
57849         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57850         gl_MBRLEN_NUL_RETVAL): Likewise.
57851         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57852         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
57853         AC_FUNC_MBRTOWC): Likewise.
57854         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57855         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57856         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57857         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
57858         Likewise.
57859         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57860         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
57861         (gl_WCHAR_H): Improve comments.
57862         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57864 2010-12-25  Bruno Haible  <bruno@clisp.org>
57866         strtok_r: Fix C syntax error in autoconf macro.
57867         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
57868         characters in test program.
57870 2010-12-24  Bruno Haible  <bruno@clisp.org>
57872         ceil, trunc, round: Fix gcc warnings.
57873         * lib/ceil.c (MIN): Undefine before redefining.
57874         * lib/trunc.c (MIN): Likewise.
57875         * lib/round.c (MIN): Likewise.
57876         Include <math.h> first.
57878 2010-12-24  Bruno Haible  <bruno@clisp.org>
57880         select tests: Avoid failures on OSF/1 5.1.
57881         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
57882         failure of closing the last socket; it may fail with ECONNRESET.
57884 2010-12-24  Eric Blake  <eblake@redhat.com>
57886         stdint: avoid HP-UX 10.20 preprocessor bug
57887         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
57888         than #if.
57889         * tests/test-floor2.c (main): Likewise.
57890         Reported by Peter O'Gorman.
57892         pipe: make obsoletion transition easier
57893         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
57894         * modules/pipe (Files): Include revived file.
57895         (Include): Drop reference, to mirror getdate's behavior.
57897 2010-12-24  Bruno Haible  <bruno@clisp.org>
57899         sys_socket: Hide mismatch of declarations on NonStop Kernel.
57900         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
57901         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
57902         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57904 2010-12-24  Bruno Haible  <bruno@clisp.org>
57906         gethostname: Ensure declaration on NonStop Kernel.
57907         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
57908         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57910 2010-12-24  Bruno Haible  <bruno@clisp.org>
57912         sys_select: Ensure all necessary types on NonStop Kernel.
57913         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
57914         include <sys/time.h>.
57915         * doc/posix-headers/sys_select.texi: Mention that it's missing on
57916         NonStop Kernel.
57917         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57919 2010-12-24  Bruno Haible  <bruno@clisp.org>
57921         sys_select: Remove unneeded include.
57922         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
57923         have <sys/select.h>.
57925 2010-12-24  Bruno Haible  <bruno@clisp.org>
57927         gethostname: Provide a fallback for HOST_NAME_MAX.
57928         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
57929         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
57930         instead.
57931         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57933 2010-12-24  Bruno Haible  <bruno@clisp.org>
57935         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
57936         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
57937         (SA_RESTART): Likewise.
57938         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57940 2010-12-24  Bruno Haible  <bruno@clisp.org>
57942         signal: Define NSIG.
57943         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
57944         * tests/test-signal.c (nsig): New variable.
57945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57947 2010-12-24  Bruno Haible  <bruno@clisp.org>
57949         rename, renameat: Avoid test failures on OSF/1 5.1.
57950         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
57951         alternative error codes.
57952         * tests/test-renameat.c (main): Likewise.
57954 2010-12-24  Bruno Haible  <bruno@clisp.org>
57956         *printf: Detect large precisions bug on Solaris 10/SPARC.
57957         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
57958         by Paul Eggert.
57959         * tests/test-snprintf-posix.h (test_function): Add this test code here
57960         too.
57961         * tests/test-sprintf-posix.h (test_function): Likewise.
57962         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57963         * tests/test-vasprintf-posix.c (test_function): Likewise.
57964         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
57965         around by gnulib.
57966         * doc/posix-functions/printf.texi: Likewise.
57967         * doc/posix-functions/snprintf.texi: Likewise.
57968         * doc/posix-functions/sprintf.texi: Likewise.
57969         * doc/posix-functions/vfprintf.texi: Likewise.
57970         * doc/posix-functions/vprintf.texi: Likewise.
57971         * doc/posix-functions/vsnprintf.texi: Likewise.
57972         * doc/posix-functions/vsprintf.texi: Likewise.
57973         * doc/posix-functions/dprintf.texi: Undo last commit.
57974         * doc/posix-functions/vdprintf.texi: Likewise.
57976 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57978         tests: port test-fdutimensat.c to Solaris 8
57979         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
57980         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
57981         On Solaris 8, it fails with errno == ENOSYS, because there is no
57982         futimens (so it can't use the fd), and there is no lutimens (so it
57983         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
57985         vsnprintf: make more consistent with snprintf; doc fixes
57987         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
57988         the byte count return problem was promoted from the snprintf-posix
57989         to the snprintf module.
57990         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
57991         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
57992         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
57993         * tests/test-snprintf.c (main): Check the byte count returned.
57994         * tests/test-vsnprintf.c (main): Likewise.
57996 2010-12-23  Eric Blake  <eblake@redhat.com>
57998         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
57999         * modules/sigpipe (License): Relax license.
58001 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58003         doc: document Solaris printf bug with large float precisions
58004         * doc/posix-functions/dprintf.texi (dprintf):
58005         * doc/posix-functions/fprintf.texi (fprintf):
58006         * doc/posix-functions/printf.texi (printf):
58007         * doc/posix-functions/snprintf.texi (snprintf):
58008         * doc/posix-functions/sprintf.texi (sprintf):
58009         * doc/posix-functions/vdprintf.texi (vdprintf):
58010         * doc/posix-functions/vfprintf.texi (vfprintf):
58011         * doc/posix-functions/vprintf.texi (vprintf):
58012         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58013         * doc/posix-functions/vsprintf.texi (vsprintf):
58014         Mention that these functions mishandle large floating point
58015         precisions on Solaris 10.  The same bug is also present in Solaris
58016         8, and I assume earlier.  This causes "cd gnulib-tests; make
58017         check" to fail on Solaris 8 (and I assume, later) when building
58018         the latest coreutils, in test-vasprintf-posix's call to
58019         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58020         the wide flavors (e.g., wprintf) so this patch just updates the
58021         documentation for the narrow ones.
58023         test-posixtm.c: add two tests
58024         * tests/test-posixtm.c: Add two tests, to highlight the
58025         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58026         around this bug; this is merely to document it.
58028 2010-12-22  Bruno Haible  <bruno@clisp.org>
58030         getlogin_r: Work around portability problem on OSF/1.
58031         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58032         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58033         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58034         test for a truncated result.
58035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58036         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58037         * modules/getlogin_r (Depends-on): Add memchr.
58038         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58040 2010-12-22  Bruno Haible  <bruno@clisp.org>
58042         ptsname: Avoid test failure on OSF/1 5.1.
58043         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58044         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58045         (same_slave): New function.
58046         (main): Use it to compare ptsname's result with the expected file name.
58048 2010-12-22  Bruno Haible  <bruno@clisp.org>
58050         Port extended stdio modules to HP NonStop Kernel.
58051         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58052         macros.
58053         * lib/fbufmode.c: Update comments.
58054         * lib/fflush.c: Likewise.
58055         * lib/fpurge.c: Likewise.
58056         * lib/freadable.c: Likewise.
58057         * lib/freadahead.c: Likewise.
58058         * lib/freading.c: Likewise.
58059         * lib/freadptr.c: Likewise.
58060         * lib/freadseek.c: Likewise.
58061         * lib/fseeko.c: Likewise.
58062         * lib/fseterr.c: Likewise.
58063         * lib/fwritable.c: Likewise.
58064         * lib/fwriting.c: Likewise.
58065         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58067 2010-12-22  Bruno Haible  <bruno@clisp.org>
58069         ttyname_r: Work around bug on OSF/1 5.1.
58070         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58071         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58072         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58073         present.
58074         * lib/ttyname_r.c (ttyname_r): Update comments.
58076 2010-12-22  Bruno Haible  <bruno@clisp.org>
58078         round: Implement result sign according to IEEE 754.
58079         * lib/round.c (MIN, MINUS_ZERO): New macros.
58080         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58081         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58082         * tests/test-round-ieee.c (main): Likewise.
58083         * tests/test-roundl-ieee.c (main): Likewise.
58085         trunc: Implement result sign according to IEEE 754.
58086         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58087         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58088         * tests/test-trunc2.c: Include minus-zero.h.
58089         (MINUS_ZERO): New macro.
58090         (trunc_reference): Keep in sync with lib/trunc.c.
58091         * tests/test-truncf2.c: Include minus-zero.h.
58092         (MINUS_ZERO): New macro.
58093         (truncf_reference): Keep in sync with lib/trunc.c.
58094         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58095         * tests/test-trunc-ieee.c (main): Likewise.
58096         * tests/test-truncl-ieee.c (main): Likewise.
58098         ceil: Implement result sign according to IEEE 754.
58099         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58100         (FUNC): Return -0.0 for -1 < x < 0.
58101         * tests/test-ceil2.c: Include minus-zero.h.
58102         (MINUS_ZERO): New macro.
58103         (ceil_reference): Keep in sync with lib/ceil.c.
58104         * tests/test-ceilf2.c: Include minus-zero.h.
58105         (MINUS_ZERO): New macro.
58106         (ceilf_reference): Keep in sync with lib/ceil.c.
58107         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58108         * tests/test-ceil-ieee.c (main): Likewise.
58109         * tests/test-ceill-ieee.c (main): Likewise.
58111         floor: Implement result sign according to IEEE 754.
58112         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58113         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58114         * tests/test-floorf2.c (floorf_reference): Likewise.
58115         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58116         * tests/test-floor-ieee.c (main): Likewise.
58117         * tests/test-floorl-ieee.c (main): Likewise.
58119 2010-12-22  Bruno Haible  <bruno@clisp.org>
58121         getaddrinfo: Update doc.
58122         * doc/posix-functions/gai_strerror.texi: Return type is also different
58123         on AIX and HP-UX.
58125 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58127         getaddrinfo, inet_ntop: Update doc for Solaris.
58128         * doc/posix-functions/gai_strerror.texi: Return type is also an
58129         issue on Solaris 9 and earlier.
58130         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58131         on Solaris 10 and earlier.
58133 2010-12-21  Bruno Haible  <bruno@clisp.org>
58135         New module 'roundl-ieee'.
58136         * modules/roundl-ieee: New file.
58137         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58138         test whether roundl works according to ISO C 99 with IEC 60559.
58139         * m4/roundl-ieee.m4: New file.
58140         * modules/roundl-ieee-tests: New file.
58141         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58142         * tests/test-roundl.c (main): Remove signbit tests.
58143         * modules/roundl-tests (Depends-on): Remove signbit.
58144         * doc/posix-functions/roundl.texi: Mention the new module.
58146 2010-12-21  Bruno Haible  <bruno@clisp.org>
58148         New module 'truncl-ieee'.
58149         * modules/truncl-ieee: New file.
58150         * modules/truncl-ieee-tests: New file.
58151         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58152         * tests/test-truncl.c (main): Remove signbit tests.
58153         * modules/truncl-tests (Depends-on): Remove signbit.
58154         * doc/posix-functions/truncl.texi: Mention the new module.
58156 2010-12-21  Bruno Haible  <bruno@clisp.org>
58158         New module 'ceill-ieee'.
58159         * modules/ceill-ieee: New file.
58160         * modules/ceill-ieee-tests: New file.
58161         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58162         * tests/test-ceill.c (main): Remove signbit tests.
58163         * modules/ceill-tests (Depends-on): Remove signbit.
58164         * doc/posix-functions/ceill.texi: Mention the new module.
58166 2010-12-21  Bruno Haible  <bruno@clisp.org>
58168         New module 'floorl-ieee'.
58169         * modules/floorl-ieee: New file.
58170         * modules/floorl-ieee-tests: New file.
58171         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58172         * tests/test-floorl.c (main): Remove signbit tests.
58173         * modules/floorl-tests (Depends-on): Remove signbit.
58174         * doc/posix-functions/floorl.texi: Mention the new module.
58176 2010-12-21  Bruno Haible  <bruno@clisp.org>
58178         New module 'round-ieee'.
58179         * modules/round-ieee: New file.
58180         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58181         whether round works according to ISO C 99 with IEC 60559.
58182         * m4/round-ieee.m4: New file.
58183         * modules/round-ieee-tests: New file.
58184         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58185         * tests/test-round1.c (main): Remove signbit tests.
58186         * modules/round-tests (Depends-on): Remove 'signbit'.
58187         * doc/posix-functions/round.texi: Mention the new module.
58189 2010-12-21  Bruno Haible  <bruno@clisp.org>
58191         New module 'trunc-ieee'.
58192         * modules/trunc-ieee: New file.
58193         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58194         whether trunc works according to ISO C 99 with IEC 60559.
58195         * m4/trunc-ieee.m4: New file.
58196         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58198         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58199         * modules/trunc-ieee-tests: New file.
58200         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58201         * tests/test-trunc1.c (main): Remove signbit tests.
58202         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58203         * doc/posix-functions/trunc.texi: Mention the new module.
58205 2010-12-21  Bruno Haible  <bruno@clisp.org>
58207         New module 'ceil-ieee'.
58208         * modules/ceil-ieee: New file.
58209         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58210         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58211         ISO C 99 with IEC 60559.
58212         * m4/ceil-ieee.m4: New file.
58213         * modules/ceil (Files): Add lib/ceil.c.
58214         (Depends-on): Add 'float'.
58215         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58216         * lib/math.in.h (ceil): New declaration.
58217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58218         REPLACE_CEIL.
58219         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58220         * modules/ceil-ieee-tests: New file.
58221         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58222         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58223         * doc/posix-functions/ceil.texi: Mention the new module.
58225 2010-12-21  Bruno Haible  <bruno@clisp.org>
58227         New module 'floor-ieee'.
58228         * modules/floor-ieee: New file.
58229         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58230         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58231         ISO C 99 with IEC 60559.
58232         * m4/floor-ieee.m4: New file.
58233         * modules/floor (Files): Add lib/floor.c.
58234         (Depends-on): Add 'float'.
58235         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58236         * lib/math.in.h (floor): New declaration.
58237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58238         REPLACE_FLOOR.
58239         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58240         * modules/floor-ieee-tests: New file.
58241         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58242         * tests/test-math-c++.cc: Check the signature of 'floor'.
58243         * doc/posix-functions/floor.texi: Mention the new module.
58245 2010-12-21  Bruno Haible  <bruno@clisp.org>
58247         New module 'roundf-ieee'.
58248         * modules/roundf-ieee: New file.
58249         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58250         test whether roundf works according to ISO C 99 with IEC 60559.
58251         * m4/roundf-ieee.m4: New file.
58252         * modules/roundf-ieee-tests: New file.
58253         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58254         * tests/test-roundf1.c (main): Remove signbit tests.
58255         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58256         * doc/posix-functions/roundf.texi: Mention the new module.
58258 2010-12-21  Bruno Haible  <bruno@clisp.org>
58260         New module 'truncf-ieee'.
58261         * modules/truncf-ieee: New file.
58262         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58263         test whether truncf works according to ISO C 99 with IEC 60559.
58264         * m4/truncf-ieee.m4: New file.
58265         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58267         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58268         * modules/truncf-ieee-tests: New file.
58269         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58270         * tests/test-truncf1.c (main): Remove signbit tests.
58271         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58272         * doc/posix-functions/truncf.texi: Mention the new module.
58274 2010-12-21  Bruno Haible  <bruno@clisp.org>
58276         New module 'ceilf-ieee'.
58277         * modules/ceilf-ieee: New file.
58278         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58279         test whether ceilf works according to ISO C 99 with IEC 60559.
58280         * m4/ceilf-ieee.m4: New file.
58281         * modules/ceilf-ieee-tests: New file.
58282         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58283         * tests/test-ceilf1.c (main): Remove signbit tests.
58284         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58285         * doc/posix-functions/ceilf.texi: Mention the new module.
58287 2010-12-21  Bruno Haible  <bruno@clisp.org>
58289         New module 'floorf-ieee'.
58290         * modules/floorf-ieee: New file.
58291         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58292         test whether floorf works according to ISO C 99 with IEC 60559.
58293         * m4/floorf-ieee.m4: New file.
58294         * modules/floorf-ieee-tests: New file.
58295         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58296         * tests/test-floorf1.c (main): Remove signbit tests.
58297         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58298         * doc/posix-functions/floorf.texi: Mention the new module.
58300 2010-12-21  Bruno Haible  <bruno@clisp.org>
58302         Support for minus zero in autoconf macros.
58303         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58304         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58305         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58306         * tests/minus-zero.h: Update comments.
58308 2010-12-21  Bruno Haible  <bruno@clisp.org>
58310         Tests for module 'ceil'.
58311         * modules/ceil-tests: New file.
58312         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58313         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58315 2010-12-21  Bruno Haible  <bruno@clisp.org>
58317         Tests for module 'floor'.
58318         * modules/floor-tests: New file.
58319         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58320         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58322 2010-12-21  Bruno Haible  <bruno@clisp.org>
58324         math: Fix indentation.
58325         * lib/math.in.h (floorf): Fix indentation.
58327 2010-12-21  Bruno Haible  <bruno@clisp.org>
58329         Fix cross-compilation guesses on Solaris.
58330         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58331         not match "solaris2.10".
58332         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58333         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58334         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58336 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58338         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58339         This fixes a problem observed with the latest coreutils snapshot
58340         that caused a test to fail on Solaris 8.  src/csplit.c's call
58341         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58342         earlier, instead of returning the number of bytes that would have
58343         been generated; this causes csplit to incorrectly report memory
58344         exhaustion.
58345         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58346         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58347         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58348         comments to match.
58349         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58350         Fix typo in matching older versions of Solaris: "solaris2.10"
58351         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58352         only for guessing while cross-compiling.
58353         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58355 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58357         ftoastr: fix comment again
58358         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58359         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58360         Also, simplify example a bit by using flags = 0.
58362 2010-12-20  Bruno Haible  <bruno@clisp.org>
58364         round*, trunc*: Update documentation regarding glibc.
58365         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58366         * doc/posix-functions/round.texi: Likewise.
58367         * doc/posix-functions/roundl.texi: Likewise.
58368         * doc/posix-functions/truncf.texi: Likewise.
58369         * doc/posix-functions/trunc.texi: Likewise.
58370         * doc/posix-functions/truncl.texi: Likewise.
58372 2010-12-20  Bruno Haible  <bruno@clisp.org>
58374         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58375         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58376         * doc/posix-functions/round.texi: Likewise.
58377         * doc/posix-functions/roundl.texi: Likewise.
58379 2010-12-20  Bruno Haible  <bruno@clisp.org>
58381         ttyname_r: Add missing declaration on HP-UX 11.
58382         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58383         HAVE_TTYNAME_R.
58384         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58385         declared. Set HAVE_TTYNAME_R always.
58386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58387         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58388         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58389         HAVE_TTYNAME_R.
58390         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58392 2010-12-20  Bruno Haible  <bruno@clisp.org>
58394         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58395         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58396         * doc/posix-functions/getlogin_r.texi: Likewise.
58397         * tests/test-getlogin.c: Include <errno.h>.
58398         (main): Avoid test failure on HP-UX 11.11.
58399         * tests/test-getlogin_r.c (main): Likewise.
58401 2010-12-20  Bruno Haible  <bruno@clisp.org>
58403         getlogin_r: Add missing declaration on HP-UX 11.
58404         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58405         declared also when it exists as a function.
58406         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58408 2010-12-20  Bruno Haible  <bruno@clisp.org>
58410         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58411         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58412         through wcrtomb.
58414 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58416         ftoastr: fix comment
58417         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58418         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58420 2010-12-19  Bruno Haible  <bruno@clisp.org>
58422         isnan: Ensure it is a macro.
58423         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58424         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58425         Solaris.
58427 2010-12-19  Bruno Haible  <bruno@clisp.org>
58429         ldexpl test: Fix link error on OSF/1 5.1.
58430         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58432 2010-12-19  Bruno Haible  <bruno@clisp.org>
58434         wctype: Make it work in C++ mode on OSF/1 5.1.
58435         * lib/wctype.in.h (iswblank): Declare but not define here.
58436         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58437         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58438         * modules/wctype (Files): Add lib/iswblank.c.
58440 2010-12-19  Bruno Haible  <bruno@clisp.org>
58442         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58443         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58444         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58446 2010-12-19  Bruno Haible  <bruno@clisp.org>
58448         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58450         _POSIX_PII_SOCKET.
58451         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58452         * doc/posix-functions/recvfrom.texi: Likewise.
58453         * doc/posix-functions/send.texi: Likewise.
58454         * doc/posix-functions/sendto.texi: Likewise.
58456 2010-12-19  Bruno Haible  <bruno@clisp.org>
58458         tcgetsid: Add missing declaration on OSF/1 5.1.
58459         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58460         HAVE_TCGETSID.
58461         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58462         Don't set HAVE_TCGETSID.
58463         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58464         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58465         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58466         HAVE_TCGETSID.
58467         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58469 2010-12-19  Bruno Haible  <bruno@clisp.org>
58471         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58472         * lib/stdio.in.h: During the include_next statement, let recursive
58473         includes of this file include only the system header file.
58475 2010-12-19  Bruno Haible  <bruno@clisp.org>
58477         iconv_open: Fix regression from 2010-12-04.
58478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58479         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58481 2010-12-19  Bruno Haible  <bruno@clisp.org>
58483         stdbool test: Avoid a gcc warning.
58484         * tests/test-stdbool.c (main): Fail if e1 is false.
58485         Reported by Jim Meyering.
58487 2010-12-19  Jim Meyering  <meyering@redhat.com>
58489         setenv: restore to working order
58490         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58491         mistakenly removed.
58492         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58493         HAVE_SETENV.
58494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58495         HAVE_SETENV.
58497 2010-12-19  Bruno Haible  <bruno@clisp.org>
58499         Document some different function declarations on OSF/1 5.1.
58500         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58501         * doc/posix-functions/inet_ntop.texi: Likewise.
58502         * doc/posix-functions/gethostname.texi: Likewise.
58503         * lib/unistd.in.h (gethostname): Update comment.
58505 2010-12-19  Bruno Haible  <bruno@clisp.org>
58507         doc: Mention vasprintf-posix module.
58508         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58509         the 'vasprintf-posix' module.
58510         * doc/glibc-functions/vasprintf.texi: Likewise.
58512 2010-12-19  Bruno Haible  <bruno@clisp.org>
58514         unsetenv: Add missing declaration on OSF/1 5.1.
58515         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58516         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58517         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58519         not HAVE_UNSETENV.
58520         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58521         HAVE_UNSETENV.
58522         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58524 2010-12-19  Bruno Haible  <bruno@clisp.org>
58526         setenv: Add missing declaration on OSF/1 5.1.
58527         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58528         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58529         declared. Don't set HAVE_SETENV.
58530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58531         not HAVE_SETENV.
58532         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58533         HAVE_SETENV.
58534         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58536 2010-12-19  Bruno Haible  <bruno@clisp.org>
58538         nl_langinfo tests: Avoid gcc warning.
58539         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58541 2010-12-19  Bruno Haible  <bruno@clisp.org>
58543         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58544         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58545         _GL_CXXALIAS_SYS.
58547 2010-12-19  Bruno Haible  <bruno@clisp.org>
58549         stdbool: Relax test.
58550         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58551         address to 'bool' work in static initializer, for compilers other than
58552         GCC.
58554 2010-12-19  Bruno Haible  <bruno@clisp.org>
58556         ftello: Add missing declaration on OSF/1 5.1.
58557         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58558         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58560         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58561         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58563 2010-12-19  Bruno Haible  <bruno@clisp.org>
58565         fseeko: Add missing declaration on OSF/1 5.1.
58566         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58569         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58570         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58572 2010-12-19  Bruno Haible  <bruno@clisp.org>
58574         fchdir: Add missing declaration on OSF/1 5.1.
58575         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58578         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58579         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58581 2010-12-19  Bruno Haible  <bruno@clisp.org>
58583         relocatable-prog-wrapper: Separate from relocatable-prog.
58584         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58585         uninstall-relocwrapper rule here.
58586         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58587         Reported by Ian Beckwith <ianb@erislabs.net>.
58589 2010-12-19  Bruno Haible  <bruno@clisp.org>
58591         unistr/u8-mbsnlen: Add missing dependency.
58592         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58593         Reported by Ian Beckwith <ianb@erislabs.net>.
58595 2010-12-19  Bruno Haible  <bruno@clisp.org>
58597         iconv: Make it possible again to use this module without 'iconv-h'.
58598         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58599         if it is not defined.
58600         Reported by Ian Beckwith <ianb@erislabs.net>.
58602 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58604         acl: port to Solaris 8 when copying from tmpfs to ufs
58605         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58606         error number.  Problem observed on Solaris 8 with latest
58607         coreutils, with "mv A B", where A is on a tmpfs file system and B
58608         is on a ufs file system.  This caused coreutils' mv/part-symlink
58609         test to fail.
58611         tests: set fail=0 at start
58612         * tests/init.sh (setup_): Move fail=0 initialization here ...
58613         (mktempd_): ... from here, so that tests can rely on fail being
58614         set to 0 initially.  This fixes a problem in coreutils; see:
58615         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58617 2010-12-18  Bruno Haible  <bruno@clisp.org>
58619         memmem-simple: Stylistic changes.
58620         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58621         Fix preprocessor directive indentation.
58623 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58625         memmem, memmem-simple: reorganize and expand empty needle check
58626         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58627         functional checks to memmem-simple so that one has a fully functional
58628         memmem by using just this module.
58629         Restrict the performance only check to the memmem module.
58630         Also expand the empty needle check to ensure the correct
58631         pointer is returned, not just a non NULL pointer.
58632         * doc/glibc-functions/memmem.texi: Rearrange the portability
58633         documentation to correlate with the rearranged checks.
58634         Clarify exactly how the memmem and memmem-simple modules
58635         relate to each other.
58637 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58638             Bruno Haible  <bruno@clisp.org>
58640         Improve cross-compilation guesses for uClibc.
58641         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58642         that uClibc does not have the glibc bug.
58643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58644         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58646 2010-12-14  Eric Blake  <eblake@redhat.com>
58648         configmake: provide fallbacks for oldest supported autotools
58649         * m4/configmake.m4: New file.
58650         * modules/configmake (Files): Ship it.
58651         (configure.ac): Use it to guarantee fallbacks.
58653 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58655         read-file: Improve handling of large files
58656         * lib/read-file.c (fread_file): Minimize realloc()s
58657         for regular files, and better manage sizes around SIZE_MAX.
58659 2010-12-13  Eric Blake  <eblake@redhat.com>
58661         cloexec, fcntl: relax license
58662         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58663         consent from all contributors.
58664         * modules/fcntl (License): Likewise.
58666 2010-12-10  Bruno Haible  <bruno@clisp.org>
58668         Tests for module 'pipe-posix'.
58669         * modules/pipe-posix-tests: New file.
58670         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58672 2010-12-10  Bruno Haible  <bruno@clisp.org>
58674         pipe-posix: Make it work in C++ mode.
58675         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58676         (pipe): Use common idiom, not a macro definition.
58677         * lib/pipe.c: New file.
58678         * m4/pipe.m4: New file.
58679         * modules/pipe-posix (Description): Enhance.
58680         (Files): Add lib/pipe.c, m4/pipe.m4.
58681         (configure.ac): Invoke gl_FUNC_PIPE.
58682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58683         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58684         * tests/test-unistd-c++.cc: Check the signature of pipe.
58686 2010-12-10  Bruno Haible  <bruno@clisp.org>
58688         Rename module 'pipe' to 'spawn-pipe'.
58689         * modules/spawn-pipe: New file, renamed from modules/pipe.
58690         (Files, configure.ac, Makefile.am): Update.
58691         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58692         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58693         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58694         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58695         "spawn-pipe.h" instead of "pipe.h".
58696         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58697         to gl_SPAWN_PIPE.
58698         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58699         (Files, Makefile.am): Update.
58700         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58701         Update.
58702         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58703         Include "spawn-pipe.h" instead of "pipe.h".
58704         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58705         * lib/javacomp.c: Likewise.
58706         * lib/javaversion.c: Likewise.
58707         * lib/pipe-filter-gi.c: Likewise.
58708         * lib/pipe-filter-ii.c: Likewise.
58709         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58710         * modules/javacomp (Depends-on): Likewise.
58711         * modules/javaversion (Depends-on): Likewise.
58712         * modules/pipe-filter-gi (Depends-on): Likewise.
58713         * modules/pipe-filter-ii (Depends-on): Likewise.
58714         * MODULES.html.sh (Executing programs): Update.
58715         * NEWS: Mention the change.
58717 2010-12-10  Eric Blake  <eblake@redhat.com>
58719         pipe-posix: new module
58720         * modules/pipe-posix: New file.
58721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
58722         (gl_UNISTD_H): Check for declaration.
58723         * modules/unistd (Makefile.am): Substitute it.
58724         * lib/unistd.in.h (pipe): Provide it for mingw.
58725         * doc/posix-functions/pipe.texi (pipe): Update documentation.
58726         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
58728 2010-12-07  Bruno Haible  <bruno@clisp.org>
58730         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
58731         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
58732         u8_strcmp_gnu.
58733         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
58735 2010-12-06  Bruno Haible  <bruno@clisp.org>
58737         Update internal documentation.
58738         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
58740 2010-12-04  Bruno Haible  <bruno@clisp.org>
58742         Put more information about failed tests into the test return codes.
58743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
58744         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
58745         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58747         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
58748         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58749         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58750         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
58751         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
58752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58753         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
58754         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58755         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
58756         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58757         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
58758         returns a bit mask.
58759         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
58760         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
58761         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
58762         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
58763         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58764         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
58765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58767         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
58768         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
58769         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58770         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
58771         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
58772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
58773         * m4/link.m4 (gl_FUNC_LINK): Likewise.
58774         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58775         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
58776         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
58777         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58778         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
58779         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58780         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
58782         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58783         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58784         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58785         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
58786         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
58787         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
58788         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
58789         gl_PRINTF_PRECISION): Likewise.
58790         * m4/regex.m4 (gl_REGEX): Likewise.
58791         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58792         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58793         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
58794         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58797         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
58798         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
58799         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58800         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58801         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58802         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58803         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
58804         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58805         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58806         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58807         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
58808         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58810         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
58811         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
58812         enumerated value.
58813         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
58815 2010-12-04  Bruno Haible  <bruno@clisp.org>
58817         Update for Solaris 11 2010-11.
58818         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
58819         Express, released in November 2010.
58821 2010-12-04  Bruno Haible  <bruno@clisp.org>
58823         nproc: Relax license.
58824         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
58825         and Paul Eggert.
58826         Requested by Ludovic Courtès <ludo@gnu.org>.
58828 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58830         utimecmp: fine-grained src to nearby coarse-grained dest
58832         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
58833         and the source is on a file system with higher-resolution time
58834         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
58835         not work, and the time stamps are close together, the algorithm to
58836         determine the exact resolution from the read-back mtime was buggy:
58837         it had a "!=" where it should have had an "==".  This bug has been
58838         in the code ever since it was introduced to gnulib.
58839         Problem reported by Dan Jacobson in
58840         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
58842 2010-11-30  Bruno Haible  <bruno@clisp.org>
58844         strerror_r-posix: Fix autoconf test.
58845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
58847 2010-11-28  Bruno Haible  <bruno@clisp.org>
58848             Paul Eggert  <eggert@cs.ucla.edu>
58850         Tests for module 'getdomainname'.
58851         * modules/getdomainname-tests: New file.
58852         * tests/test-getdomainname.c: New file, based on
58853         tests/test-gethostname.c.
58855 2010-11-28  Bruno Haible  <bruno@clisp.org>
58856             Paul Eggert  <eggert@cs.ucla.edu>
58858         getdomainname: Use the system function when possible.
58859         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
58860         (getdomainname): Replace if needed. Provide the declaration if it is
58861         missing. Don't use _GL_CXXALIAS_SYS_CAST.
58862         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
58863         (getdomainname): When the system has getdomainname, call the system
58864         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
58865         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
58866         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
58867         found in libnsl. Look for the declaration also in <netdb.h>. Replace
58868         the function if its second argument is of type 'int' or if it is found
58869         in libnsl.
58870         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
58871         <sys/systeminfo.h> and sysinfo().
58872         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
58873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58874         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
58875         HAVE_GETDOMAINNAME.
58876         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
58877         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
58878         * doc/glibc-functions/getdomainname.texi: Document the problems with
58879         the getdomainname declaration.
58881 2010-11-28  Bruno Haible  <bruno@clisp.org>
58883         sys_socket: Ensure ss_family field on AIX.
58884         * lib/sys_socket.in.h (ss_family): New macro definition.
58885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
58886         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
58887         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
58888         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
58889         * modules/sys_socket (Makefile.am): Substitute
58890         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
58891         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
58893 2010-11-27  Bruno Haible  <bruno@clisp.org>
58895         readline: Improve configure output.
58896         * m4/readline.m4 (gl_FUNC_READLINE): Make the
58897         "checking for readline..." result understandable.
58899 2010-11-27  Bruno Haible  <bruno@clisp.org>
58901         *printf-posix: Detect a bug on Solaris 10/x86.
58902         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
58903         for floating-point output.
58904         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
58905         directive.
58906         * tests/test-snprintf-posix.h (test_function): Likewise.
58907         * tests/test-sprintf-posix.h (test_function): Likewise.
58908         * tests/test-vasprintf-posix.c (test_function): Likewise.
58909         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
58910         * doc/posix-functions/printf.texi: Likewise.
58911         * doc/posix-functions/snprintf.texi: Likewise.
58912         * doc/posix-functions/sprintf.texi: Likewise.
58913         * doc/posix-functions/vfprintf.texi: Likewise.
58914         * doc/posix-functions/vprintf.texi: Likewise.
58915         * doc/posix-functions/vsnprintf.texi: Likewise.
58916         * doc/posix-functions/vsprintf.texi: Likewise.
58917         * doc/glibc-functions/obstack_printf.texi: Likewise.
58918         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
58920 2010-11-27  Bruno Haible  <bruno@clisp.org>
58922         Fix link error when module libunistring-optional is in use.
58923         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
58924         * modules/striconveha-tests (Makefile.am): Likewise.
58926 2010-11-27  Bruno Haible  <bruno@clisp.org>
58928         regex: Mention link dependencies.
58929         * modules/regex (Link): New section.
58930         * modules/rpmatch (Link): Likewise.
58931         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
58933 2010-11-27  Bruno Haible  <bruno@clisp.org>
58935         ftoastr: Fix compilation error on Solaris.
58936         * lib/ftoastr.c: Include <config.h>.
58938 2010-11-27  Bruno Haible  <bruno@clisp.org>
58940         getloadavg: Update documentation.
58941         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
58943 2010-11-27  Bruno Haible  <bruno@clisp.org>
58945         sys_socket: Fix test whether the functions are declared.
58946         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
58947         not <sys/select.h>.
58949 2010-11-27  Bruno Haible  <bruno@clisp.org>
58951         getpass: Make sure to get system declaration on some platforms.
58952         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
58953         gl_USE_SYSTEM_EXTENSIONS.
58954         * modules/getpass (Depends-on): Add extensions.
58956 2010-11-26  Bruno Haible  <bruno@clisp.org>
58958         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
58959         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
58960         'iconv' module is present.
58961         (ICONV_CONST): New macro.
58962         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
58963         ICONV_CONST.
58964         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
58965         set ICONV_CONST.
58966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
58967         here.
58968         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
58969         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
58970         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
58971         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
58972         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
58973         present.
58975 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58977         ftoastr: comment fix
58978         * lib/ftoastr.c: "little" -> "little or no" in comment
58980 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
58982         stdint: port to GCC 4.3 + OSX + Octave
58983         On this platform, stdint.h is buggy and defines int64_t to long
58984         long int.  The replacement defined it to long int, causing
58985         problems with C++ style name mangling.  Instead, trust the system
58986         definition if INT64_MAX is defined, and likewise for the unsigned
58987         variant.   Problem reported by Jarno Rajahalme in
58988         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
58989         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
58990         and don't mess with int64_t and INT64_MAX in this case.
58991         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
58993 2010-11-24  Bruno Haible  <bruno@clisp.org>
58995         doc: Corrections regarding MacOS X 10.4 and 10.5.
58996         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
58997         MacOS X.
58998         Reported by Simon Josefsson.
59000 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59002         Uninstall ".bin" files installed by relocwrapper.
59003         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59004         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59005         unless it is already there.
59007 2010-11-21  Bruno Haible  <bruno@clisp.org>
59009         Update for NetBSD 5.0.
59010         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59011         NetBSD; the test fails on NetBSD 5.0.
59012         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59013         about NetBSD.
59015 2010-11-21  Bruno Haible  <bruno@clisp.org>
59017         Update for HP-UX 11.23 and HP-UX 11.31.
59018         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59019         HP-UX.
59021 2010-11-21  Bruno Haible  <bruno@clisp.org>
59023         Update for MacOS X 10.5.
59024         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59025         MacOS X; the test fails on MacOS X 10.5.8.
59026         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59027         about MacOS X.
59029 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59031         bootstrap: add bootstrap_sync option.
59032         See discussion at
59033         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59034         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59035         * build-aux/bootstrap: Accept --bootstrap-sync to update
59036         bootstrap if it is not identical to the local gnulib's
59037         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59038         enable this by default.  Accept --no-bootstrap-sync to disable
59039         it.
59041 2010-11-20  Bruno Haible  <bruno@clisp.org>
59043         Ensure that <features.h> is included before __GLIBC__ is tested.
59044         * lib/printf-parse.h: Include <features.h>.
59045         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59046         Reported by Mike Frysinger <vapier@gentoo.org>.
59048         Ensure that <features.h> is included before __GLIBC__ is tested.
59049         * lib/wchar.in.h: Include <features.h>.
59050         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59051         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59052         Reported by Mike Frysinger <vapier@gentoo.org>.
59054         Ensure that <features.h> is included before __GLIBC__ is tested.
59055         * lib/arpa_inet.in.h: Include <features.h>.
59056         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59057         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59058         Reported by Mike Frysinger <vapier@gentoo.org>.
59060         Ensure that <features.h> is included before __GLIBC__ is tested.
59061         * build-aux/link-warning.h: Include <features.h>.
59062         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59063         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59064         Reported by Mike Frysinger <vapier@gentoo.org>.
59066         Ensure that <features.h> is included before __GLIBC__ is tested.
59067         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59068         Reported by Mike Frysinger <vapier@gentoo.org>.
59070 2010-11-20  Bruno Haible  <bruno@clisp.org>
59072         memmem: Fix autoconf test.
59073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59075 2010-11-20  Bruno Haible  <bruno@clisp.org>
59077         Port to uClibc.
59078         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59079         * lib/fcntl.in.h: Likewise.
59080         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59081         * lib/mbrtowc.c (mbrtowc): Likewise.
59082         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59083         * lib/strerror_r.c: Likewise.
59084         * lib/unistr/u8-strnlen.c: Likewise.
59085         * lib/vasnprintf.c (decimal_point_char): Likewise.
59086         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59087         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59089         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59090         * tests/test-sigaction.c (handler, main): Likewise.
59091         * lib/freading.h: Treat uClibc like a non-glibc platform.
59092         * lib/freading.c: Likewise.
59093         * lib/gettext.h: Likewise.
59094         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59095         Likewise.
59096         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59097         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59098         * lib/propername.c (proper_name_utf8): Likewise.
59099         * lib/spawn.in.h: Likewise.
59100         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59101         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59102         mem_cd_iconveh_internal): Likewise.
59103         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59104         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59105         strstr, strcasestr): Likewise.
59106         * lib/unicodeio.c (unicode_to_mb): Likewise.
59107         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59108         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59109         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59110         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59111         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59112         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59113         * lib/unistr/u8-stpncpy.c: Likewise.
59114         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59115         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59116         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59117         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59118         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59119         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59120         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59121         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59123         Likewise.
59124         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59125         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59126         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59128         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59129         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59130         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59131         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59132         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59133         * tests/test-striconveha.c (main): Likewise.
59134         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59135         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59136         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59137         * doc/posix-functions/getline.texi: Likewise.
59138         Reported by Mike Frysinger <vapier@gentoo.org>.
59140 2010-11-20  Bruno Haible  <bruno@clisp.org>
59142         nproc: Fix condition.
59143         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59144         HAVE_PTHREAD_AFFINITY_NP.
59146 2010-11-20  Bruno Haible  <bruno@clisp.org>
59148         Fix a comment.
59149         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59151 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59153         ftoastr: don't assume snprintf
59154         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59155         Implement a subset of snprintf here, by using sprintf safely.
59156         * modules/ftoastr (Depends-on): Remove snprintf.
59158 2010-11-19  Jim Meyering  <meyering@redhat.com>
59160         test-rename.h: fix compilation failure
59161         * tests/test-rename.h (test_rename): Add omitted "}".
59163 2010-11-17  Jim Meyering  <meyering@redhat.com>
59165         maint.mk: add a URL discussing the no-@acronym policy
59166         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59168 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59170         ftoastr: depend on snprintf, improve comments
59171         * lib/ftoastr.c: Also mention Loitsch's draft.
59172         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59173         needed in the current implementation, but it might simplify
59174         speeding up the code later.
59175         * modules/ftoastr: Depend on snprintf; this improves portability.
59176         Suggested by Bruno Haible in the same email.
59178         ftoastr: port to hosts lacking strtof and strtold
59179         Problem reported by Bruno Haible in
59180         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59181         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59182         environment and strtold (and presumably strtof) are not available.
59183         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59184         (configure.ac): Require gl_C99_STRTOLD.
59186 2010-11-18  Bruno Haible  <bruno@clisp.org>
59188         c-strtold: Avoid link error on AIX 7.
59189         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59190         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59191         (gl_C_STRTOLD): Test whether strtold_l exists.
59192         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59194 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59196         intprops: new macro INT_BITS_STRLEN_BOUND
59197         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59198         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59199         not exposed.  Also, it uses a slightly tighter bound than before;
59200         though this makes no practical difference, we might as well be as
59201         tight as we easily can.
59203         ftoastr: new module, for lossless conversion of floats to short strings
59204         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59205         * modules/ftoastr: New files.
59207 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59209         bootstrap: port to Solaris sed
59210         * build-aux/bootstrap (get_version): Port to Solaris sed.
59211         See Ralf Wildenhues's note in
59212         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59214 2010-11-14  Jim Meyering  <meyering@redhat.com>
59216         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59217         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59218         and move definition closer to sole use.
59220 2010-11-13  Jim Meyering  <meyering@redhat.com>
59222         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59223         Now we require at least autoconf-2.59, which means the work-around
59224         is no longer needed.
59225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59226         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59227         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59228         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59229         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59231 2010-11-13  Bruno Haible  <bruno@clisp.org>
59233         rename, renameat: Avoid test failures at NFS mounted locations.
59234         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59235         functions.
59236         (test_rename): Use assert_nonexistent.
59237         * tests/test-rename.c: Include <dirent.h>.
59238         * tests/test-renameat.c: Likewise.
59239         Reported by Gary V. Vaughan <gary@gnu.org>.
59241         rename, renameat: Document Linux bug with NFS
59242         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59243         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59244         * doc/posix-functions/renameat.texi: Likewise.
59245         Suggested by Eric Blake.
59247 2010-11-13  Bruno Haible  <bruno@clisp.org>
59249         rename test: Add comments.
59250         * tests/test-rename.h (test_rename): Add structure and comments.
59252 2010-11-13  Eric Blake  <eblake@redhat.com>
59254         maintainer-makefile: cover a few more files
59255         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59256         scripts generated within C files, for libvirt.
59258 2010-11-13  Bruno Haible  <bruno@clisp.org>
59260         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59261         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59262         character, return the number of bytes that belong together, not always
59263         1.
59264         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59265         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59266         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59267         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59268         number of bytes of an invalid character.
59269         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59270         (main): Invoke it.
59271         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59272         results.
59273         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59274         malformed byte sequences.
59275         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59276         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59277         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59278         Reported by Ben Pfaff and Paolo Bonzini.
59280 2010-11-13  Bruno Haible  <bruno@clisp.org>
59282         openat: Work around glibc bug with fchownat() and empty file names.
59283         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59284         (gl_FUNC_FCHOWNAT): Invoke it.
59285         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59286         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59287         Reported by Gary V. Vaughan <gary@gnu.org>.
59289 2010-11-13  Bruno Haible  <bruno@clisp.org>
59291         openat: Ensure autoconf macro ordering.
59292         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59293         gl_USE_SYSTEM_EXTENSIONS.
59294         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59296 2010-11-13  Bruno Haible  <bruno@clisp.org>
59298         Update comments.
59299         * lib/unistr/u8-check.c: Update file name in comments.
59300         * lib/unistr/u8-mblen.c: Likewise.
59301         * lib/unistr/u8-prev.c: Likewise.
59302         * lib/unistr/u8-strmblen.c: Likewise.
59303         * lib/unistr/u8-strmbtouc.c: Likewise.
59305 2010-11-13  Jim Meyering  <meyering@redhat.com>
59307         tests: avoid test failure on Solaris 10 due to lack of PATH export
59308         * tests/test-update-copyright.sh: Don't forget to export PATH.
59310         init.sh: ensure that IFS is defined, just in case...
59311         * tests/init.sh (setup_): Ensure that IFS is defined,
59312         so that saving and restoring it works as expected.  This
59313         appears to be useful at least for an old version of dash
59314         from a long time ago (RH 6).  See here for details:
59315         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59317         maint.mk: tighten "test a == b" check
59318         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59319         test to files that contain something like #!/bin/sh.
59320         Without this, coreutils would get two false positives in
59321         the comments of C source files.
59323 2010-11-12  Eric Blake  <eblake@redhat.com>
59325         bootstrap: fix typo in previous attempt
59326         * build-aux/bootstrap (buildreq): Correct the grouping.
59327         Reported by Paul Eggert.
59329         maintainer-makefile: prohibit test x == x
59330         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59331         Based on a report by Matthias Bolte.
59333         bootstrap: allow FreeBSD gzip
59334         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59335         which has no '.' and goes to stderr.
59336         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59337         Reported by Matthias Bolte.
59339         maintainer-makefile: check for i18n setup
59340         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59341         will likely work.
59343 2010-11-12  Bruno Haible  <bruno@clisp.org>
59345         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59346         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59347         * lib/nanosleep.c (nanosleep): Likewise.
59349 2010-11-11  Bruno Haible  <bruno@clisp.org>
59351         fcntl-h: Fix for use of C++ on glibc systems.
59352         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59353         also on glibc systems in C++ mode.
59354         Reported by Gary V. Vaughan <gary@gnu.org>.
59356 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59358         mknod: avoid false failure with dash
59359         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59361 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59363         unlink: Fix "is it should" typo in diagnostic.
59364         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59365         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59367 2010-11-11  Bruno Haible  <bruno@clisp.org>
59369         Tests for module 'strerror_r-posix'.
59370         * modules/strerror_r-posix-tests: New file.
59371         * tests/test-strerror_r.c: New file.
59372         * tests/test-string-c++.cc: Check the signature of strerror_r.
59374         New module 'strerror_r-posix'.
59375         * lib/string.in.h (strerror_r): New declaration.
59376         * lib/strerror_r.c: New file.
59377         * m4/strerror_r.m4: New file.
59378         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59379         of strerror_r.
59380         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59381         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59382         * modules/strerror_r-posix: New file.
59383         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59384         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59385         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59386         portability problems.
59388 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59390         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59391         line is also considered for output. Quoted function name in shell
59392         command, so temporary files for functions like MyClass::operator()
59393         are removed correctly without errors.
59395 2010-11-09  Bruno Haible  <bruno@clisp.org>
59397         * doc/posix-functions/strerror.texi: List more failing platforms.
59399         * doc/posix-functions/strerror.texi: Add a comment.
59401 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59403         fdopendir: fix bug on MacOS X when low on file descriptors
59405         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59406         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59407         All callers changed.
59408         (fdopendir): Invoke save_cwd at the top level, not after using
59409         multiple dup() calls to use up file descriptors.  Then retry
59410         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59411         less than the maximum number of open file descriptors, because
59412         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59413         on Mac OS X 10.6.4 for tar 1.24
59414         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59415         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59416         and for tar 1.25
59417         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59419 2010-11-07  Bruno Haible  <bruno@clisp.org>
59421         vasnprintf: Support I flag on glibc systems.
59422         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59423         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59424         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59425         snprintf function.
59426         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59427         glibc systems.
59428         * tests/test-vasnprintf-posix3.c: New file.
59429         * modules/vasnprintf-posix-tests (Files): Add it.
59430         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59432 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59434         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59435         * MODULES.html.sh: For compiler warnings, use name
59436         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59438 2010-11-05  Eric Blake  <eblake@redhat.com>
59440         ceil, floor: avoid spurious failure with icc
59441         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59442         [denormals-as-zero] when optimizing without -mieee-fp option.
59443         * tests/test-floorf2.c (floorf_reference): Likewise.
59444         * tests/test-ceilf1.c (dummy): New function.
59445         (main): Use it to outsmart icc's optimization.
59446         * tests/test-floorf1.c (dummy, main): Likewise.
59448         tests: require working signbit
59449         * modules/ceilf-tests (Depends-on): Add signbit.
59450         * modules/ceill-tests (Depends-on): Likewise.
59451         * modules/floorf-tests (Depends-on): Likewise.
59452         * modules/floorl-tests (Depends-on): Likewise.
59453         * modules/round-tests (Depends-on): Likewise.
59454         * modules/roundf-tests (Depends-on): Likewise.
59455         * modules/roundl-tests (Depends-on): Likewise.
59456         * modules/trunc-tests (Depends-on): Likewise.
59457         * modules/truncf-tests (Depends-on): Likewise.
59458         * modules/truncl-tests (Depends-on): Likewise.
59460         strtod: work around icc bug
59461         * lib/strtod.c (minus_zero): Define to working value.
59462         (strtod): Use it to avoid icc bug.
59464         copysign: enhance tests
59465         * modules/copysign-tests (Files): Add minus-zero.h.
59466         * tests/test-copysign.c (main): Also test zeros.
59468 2010-11-04  Eric Blake  <eblake@redhat.com>
59470         ceil, floor, round, trunc: enhance tests of -0
59471         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59472         * tests/test-ceill.c (main): Likewise.
59473         * tests/test-floorf1.c (main): Likewise.
59474         * tests/test-floorl.c (main): Likewise.
59475         * tests/test-round1.c (main): Likewise.
59476         * tests/test-roundf1.c (main): Likewise.
59477         * tests/test-roundl.c (main): Likewise.
59478         * tests/test-trunc1.c (main): Likewise.
59479         * tests/test-truncf1.c (main): Likewise.
59480         * tests/test-truncl.c (main): Likewise.
59482 2010-11-04  Eric Blake  <eblake@redhat.com>
59484         frexp, tests: work around ICC bug with -zero
59485         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59486         works with more compilers.
59487         * tests/minus-zero.h: New file.
59488         * modules/ceilf-tests (Files): Include it.
59489         * modules/ceill-tests (Files): Likewise.
59490         * modules/floorf-tests (Files): Likewise.
59491         * modules/floorl-tests (Files): Likewise.
59492         * modules/frexp-nolibm-tests (Files): Likewise.
59493         * modules/frexp-tests (Files): Likewise.
59494         * modules/frexpl-nolibm-tests (Files): Likewise.
59495         * modules/frexpl-tests (Files): Likewise.
59496         * modules/isnan-tests (Files): Likewise.
59497         * modules/isnand-nolibm-tests (Files): Likewise.
59498         * modules/isnand-tests (Files): Likewise.
59499         * modules/isnanf-nolibm-tests (Files): Likewise.
59500         * modules/isnanf-tests (Files): Likewise.
59501         * modules/isnanl-nolibm-tests (Files): Likewise.
59502         * modules/isnanl-tests (Files): Likewise.
59503         * modules/round-tests (Files): Likewise.
59504         * modules/roundf-tests (Files): Likewise.
59505         * modules/roundl-tests (Files): Likewise.
59506         * modules/ldexpl-tests (Files): Likewise.
59507         * modules/signbit-tests (Files): Likewise.
59508         * modules/snprintf-posix-tests (Files): Likewise.
59509         * modules/sprintf-posix-tests (Files): Likewise.
59510         * modules/strtod-tests (Files): Likewise.
59511         * modules/trunc-tests (Files): Likewise.
59512         * modules/truncf-tests (Files): Likewise.
59513         * modules/truncl-tests (Files): Likewise.
59514         * modules/vsnprintf-posix-tests (Files): Likewise.
59515         * modules/vsprintf-posix-tests (Files): Likewise.
59516         * modules/vasnprintf-posix-tests (Files): Likewise.
59517         * modules/vasprintf-posix-tests (Files): Likewise.
59518         * tests/test-ceilf1.c (main): Use it.
59519         * tests/test-ceill.c (main): Likewise.
59520         * tests/test-floorf1.c (main): Likewise.
59521         * tests/test-floorl.c (main): Likewise.
59522         * tests/test-frexp.c (main): Likewise.
59523         * tests/test-frexpl.c (main): Likewise.
59524         * tests/test-isnan.c (main): Likewise.
59525         * tests/test-isnand.h (main): Likewise.
59526         * tests/test-isnanf.h (main): Likewise.
59527         * tests/test-isnanl.h (main): Likewise.
59528         * tests/test-ldexpl.c (main): Likewise.
59529         * tests/test-round.c (main): Likewise.
59530         * tests/test-roundf.c (main): Likewise.
59531         * tests/test-roundl.c (main): Likewise.
59532         * tests/test-signbit.c (test_signbitf, test_signbitd)
59533         (test_signbitl): Likewise.
59534         * tests/test-snprintf-posix.h (test_function): Likewise.
59535         * tests/test-sprintf-posix.h (test_function): Likewise.
59536         * tests/test-strtod.c (main): Likewise.
59537         * tests/test-trunc1.c (main): Likewise.
59538         * tests/test-truncf1.c (main): Likewise.
59539         * tests/test-truncl.c (main): Likewise.
59541         isnanl: work around icc bug
59542         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59544 2010-11-03  Eric Blake  <eblake@redhat.com>
59546         tests: fix compiler warnings
59547         * tests/test-getopt.h (test_getopt): Fix condition.
59548         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59549         * tests/test-pipe2.c (main): Likewise.
59550         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59552         utimens: fix broken m4 test
59553         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59555 2010-10-28  Bruno Haible  <bruno@clisp.org>
59557         posix_spawn*, getdtablesize: Relax license.
59558         * modules/posix_spawn (License): Change to LGPLv2+.
59559         * modules/posix_spawnp (License): Likewise.
59560         * modules/posix_spawn-internal (License): Likewise.
59561         * modules/posix_spawnattr_init (License): Likewise.
59562         * modules/posix_spawnattr_getflags (License): Likewise.
59563         * modules/posix_spawnattr_setflags (License): Likewise.
59564         * modules/posix_spawnattr_getpgroup (License): Likewise.
59565         * modules/posix_spawnattr_setpgroup (License): Likewise.
59566         * modules/posix_spawnattr_getschedparam (License): Likewise.
59567         * modules/posix_spawnattr_setschedparam (License): Likewise.
59568         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59569         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59570         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59571         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59572         * modules/posix_spawnattr_getsigmask (License): Likewise.
59573         * modules/posix_spawnattr_setsigmask (License): Likewise.
59574         * modules/posix_spawnattr_destroy (License): Likewise.
59575         * modules/posix_spawn_file_actions_init (License): Likewise.
59576         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59577         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59578         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59579         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59580         * modules/getdtablesize (License): Likewise.
59581         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59583 2010-10-26  Bruno Haible  <bruno@clisp.org>
59585         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59586         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59587         Cygwin and mingw.
59588         Suggested by Eric Blake.
59590 2010-10-26  Bruno Haible  <bruno@clisp.org>
59592         stdio: Work around compilation error due to renameat() on Solaris 10.
59593         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59594         * lib/renameat.c: Don't include <unistd.h> here.
59595         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59596         Reported by Paul Eggert and Eric Blake.
59598 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59600         renameat: port to Solaris 10, which declares renameat in unistd.h
59602         * lib/renameat.c: Include unistd.h before stdio.h, because
59603         Solaris 10 declares renameat in unistd.h.  Problem encountered
59604         when building GNU tar 1.24 on Solaris 10.
59606 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59608         fdopendir: fix C89 compilation
59609         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59610         compilers.
59612 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59614         inttostr: simplify by removing unnecessary redundancy
59615         * lib/anytostr.c: Don't include verify.h.
59616         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59617         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59618         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59619         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59620         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59621         Likewise.
59622         * modules/inttostr (Depends-on): Remove 'verify'.
59624 2010-10-23  Bruno Haible  <bruno@clisp.org>
59626         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59627         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59628         Reported by Eric Blake.
59630 2010-10-23  Bruno Haible  <bruno@clisp.org>
59632         Tests: Fix LOCALE_JA on MirBSD 10.
59633         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59634         to an UTF-8 locale.
59635         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59636         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59637         Reported by Eric Blake.
59639 2010-10-21  Bruno Haible  <bruno@clisp.org>
59641         nl_langinfo test: Avoid test failure on NetBSD 5.
59642         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59643         Reported by Eric Blake.
59645 2010-10-21  Eric Blake  <eblake@redhat.com>
59647         c-stack: work around libsigsegv 2.8 bug
59648         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59649         overflow on at least PowerPC64.
59651 2010-10-17  Bruno Haible  <bruno@clisp.org>
59653         userspec: Drop redundant file.
59654         * modules/userspec (Files): Remove lib/inttostr.h.
59656 2010-10-17  Bruno Haible  <bruno@clisp.org>
59658         nl_langinfo tests: Silence some warnings.
59659         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59660         Reported by Jim Meyering.
59662 2010-10-17  Bruno Haible  <bruno@clisp.org>
59664         Make use of GCC's attribute __alloc_size__.
59665         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59666         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59667         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59668         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59669         __alloc_size__.
59670         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59671         Suggested by Jim Meyering.
59673 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59675         bootstrap: anchor .gitignore entries.
59676         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59677         with...
59678         (insert_vc_ignore): ... this new function, which prepends `/' to
59679         all .gitignore entries before passing them to
59680         insert_sorted_if_absent.
59682 2010-10-16  Bruno Haible  <bruno@clisp.org>
59684         nextafter: Fix configure check.
59685         * modules/nextafter (configure.ac): Correct expected prototype.
59687 2010-10-16  Bruno Haible  <bruno@clisp.org>
59689         termios: Update documentation.
59690         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59692 2010-10-16  Bruno Haible  <bruno@clisp.org>
59694         tests: Make them compile with TinyCC.
59695         * tests/test-strstr.c (main): Remove parentheses around array
59696         initializer.
59698 2010-10-15  Eric Blake  <eblake@redhat.com>
59700         ignore-value: make header idempotent
59701         * lib/ignore-value.h: Add double-inclusion guards.
59702         Reported by Stefan Berger.
59704 2010-10-15  Jim Meyering  <meyering@redhat.com>
59706         GNUmakefile: handle "stable" target, not "major"
59707         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59708         lists in maint.mk and announce-gen.  Without this, "make stable"
59709         would fail to ensure that $(VERSION) is up to date.
59711 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59713         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59714         & co.
59716 2010-10-14  Bruno Haible  <bruno@clisp.org>
59718         vasnprintf: Don't set errno to 0.
59719         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
59720         block that sets it to 0.
59721         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
59723 2010-10-14  Bruno Haible  <bruno@clisp.org>
59725         socketlib: Fix.
59726         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
59727         gl_PREREQ_SYS_H_WINSOCK2.
59728         Reported by Ian Beckwith <ianb@erislabs.net>.
59730 2010-10-13  Jim Meyering  <meyering@redhat.com>
59732         test-select-stdin.c: avoid warn_unused_result warnings
59733         * tests/test-select-stdin.c: Include "macros.h".
59734         ASSERT that read and fflush succeed.
59736 2010-10-13  Jim Meyering  <meyering@redhat.com>
59738         git-version-gen: do require git-VC'd files in cwd
59739         * build-aux/git-version-gen: Reject a git version string
59740         if there are no commits associated with the current directory.
59741         This avoids an unlikely false-positive (unrelated dir whose parent
59742         repository also contains a tag matching v*), as pointed out
59743         by Giuseppe Scrivano in
59744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
59746 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59748         argv-iter: omit nonconforming declaration
59749         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
59750         enum arg_iter_err declaration, which doesn't conform to C99.
59751         Solaris 10 cc warns about this.
59753 2010-10-13  Eric Blake  <eblake@redhat.com>
59755         termios: fix compilation on mingw
59756         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
59757         (gl_TERMIOS_H): Adjust it on mingw.
59758         * modules/termios (Makefile.am): Substitute new key.
59759         * lib/termios.in.h (includes): Make include_next conditional.
59760         * doc/posix-headers/termios.texi (termios.h): Update
59761         documentation.
59762         Reported by Daniel P. Berrange.
59764 2010-10-13  Jim Meyering  <meyering@redhat.com>
59766         git-version-gen: don't require that .git/ be in the current dir
59767         * build-aux/git-version-gen: Adjust this script so that it works
59768         when run from any working directory beneath the top-level .git/-
59769         containing directory.  Inspired by a patch from Giuseppe Scrivano,
59770         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
59772         test-select: avoid warn_unused_result warnings
59773         * tests/test-select.c: Include "macros.h".
59774         ASSERT that each call to read, write, and pipe succeeds.
59775         While not technically required, also check each "close".
59776         * modules/select-tests (Files): Add tests/macros.h.
59778         test-symlinkat: remove declaration of unused local
59779         * tests/test-symlinkat.c (main): Remove unused local, "buf".
59781         test-inttostr: avoid shadowing warnings
59782         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
59783         and use malloc rather than the stack for the same reason as
59784         mentioned in the comment justifying the other allocation.
59786 2010-10-11  Bruno Haible  <bruno@clisp.org>
59788         stdlib: Allow multiple gnulib generated replacements to coexist.
59789         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
59790         Reported by Sam Steingold <sds@gnu.org>.
59792 2010-10-11  Jim Meyering  <meyering@redhat.com>
59794         fix a documentation typo
59795         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
59797 2010-10-11  Eric Blake  <eblake@redhat.com>
59799         futimens: work around Solaris 11 bug
59800         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
59801         * tests/test-futimens.h (test_futimens): Enhance, rather than
59802         weaken test.
59803         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59805 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59807         Indentation.
59808         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
59809         higher-level operators more to the left.
59811 2010-10-11  Jim Meyering  <meyering@redhat.com>
59813         test-futimens: avoid unwarranted test failure on Solaris 5.11
59814         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
59815         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
59816         because it tries to dereference the NULL name argument.
59818 2010-10-11  Bruno Haible  <bruno@clisp.org>
59820         Indentation.
59821         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
59822         indentation.
59824 2010-10-11  Jim Meyering  <meyering@redhat.com>
59826         spawn.in.h: make indentation consistent with parentheses
59827         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
59828         Make indentation consistent with parentheses.
59830 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
59832         Fix mismatched parens in previous commit
59833         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
59834         parens.
59836 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59838         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
59840         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
59841         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
59842         * lib/malloca.c: Include "verify.h".
59843         (verify1): Remove, replacing with a verify call.
59844         * lib/relocwrapper.c (verify1): Likewise.
59845         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
59846         Likewise.
59847         * modules/malloca (Depends-on): Add 'verify'.
59848         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
59849         * modules/vasnprintf (Depends-on): Add 'verify'.
59850         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59851         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59852         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59853         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59854         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59855         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59856         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59858         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
59860         Formerly the style was sometimes 2*X - 1, because the C standard
59861         was wrongly thought to disallow ?: in integral constant expressions.
59862         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
59863         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
59864         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59865         * lib/stdint.in.h (_verify_intmax_size): Likewise.
59866         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
59867         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
59868         verify that time_t cannot be floating.
59870 2010-10-08  Eric Blake  <eblake@redhat.com>
59872         time: enforce recent POSIX ruling that time_t is integral
59873         * lib/time.in.h (__time_t_must_be_integral): Detect any
59874         problematic systems, allowing the rest of gnulib to assume POSIX.
59876 2010-10-08  Jim Meyering  <meyering@redhat.com>
59878         fdopendir: fix a bug on systems lacking openat and /proc support
59879         OpenBSD 4.7 is one such system.  The most noticeable effect was
59880         failure of any application making nontrivial use of fts: rm, du,
59881         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
59882           ./rm: traversal failed: `a': Bad file descriptor
59883         Debugging that, you see that even though FD 6 was closed just
59884         prior to the opendir call in fd_clone_opendir, its resulting
59885         dir->dd_fd was 8, rather than the expected value of 6:
59887         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
59888         93                close (fd);
59889         (gdb) n
59890         94                dir = fd_clone_opendir (dupfd);
59891         (gdb) n
59892         95                saved_errno = errno;
59893         (gdb) p dir->dd_fd
59894         $11 = 8
59896         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
59897         The problem is that on OpenBSD, fd_clone_opendir has to resort
59898         to using the old-style save/restore CWD mechanism, due to its
59899         lack of openat/proc support, and *that* would steal the FD (6)
59900         that opendir was supposed to use.
59902         The fix is to squirrel away the desired FD so that save_cwd uses a
59903         different one, and then free the dest FD right before calling opendir.
59904         That guarantees opendir will use the required file descriptor.
59906         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
59908 2010-10-08  Bruno Haible  <bruno@clisp.org>
59910         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
59911         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
59913 2010-10-08  Bruno Haible  <bruno@clisp.org>
59915         nanosleep: Make replacement POSIX compliant.
59916         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
59917         is out of range.
59918         Reported by Jim Meyering.
59920 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59922         bootstrap: add hook for altering gnulib.mk, for Bison
59923         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
59924         the Bison bootstrapping process can rewrite file names and variables
59925         in this file before later parts of 'bootstrap' use the file.
59926         Bison wants to include lib/gnulib.mk from the top-level makefile,
59927         so it needs the file names in this file to be relative to the top
59928         level, not relative to lib; plus it needs variable names to be
59929         rewritten.
59930         (slurp): Use the new function.
59932         bootstrap: reformat for readability
59933         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
59935 2010-10-08  Eric Blake  <eblake@redhat.com>
59937         docs: update cygwin progress
59938         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
59939         1.7.7.
59940         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
59941         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
59942         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
59943         * doc/posix-functions/carg.texi (carg): Likewise.
59944         * doc/posix-functions/cargf.texi (cargf): Likewise.
59945         * doc/posix-functions/casin.texi (casin): Likewise.
59946         * doc/posix-functions/casinf.texi (casinf): Likewise.
59947         * doc/posix-functions/casinh.texi (casinh): Likewise.
59948         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
59949         * doc/posix-functions/catan.texi (catan): Likewise.
59950         * doc/posix-functions/catanf.texi (catanf): Likewise.
59951         * doc/posix-functions/catanh.texi (catanh): Likewise.
59952         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
59953         * doc/posix-functions/ccos.texi (ccos): Likewise.
59954         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
59955         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
59956         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
59957         * doc/posix-functions/cexp.texi (cexp): Likewise.
59958         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
59959         * doc/posix-functions/cimag.texi (cimag): Likewise.
59960         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
59961         * doc/posix-functions/clog.texi (clog): Likewise.
59962         * doc/posix-functions/clogf.texi (clogf): Likewise.
59963         * doc/posix-functions/conj.texi (conj): Likewise.
59964         * doc/posix-functions/conjf.texi (conjf): Likewise.
59965         * doc/posix-functions/cpow.texi (cpow): Likewise.
59966         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
59967         * doc/posix-functions/cproj.texi (cproj): Likewise.
59968         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
59969         * doc/posix-functions/creal.texi (creal): Likewise.
59970         * doc/posix-functions/crealf.texi (crealf): Likewise.
59971         * doc/posix-functions/csin.texi (csin): Likewise.
59972         * doc/posix-functions/csinf.texi (csinf): Likewise.
59973         * doc/posix-functions/csinh.texi (csinh): Likewise.
59974         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
59975         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
59976         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
59977         * doc/posix-functions/ctan.texi (ctan): Likewise.
59978         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
59979         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
59980         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
59981         * doc/posix-headers/complex.texi (complex.h): Likewise.
59983 2010-10-07  Jim Meyering  <meyering@redhat.com>
59985         parse-datetime: avoid compilation failure on OpenBSD 4.7
59986         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
59987         This works around a compilation failure on OpenBSD 4.7:
59988         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
59990 2010-10-07  Eric Blake  <eblake@redhat.com>
59992         docs: update cygwin progress
59993         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
59994         1.7.6.
59995         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
59996         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
59997         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
59998         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
59999         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60000         Likewise.
60001         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60002         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60003         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60004         Likewise.
60005         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60006         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60007         Likewise.
60008         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60009         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60010         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60011         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60012         Likewise.
60013         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60014         Likewise.
60015         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60017         docs: update parse-datetime history
60018         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60019         documentation of this function's history and alternatives.
60021         cygwin: use more robust version check
60022         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60023         exclude an eventual cygwin 1.9.1.
60024         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60026         (gl_FUNC_STRCASESTR): Likewise.
60027         Reported by Bruno Haible.
60029 2010-10-06  Bruno Haible  <bruno@clisp.org>
60031         string, sys_select: Avoid #including large headers unless necessary.
60032         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60033         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60034         OSF/1, BeOS, Haiku.
60035         Reported by Jim Meyering.
60037 2010-10-05  Eric Blake  <eblake@redhat.com>
60039         memmem, strstr, strcasestr: fix bug with long periodic needle
60040         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60041         periodic needle having false positive.
60042         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60043         and cygwin 1.7.7.
60044         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60046         (gl_FUNC_STRCASESTR): Likewise.
60047         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60048         * tests/test-memmem.c (main): Expose the bug.
60049         * tests/test-strcasestr.c (main): Likewise.
60050         * tests/test-strstr.c (main): Likewise.
60051         * tests/test-c-strcasestr.c (main): Likewise.
60052         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60053         * doc/posix-functions/strstr.texi (strstr): Likewise.
60054         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60055         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60057 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60059         parse-datetime: do some more renaming
60060         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60061         parse_datetime, not get_date.  Mention the renaming.
60062         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60063         in comments.
60064         * m4/bison.m4: Likewise.
60066 2010-10-05  Eric Blake  <eblake@redhat.com>
60068         parse-datetime: better name than get_date
60069         * NEWS: Reword the deprecation notice.
60070         * modules/get_date: Rename to modules/parse-datetime.
60071         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60072         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60073         * lib/get_date.y: Rename to lib/parse-datetime.y.
60074         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60075         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60076         * doc/getdate.texi: Provide fallback wrapper.
60077         * lib/getdate.h: Move guts, and wrap...
60078         * lib/parse-datetime.h: ...new file.
60079         * lib/parse-datetime.y (get_date): Rename...
60080         (parse_datetime): ...to this.
60081         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60082         (gl_PARSE_DATETIME): ...to this.
60083         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60084         documentation.
60085         * modules/getdate (Files): Provide fallback docs and header.
60086         (Notice, Depends-on): Update references.
60087         * tests/test-parse-datetime.c: Likewise.
60088         * DEPENDENCIES: Likewise.
60089         * MODULES.html.sh (Date and time <time.h>): Likewise.
60090         * doc/parse-datetime.texi (Date input formats)
60091         (Authors of parse_datetime): Likewise.
60092         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60093         (Include): Likewise.
60094         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60095         * gnulib-tool: Likewise.
60096         * m4/bison.m4 (gl_BISON): Likewise.
60097         Suggested by Bruno Haible.
60099 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60101         more ports to Solaris tr, which needs [] around ranges
60102         * gnulib-tool: Solaris tr needs [] around ranges.
60103         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60104         * tests/test-pipe-filter-gi1.c (main): Likewise.
60105         * tests/test-pipe-filter-ii1.c (main): Likewise.
60107 2010-10-05  Eric Blake  <eblake@redhat.com>
60109         bootstrap: fix Solaris regression
60110         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60111         around ranges.
60112         Reported by Pádraig Brady.
60114         bootstrap: work with pkg-config
60115         * build-aux/bootstrap (check_versions): Also transliterate - in
60116         prerequisite name.
60117         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60118         prerequisites that were already found, to avoid confusion.
60119         Reported by Justin Clift.
60121         faccessat: remove unused wrappers
60122         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60123         presence of these wrappers dragged in -lgen on Solaris.
60124         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60126 2010-10-05  Jim Meyering  <meyering@redhat.com>
60128         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60129         * Makefile (sc_pragma_columns): New syntax-check rule.
60131 2010-10-04  Bruno Haible  <bruno@clisp.org>
60133         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60134         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60135         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60136         Reported by Bruce Korb and Eric Blake.
60138 2010-10-04  Bruno Haible  <bruno@clisp.org>
60140         threadlib: Make option --with-libpth-prefix work.
60141         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60142         use $LIBPTH, not just -lpth.
60144 2010-10-04  Bruno Haible  <bruno@clisp.org>
60146         Avoid line length limitation from HP NonStop system header files.
60147         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60148         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60149         * lib/ctype.in.h: Likewise.
60150         * lib/dirent.in.h: Likewise.
60151         * lib/errno.in.h: Likewise.
60152         * lib/fcntl.in.h: Likewise.
60153         * lib/float.in.h: Likewise.
60154         * lib/getopt.in.h: Likewise.
60155         * lib/iconv.in.h: Likewise.
60156         * lib/inttypes.in.h: Likewise.
60157         * lib/langinfo.in.h: Likewise.
60158         * lib/locale.in.h: Likewise.
60159         * lib/math.in.h: Likewise.
60160         * lib/netdb.in.h: Likewise.
60161         * lib/netinet_in.in.h: Likewise.
60162         * lib/poll.in.h: Likewise.
60163         * lib/pthread.in.h: Likewise.
60164         * lib/pty.in.h: Likewise.
60165         * lib/sched.in.h: Likewise.
60166         * lib/se-selinux.in.h: Likewise.
60167         * lib/search.in.h: Likewise.
60168         * lib/signal.in.h: Likewise.
60169         * lib/spawn.in.h: Likewise.
60170         * lib/stdarg.in.h: Likewise.
60171         * lib/stddef.in.h: Likewise.
60172         * lib/stdint.in.h: Likewise.
60173         * lib/stdio.in.h: Likewise.
60174         * lib/stdlib.in.h: Likewise.
60175         * lib/string.in.h: Likewise.
60176         * lib/strings.in.h: Likewise.
60177         * lib/sys_file.in.h: Likewise.
60178         * lib/sys_ioctl.in.h: Likewise.
60179         * lib/sys_select.in.h: Likewise.
60180         * lib/sys_socket.in.h: Likewise.
60181         * lib/sys_stat.in.h: Likewise.
60182         * lib/sys_time.in.h: Likewise.
60183         * lib/sys_times.in.h: Likewise.
60184         * lib/sys_utsname.in.h: Likewise.
60185         * lib/sys_wait.in.h: Likewise.
60186         * lib/sysexits.in.h: Likewise.
60187         * lib/termios.in.h: Likewise.
60188         * lib/time.in.h: Likewise.
60189         * lib/unistd.in.h: Likewise.
60190         * lib/wchar.in.h: Likewise.
60191         * lib/wctype.in.h: Likewise.
60192         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60193         * modules/ctype (Makefile.am): Likewise.
60194         * modules/dirent (Makefile.am): Likewise.
60195         * modules/errno (Makefile.am): Likewise.
60196         * modules/fcntl-h (Makefile.am): Likewise.
60197         * modules/float (Makefile.am): Likewise.
60198         * modules/getopt-posix (Makefile.am): Likewise.
60199         * modules/iconv-h (Makefile.am): Likewise.
60200         * modules/inttypes (Makefile.am): Likewise.
60201         * modules/langinfo (Makefile.am): Likewise.
60202         * modules/locale (Makefile.am): Likewise.
60203         * modules/math (Makefile.am): Likewise.
60204         * modules/netdb (Makefile.am): Likewise.
60205         * modules/netinet_in (Makefile.am): Likewise.
60206         * modules/poll-h (Makefile.am): Likewise.
60207         * modules/pthread (Makefile.am): Likewise.
60208         * modules/pty (Makefile.am): Likewise.
60209         * modules/sched (Makefile.am): Likewise.
60210         * modules/search (Makefile.am): Likewise.
60211         * modules/selinux-h (Makefile.am): Likewise.
60212         * modules/signal (Makefile.am): Likewise.
60213         * modules/spawn (Makefile.am): Likewise.
60214         * modules/stdarg (Makefile.am): Likewise.
60215         * modules/stddef (Makefile.am): Likewise.
60216         * modules/stdint (Makefile.am): Likewise.
60217         * modules/stdio (Makefile.am): Likewise.
60218         * modules/stdlib (Makefile.am): Likewise.
60219         * modules/string (Makefile.am): Likewise.
60220         * modules/strings (Makefile.am): Likewise.
60221         * modules/sys_file (Makefile.am): Likewise.
60222         * modules/sys_ioctl (Makefile.am): Likewise.
60223         * modules/sys_select (Makefile.am): Likewise.
60224         * modules/sys_socket (Makefile.am): Likewise.
60225         * modules/sys_stat (Makefile.am): Likewise.
60226         * modules/sys_time (Makefile.am): Likewise.
60227         * modules/sys_times (Makefile.am): Likewise.
60228         * modules/sys_utsname (Makefile.am): Likewise.
60229         * modules/sys_wait (Makefile.am): Likewise.
60230         * modules/sysexits (Makefile.am): Likewise.
60231         * modules/termios (Makefile.am): Likewise.
60232         * modules/time (Makefile.am): Likewise.
60233         * modules/unistd (Makefile.am): Likewise.
60234         * modules/wchar (Makefile.am): Likewise.
60235         * modules/wctype (Makefile.am): Likewise.
60237 2010-10-04  Bruno Haible  <bruno@clisp.org>
60239         read-file tests: Avoid a test failure on NonStop Kernel.
60240         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60241         a regular file.
60242         Reported by Joachim Schmitz <schmitz@hp.com>.
60244 2010-10-03  Bruno Haible  <bruno@clisp.org>
60246         gnulib-tool: Fixes for --create-testdir with --libtool.
60247         * gnulib-tool (func_get_automake_snippet): Don't augment
60248         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60249         an executable.
60250         (func_create_testdir): Handle module 'alloca' like func_import.
60251         Reported by Bruce Korb <bruce.korb@gmail.com>.
60253 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60255         Avoid some lines longer than 80 characters.
60256         * lib/stdint.in.h: Break long comment lines.
60257         * lib/math.in.h: Likewise.
60258         (_GL_NUM_UINT_WORDS): New macro, for readability.
60259         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60260         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60261         * lib/stdlib.in.h: Likewise.
60262         * lib/spawn.in.h: Likewise.
60263         * lib/sys_socket.in.h: Update an URL.
60264         * lib/sys_stat.in.h: Break long line.
60266 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60268         Improve pmccabe2html.
60269         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60270         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60271         when the sources change. Remove the line in the HTML about "Used
60272         ranges" (which implied that there might be other unused ranges),
60273         rename "Resume" to "Summary" (easier to understand for more users).
60274         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60275         styles, and some unnecessary blank lines.
60277 2010-10-03  Bruno Haible  <bruno@clisp.org>
60278             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60280         acl: Add support for ACLs on NonStop Kernel.
60281         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60282         Check whether the function aclsort() exists.
60283         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60284         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60285         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60286         (acl_nontrivial [HAVE_ACLSORT]: New function.
60287         (file_has_acl): Implement for NonStop Kernel.
60288         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60289         (qset_acl): Implement for NonStop Kernel.
60290         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60291         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60292         (main): Implement for NonStop Kernel.
60293         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60294         Kernel. Handle this flavor.
60295         * tests/test-set-mode-acl.sh: Likewise.
60296         * tests/test-copy-acl.sh: Likewise.
60297         * tests/test-copy-file.sh: Likewise.
60299 2010-10-03  Bruno Haible  <bruno@clisp.org>
60301         Info about ACLs on NonStop Kernel.
60302         * doc/acl-resources.txt: Add info about NonStop Kernel.
60303         References by Joachim Schmitz <schmitz@hp.com>.
60305 2010-10-02  Bruno Haible  <bruno@clisp.org>
60307         Define missing EDQUOT on NonStop Kernel.
60308         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60309         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60310         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60311         missing.
60312         * doc/posix-headers/errno.texi: Mention the NSK bug.
60313         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60314         Reported by Joachim Schmitz <schmitz@hp.com>.
60316 2010-10-02  Bruno Haible  <bruno@clisp.org>
60318         Update doc for POSIX:2008.
60319         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60320         Update URL of POSIX specification.
60322 2010-10-02  Bruno Haible  <bruno@clisp.org>
60324         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60325         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60326         from gnulib, not from Automake.
60328 2010-10-02  Bruno Haible  <bruno@clisp.org>
60330         New module 'system-posix'.
60331         * modules/system-posix: New file.
60332         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60333         module is present.
60334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60335         GNULIB_SYSTEM_POSIX.
60336         * modules/stdlib (Depends-on): Remove sys_wait.
60337         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60338         * doc/posix-functions/system.texi: Mention the new module.
60339         * doc/posix-headers/stdlib.texi: Likewise.
60340         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60341         define test_sys_wait_macros to a no-op.
60342         Reported by Sam Steingold <sds@gnu.org>.
60344 2010-09-30  Bruno Haible  <bruno@clisp.org>
60346         More renaming from 'getdate' to 'get_date'.
60347         * doc/get_date.texi: Renamed from doc/getdate.texi.
60348         * modules/get_date (Files): Update.
60349         * MODULES.html.sh (Date and time <time.h>): Update.
60350         * DEPENDENCIES: Update.
60351         * gnulib-tool: Update comment.
60352         * m4/bison.m4 (gl_BISON): Likewise.
60353         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60355 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60357         bootstrap: support ACLOCAL_FLAGS during aclocal
60358         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60359         can add additional -I dir for third-party .m4 files.
60361 2010-09-30  Eric Blake  <eblake@redhat.com>
60363         bootstrap: use glibtoolize on MacOS
60364         * build-aux/bootstrap (check_versions): Convert libtool into
60365         libtoolize.
60366         (tool search): Move libtool check earlier, and look for
60367         glibtoolize for MacOS.
60368         (gnulib_tool_options): Auto-add --libtool when appropriate.
60369         Reported by Justin Clift.
60371         poll: fix typo that broke test on MacOS
60372         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60373         Reported by Justin Clift.
60375         getdate: rename to get_date
60376         Note: getdate.h is not renamed, to minimize client impact.
60377         * modules/getdate: Mark obsolete.  Move old contents...
60378         * modules/get_date: ...to new module name.
60379         * modules/getdate-tests: Move...
60380         * modules/get_date-tests: ...here.
60381         * m4/getdate.m4: Move...
60382         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60383         * lib/getdate.y: Move...
60384         * lib/get_date.y: ...here.
60385         * tests/test-getdate.c: Move...
60386         * tests/test-get_date.c: ...here.
60387         * doc/posix-functions/getdate.texi (getdate): Update name.
60388         * NEWS: Mention the change.
60390 2010-09-29  Bruno Haible  <bruno@clisp.org>
60392         Separate the module 'waitpid' from the module 'sys_wait'.
60393         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60394         present.
60395         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60396         gl_MODULE_INDICATOR_FOR_TESTS.
60397         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60398         * modules/sys_wait (Depends-on): Remove waitpid.
60399         (Makefile.am): Substitute GNULIB_WAITPID.
60400         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60401         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60402         signature only if the 'waitpid' module is present.
60403         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60404         * NEWS: Mention the change.
60405         * modules/grantpt (Depends-on): Add waitpid.
60406         * modules/wait-process (Depends-on): Likewise.
60408 2010-09-29  Bruno Haible  <bruno@clisp.org>
60410         More tests for module 'sys_wait'.
60411         * modules/sys_wait-c++-tests: New file.
60412         * tests/test-sys_wait-c++.cc: New file.
60413         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60414         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60416 2010-09-29  Bruno Haible  <bruno@clisp.org>
60418         New module 'waitpid'.
60419         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60420         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60421         Don't include <process.h>.
60422         (waitpid): Declare only, using modern idiom.
60423         * m4/waitpid.m4: New file.
60424         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60425         * modules/waitpid: New file.
60426         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60427         (Makefile.am): Update.
60428         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60430 2010-09-28  Bruno Haible  <bruno@clisp.org>
60432         poll: Assume ANSI C.
60433         * lib/poll.c (poll): Use an ANSI C declaration.
60435 2010-09-28  Bruno Haible  <bruno@clisp.org>
60437         poll-h: Create poll.h on all platforms.
60438         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60439         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60440         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60441         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60442         (gl_REPLACE_POLL_H): Don't set POLL_H.
60443         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60444         * modules/poll-h (Depends-on): Add include_next.
60445         (Makefile.am): Create poll.h unconditionally. Substitute also
60446         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60448 2010-09-28  Bruno Haible  <bruno@clisp.org>
60450         Tests for module 'poll-h'.
60451         * modules/poll-h-c++-tests: New file.
60452         * tests/test-poll-h-c++.cc: New file.
60454         Tests for module 'poll-h'.
60455         * modules/poll-h-tests: New file.
60456         * tests/test-poll-h.c: New file.
60458 2010-09-28  Bruno Haible  <bruno@clisp.org>
60460         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60461         * modules/poll-h (Depends-on): Add 'extensions'.
60463 2010-09-28  Bruno Haible  <bruno@clisp.org>
60465         New module 'poll-h'.
60466         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60467         (poll): Use modern idiom.
60468         * modules/poll-h: New file.
60469         * modules/poll (Files): Remove lib/poll.in.h.
60470         (Depends-on): Add poll-h.
60471         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60472         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60473         * m4/poll_h.m4: New file.
60474         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60475         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60476         and invoke gl_REPLACE_POLL_H.
60477         * lib/poll.c: Use common idiom.
60478         * tests/test-poll.c: Likewise.
60479         * doc/posix-headers/poll.texi: Mention the poll-h module.
60480         Suggested by Eric Blake.
60482 2010-09-26  Bruno Haible  <bruno@clisp.org>
60484         sys_wait: Implement WSTOPSIG.
60485         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60486         Reported by Simon Josefsson.
60488 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60490         stdlib, sys_wait: Avoid compilation error on mingw.
60491         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60493 2010-09-26  Bruno Haible  <bruno@clisp.org>
60495         stdlib tests: Avoid code duplication.
60496         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60497         * modules/sys_wait-tests (Files): Likewise.
60498         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60499         * tests/test-stdlib.c: Include test-sys_wait.h.
60500         (main): Invoke test_sys_wait_macros.
60501         * tests/test-sys_wait.c: Include test-sys_wait.h.
60502         (main): Invoke test_sys_wait_macros.
60504 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60506         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60507         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60508         sure Windows sockets are working before calling getaddrinfo.
60509         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60510         * doc/gnulib.texi (Windows sockets): Fix typo.
60512 2010-09-25  Bruno Haible  <bruno@clisp.org>
60514         Tests for module 'regex-quote'.
60515         * modules/regex-quote-tests: New file.
60516         * tests/test-regex-quote.c: New file.
60518         New module 'regex-quote'.
60519         * lib/regex-quote.h: New file.
60520         * lib/regex-quote.c: New file.
60521         * modules/regex-quote: New file.
60522         Suggested by Reuben Thomas <rrt@sc3d.org>.
60524 2010-09-24  Bruno Haible  <bruno@clisp.org>
60526         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60527         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60529 2010-09-23  Bruno Haible  <bruno@clisp.org>
60531         setenv: Relax license.
60532         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60533         Blake.
60534         Requested by Eric Blake.
60536 2010-09-22  Bruno Haible  <bruno@clisp.org>
60538         termios: Relax license.
60539         * modules/termios (License): Change to LGPLv2+.
60540         Requested by Eric Blake.
60542 2010-09-22  Bruno Haible  <bruno@clisp.org>
60544         threadlib: Allow the package to change the default to 'no'.
60545         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60546         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60547         Reported by Paul Eggert.
60549 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60550             Bruno Haible  <bruno@clisp.org>
60552         Fix endless loop in mbmemcasecoll.
60553         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60554         byte.
60555         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60557 2010-09-22  Bruno Haible  <bruno@clisp.org>
60559         Tests for module 'memcoll'.
60560         * modules/memcoll-tests: New file.
60561         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60563         memcoll, xmemcoll: Clarify size vs. length.
60564         * modules/memcoll.c (memcoll0): Clarify specification.
60565         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60566         passed to collate_error.
60568 2010-09-22  Bruno Haible  <bruno@clisp.org>
60570         Tests for module 'memcasecmp'.
60571         * modules/memcasecmp-tests: New file.
60572         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60574 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60576         * lib/pthread.in.h: Add split double-inclusion guard, and include
60577         system <pthread.h> if there is one.  Use @@-style as in other
60578         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60579         pthread.h doesn't.
60580         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60581         (pthread_mutexattr_settype, pthread_mutex_trylock):
60582         New static inline functions, if there's no system <pthread.h>.
60583         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60584         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60585         Approximate with mutexes if the system lacks spinlocks, as in
60586         MacOS.
60587         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60588         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60589         @@-style.  Check for spinlocks separately.
60590         (gl_PTHREAD_DEFAULTS): New macro.
60591         * modules/pthread: Redo to use a more typical style for in.h files.
60593 2010-09-21  Eric Blake  <eblake@redhat.com>
60595         net_if: enhance tests
60596         * tests/test-net_if.c (main): Move signature checks earlier.
60597         Print failures to stderr.
60598         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60599         Document the bug that we do not yet fix.
60601 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60603         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60604         about gnulib, not GSS.
60606 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60608         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60609         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60610         for Emacs.
60611         * build-aux/pmccabe2html: Make Makefile.am example code more
60612         cut-and-paste friendly.
60614 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60616         * tests/test-net_if.c: New file.
60617         * modules/net_if-tests: New file.
60619 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60621         pthread: add pthread_spin_destroy
60622         * lib/pthread.in.h (pthread_spin_destroy): New function.
60624 2010-09-19  Bruno Haible  <bruno@clisp.org>
60626         gnulib-tool: Fix --help output.
60627         * gnulib-tool (func_usage): Fix help message.
60628         Reported by Reuben Thomas <rrt@sc3d.org>.
60630 2010-09-18  Jim Meyering  <meyering@redhat.com>
60632         maint.mk: avoid unexpanded \n in two diagnostics
60633         * top/maint.mk (sc_prohibit_always_true_header_tests):
60634         Don't use a literal \n in a halt=... assignment.  It would not be
60635         expanded, and the two \n bytes would appear in the diagnostic output
60636         rather than the desired newline.  Use halt=$$(printf ... instead.
60637         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60639 2010-09-18  Bruno Haible  <bruno@clisp.org>
60641         netinet_in: Doc tweak.
60642         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60643         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60645 2010-09-18  Jim Meyering  <meyering@redhat.com>
60647         init.sh: correct an outdated comment
60648         * tests/init.sh (create_exe_shims_):  s/function/alias/
60650         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60651         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60652         a file named "*.exe" is removed between the glob expansion and the
60653         processing of that oddly named file.
60655 2010-09-17  Eric Blake  <eblake@redhat.com>
60657         mirbsd: add some more support
60658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60659         in BSD family.
60660         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60661         devices as OpenBSD.
60662         * m4/host-os.m4 (mirbsd): Add MirBSD.
60664         tests: fix unportable assumption on sys/wait.h
60665         * tests/test-sys_wait.c (main): Relax test.
60666         * tests/test-stdlib.c (main): Likewise.
60668         init.sh: accommodate directory with no .exes
60669         * tests/init.sh: Accomodate directory containing only scripts.
60671         tests: avoid compiler warning
60672         * tests/test-stdlib.c (main): Use the variable.
60674         fdutimens, fdutimensat: update signature, again
60675         * lib/utimens.h (gl_futimens): Delete, and move signature...
60676         (fdutimens): ...here.
60677         (fdutimensat): Rearrange signature.
60678         (lutimensat): Rename variable for clarity.
60679         * lib/fdutimensat.c (fdutimensat): Update signature.
60680         * lib/utimens.c (fdutimens): Likewise.
60681         (gl_futimens): Delete.
60682         (utimens, lutimens): Update callers.
60683         * lib/futimens.c (futimens): Likewise.
60684         * tests/test-fdutimensat.c: Likewise.
60685         * tests/test-utimens.c: Likewise.
60686         * tests/test-futimens.h: Update comment.
60687         * NEWS: Mention this.
60688         Suggested by Paul Eggert.
60690 2010-09-17  Bruno Haible  <bruno@clisp.org>
60692         Take over the maintenance of some older macros from Autoconf.
60693         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60694         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60695         GNU Autoconf.
60696         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60697         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60699 2010-09-17  Eric Blake  <eblake@redhat.com>
60701         fdutimensat: drop atflag validation
60702         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60703         with valid fd, to close a race scenario where futimens is
60704         unsupported and FILE was replaced by a symlink.
60705         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60706         accordingly.
60707         Suggested by Paul Eggert.
60709 2010-09-16  Bruno Haible  <bruno@clisp.org>
60711         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60712         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60714 2010-09-16  Bruno Haible  <bruno@clisp.org>
60716         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60717         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60718         login_tty exists.
60719         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60721 2010-09-16  Bruno Haible  <bruno@clisp.org>
60723         login_tty: Make the replacement code work on BSD systems.
60724         * lib/login_tty.c: Include <sys/ioctl.h>.
60725         (login_tty): Use ioctl TIOCSCTTY when available.
60726         * modules/login_tty (Depends-on): Add sys_ioctl.
60727         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60729 2010-09-16  Bruno Haible  <bruno@clisp.org>
60731         login_tty: Stricter unit test.
60732         * modules/login_tty-tests (Depends-on): Add tcgetsid.
60733         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
60734         and tcgetsid() after login_tty.
60735         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60737 2010-09-16  Bruno Haible  <bruno@clisp.org>
60739         New module 'tcgetsid'.
60740         * lib/tcgetsid.c: New file.
60741         * m4/tcgetsid.m4: New file.
60742         * modules/tcgetsid: New file.
60743         * modules/termios (Depends-on): Add c++defs, warn-on-use.
60744         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
60745         GNULIB_TCGETSID, HAVE_TCGETSID.
60746         * lib/termios.in.h: Include <sys/types.h>.
60747         (tcgetsid): New declaration.
60748         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
60749         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
60750         * doc/posix-functions/tcgetsid.texi: Mention the new module.
60751         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
60753 2010-09-16  Bruno Haible  <bruno@clisp.org>
60755         Tests for module 'termios'.
60756         * modules/termios-c++-tests: New file.
60757         * modules/termios-tests: New file.
60758         * tests/test-termios-c++.cc: New file.
60759         * tests/test-termios.c: New file.
60761         New module 'termios'.
60762         * modules/termios: New file.
60763         * lib/termios.in.h: New file.
60764         * m4/termios_h.m4: New file.
60765         * doc/posix-headers/termios.texi: Mention the new module.
60767 2010-09-16  Eric Blake  <eblake@redhat.com>
60769         fdutimensat: add an atflag parameter
60770         * lib/fdutimensat.c (fdutimensat): Add new parameter.
60771         * lib/utimens.h (fdutimensat): Update prototype.
60772         * tests/test-fdutimensat.c: Adjust test to match.
60773         * NEWS: Document the change.
60774         Suggested by Paul Eggert.
60776 2010-09-16  Bruno Haible  <bruno@clisp.org>
60778         Fix typos in comments.
60779         * lib/striconveh.h: Fix typo in comment.
60780         * lib/login_tty.c (login_tty): Likewise.
60782 2010-09-15  Bruno Haible  <bruno@clisp.org>
60784         stdlib: clarify MirBSD WEXITSTATUS bug
60785         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
60786         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60788 2010-09-15  Eric Blake  <eblake@redhat.com>
60790         stdlib: work around MirBSD WEXITSTATUS bug
60791         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
60792         * modules/stdlib (Depends-on): Add sys_wait.
60793         * tests/test-sys_wait.c (main): Enhance test.
60794         * tests/test-stdlib.c (main): Likewise.
60795         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
60797         docs: mention MacOS issue with WEXITSTATUS(constant)
60798         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
60799         issue.
60800         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60802         strnlen: add tests
60803         * modules/strnlen-tests: New file.
60804         * tests/test-strnlen.c: Likewise.
60806 2010-09-14  Bruno Haible  <bruno@clisp.org>
60808         unistr/base: Avoid link errors when module 'libunistring' is also used.
60809         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
60810         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
60811         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
60812         Declare also when HAVE_LIBUNISTRING is set.
60813         Reported by Pádraig Brady <P@draigbrady.com>.
60815 2010-09-14  Eric Blake  <eblake@redhat.com>
60817         test-rawmemchr: make more robust
60818         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
60819         (Depends-on, configure.ac): Add needed prerequisites to use it.
60820         * modules/memchr-tests (Files, Depends-on, configure.ac):
60821         Likewise, to avoid implicit reliance on memchr module prereqs.
60822         * tests/test-memchr.c (main): Ensure proper masking.
60823         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
60824         reads.
60826         memchr: detect glibc Alpha bug
60827         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
60828         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
60829         Alpha.
60830         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
60831         * tests/test-memchr.c (main): Enhance test.
60832         Reported by Nelson H. F. Beebe.
60834 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60836         fts, getcwd, glob: audit for dirfd returning -1
60837         * lib/fts.c (opendir): Remove #define; no longer used.
60838         (opendirat): New arg PDIR_FD.  All callers changed.
60839         (fts_build, _opendir2): Use new opendirat to avoid the need for
60840         dirfd, or for checking whether dirfd returns a negative value.
60841         Don't use opendir; always use openat followed by fdopendir.
60842         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
60843         it.
60844         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
60845         returns -1 here.
60846         * modules/fts (Depends-on): Remove dirfd.
60847         * modules/getcwd (Depends-on): Likewise.
60849 2010-09-13  Eric Blake  <eblake@redhat.com>
60851         float: fix broken MirBSD header
60852         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
60853         * doc/posix-headers/float.texi (float.h): Document it.
60855 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60857         fts: use O_NOFOLLOW to avoid race condition when opening a directory
60858         * lib/fts.c (opendirat): New arg extra_flags.
60859         (__opendir2): Use it to avoid following symlinks when opening
60860         a directory, if symlinks are not supposed to be followed.  See
60861         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
60863         fdopendir: preserve argument fd before returning
60864         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
60865         (fdopendir_with_dup, fd_clone_opendir): New static functions.
60866         (fdopendir): Use them, arranging for FD to be open to the same
60867         directory that it was when it started.  (It might be temporarily
60868         closed while fdopendir is running, so this not thread- or
60869         signal-safe.)  Be careful to do the right thing even when file
60870         descriptors are scarce and dup fails with errno == EMFILE.  See
60871         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
60873 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
60875         regex: Pass the system regex if its only problem is 32-bit regoff_t.
60876         * NEWS: Document change.
60877         * m4/regex.m4: Disable test for regoff_t size.
60879 2010-09-13  Jim Meyering  <meyering@redhat.com>
60881         fts: don't operate on an invalid file descriptor after failed dup
60882         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
60883         negative file descriptor.
60885 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60887         savedir: add streamsavedir, deprecate fdsavedir
60888         * NEWS: Mention deprecation of fdsavedir.
60889         * lib/savedir.c (streamsavedir): New extern function, whose name
60890         ends in "savedir" to be consistent with the others.  This differs
60891         from savedirstream in that it doesn't close its argument.  The
60892         next version of GNU tar will use this instead of fdsavedir, to
60893         avoid some race conditions and conserve file descriptors.
60894         (savedirstream): Reimplement as a wrapper around streamsavedir.
60895         (fdsavedir): Add a comment deprecating this function.  As far as
60896         I know, only GNU tar used it, and GNU tar doesn't need it any more.
60897         * lib/savedir.h (streamsavedir): New decl.
60898         (fdsavedir): Add a comment deprecating this.
60900 2010-09-10  Bruno Haible  <bruno@clisp.org>
60902         langinfo: Fix last commit.
60903         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
60904         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
60905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60907 2010-09-10  Bruno Haible  <bruno@clisp.org>
60909         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
60910         * lib/progreloc.c (O_EXEC): Define fallback.
60912 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
60914         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
60915         * NEWS: Document recent changes to fcntl-h.
60916         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
60917         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
60918         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
60919         Similarly for O_SEARCH; this last was already true, but not documented.
60920         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
60921         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
60922         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
60923         Likewise.
60924         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
60925         is zero, not whether it is defined.
60926         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
60927         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
60928         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
60930 2010-09-10  Bruno Haible  <bruno@clisp.org>
60932         langinfo, nl_langinfo: Fix for IRIX 5.3.
60933         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
60934         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
60935         HAVE_LANGINFO_YESEXPR.
60936         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
60937         HAVE_LANGINFO_YESEXPR.
60938         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
60939         HAVE_LANGINFO_T_FMT_AMPM is 0.
60940         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
60941         HAVE_LANGINFO_YESEXPR is 0.
60942         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
60943         NOEXPR.
60944         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
60945         * doc/posix-functions/nl_langinfo.texi: Likewise.
60946         Reported by Eric Blake.
60948 2010-09-10  Bruno Haible  <bruno@clisp.org>
60950         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
60951         * doc/glibc-functions/login_tty.texi: Mention the include file problem
60952         on FreeBSD 8.0 and OpenBSD 4.6.
60953         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
60954         * m4/pty_h.m4 (gl_PTY_H): Likewise.
60955         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
60956         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
60957         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
60958         ac_includes_default.
60959         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60961 2010-09-09  Eric Blake  <eblake@redhat.com>
60963         strsignal: work around NetBSD bug
60964         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
60965         * lib/string.in.h (includes): Likewise.
60966         * doc/posix-functions/strsignal.texi (strsignal): Document the
60967         bug.
60968         Reported by Nelson H. F. Beebe.
60970         gnulib-tool: work with NetBSD /bin/sh
60971         * gnulib-tool (func_cache_var, func_cache_lookup_module)
60972         (func_get_description, func_get_comment, func_get_status)
60973         (func_get_notice, func_get_applicability, func_get_filelist)
60974         (func_get_dependencies, func_get_autoconf_early_snippet)
60975         (func_get_autoconf_snippet, func_get_automake_snippet)
60976         (func_get_include_directive, func_get_link_directive)
60977         (func_get_license, func_get_maintainer, func_import): Avoid
60978         shell syntax errors from parsing syntax extensions.
60980 2010-09-09  Bruno Haible  <bruno@clisp.org>
60982         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
60983         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
60984         a reliable way to determine whether the 'alias' command works.
60986 2010-09-08  Jim Meyering  <meyering@redhat.com>
60988         init.sh: penalize a set-x-impaired shell; don't disqualify it
60989         * tests/init.sh: Too many shells corrupt application stderr when
60990         you set -x, so we can't afford to disqualify them, since at least
60991         on Irix-6.5, that would disqualify all bourne shells.
60992         Instead, use a two-pass approach.
60993         On the first pass, try to find a shell that meets the stricter
60994         condition that set -x does not corrupt stderr.
60995         If no shell meets the stricter condition, retest each candidate
60996         shell, but without that extra condition.  Finally, when
60997         VERBOSE=yes is requested and set -x might cause trouble, simply
60998         issue a warning and refrain from enabling debug output.
61000 2010-09-08  Eric Blake  <eblake@redhat.com>
61002         unsetenv: fix OpenBSD bug
61003         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61004         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61005         documentation.
61006         Reported by Jim Meyering.
61008         strtod: work around IRIX 6.5 bug
61009         * lib/strtod.c (strtod): Reparse number on shorter string if
61010         exponent parse was invalid.
61011         * tests/test-strtod.c (main): Add check for "0x1p 2".
61012         Reported by Tom G. Christensen.
61014         getopt: optimize previous patch
61015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61016         empty variable.  Speed up awk script.
61017         Reported by Paolo Bonzini.
61019 2010-09-08  Jim Meyering  <meyering@redhat.com>
61021         test.sh: disqualify shells for which set -x corrupts stderr
61022         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61023         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61024         appear in stderr output.  For example, this command:
61025             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61026         prints "P=1" on those two systems:
61028 2010-09-08  Bruno Haible  <bruno@clisp.org>
61030         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61031         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61032         commands, because some shells ignore redirections when there is an
61033         error in the command lookup.
61034         Reported by Eric Blake.
61036 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61038         * lib/regex.h: Fix a mention of `regex_compile' (should be
61039         `re_compile_pattern').
61040         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61041         (re_set_registers): Correct name of parameter in comment.
61043         * doc/regex.texi: Add documentation for missing syntax flags.
61044         Remove commented-out documentation of defunct syntax option
61045         RE_NO_EMPTY_ALTS.
61046         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61047         Add documentation of re_set_registers.
61048         Document trick to re-use a pattern buffer by setting fastmap manually.
61049         Update documentation of struct re_pattern_buffer per public members.
61050         Uncomment documentation of equivalence class operators and
61051         collating symbol operators, since they are now implemented,
61052         Explain leftmost-longest matching in relation to alternatives.
61053         Tidy documentation of substring matching.
61054         Remove POSIX documentation, which is done better in
61055         glibc, and refer the reader there. Keep BSD API documentation, as
61056         that is not readily available elsewhere.
61058 2010-09-07  Eric Blake  <eblake@redhat.com>
61060         getopt: handle POSIXLY_CORRECT set but not exported
61061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61062         export state of POSIXLY_CORRECT, due to bash set -o posix.
61063         Reported by Dustin J. Mitchell.
61065 2010-09-05  Bruno Haible  <bruno@clisp.org>
61067         gnulib-tool: Highlight the changed options.
61068         * gnulib-tool (func_usage): Display the --import, --add-import,
61069         --remove-import explanations in bold font.
61071 2010-09-06  Karl Berry  <karl@gnu.org>
61073         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61075 2010-09-05  Bruno Haible  <bruno@clisp.org>
61077         uniwidth/width: Update comment.
61078         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61079         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61081 2010-09-05  Bruno Haible  <bruno@clisp.org>
61083         isinf, isnan: Relax license.
61084         * modules/isinf (License): Change from GPL to LGPL, with consent from
61085         Ben Pfaff.
61086         * modules/isnan (License): Likewise.
61087         Requested by Ludovic Courtès.
61089 2010-09-04  Bruno Haible  <bruno@clisp.org>
61091         gnulib-tool: Help migration from --import to --add-import or --update.
61092         * gnulib-tool: Emit a verbose error message when --import is used
61093         without any module name.
61095 2010-09-04  Bruno Haible  <bruno@clisp.org>
61097         Update doc about gnulib-tool.
61098         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61099         'gnulib-tool --update' in more detail.
61100         Reported by Eric Blake.
61102 2010-09-04  Bruno Haible  <bruno@clisp.org>
61104         gnulib-tool: Change --import. New options --add/remove-import.
61105         * gnulib-tool: New options --add-import, --remove-import.
61106         (func_usage): Document them.
61107         (have_associative): Define always.
61108         (func_import): In import mode, don't merge the specified settings with
61109         the cached settings. Implement remove-import mode.
61110         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61111         Explain when to use them versus --import.
61112         (Simple update): Use --add-import instead of --import.
61113         * NEWS: Mention the change.
61115 2010-09-04  Bruno Haible  <bruno@clisp.org>
61117         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61118         separate gnulib.mk.
61120 2010-09-04  Bruno Haible  <bruno@clisp.org>
61122         gnulib-tool: Don't talk about CVS any more.
61123         * gnulib-tool (func_usage, func_import): Write "version control"
61124         instead of CVS.
61126 2010-09-04  Jim Meyering  <meyering@redhat.com>
61128         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61129         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61130         false positives (whose names may be ill-chosen) when searching
61131         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61132         would cause a false-positive.
61134         avoid coreutils "make distcheck" failure
61135         Coreutils tests with an absolute build directory name that contains
61136         a space.  Not quoting this directory name caused a failure.
61137         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61138         * tests/test-vc-list-files-cvs.sh: Likewise.
61140 2010-09-04  Bruno Haible  <bruno@clisp.org>
61142         gnulib-tool: Avoid error when run in a package without Makefile.am.
61143         * gnulib-tool: When collecting the m4dirs in a package that does not
61144         have a Makefile.am, eliminate those directories that contain no
61145         gnulib-cache.m4. Fix expression that counts these directories.
61147 2010-09-04  Bruno Haible  <bruno@clisp.org>
61149         update-copyright test: Improve output when perl is missing or too old.
61150         * tests/test-update-copyright.sh: Move test of Perl version down after
61151         the test whether Perl exists. Provide an explanation relating Perl's
61152         error message to Automake's SKIP: message.
61154 2010-09-04  Bruno Haible  <bruno@clisp.org>
61156         Don't augment PATH in TESTS_ENVIRONMENT.
61157         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61158         set abs_aux_dir instead of augmenting PATH.
61159         * modules/vc-list-files-tests (Makefile.am): Likewise.
61160         * tests/test-update-copyright.sh: Augment PATH here.
61161         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61162         path_prepend_.
61163         * tests/test-vc-list-files-git.sh: Likewise.
61165 2010-09-04  Jim Meyering  <meyering@redhat.com>
61167         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61168         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61170 2010-09-04  Bruno Haible  <bruno@clisp.org>
61172         strdup: Fix compilation error in C++ mode.
61173         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61174         the macro.
61176 2010-09-04  Bruno Haible  <bruno@clisp.org>
61178         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61179         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61180         macro into a function.
61181         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61183 2010-09-04  Bruno Haible  <bruno@clisp.org>
61185         Set PATH_SEPARATOR the same way autoconf does.
61186         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61187         the value of PATH_SEPARATOR the same way autoconf-generated configure
61188         scripts do.
61189         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61190         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61192 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61194         Set PATH_SEPARATOR the same way autoconf does.
61195         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61196         the same way autoconf-generated configure scripts do.
61197         * posix-modules: Likewise.
61199 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61201         hash: fix safe_hasher const typo
61202         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61203         const; otherwise, there is a type error later.
61205 2010-09-02  Jim Meyering  <meyering@redhat.com>
61207         test-update-copyright.sh: require perl 5.8.0
61208         * tests/test-update-copyright.sh: Require 5.8.0,
61209         which Tom G. Christensen has confirmed is adequate,
61210         while 5.6.1 is not.
61212 2010-09-02  Eric Blake  <eblake@redhat.com>
61214         tests: init.sh improvements for re-exec'ing with zsh
61215         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61216         -vx through shell re-exec.
61217         Reported by Tom G. Christensen.
61219         wctype: fix typo in previous commit
61220         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61221         Reported by Ludovic Courtès.
61223 2010-09-02  Jim Meyering  <meyering@redhat.com>
61225         test-update-copyright.sh: skip test if Perl is too old
61226         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61227         Reported by Tom G. Christensen.
61229 2010-09-02  Bruno Haible  <bruno@clisp.org>
61231         wctype: Avoid compilation error on IRIX 6.5.30.
61232         * lib/wctype.in.h (iswblank): Declare with a replacement if
61233         REPLACE_ISWBLANK is set.
61234         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61235         declared. Set REPLACE_ISWBLANK.
61236         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61237         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61238         * doc/posix-headers/wctype.texi: Likewise.
61239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61241 2010-09-01  Bruno Haible  <bruno@clisp.org>
61243         New module 'socketlib'.
61244         * modules/socketlib: New file.
61245         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61246         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61247         * modules/sockets (Depends-on): Add socketlib.
61248         Suggested by Sam Steingold <sds@gnu.org>.
61250 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61252         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61254         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61255         when one needs search access to a directory but not read access.
61256         On systems where it is available, it works in some cases where
61257         O_RDONLY does not, namely on directories that are searchable but
61258         not readable, and which need only to be searchable.  If O_SEARCH
61259         is not available, fall back to the traditional method of using
61260         O_RDONLY.
61262         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61263         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61264         when opening a directory that needs only to be searchable.
61265         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61266         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61267         * lib/openat-proc.c (openat_proc_name): Likewise.
61268         * lib/openat.c (openat_needs_fchdir): Likewise.
61269         * lib/save-cwd.c (save_cwd): Likewise.
61270         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61272 2010-08-28  Bruno Haible  <bruno@clisp.org>
61274         New module 'host-cpu-c-abi'.
61275         * modules/host-cpu-c-abi: New file.
61276         * m4/host-cpu-c-abi.m4: New file, based on part of
61277         clisp/src/m4/general.m4.
61278         Requested by Sam Steingold <sds@gnu.org>.
61280 2010-08-31  Eric Blake  <eblake@redhat.com>
61281         and Jim Meyering  <meyering@redhat.com>
61283         hash: factor, and guard against misbehaving hasher function
61284         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61285         of table->hasher's return value.  Also protect against a hash value
61286         so large that adding it to table->bucket results in a NULL pointer.
61287         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61288         Use it in place of open-coded check-and-abort.
61290 2010-08-30  Bruno Haible  <bruno@clisp.org>
61292         hash: silence spurious clang warning
61293         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61294         Reported by Eric Blake.
61296 2010-08-30  Eric Blake  <eblake@redhat.com>
61298         strstr, memmem, strcasestr: avoid leaked shell message
61299         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61300         FreeBSD.
61301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61304         tests: silence clang warning
61305         * tests/test-malloca.c (do_allocation): Avoid dead store.
61307 2010-08-29  Bruno Haible  <bruno@clisp.org>
61309         gettext: Fix recent mistake.
61310         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61312 2010-08-29  Bruno Haible  <bruno@clisp.org>
61314         selinux-h: Offer a --without-selinux option.
61315         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61316         --without-selinux was specified, skip all tests and define
61317         HAVE_SELINUX_SELINUX_H to 0.
61318         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61319         set LIB_SELINUX to empty.
61320         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61321         gl_LIBSELINUX. If --without-selinux was specified, replace
61322         selinux/context.h.
61323         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61325 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61326             Bruno Haible  <bruno@clisp.org>
61328         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61329         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61330         of HAVE_REALLOC.
61331         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61332         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61333         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61334         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61336 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61337             Bruno Haible  <bruno@clisp.org>
61339         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61340         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61341         HAVE_CALLOC.
61342         * lib/xmalloc.c: Update accordingly.
61343         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61344         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61345         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61347 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61348             Bruno Haible  <bruno@clisp.org>
61350         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61351         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61352         HAVE_MALLOC.
61353         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61354         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61355         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61357 2010-08-29  Bruno Haible  <bruno@clisp.org>
61359         Update modules list.
61360         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61361         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61362         (String handling <string.h>): Add astrxfrm.
61363         (File system functions): Add readlinkat.
61365 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61367         Tests for module 'realloc-gnu'.
61368         * modules/realloc-gnu-tests: New file.
61369         * tests/test-realloc-gnu.c: New file.
61371         Tests for module 'calloc-gnu'.
61372         * modules/calloc-gnu-tests: New file.
61373         * tests/test-calloc-gnu.c: New file.
61375         Tests for module 'malloc-gnu'.
61376         * modules/malloc-gnu-tests: New file.
61377         * tests/test-malloc-gnu.c: New file.
61379 2010-08-28  Bruno Haible  <bruno@clisp.org>
61381         Rename module 'realloc' -> 'realloc-gnu'.
61382         * modules/realloc-gnu: New file, copied from modules/realloc.
61383         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61384         obsolete.
61385         * modules/mgetgroups (Depends-on): Update.
61386         * doc/posix-functions/realloc.texi: Update.
61387         * NEWS: Mention the change.
61389         Rename module 'calloc' -> 'calloc-gnu'.
61390         * modules/calloc-gnu: New file, copied from modules/calloc.
61391         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61392         obsolete.
61393         * doc/posix-functions/calloc.texi: Update.
61394         * NEWS: Mention the change.
61396         Rename module 'malloc' -> 'malloc-gnu'.
61397         * modules/malloc-gnu: New file, copied from modules/malloc.
61398         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61399         obsolete.
61400         * modules/argp (Depends-on): Update.
61401         * modules/regex (Depends-on): Update.
61402         * doc/posix-functions/malloc.texi: Update.
61403         * NEWS: Mention the change.
61405 2010-08-28  Eric Blake  <eblake@redhat.com>
61407         pread, pwrite: add missing dependency
61408         * modules/pread (Depends-on): Add extensions.
61409         * modules/pwrite (Depends-on): Likewise.
61411 2010-08-28  Bruno Haible  <bruno@clisp.org>
61413         unistr/u*-strchr: Fix tests dependencies.
61414         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61415         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61416         Reported by Ian Beckwith <ianb@erislabs.net>.
61418 2010-08-28  Bruno Haible  <bruno@clisp.org>
61420         read-file: Don't occupy too much unused memory.
61421         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61423 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61424             Eric Blake  <eblake@redhat.com>
61425             Bruno Haible  <bruno@clisp.org>
61427         read-file: Avoid memory reallocations with regular files.
61428         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61429         (fread_file): With regular files, use the remaining length as the
61430         initial buffer size.  Check against overflow.
61431         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61432         sys_stat.
61434 2010-08-28  Bruno Haible  <bruno@clisp.org>
61436         ftello: Relax license.
61437         * modules/ftello (License): Relax to LGPLv2+.
61438         Reported by Eric Blake.
61440 2010-08-28  Bruno Haible  <bruno@clisp.org>
61442         Avoid relocwrapper link errors due to gnulib replacement functions.
61443         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61444         function.
61445         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61447 2010-08-28  Bruno Haible  <bruno@clisp.org>
61449         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61450         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61451         defined.
61452         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61453         Suggested by Eric Blake.
61455 2010-08-28  Bruno Haible  <bruno@clisp.org>
61457         sys_socket, netdb: Ensure socklen_t gets defined.
61458         * modules/sys_socket (Depends-on): Add socklen.
61459         * modules/netdb (Depends-on): Likewise.
61460         * modules/getaddrinfo (Depends-on): Remove socklen.
61461         * modules/getsockopt (Depends-on): Likewise.
61462         * modules/setsockopt (Depends-on): Likewise.
61463         * tests/test-sys_socket.c: Check that socklen_t is defined.
61464         * tests/test-netdb.c: Likewise.
61465         * m4/socklen.m4: Update comments.
61466         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61468 2010-08-27  Eric Blake  <eblake@redhat.com>
61470         login_tty: add missing dependency
61471         * modules/login_tty (Depends-on): Add pty.
61473 2010-08-26  Eric Blake  <eblake@redhat.com>
61475         lib-symbol-versions: fix m4 quoting
61476         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61477         format for AC_LINK_IFELSE.
61479         glob: fix compile test
61480         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61482         btowc: fix missing file
61483         * modules/btowc (Files): Also ship locale-fr.m4.
61485         lseek: fix link test
61486         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61487         AC_LINK_IFELSE.
61489         include_next: silence autoconf 2.68 warning
61490         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61491         AC_COMPILE_IFELSE as special.
61492         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61493         autoconf < 2.68.
61495         acl: fix compilation test
61496         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61497         AC_COMPILE_IFELSE.
61499 2010-08-26  Bruno Haible  <bruno@clisp.org>
61501         Modernize AC_TRY_RUN invocations.
61502         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61503         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61504         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61505         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61506         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61507         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61508         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61510         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61511         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61512         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61513         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61514         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61515         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61516         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61517         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61518         gl_MBRLEN_NUL_RETVAL): Likewise.
61519         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61520         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61521         Likewise.
61522         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61523         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61524         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61525         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61526         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61527         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61528         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61529         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61530         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61531         Likewise.
61532         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61533         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61535         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61537         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61538         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61539         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61540         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61543 2010-08-26  Bruno Haible  <bruno@clisp.org>
61545         Modernize AC_TRY_LINK invocations.
61546         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61547         AC_TRY_LINK.
61548         * m4/argp.m4 (gl_ARGP): Likewise.
61549         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61550         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61551         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61552         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61553         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61554         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61555         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61556         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61558         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61560         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61561         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61562         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61563         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61564         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61565         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61566         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61567         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61568         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61569         Likewise.
61570         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61571         Likewise.
61572         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61573         Likewise.
61574         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61576         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61577         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61578         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61579         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61580         * m4/servent.m4 (gl_SERVENT): Likewise.
61581         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61582         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61583         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61584         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61585         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61586         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61587         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61588         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61589         * modules/tsearch-tests (configure.ac): Likewise.
61591 2010-08-26  Bruno Haible  <bruno@clisp.org>
61593         Modernize AC_TRY_COMPILE invocations.
61594         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61595         AC_TRY_COMPILE.
61596         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61597         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61598         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61599         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61600         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61601         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61602         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61603         * m4/lock.m4 (gl_LOCK): Likewise.
61604         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61605         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61606         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61607         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61608         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61609         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61610         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61611         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61612         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61613         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61614         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61615         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61616         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61617         extraneous semicolon.
61619 2010-08-26  Jim Meyering  <meyering@redhat.com>
61621         stat-time: relax license LGPL
61622         * modules/stat-time (License): Change from GPL to LGPL,
61623         with consent from all contributors, for use in libguile.
61624         Requested by Ludovic Courtès.
61626 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61628         poll: return immediately on POLLHUP.
61629         * lib/poll.c (poll): Always set timeout before wait_timeout is
61630         computed.
61632 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61634         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61635         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61636         rmdir ("dir/.//"), unlinkat.
61638 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61640         stdbool: avoid spurious failure with modern xlc
61641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61643 2010-08-24  Bruno Haible  <bruno@clisp.org>
61645         getloadavg: simplify code
61646         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61647         gl_have_func. Update comments.
61649 2010-08-24  Eric Blake  <eblake@redhat.com>
61651         getloadavg: don't define SVR4 on cygwin
61652         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61653         only define SVR4 when -lkvm is required.
61654         Reported by Yaakov Selkowitz.
61656 2010-08-24  Bruno Haible  <bruno@clisp.org>
61658         priv-set: fix comment
61659         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61661 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61663         priv-set: fix comments
61664         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61665         to match code, as suggested by David Bartley in:
61666         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61668 2010-08-23  Eric Blake  <eblake@redhat.com>
61670         stdbool: avoid rejecting clang
61671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61672         * tests/test-stdbool.c: Enable more tests if using the system
61673         <stdbool.h> instead of the gnulib replacement.
61674         (main): Move xlc bug test to a runtime test for all compilers.
61675         Reported by Anders Kaseorg.
61677         argz: fix shell quoting issue
61678         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61679         Reported by Charles Wilson.
61681 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61682             Erik Faye-Lund <kusmabite@gmail.com>
61684         poll, select: handle ERROR_BROKEN_PIPE.
61685         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61686         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61687         * lib/select.c (win32_compute_revents): Do not mark a pipe
61688         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61690 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61692         fts: allow compilation with C++
61693         * lib/fts_.h: Specify extern "C" linkage with C++.
61695 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61697         Fix gnulib-tool sed script de-commentation for AIX sed.
61698         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61699         sed.
61701 2010-08-17  Eric Blake  <eblake@redhat.com>
61703         test-stddef: test for (some) offsetof bugs
61704         * tests/test-stddef.c: Enhance test to ensure correct type of
61705         offsetof.
61706         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61707         that we are not fixing at this time.
61709 2010-08-15  Bruno Haible  <bruno@clisp.org>
61711         stpncpy: Allow stpncpy to be defined as a macro.
61712         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61713         if it's already correctly declared.
61714         * lib/string.in.h (stpncpy): Undefine before redefining.
61715         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61717 2010-08-14  Bruno Haible  <bruno@clisp.org>
61719         Rename module 'memxfrm' to 'amemxfrm'.
61720         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
61721         (amemxfrm): Renamed from memxfrm.
61722         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
61723         (amemxfrm): Renamed from memxfrm.
61724         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
61725         * NEWS: Mention the change.
61726         * MODULES.html.sh (String handling <string.h>): Update.
61727         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
61728         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
61729         * lib/unicase/u16-casexfrm.c: Likewise.
61730         * lib/unicase/u32-casexfrm.c: Likewise.
61731         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
61732         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
61733         * lib/uninorm/u16-normxfrm.c: Likewise.
61734         * lib/uninorm/u32-normxfrm.c: Likewise.
61735         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
61736         memxfrm.
61737         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
61738         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
61739         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
61740         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
61741         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
61742         Suggested by Paul Eggert.
61744 2010-08-14  Bruno Haible  <bruno@clisp.org>
61746         Tests for module 'astrxfrm'.
61747         * modules/astrxfrm-tests: New file.
61748         * tests/test-astrxfrm.c: New file.
61750         New module 'astrxfrm'.
61751         * lib/astrxfrm.h: New file.
61752         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
61753         * modules/astrxfrm: New file.
61755 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
61757         regex: Tweak doc.
61758         * doc/regex.texi (Overview): Don't mention regex.c.
61759         (GNU Regular Expression Compiling): Likewise.
61760         (Match-end-of-line Operator): Mention 'not_eol'.
61762 2010-08-14  Brian Gough  <bjg@gnu.org>
61763             Bruno Haible  <bruno@clisp.org>
61765         git-merge-changelog: add doc relating to use with bzr and hg.
61766         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
61768 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
61770         pthread: fix pthread.h creation for srcdir != builddir
61771         * modules/pthread (Makefile.am): Fix the rule to work also in a
61772         non-srcdir build.
61774 2010-08-13  Karl Berry  <karl@gnu.org>
61776         * doc/regex.texi (Predefined Syntaxes): @smallexample.
61777         * doc/posix-*/*: force line break before @url of POSIX
61778         specifications.
61779         Suggested by Werner Lemberg.
61781 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61783         strtod: fix const diagnostic
61784         * lib/strtod.c (strtod): Don't assign const char * to char *,
61785         as this elicits a warning from GCC when warnings are enabled.
61787 2010-08-10  Pádraig Brady  <P@draigbrady.com>
61788         and Eric Blake  <eblake@redhat.com>
61790         copy-acl: ignore ENOTSUP on HP-UX
61791         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
61792         so that it is available for HP-UX.
61793         * lib/copy-acl.c (qcopy_acl): Use it.
61794         Reported by Patrick M. Callahan.
61796 2010-08-10  Eric Blake  <eblake@redhat.com>
61798         open, chown: relax license
61799         * modules/open (License): Change to LGPLv2+, with consent by all
61800         authors, for use in augeas.
61801         * modules/chown (License): Likewise.
61802         * modules/lchown (Likewise): Likewise.
61803         Requested by Adam Stokes.
61805 2010-08-09  Karl Berry  <karl@gnu.org>
61807         * build-aux/ar-lib: new file, import from Automake.
61808         * config/srclist.txt: autocheck for updates.
61810 2010-08-09  Eric Blake  <eblake@redhat.com>
61812         readlinkat: adjust client modules
61813         * modules/areadlinkat (Depends-on): Use readlinkat, not
61814         symlinkat.
61815         * modules/areadlinkat-with-size (Depends-on): Likewise.
61817         mknod: be more vocal about danger of running tests as root
61818         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
61819         root, since that is just asking for problems.
61820         Suggested by Bruno Haible, based on a report by Rainer Tammer.
61822         readlinkat: split into its own module
61823         * modules/symlinkat: Split readlinkat...
61824         * modules/readlinkat: ...into separate module.
61825         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
61826         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
61827         * lib/symlinkat.c (readlinkat): Move...
61828         * lib/readlinkat.c: ...into new file.
61829         * modules/symlinkat-tests: Split readlinkat test...
61830         * modules/readlinkat-tests: ...into separate module.
61831         * tests/test-symlinkat.c: Split...
61832         * tests/test-readlinkat.c: ...into new file.
61833         * NEWS: Document the split.
61834         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61835         * lib/unistd.in.h (readlinkat): Likewise.
61836         Suggested by Bruno Haible.
61838 2010-08-08  Bruno Haible  <bruno@clisp.org>
61840         memxfrm: Speed up.
61841         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
61842         that usually only one call to strxfrm is necessary for each string
61843         part.
61844         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61846 2010-08-07  Karl Berry  <karl@gnu.org>
61848         * doc/posix-headers/limits.texi,
61849         * doc/posix-functions/malloc.texi,
61850         * doc/posix-functions/strsignal.texi: missing @item.
61851         * doc/ld-version-script.texi: spurious leading i.
61852         * doc/regex.texi (Interval Operators): no commas inside @var.
61854 2010-08-01  Bruno Haible  <bruno@clisp.org>
61856         Integrate the regex documentation.
61857         * doc/gnulib.texi: Define 'cn' index.
61858         (Regular expressions): New a chapter that includes regex.texi and
61859         regexprops-generic.texi.
61860         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
61861         syntax.
61863         Whitespace cleanup.
61864         * doc/regex.texi: Remove trailing spaces.
61866         Add regex documentation.
61867         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
61868         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
61869         Written by Kathy A. Hargreaves and Karl Berry.
61871 2010-08-01  Bruno Haible  <bruno@clisp.org>
61873         link: Update documentation.
61874         * doc/posix-functions/link.texi: Update regarding Solaris.
61876 2010-07-31  Bruno Haible  <bruno@clisp.org>
61878         Update modules list.
61879         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
61880         (String handling <string.h>): Add memcmp2, memxfrm.
61881         (Container data structures): Add xlist, xsublist, xoset.
61882         (Core language properties): Add alignof, unused-parameter.
61883         (Process control, Numeric conversion functions <stdlib.h>): Renamed
61884         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
61885         (Unibyte characters <ctype.h>): New section.
61886         (String handling <string.h>): New section.
61887         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
61888         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
61889         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
61890         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
61891         tan, tanh, tanl, y0, y1, yn.
61892         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
61893         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
61894         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
61895         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
61896         unlockpt, vdprintf, vdprintf-posix.
61897         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
61898         (File system functions): Add concat-filename, sys_file, sys_ioctl,
61899         xconcat-filename.
61900         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
61901         getdtablesize, pipe2, pipe2-safer.
61902         (Security): New section.
61903         (Networking functions): Add accept4.
61904         (Signal handling): Add sigpipe.
61905         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
61906         mbmemcasecoll.
61907         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
61908         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
61909         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
61910         pipe-filter-ii.
61911         (Misc): Add argp-version-etc, login_tty, parse-duration.
61913 2010-07-31  Bruno Haible  <bruno@clisp.org>
61915         Improve doc in MODULES.html.
61916         * modules/linkat (Description): Add the word "function".
61917         * modules/mkfifo (Description): Likewise.
61918         * modules/mknod (Description): Likewise.
61919         * modules/remove (Description): Likewise.
61920         * modules/renameat (Description): Likewise.
61921         * modules/stat (Description): Likewise.
61922         * modules/symlink (Description): Likewise.
61923         * modules/unlink (Description): Likewise.
61925 2010-07-31  Bruno Haible  <bruno@clisp.org>
61927         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
61928         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
61929         option --enable/disable-c++ instead of --enable/disable-cxx.
61930         * NEWS: Mention the change.
61932 2010-07-31  Bruno Haible  <bruno@clisp.org>
61934         readlink, areadlink: Relax test a bit.
61935         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
61936         alternative to ENOTDIR.
61937         * tests/test-areadlink.h (test_areadlink): Likewise.
61938         Reported by Rainer Tammer.
61940 2010-07-31  Bruno Haible  <bruno@clisp.org>
61942         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
61943         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
61944         character, perform the search using U_STRCHR.
61945         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
61946         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
61947         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
61948         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
61949         Suggested by Paolo Bonzini.
61951 2010-07-31  Bruno Haible  <bruno@clisp.org>
61953         unistr/u*-strstr: Fix dependencies.
61954         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
61955         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
61956         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
61958 2010-07-31  Bruno Haible  <bruno@clisp.org>
61960         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
61961         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
61962         the beginning of the loop.
61963         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
61964         cases in 'switch' statement.
61966         unistr/u8-strchr: Fix several bugs.
61967         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
61968         the string. When not found, return NULL, not a pointer near the end.
61970         More tests for unistr/u8-strchr.
61971         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
61972         that the function does not read past the first occurrence of the byte
61973         being searched.
61974         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
61975         * tests/unistr/test-u16-strchr.c (main): New function.
61976         * tests/unistr/test-u32-strchr.c (main): New function.
61978 2010-07-31  Bruno Haible  <bruno@clisp.org>
61980         posix-modules: Ignore backup files of documentation files.
61981         * posix-modules: grep only through files named *.texi.
61983 2010-07-31  Bruno Haible  <bruno@clisp.org>
61985         symlinkat: Fix documentation.
61986         * doc/posix-functions/readlinkat.texi: Fix module name.
61988 2010-07-31  Bruno Haible  <bruno@clisp.org>
61990         fchownat: Replace also when chown has the trailing slash bug.
61991         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
61992         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
61993         introduced on 2010-04-10.
61994         Reported by Rainer Tammer.
61996 2010-07-31  Bruno Haible  <bruno@clisp.org>
61998         linkat: Work around AIX 7.1 bug.
61999         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62000         whether linkat handles trailing slash correctly. If not, replace linkat
62001         and define LINKAT_TRAILING_SLASH_BUG.
62002         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62003         check whether (fd1,file1) points to a directory if file1 or file2 ends
62004         in a slash. Code taken from lib/link.c.
62005         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62006         Reported by Rainer Tammer.
62008 2010-07-31  Bruno Haible  <bruno@clisp.org>
62010         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62011         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62012         This disables an xlc optimization that was causing wrong test results.
62013         Reported by Rainer Tammer.
62015 2010-07-31  Bruno Haible  <bruno@clisp.org>
62017         iconv: Work around AIX 6.1..7.1 bug.
62018         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62019         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62020         cross-compiling, guess no on all versions of AIX.
62021         Reported by Rainer Tammer.
62023 2010-07-31  Bruno Haible  <bruno@clisp.org>
62025         readlink: Relax test a bit.
62026         * tests/test-readlink.h (test_readlink): Allow different errno value
62027         when readlink is called with a file name that ends in / and refers to
62028         a file.
62029         Suggested by Eric Blake.
62030         Reported by Rainer Tammer.
62032 2010-07-31  Bruno Haible  <bruno@clisp.org>
62034         copysign: Does not require -lm on glibc systems.
62035         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62036         gl_COMMON_DOUBLE_MATHFUNC.
62037         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62039 2010-07-31  Bruno Haible  <bruno@clisp.org>
62041         duplocale: Work around AIX 7.1 bug.
62042         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62043         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62044         * lib/duplocale.c (rpl_duplocale): Update comment.
62045         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62046         Reported by Rainer Tammer.
62048 2010-07-30  Bruno Haible  <bruno@clisp.org>
62050         dirfd: Avoid link error on AIX 7.1.
62051         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62052         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62053         exist, set REPLACE_DIRFD.
62054         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62055         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62056         * doc/posix-functions/dirfd.texi: Update.
62057         Reported by Rainer Tammer.
62059 2010-07-30  Eric Blake  <eblake@redhat.com>
62061         strtod: next round of AIX fixes
62062         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62063         exponent.
62064         * tests/test-strtod.c (main): Enhance tests.
62065         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62066         Reported by Rainer Tammer.
62068         futimens: fix configure check
62069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62070         Reported by Bruno Haible.
62072 2010-07-30  Bruno Haible  <bruno@clisp.org>
62074         getline: Update regarding AIX.
62075         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62076         Reported by Rainer Tammer.
62078 2010-07-30  Bruno Haible  <bruno@clisp.org>
62080         wcwidth: Drop replacement on AIX 7.
62081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62082         AIX 7.
62083         Reported by Rainer Tammer.
62085 2010-07-30  Bruno Haible  <bruno@clisp.org>
62087         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62088         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62089         a 'char *'.
62090         Reported by Rainer Tammer.
62092 2010-07-30  Bruno Haible  <bruno@clisp.org>
62094         unlink: Update regarding AIX.
62095         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62096         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62097         Reported by Rainer Tammer.
62099 2010-07-30  Bruno Haible  <bruno@clisp.org>
62101         symlink: Update regarding AIX.
62102         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62103         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62104         Reported by Rainer Tammer.
62106 2010-07-30  Bruno Haible  <bruno@clisp.org>
62108         strndup: Update regarding AIX.
62109         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62110         AIX 7.
62111         Reported by Rainer Tammer.
62113 2010-07-30  Bruno Haible  <bruno@clisp.org>
62115         stat: Update regarding AIX.
62116         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62117         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62118         Reported by Rainer Tammer.
62120 2010-07-30  Bruno Haible  <bruno@clisp.org>
62122         truncl: Fix autoconf test.
62123         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62124         whether truncl works.
62125         Reported by Rainer Tammer.
62127 2010-07-30  Bruno Haible  <bruno@clisp.org>
62129         round: Update regarding AIX.
62130         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62131         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62132         Reported by Rainer Tammer.
62134 2010-07-30  Bruno Haible  <bruno@clisp.org>
62136         rename: Update regarding AIX.
62137         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62138         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62139         Reported by Rainer Tammer.
62141 2010-07-30  Bruno Haible  <bruno@clisp.org>
62143         printf.m4: Update regarding AIX.
62144         * m4/printf.m4: Update comments regarding AIX.
62145         Reported by Rainer Tammer.
62147 2010-07-30  Bruno Haible  <bruno@clisp.org>
62149         iconv: Update regarding AIX.
62150         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62151         AIX 7.
62152         Reported by Rainer Tammer.
62154 2010-07-30  Bruno Haible  <bruno@clisp.org>
62156         getopt: Update regarding AIX.
62157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62158         no on AIX.
62159         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62160         Reported by Rainer Tammer.
62162 2010-07-30  Bruno Haible  <bruno@clisp.org>
62164         ldexpl; Update regarding AIX.
62165         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62166         on AIX 7.
62167         Reported by Rainer Tammer.
62169 2010-07-30  Bruno Haible  <bruno@clisp.org>
62171         frexpl: Update regarding AIX.
62172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62173         on AIX 7.
62174         Reported by Rainer Tammer.
62176 2010-07-30  Bruno Haible  <bruno@clisp.org>
62178         open, fopen: Update regarding AIX.
62179         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62180         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62181         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62182         * doc/posix-functions/fopen.texi: Likewise.
62183         Reported by Rainer Tammer.
62185 2010-07-30  Bruno Haible  <bruno@clisp.org>
62187         chown: Update doc regarding AIX.
62188         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62189         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62190         Reported by Rainer Tammer.
62192 2010-07-30  Eric Blake  <eblake@redhat.com>
62194         strtod: fix bug in replacement function on AIX
62195         * lib/strtod.c (strtod): Special case broken "0x" parse in
62196         underlying strtod.
62197         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62198         * doc/posix-functions/strtod.texi (strtod): Likewise.
62199         Reported by Rainer Tammer.
62201 2010-07-30  Bruno Haible  <bruno@clisp.org>
62203         mbrlen: Fix cross-compilation guess for AIX.
62204         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62205         guess. Leftover from 2008-12-22.
62207 2010-07-30  Bruno Haible  <bruno@clisp.org>
62209         mbrtowc: Fix cross-compilation guess for AIX.
62210         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62211         guess. Leftover from 2008-12-21.
62213 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62215         init.sh: work around trap limitation of some shells
62216         * tests/init.sh (setup_): Move exit trap outside of shell function.
62218 2010-07-29  Eric Blake  <eblake@redhat.com>
62220         strtod: aid debugging
62221         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62222         understanding why strtod is rejected.
62224 2010-07-28  Bruno Haible  <bruno@clisp.org>
62226         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62227         * lib/unistr/u8-chr.c: Include <string.h>.
62228         * tests/unistr/test-u8-chr.c: Likewise.
62229         * tests/unistr/test-u16-chr.c: Likewise.
62230         * tests/unistr/test-u32-chr.c: Likewise.
62231         * tests/unistr/test-u8-strchr.c: Likewise.
62232         * tests/unistr/test-u16-strchr.c: Likewise.
62233         * tests/unistr/test-u32-strchr.c: Likewise.
62234         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62235         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62236         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62237         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62239 2010-07-28  Bruno Haible  <bruno@clisp.org>
62241         Use spaces for indentation, not tabs.
62242         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62244 2010-07-27  Bruno Haible  <bruno@clisp.org>
62246         mbspcasecmp: Fix function specification.
62247         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62248         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62249         Reported by Eric Blake <eblake@redhat.com>.
62251 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62253         timespec: use cast and not conditional, as truncation isn't possible
62254         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62255         instead of a conditional.  Comment about the situation in more detail.
62256         This undoes most of the 2009-10-29 patch.
62258 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62260         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62261         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62262         * lib/unistr/u8-strchr.c: Likewise.
62263         * modules/unistr/u8-chr: Depend on memchr.
62265         unistr/u*-strchr: add tests
62266         * modules/unistr/u8-strchr-tests: New file.
62267         * modules/unistr/u16-strchr-tests: New file.
62268         * modules/unistr/u32-strchr-tests: New file.
62269         * tests/unistr/test-strchr.h: New file.
62270         * tests/unistr/test-u8-strchr.c: New file.
62271         * tests/unistr/test-u16-strchr.c: New file.
62272         * tests/unistr/test-u32-strchr.c: New file.
62274         unistr/u*-chr: test multibyte sequences more
62275         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62276         test vector.
62277         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62278         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62279         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62281         unistr/u*-chr: test multibyte sequences
62282         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62284         unistr/u*-chr: prepare for multibyte tests
62285         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62286         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62287         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62288         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62289         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62290         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62292 2010-07-18  Bruno Haible  <bruno@clisp.org>
62294         unistr/u8-strchr: Optimize non-ASCII argument case.
62295         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62296         because the first byte often matches anyway.
62297         Reported by Pádraig Brady <P@draigbrady.com>.
62299 2010-07-15  Karl Berry  <karl@gnu.org>
62301         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62303 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62305         getcwd: on Solaris, work better if ancestors are inaccessible
62306         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62307         buffer and size, try again with a large buffer.  This works better
62308         on Solaris, since its getcwd succeeds even if the path to the root
62309         is inaccessible, and this is helpful in common cases such as .zfs
62310         hidden directories.  Problem reported by J Chapman Flack in
62311         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62312         Use system getcwd if it's declared, not merely if it's partly
62313         working; use the partly-working test only to avoid needless effort
62314         if the system getcwd fails.
62315         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62316         comment that was already obsolete and is now even more obsolete.
62317         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62318         now might call strdup.
62320 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62322         pthread: Add enough so that coreutils/src/sort.c compiles.
62323         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62324         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62325         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62326         Include <sys/types.h>, in case it defines pthread_t.
62327         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62328         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62329         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62330         (pthread_rwlockattr_t, pthread_spinlock_t):
62331         New typedefs, if HAVE_PTHREAD_T is not defined.
62332         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62333         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62334         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62335         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62336         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62337         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62338         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62339         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62340         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62341         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62342         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62343         New macros.
62344         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62345         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62346         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62347         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62348         (pthread_spin_unlock): New dummy functions.
62349         (pthread_create): Return EAGAIN; don't set errno.
62350         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62351         require AC_C_INLINE.
62352         * modules/pthread (Depends-on): Add sched, time.
62353         (pthread.h): Use AM_V_GEN.
62355 2010-07-13  Bruno Haible  <bruno@clisp.org>
62357         striconveh: Don't malloc memory if the result buffer is sufficient.
62358         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62359         buffer if its size is sufficient.
62360         Reported by Ludovic Courtès <ludo@gnu.org>.
62362 2010-07-13  Bruno Haible  <bruno@clisp.org>
62364         strtod: Add safety check.
62365         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62367 2010-07-12  Bruno Haible  <bruno@clisp.org>
62369         Unify tests that set gl_cv_func_ldexpl_no_libm.
62370         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62371         gl_FUNC_LDEXPL.
62372         (gl_FUNC_LDEXPL): Invoke it.
62373         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62375 2010-07-12  Bruno Haible  <bruno@clisp.org>
62377         Unify tests that set gl_cv_func_ldexp_no_libm.
62378         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62379         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62380         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62381         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62382         * modules/strtod (Files): Add m4/ldexp.m4.
62384 2010-07-12  Bruno Haible  <bruno@clisp.org>
62386         Unify tests that set gl_cv_func_frexpl_no_libm.
62387         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62388         gl_FUNC_FREXPL_NO_LIBM.
62389         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62390         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62392 2010-07-12  Bruno Haible  <bruno@clisp.org>
62394         Unify tests that set gl_cv_func_frexp_no_libm.
62395         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62396         gl_FUNC_FREXP_NO_LIBM.
62397         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62398         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62400 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62402         memcoll: clarify sizes versus lengths, document better, and tweak perf
62403         * lib/memcoll.c (strcoll_loop, memcoll0):
62404         Improve quality of descriptive comments.  Name variables
62405         consistently as to whether they are lengths (which do not include
62406         terminating null) versus sizes (which do).
62407         * lib/xmemcoll.c (xmemcoll0): Likewise.
62408         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62409         returned when s1size == 0; this is easier to compile and saves
62410         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62412 2010-07-12  Bruno Haible  <bruno@clisp.org>
62414         Tests for module '_Exit'.
62415         * modules/_Exit-tests: New file.
62416         * tests/test-_Exit.sh: New file.
62417         * tests/test-_Exit.c: New file.
62419         New module '_Exit'.
62420         * lib/stdlib.in.h (__attribute__): New macro.
62421         (_Exit): New declaration.
62422         * lib/_Exit.c: New file.
62423         * m4/_Exit.m4: New file.
62424         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62425         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62426         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62427         * modules/_Exit: New file.
62428         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62429         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62431 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62433         strtod: make it more-accurate typically, and don't require libm
62434         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62435         Include limits.h.  Don't include string.h.
62436         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62437         (locale_isspace): New function, so that no casts are needed to
62438         check whether *s is a space.
62439         (ldexp): Provide an unused dummy if not available.
62440         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62441         (strtod): Use them.  This implementation prefers to use the
62442         underlying strtod if available, falling back on our own code
62443         only to fix known bugs.  This is more likely to produce an
62444         accurate result.  Also, it avoids the use of libm functions.
62445         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62446         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62447         was absent, but it caused a test failure with coreutils.
62448         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62449         with libm.
62450         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62451         * modules/strtod-tests (Makefile.am): Likewise.
62453 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62454             Bruno Haible  <bruno@clisp.org>
62456         unistr/u8-strchr: Optimize ASCII argument case.
62457         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62459 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62461         (x)memcoll: minor tweaks
62462         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62463         is after the type that it qualifies.
62464         (memcoll0): Likewise.
62465         * lib/memcoll.h (memcoll0): Likewise.
62466         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62467         * lib/xmemcoll.h (xmemcoll0): Likewise.
62468         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62469         differs from memcoll in that the NUL byte is part of the argument.
62470         Omit the abort-checks, as performance is a real issue here.  Plus,
62471         the checks were wrong anyway (an off-by-one error).  Omit local
62472         variable 'diff', as it's a bit clearer that way.
62473         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62474         no longer needed.
62476 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62478         (x)memcoll: speedup when input is known to be NUL delimited
62479         * lib/memcoll.c: Include stdlib.
62480         (memcoll0): New function.
62481         (strcoll_loop): New function, refactored for use in both memcoll
62482         and memcoll0.
62483         * lib/memcoll.h (memcoll0): Add prototype.
62484         * lib/xmemcoll.c (xmemcoll0): New function.
62485         (collate_error): New function, refactored for use in both xmemcoll
62486         and xmemcoll0.
62487         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62488         * m4/memcoll.m4: add inline invocation.
62490 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62492         * build-aux/bootstrap: Remove any local translations
62493         from the translation project synchronization directory,
62494         so that local only translations are not distributed.
62496 2010-07-04  Bruno Haible  <bruno@clisp.org>
62498         fsusage: Clarify which code applies to which platforms.
62499         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62500         platform.
62501         * lib/fsusage.c (get_fs_usage): Likewise.
62503 2010-07-04  Bruno Haible  <bruno@clisp.org>
62505         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62506         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62507         Reported by Martin Lambers <marlam@marlam.de>.
62509 2010-07-04  Jim Meyering  <meyering@redhat.com>
62511         hash: once again explicitly disallow insertion of NULL
62512         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62513         inserting a NULL pointer cannot work with these functions.
62514         Add a comment with details.
62515         This reverts part of the 2010-07-01 commit, 5bef1a35
62516         "hash: extend module to deal with non-pointer keys".
62518 2010-07-01  Bruno Haible  <bruno@clisp.org>
62520         stdbool: Update doc.
62521         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62522         Info from Christian Weisgerber <naddy@mips.inka.de>.
62524 2010-07-01  Jim Meyering  <meyering@redhat.com>
62526         hash: extend module to deal with non-pointer keys
62527         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62528         but that allows insertion of non-pointer entries.
62529         Do not disallow an ENTRY value of NULL.
62530         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62531         * lib/hash.h (hash_insert0): Declare.
62533 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62535         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62536         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62537         not present (i.e. with autoconf 2.59 and when using gettextize, not
62538         gnulib), require AC_GNU_SOURCE instead.
62540 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62542         idpriv-drop: Fix tests.
62543         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62544         not to the test-idpriv-droptemp program.
62546 2010-06-29  Bruno Haible  <bruno@clisp.org>
62548         string: Fix syntax error with g++ 2.96.
62549         * lib/string.in.h (__pure__): Remove definition.
62550         (_GL_ATTRIBUTE_PURE): New macro.
62551         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62552         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62553         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62555 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62557         unitypes: Fix bug introduced on 2010-05-18.
62558         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62560 2010-06-22  Eric Blake  <eblake@redhat.com>
62562         memmem: slight optimization
62563         * lib/str-two-way.h (critical_factorization): Update comments.
62564         Reduce work during factorization phase.
62565         Reported by Carlos Bueno <carlos@bueno.org>.
62567 2010-06-21  Bruno Haible  <bruno@clisp.org>
62569         Fix HAVE_CALLOC_POSIX misnomer.
62570         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62571         !HAVE_CALLOC_POSIX.
62572         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62573         HAVE_CALLOC_POSIX.
62574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62575         instead of HAVE_CALLOC_POSIX.
62576         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62577         HAVE_CALLOC_POSIX.
62579         Use modern idiom for calloc() replacement.
62580         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62581         AC_FUNC_CALLOC.
62582         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62583         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62584         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62585         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62586         (gl_REPLACE_CALLOC): New macro.
62588 2010-06-21  Bruno Haible  <bruno@clisp.org>
62590         Fix HAVE_REALLOC_POSIX misnomer.
62591         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62592         !HAVE_REALLOC_POSIX.
62593         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62594         HAVE_REALLOC_POSIX.
62595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62596         instead of HAVE_REALLOC_POSIX.
62597         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62598         HAVE_REALLOC_POSIX.
62600         Use modern idiom for realloc() replacement.
62601         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62602         AC_FUNC_REALLOC.
62603         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62604         Autoconf's AC_FUNC_REALLOC.
62605         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62606         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62607         (gl_REPLACE_REALLOC): New macro.
62608         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62610 2010-06-21  Bruno Haible  <bruno@clisp.org>
62612         Fix HAVE_MALLOC_POSIX misnomer.
62613         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62614         !HAVE_MALLOC_POSIX.
62615         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62616         HAVE_MALLOC_POSIX.
62617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62618         instead of HAVE_MALLOC_POSIX.
62619         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62620         HAVE_MALLOC_POSIX.
62622         Use modern idiom for malloc() replacement.
62623         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62624         AC_FUNC_MALLOC.
62625         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62626         Autoconf's AC_FUNC_MALLOC.
62627         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62628         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62629         (gl_REPLACE_MALLOC): New macro.
62630         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62632 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62634         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62635         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62636         This macro takes 3 arguments, not 4.
62638 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62640         ipv6: fix detection under mingw
62641         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62642         in6_addr.
62644 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62646         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62647         that strtod() works when cross-compiling to a glibc version known
62648         to work.
62650 2010-06-15  Bruno Haible  <bruno@clisp.org>
62652         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62654 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62656         select: Correct timeout.
62657         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62659 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62661         git-version-gen: init shell var to avoid env var influence
62662         * build-aux/git-version-gen (v): Init shell var to empty.
62664 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62666         priv-set: Don't assume that priv.h exists merely because getppriv does.
62667         See Jan Andersen's bug report about AIX 5L in
62668         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62669         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62670         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62671         * lib/priv-set.h: Likewise.
62672         * tests/test-priv-set.c: Likewise.
62674 2010-06-13  Bruno Haible  <bruno@clisp.org>
62676         relocatable: Make it easier to test whether to install wrappers.
62677         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62678         RELOCATABLE_VIA_WRAPPER.
62680 2010-06-13  Bruno Haible  <bruno@clisp.org>
62682         gnulib-tool: Display specified modules and dependencies differently.
62683         * gnulib-tool (func_show_module_list): New function.
62684         (func_import, func_create_testdir): Invoke it.
62685         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62687 2010-06-13  Bruno Haible  <bruno@clisp.org>
62689         gnulib-tool: Align code of func_import and func_create_testdir.
62690         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62691         specified_modules.
62693 2010-06-12  Jim Meyering  <meyering@redhat.com>
62695         test-inttostr: avoid spurious failure on Solaris 9
62696         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62697         to accept "%ju".  Reported by Bruno Haible.
62699 2010-06-11  Jim Meyering  <meyering@redhat.com>
62701         test-sys_socket: mark variables as used more readably
62702         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62703         as "used" explicitly via (void) statement casts.  This is more
62704         readable than using them in an artificial return expression.
62705         Suggestion from Bruno Haible.
62707 2010-06-11  Bruno Haible  <bruno@clisp.org>
62709         Avoid some more warnings from "gcc -Wwrite-strings".
62710         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62711         to 'const char *'.
62712         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62713         * tests/test-c-strcasestr.c (main): Likewise.
62714         * tests/test-mbscasestr1.c (main): Likewise.
62715         * tests/test-mbscasestr2.c (main): Likewise.
62716         * tests/test-memmem.c (main): Likewise.
62717         * tests/test-strstr.c (main): Likewise.
62718         * tests/test-strcasestr.c (main): Likewise.
62720 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62722         init.sh: change framework_failure_ to fail with status 99, not 1
62723         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
62724         automake's parallel-tests rule that this is an unexpected failure,
62725         even if the test is listed in XFAIL_TESTS.
62727 2010-06-11  Jim Meyering  <meyering@redhat.com>
62729         test-inttostr: avoid warnings about 4-6KB literal strings
62730         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
62731         Include "macros.h", for its definition of ASSERT.
62732         (CK): s/assert/ASSERT/
62733         * modules/inttostr-tests (Files): Add macros.h.
62735         init.sh: don't use $ME_ or skip_ before they are defined
62736         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
62737         their first uses.  Also hoist their companions: warn_, fail_,
62738         framework_failure_, $stderr_fileno.  Prompted by a patch from
62739         Stefano Lattarini.
62741         test-sys_socket: avoid set-but-not-used warnings from gcc
62742         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
62743         avoid warning about set-but-not-used variables.
62745         test-xvasprintf: avoid 'const' discard warnings
62746         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
62747         "const" when assigning from literal strings.
62748         (test_xasprintf): Add "void" in function argument list to placate
62749         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
62751         tests: avoid compilation warnings in argmatch and exclude tests...
62752         in packages that define ARGMATCH_DIE_DECL, like coreutils.
62753         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
62754         Since it always exits, declare with the "noreturn" attribute.
62755         * tests/test-argmatch.c: Likewise.
62757         tests: avoid 'const' discard warnings in mbsstr tests
62758         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
62759         * tests/test-mbsstr2.c (main): Likewise.
62761         test-verify: avoid warning from gcc's -Wmissing-declarations
62762         * tests/test-verify.c (function): Declare to be static.
62764         test-inttostr.c: include <string.h> for use of strcmp
62765         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
62767         test-linkat: avoid failed assertion on "other" architectures
62768         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
62769         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
62770         sparc: https://bugs.launchpad.net/bugs/591968
62772 2010-06-11  Jim Meyering  <meyering@redhat.com>
62774         printf.m4: avoid autoconf's "Expanded Before Required" warning
62775         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
62776         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
62777         autoconf warning.
62779 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
62781         Replacement header templates are now named with ".in", not "_".
62782         * doc/gnulib-intro.texi: Correct.
62784 2010-06-10  Jim Meyering  <meyering@redhat.com>
62786         inttostr-tests: depend on snprintf, not snprintf-posix
62787         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
62788         snprintf-posix, to avoid this aclocal failure:
62789           missing file gnulib-tests/vasnprintf.c
62790           configure.ac:45: error: expected source file, required through \
62791           AC_LIBSOURCES, not found
62793 2010-06-10  Jim Meyering  <meyering@redhat.com>
62795         inttostr: add a new function, inttostr, and tests
62796         The namesake function was not available.  The existence of the
62797         template file, inttostr.c makes its addition nontrivial.
62798         * lib/anytostr.c: Rename from inttostr.c.
62799         (anytostr): Rename from inttostr.
62800         * lib/inttostr.c: New file.
62801         * modules/inttostr (Files): Add anytostr.c.
62802         (Makefile.am): Set lib_SOURCES instead of ...
62803         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
62804         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
62805         * lib/offtostr.c: Likewise.
62806         * lib/uinttostr.c: Likewise.
62807         * lib/umaxtostr.c: Likewise.
62808         * modules/inttostr-tests: New file.
62809         * tests/test-inttostr.c: New file.  Test these functions.
62811 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
62812             Bruno Haible  <bruno@clisp.org>
62814         Add "Extending Gnulib" chapter to manual.
62815         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
62816         chapter.
62817         (Extending Gnulib): New chapter.
62818         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
62819         chapter.
62821 2010-06-09  Bruno Haible  <bruno@clisp.org>
62823         Avoid relocwrapper link errors due to gnulib replacement functions.
62824         * lib/areadlink.c: Use the system's malloc, realloc functions.
62825         (areadlink): Set errno to ENOMEM explicitly.
62826         * modules/areadlink (Depends-on): Remove malloc-posix.
62827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62829 2010-06-09  Bruno Haible  <bruno@clisp.org>
62831         Avoid relocwrapper link errors due to gnulib replacement functions.
62832         * lib/canonicalize-lgpl.c: Use the system's malloc function.
62833         * lib/malloca.c: Likewise.
62834         * lib/relocatable.c: Likewise.
62835         * lib/progreloc.c: Use the system's malloc, sprintf functions.
62836         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
62837         * lib/setenv.c: Use the system's malloc, realloc functions.
62838         * lib/strerror.c: Use the system's sprintf function.
62839         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62841 2010-06-04  Bruno Haible  <bruno@clisp.org>
62843         Prefer documented low-level autoconf macro names.
62844         * m4/lib-link.m4: Use m4_translit instead of translit.
62845         * m4/environ.m4: Likewise.
62846         * m4/mathfunc.m4: Likewise.
62847         * m4/onceonly.m4: Likewise.
62848         * m4/stdint.m4: Likewise.
62849         Suggested by Eric Blake.
62851 2010-06-04  Martin Lambers  <marlam@marlam.de>
62852             Bruno Haible  <bruno@clisp.org>
62854         havelib: Allow library names with '+' characters.
62855         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62856         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
62858 2010-06-09  Bruno Haible  <bruno@clisp.org>
62860         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
62861         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
62862         realloc failed.
62864 2010-06-08  Peter Simons  <simons@cryp.to>
62866         maint.mk: make the news-check rule more configurable
62867         * top/maint.mk (news-check-lines-spec): New variable.
62868         (news-check): Use "sed -n 1,10p" in place of "head".
62870 2010-06-07  Jim Meyering  <meyering@redhat.com>
62872         do-release-commit-and-tag: fix typo in --help
62873         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
62875         regex: avoid new dead-code warning with gcc-4.6.0
62876         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
62877         if-block containing a while-loop.  It's been unused for at least
62878         5 years.
62880 2010-06-05  Bruno Haible  <bruno@clisp.org>
62882         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
62883         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
62885 2010-06-04  Bruno Haible  <bruno@clisp.org>
62887         Update to GNU gettext 0.18.1.
62888         * modules/gettext (configure.ac): Require gettext infrastructure from
62889         version 0.18.1.
62891 2010-06-03  Bruno Haible  <bruno@clisp.org>
62893         Don't use AC_LIBOBJ with file names in subdirectories.
62894         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
62895         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
62896         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
62897         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
62898         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
62899         gl_LIBUNISTRING_LIBSOURCE.
62900         (Makefile.am): Augment lib_SOURCES here, conditionally.
62901         * NEWS: Drop requirement for Automake option 'subdir-objects'.
62903 2010-06-03  Bruno Haible  <bruno@clisp.org>
62905         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
62906         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
62907         expansion does not end with a newline.
62908         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
62909         unnecessary newline.
62911 2010-06-03  Bruno Haible  <bruno@clisp.org>
62913         Reduce dependencies.
62914         * tests/test-quotearg.h: New file, extracted from
62915         tests/test-quotearg.c.
62916         * tests/test-quotearg-simple.c: New file, extracted from
62917         tests/test-quotearg.c.
62918         * tests/test-quotearg.c: Don't include <ctype.h>.
62919         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
62920         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
62921         use_quote_double_quotes, use_quotearg_colon): Moved to
62922         tests/test-quotearg.h.
62923         (results_g, flag_results, custom_quotes, custom_results): Moved
62924         to tests/test-quotearg-simple.c.
62925         (main): Moved the part that does not depend on gettext to
62926         tests/test-quotearg-simple.c. Return 77 if the test cannot be
62927         performed.
62928         * modules/quotearg-simple: New file.
62929         * modules/quotearg-simple-tests: New file.
62930         * modules/quotearg (Depends-on): Add quotearg-simple.
62931         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
62932         (Files): Add tests/test-quotearg.h.
62933         Reported by Paolo Bonzini.
62935 2010-06-03  Bruno Haible  <bruno@clisp.org>
62937         Reduce dependencies.
62938         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
62940 2010-06-03  Bruno Haible  <bruno@clisp.org>
62942         time: Undefine more broken macros.
62943         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
62944         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
62945         Reported by Eric Blake.
62947 2010-06-03  Bruno Haible  <bruno@clisp.org>
62949         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
62950         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
62951         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
62952         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
62953         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
62954         Reported by Ludovic Courtès <ludo@gnu.org>.
62956 2010-06-02  Eric Blake  <eblake@redhat.com>
62958         time: work with mingw + pthreads-win32 library
62959         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
62960         if timespec is defined only in pthread.h.
62961         * modules/time (Makefile.am): Substitute it.
62962         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
62963         <pthread.h>, when needed.
62964         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
62965         from the library.
62967 2010-05-31  Bruno Haible  <bruno@clisp.org>
62969         Avoid expanding two macros in the wrong order.
62970         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
62971         gl_LIBUNISTRING if it is defined.
62972         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
62973         autoconf >= 2.64.
62974         Reported by Ludovic Courtès <ludo@gnu.org>.
62976 2010-05-27  Jim Meyering  <meyering@redhat.com>
62978         maint.mk: also prohibit "#undef" of always-defined symbols
62979         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
62980         Allow more than one space before the symbol name.
62981         (sc_prohibit_always-defined_macros): Use grep's -E, now that
62982         the regexp uses alternation.
62984 2010-05-26  Eric Blake  <eblake@redhat.com>
62986         maint.mk: avoid echo -e
62987         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
62988         Convert all uses of echo -* to printf.
62989         Reported by Matthias Bolte.
62991 2010-05-25  Bruno Haible  <bruno@clisp.org>
62993         Update to GNU gettext 0.18, part 2.
62994         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
62995         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
62997 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62999         Add missing include in test-pwrite.c.
63000         * tests/test-pwrite.c: Include string.h, for strcmp.
63002 2010-05-24  Bruno Haible  <bruno@clisp.org>
63004         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63006 2010-05-24  Bruno Haible  <bruno@clisp.org>
63008         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63009         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63010         iconveh_error argument.
63011         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63012         U_STRCONV_TO_LOCALE.
63013         * lib/unistr/u16-strcoll.c: Likewise.
63014         * lib/unistr/u32-strcoll.c: Likewise.
63015         * modules/unistr/u8-strcoll (Depends-on): Add
63016         uniconv/u8-strconv-to-enc, localcharset. Remove
63017         uniconv/u8-strconv-to-locale.
63018         (configure.ac): Bump version number.
63019         * modules/unistr/u16-strcoll (Depends-on): Add
63020         uniconv/u16-strconv-to-enc, localcharset. Remove
63021         uniconv/u16-strconv-to-locale.
63022         (configure.ac): Bump version number.
63023         * modules/unistr/u32-strcoll (Depends-on): Add
63024         uniconv/u32-strconv-to-enc, localcharset. Remove
63025         uniconv/u32-strconv-to-locale.
63026         (configure.ac): Bump version number.
63028 2010-05-24  Bruno Haible  <bruno@clisp.org>
63030         Avoid a test failure on NetBSD 5.0.
63031         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63032         an iconv() bug.
63034 2010-05-24  Bruno Haible  <bruno@clisp.org>
63036         Adjust #include directive style.
63037         * modules/regex (Includes): Recommend to write <regex.h>.
63039 2010-05-24  Bruno Haible  <bruno@clisp.org>
63041         regex: Don't require alloca.
63042         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63043         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63044         only inside if (0).
63046 2010-05-23  Jim Meyering  <meyering@redhat.com>
63048         test-renameat.c: include <sys/stat.h>
63049         * tests/test-renameat.c: Include <sys/stat.h>; required for
63050         definition of S_IS* macros.
63052 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63054         Update maintainer documentation for 'relocatable-prog' module.
63055         * doc/relocatable-maint.texi: Update.
63056         Comments by Bruno Haible.
63058 2010-05-23  Bruno Haible  <bruno@clisp.org>
63060         git-merge-changelog: Enable --split-merged-entry by default.
63061         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63062         (usage): Don't mention this option any more.
63063         Reported by Ralf Wildenhues.
63065 2010-05-23  Jim Meyering  <meyering@redhat.com>
63067         test-pwrite: do not leave behind a test file named "out"
63068         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63069         The trivial-looking use of init.sh is really necessary.
63070         It ensures that the temporary file, "out", is created in
63071         a temporary directory, and removed upon termination.
63072         * tests/test-pwrite.sh: Re-add file.
63073         * modules/pwrite-tests: Reference it.
63075 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63077         Fix output redirection buglet in init.sh.
63078         * tests/init.sh: Fix redirection of stderr.
63080 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63082         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63084 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63086         * modules/valgrind-tests: New file.
63087         * m4/valgrind-tests.m4: New file.
63088         * doc/valgrind-tests.texi: New file.
63089         * doc/gnulib.texi (Running self-tests under valgrind): New
63090         section.
63092 2010-05-19  Bruno Haible  <bruno@clisp.org>
63094         Clean up dead code in recent commit.
63095         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63096         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63097         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63098         Suggested by Paolo Bonzini.
63100 2010-05-19  Bruno Haible  <bruno@clisp.org>
63102         Avoid valgrind error reports from libunistring.
63103         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63104         * modules/libunistring (Files): Add it.
63105         * modules/libunistring-optional (Files): Likewise.
63107 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63108             Bruno Haible  <bruno@clisp.org>
63110         New module 'libunistring-optional'.
63111         * modules/libunistring-optional: New file.
63112         * m4/libunistring-base.m4: New file.
63113         * m4/libunistring-optional.m4: New file.
63114         * lib/unicase.in.h: Renamed from lib/unicase.h.
63115         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63116         * lib/unictype.in.h: Renamed from lib/unictype.h.
63117         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63118         * lib/uniname.in.h: Renamed from lib/uniname.h.
63119         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63120         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63121         * lib/unistr.in.h: Renamed from lib/unistr.h.
63122         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63123         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63124         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63125         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63126         gl_LIBUNISTRING. If the library was found, determine the installed
63127         version and set LIBUNISTRING_VERSION.
63128         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63129         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63130         handle a configuration option --with-included-libunistring.
63131         * modules/libunistring (Files): Add m4/absolute-header.m4.
63132         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63133         Add m4/libunistring-base.m4.
63134         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63135         (Makefile.am): Build unicase.h from unicase.in.h.
63136         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63137         Add m4/libunistring-base.m4.
63138         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63139         (Makefile.am): Build uniconv.h from uniconv.in.h.
63140         * modules/unictype/base (Files): Use unictype.in.h instead of
63141         unictype.h. Add m4/libunistring-base.m4.
63142         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63143         (Makefile.am): Build unictype.h from unictype.in.h.
63144         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63145         Add m4/libunistring-base.m4.
63146         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63147         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63148         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63149         Add m4/libunistring-base.m4.
63150         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63151         (Makefile.am): Build uniname.h from uniname.in.h.
63152         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63153         Add m4/libunistring-base.m4.
63154         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63155         (Makefile.am): Build uninorm.h from uninorm.in.h.
63156         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63157         unistdio.h. Add m4/libunistring-base.m4.
63158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63159         (Makefile.am): Build unistdio.h from unistdio.in.h.
63160         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63161         Add m4/libunistring-base.m4.
63162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63163         (Makefile.am): Build unistr.h from unistr.in.h.
63164         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63165         Add m4/libunistring-base.m4.
63166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63167         (Makefile.am): Build unitypes.h from unitypes.in.h.
63168         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63169         Add m4/libunistring-base.m4.
63170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63171         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63172         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63173         uniwidth.h. Add m4/libunistring-base.m4.
63174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63175         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63176         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63177         instead of augmenting lib_SOURCES.
63178         * modules/unicase/empty-suffix-context: Likewise.
63179         * modules/unicase/locale-language: Likewise.
63180         * modules/unicase/tolower: Likewise.
63181         * modules/unicase/totitle: Likewise.
63182         * modules/unicase/toupper: Likewise.
63183         * modules/unicase/u8-casecmp: Likewise.
63184         * modules/unicase/u8-casecoll: Likewise.
63185         * modules/unicase/u8-casefold: Likewise.
63186         * modules/unicase/u8-casexfrm: Likewise.
63187         * modules/unicase/u8-ct-casefold: Likewise.
63188         * modules/unicase/u8-ct-tolower: Likewise.
63189         * modules/unicase/u8-ct-totitle: Likewise.
63190         * modules/unicase/u8-ct-toupper: Likewise.
63191         * modules/unicase/u8-is-cased: Likewise.
63192         * modules/unicase/u8-is-casefolded: Likewise.
63193         * modules/unicase/u8-is-lowercase: Likewise.
63194         * modules/unicase/u8-is-titlecase: Likewise.
63195         * modules/unicase/u8-is-uppercase: Likewise.
63196         * modules/unicase/u8-prefix-context: Likewise.
63197         * modules/unicase/u8-suffix-context: Likewise.
63198         * modules/unicase/u8-tolower: Likewise.
63199         * modules/unicase/u8-totitle: Likewise.
63200         * modules/unicase/u8-toupper: Likewise.
63201         * modules/unicase/u16-casecmp: Likewise.
63202         * modules/unicase/u16-casecoll: Likewise.
63203         * modules/unicase/u16-casefold: Likewise.
63204         * modules/unicase/u16-casexfrm: Likewise.
63205         * modules/unicase/u16-ct-casefold: Likewise.
63206         * modules/unicase/u16-ct-tolower: Likewise.
63207         * modules/unicase/u16-ct-totitle: Likewise.
63208         * modules/unicase/u16-ct-toupper: Likewise.
63209         * modules/unicase/u16-is-cased: Likewise.
63210         * modules/unicase/u16-is-casefolded: Likewise.
63211         * modules/unicase/u16-is-lowercase: Likewise.
63212         * modules/unicase/u16-is-titlecase: Likewise.
63213         * modules/unicase/u16-is-uppercase: Likewise.
63214         * modules/unicase/u16-prefix-context: Likewise.
63215         * modules/unicase/u16-suffix-context: Likewise.
63216         * modules/unicase/u16-tolower: Likewise.
63217         * modules/unicase/u16-totitle: Likewise.
63218         * modules/unicase/u16-toupper: Likewise.
63219         * modules/unicase/u32-casecmp: Likewise.
63220         * modules/unicase/u32-casecoll: Likewise.
63221         * modules/unicase/u32-casefold: Likewise.
63222         * modules/unicase/u32-casexfrm: Likewise.
63223         * modules/unicase/u32-ct-casefold: Likewise.
63224         * modules/unicase/u32-ct-tolower: Likewise.
63225         * modules/unicase/u32-ct-totitle: Likewise.
63226         * modules/unicase/u32-ct-toupper: Likewise.
63227         * modules/unicase/u32-is-cased: Likewise.
63228         * modules/unicase/u32-is-casefolded: Likewise.
63229         * modules/unicase/u32-is-lowercase: Likewise.
63230         * modules/unicase/u32-is-titlecase: Likewise.
63231         * modules/unicase/u32-is-uppercase: Likewise.
63232         * modules/unicase/u32-prefix-context: Likewise.
63233         * modules/unicase/u32-suffix-context: Likewise.
63234         * modules/unicase/u32-tolower: Likewise.
63235         * modules/unicase/u32-totitle: Likewise.
63236         * modules/unicase/u32-toupper: Likewise.
63237         * modules/unicase/ulc-casecmp: Likewise.
63238         * modules/unicase/ulc-casecoll: Likewise.
63239         * modules/unicase/ulc-casexfrm: Likewise.
63240         * modules/uniconv/u8-conv-from-enc: Likewise.
63241         * modules/uniconv/u8-conv-to-enc: Likewise.
63242         * modules/uniconv/u8-strconv-from-enc: Likewise.
63243         * modules/uniconv/u8-strconv-from-locale: Likewise.
63244         * modules/uniconv/u8-strconv-to-enc: Likewise.
63245         * modules/uniconv/u8-strconv-to-locale: Likewise.
63246         * modules/uniconv/u16-conv-from-enc: Likewise.
63247         * modules/uniconv/u16-conv-to-enc: Likewise.
63248         * modules/uniconv/u16-strconv-from-enc: Likewise.
63249         * modules/uniconv/u16-strconv-from-locale: Likewise.
63250         * modules/uniconv/u16-strconv-to-enc: Likewise.
63251         * modules/uniconv/u16-strconv-to-locale: Likewise.
63252         * modules/uniconv/u32-conv-from-enc: Likewise.
63253         * modules/uniconv/u32-conv-to-enc: Likewise.
63254         * modules/uniconv/u32-strconv-from-enc: Likewise.
63255         * modules/uniconv/u32-strconv-from-locale: Likewise.
63256         * modules/uniconv/u32-strconv-to-enc: Likewise.
63257         * modules/uniconv/u32-strconv-to-locale: Likewise.
63258         * modules/unictype/bidicategory-byname: Likewise.
63259         * modules/unictype/bidicategory-name: Likewise.
63260         * modules/unictype/bidicategory-of: Likewise.
63261         * modules/unictype/bidicategory-test: Likewise.
63262         * modules/unictype/block-list: Likewise.
63263         * modules/unictype/block-test: Likewise.
63264         * modules/unictype/category-C: Likewise.
63265         * modules/unictype/category-Cc: Likewise.
63266         * modules/unictype/category-Cf: Likewise.
63267         * modules/unictype/category-Cn: Likewise.
63268         * modules/unictype/category-Co: Likewise.
63269         * modules/unictype/category-Cs: Likewise.
63270         * modules/unictype/category-L: Likewise.
63271         * modules/unictype/category-Ll: Likewise.
63272         * modules/unictype/category-Lm: Likewise.
63273         * modules/unictype/category-Lo: Likewise.
63274         * modules/unictype/category-Lt: Likewise.
63275         * modules/unictype/category-Lu: Likewise.
63276         * modules/unictype/category-M: Likewise.
63277         * modules/unictype/category-Mc: Likewise.
63278         * modules/unictype/category-Me: Likewise.
63279         * modules/unictype/category-Mn: Likewise.
63280         * modules/unictype/category-N: Likewise.
63281         * modules/unictype/category-Nd: Likewise.
63282         * modules/unictype/category-Nl: Likewise.
63283         * modules/unictype/category-No: Likewise.
63284         * modules/unictype/category-P: Likewise.
63285         * modules/unictype/category-Pc: Likewise.
63286         * modules/unictype/category-Pd: Likewise.
63287         * modules/unictype/category-Pe: Likewise.
63288         * modules/unictype/category-Pf: Likewise.
63289         * modules/unictype/category-Pi: Likewise.
63290         * modules/unictype/category-Po: Likewise.
63291         * modules/unictype/category-Ps: Likewise.
63292         * modules/unictype/category-S: Likewise.
63293         * modules/unictype/category-Sc: Likewise.
63294         * modules/unictype/category-Sk: Likewise.
63295         * modules/unictype/category-Sm: Likewise.
63296         * modules/unictype/category-So: Likewise.
63297         * modules/unictype/category-Z: Likewise.
63298         * modules/unictype/category-Zl: Likewise.
63299         * modules/unictype/category-Zp: Likewise.
63300         * modules/unictype/category-Zs: Likewise.
63301         * modules/unictype/category-and: Likewise.
63302         * modules/unictype/category-and-not: Likewise.
63303         * modules/unictype/category-byname: Likewise.
63304         * modules/unictype/category-name: Likewise.
63305         * modules/unictype/category-none: Likewise.
63306         * modules/unictype/category-of: Likewise.
63307         * modules/unictype/category-or: Likewise.
63308         * modules/unictype/category-test: Likewise.
63309         * modules/unictype/combining-class: Likewise.
63310         * modules/unictype/ctype-alnum: Likewise.
63311         * modules/unictype/ctype-alpha: Likewise.
63312         * modules/unictype/ctype-blank: Likewise.
63313         * modules/unictype/ctype-cntrl: Likewise.
63314         * modules/unictype/ctype-digit: Likewise.
63315         * modules/unictype/ctype-graph: Likewise.
63316         * modules/unictype/ctype-lower: Likewise.
63317         * modules/unictype/ctype-print: Likewise.
63318         * modules/unictype/ctype-punct: Likewise.
63319         * modules/unictype/ctype-space: Likewise.
63320         * modules/unictype/ctype-upper: Likewise.
63321         * modules/unictype/ctype-xdigit: Likewise.
63322         * modules/unictype/decimal-digit: Likewise.
63323         * modules/unictype/digit: Likewise.
63324         * modules/unictype/mirror: Likewise.
63325         * modules/unictype/numeric: Likewise.
63326         * modules/unictype/property-alphabetic: Likewise.
63327         * modules/unictype/property-ascii-hex-digit: Likewise.
63328         * modules/unictype/property-bidi-arabic-digit: Likewise.
63329         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63330         * modules/unictype/property-bidi-block-separator: Likewise.
63331         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63332         * modules/unictype/property-bidi-common-separator: Likewise.
63333         * modules/unictype/property-bidi-control: Likewise.
63334         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63335         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63336         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63337         * modules/unictype/property-bidi-european-digit: Likewise.
63338         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63339         * modules/unictype/property-bidi-left-to-right: Likewise.
63340         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63341         * modules/unictype/property-bidi-other-neutral: Likewise.
63342         * modules/unictype/property-bidi-pdf: Likewise.
63343         * modules/unictype/property-bidi-segment-separator: Likewise.
63344         * modules/unictype/property-bidi-whitespace: Likewise.
63345         * modules/unictype/property-byname: Likewise.
63346         * modules/unictype/property-combining: Likewise.
63347         * modules/unictype/property-composite: Likewise.
63348         * modules/unictype/property-currency-symbol: Likewise.
63349         * modules/unictype/property-dash: Likewise.
63350         * modules/unictype/property-decimal-digit: Likewise.
63351         * modules/unictype/property-default-ignorable-code-point: Likewise.
63352         * modules/unictype/property-deprecated: Likewise.
63353         * modules/unictype/property-diacritic: Likewise.
63354         * modules/unictype/property-extender: Likewise.
63355         * modules/unictype/property-format-control: Likewise.
63356         * modules/unictype/property-grapheme-base: Likewise.
63357         * modules/unictype/property-grapheme-extend: Likewise.
63358         * modules/unictype/property-grapheme-link: Likewise.
63359         * modules/unictype/property-hex-digit: Likewise.
63360         * modules/unictype/property-hyphen: Likewise.
63361         * modules/unictype/property-id-continue: Likewise.
63362         * modules/unictype/property-id-start: Likewise.
63363         * modules/unictype/property-ideographic: Likewise.
63364         * modules/unictype/property-ids-binary-operator: Likewise.
63365         * modules/unictype/property-ids-trinary-operator: Likewise.
63366         * modules/unictype/property-ignorable-control: Likewise.
63367         * modules/unictype/property-iso-control: Likewise.
63368         * modules/unictype/property-join-control: Likewise.
63369         * modules/unictype/property-left-of-pair: Likewise.
63370         * modules/unictype/property-line-separator: Likewise.
63371         * modules/unictype/property-logical-order-exception: Likewise.
63372         * modules/unictype/property-lowercase: Likewise.
63373         * modules/unictype/property-math: Likewise.
63374         * modules/unictype/property-non-break: Likewise.
63375         * modules/unictype/property-not-a-character: Likewise.
63376         * modules/unictype/property-numeric: Likewise.
63377         * modules/unictype/property-other-alphabetic: Likewise.
63378         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63379         * modules/unictype/property-other-grapheme-extend: Likewise.
63380         * modules/unictype/property-other-id-continue: Likewise.
63381         * modules/unictype/property-other-id-start: Likewise.
63382         * modules/unictype/property-other-lowercase: Likewise.
63383         * modules/unictype/property-other-math: Likewise.
63384         * modules/unictype/property-other-uppercase: Likewise.
63385         * modules/unictype/property-paired-punctuation: Likewise.
63386         * modules/unictype/property-paragraph-separator: Likewise.
63387         * modules/unictype/property-pattern-syntax: Likewise.
63388         * modules/unictype/property-pattern-white-space: Likewise.
63389         * modules/unictype/property-private-use: Likewise.
63390         * modules/unictype/property-punctuation: Likewise.
63391         * modules/unictype/property-quotation-mark: Likewise.
63392         * modules/unictype/property-radical: Likewise.
63393         * modules/unictype/property-sentence-terminal: Likewise.
63394         * modules/unictype/property-soft-dotted: Likewise.
63395         * modules/unictype/property-space: Likewise.
63396         * modules/unictype/property-terminal-punctuation: Likewise.
63397         * modules/unictype/property-test: Likewise.
63398         * modules/unictype/property-titlecase: Likewise.
63399         * modules/unictype/property-unassigned-code-value: Likewise.
63400         * modules/unictype/property-unified-ideograph: Likewise.
63401         * modules/unictype/property-uppercase: Likewise.
63402         * modules/unictype/property-variation-selector: Likewise.
63403         * modules/unictype/property-white-space: Likewise.
63404         * modules/unictype/property-xid-continue: Likewise.
63405         * modules/unictype/property-xid-start: Likewise.
63406         * modules/unictype/property-zero-width: Likewise.
63407         * modules/unictype/scripts: Likewise.
63408         * modules/unictype/syntax-c-ident: Likewise.
63409         * modules/unictype/syntax-c-whitespace: Likewise.
63410         * modules/unictype/syntax-java-ident: Likewise.
63411         * modules/unictype/syntax-java-whitespace: Likewise.
63412         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63413         * modules/unilbrk/u8-width-linebreaks: Likewise.
63414         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63415         * modules/unilbrk/u16-width-linebreaks: Likewise.
63416         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63417         * modules/unilbrk/u32-width-linebreaks: Likewise.
63418         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63419         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63420         * modules/uniname/uniname: Likewise.
63421         * modules/uninorm/canonical-decomposition: Likewise.
63422         * modules/uninorm/composition: Likewise.
63423         * modules/uninorm/decomposing-form: Likewise.
63424         * modules/uninorm/decomposition: Likewise.
63425         * modules/uninorm/filter: Likewise.
63426         * modules/uninorm/nfc: Likewise.
63427         * modules/uninorm/nfd: Likewise.
63428         * modules/uninorm/nfkc: Likewise.
63429         * modules/uninorm/nfkd: Likewise.
63430         * modules/uninorm/u8-normalize: Likewise.
63431         * modules/uninorm/u8-normcmp: Likewise.
63432         * modules/uninorm/u8-normcoll: Likewise.
63433         * modules/uninorm/u8-normxfrm: Likewise.
63434         * modules/uninorm/u16-normalize: Likewise.
63435         * modules/uninorm/u16-normcmp: Likewise.
63436         * modules/uninorm/u16-normcoll: Likewise.
63437         * modules/uninorm/u16-normxfrm: Likewise.
63438         * modules/uninorm/u32-normalize: Likewise.
63439         * modules/uninorm/u32-normcmp: Likewise.
63440         * modules/uninorm/u32-normcoll: Likewise.
63441         * modules/uninorm/u32-normxfrm: Likewise.
63442         * modules/unistdio/u8-asnprintf: Likewise.
63443         * modules/unistdio/u8-asprintf: Likewise.
63444         * modules/unistdio/u8-snprintf: Likewise.
63445         * modules/unistdio/u8-sprintf: Likewise.
63446         * modules/unistdio/u8-u8-asnprintf: Likewise.
63447         * modules/unistdio/u8-u8-asprintf: Likewise.
63448         * modules/unistdio/u8-u8-snprintf: Likewise.
63449         * modules/unistdio/u8-u8-sprintf: Likewise.
63450         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63451         * modules/unistdio/u8-u8-vasprintf: Likewise.
63452         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63453         * modules/unistdio/u8-u8-vsprintf: Likewise.
63454         * modules/unistdio/u8-vasnprintf: Likewise.
63455         * modules/unistdio/u8-vasprintf: Likewise.
63456         * modules/unistdio/u8-vsnprintf: Likewise.
63457         * modules/unistdio/u8-vsprintf: Likewise.
63458         * modules/unistdio/u16-asnprintf: Likewise.
63459         * modules/unistdio/u16-asprintf: Likewise.
63460         * modules/unistdio/u16-snprintf: Likewise.
63461         * modules/unistdio/u16-sprintf: Likewise.
63462         * modules/unistdio/u16-u16-asnprintf: Likewise.
63463         * modules/unistdio/u16-u16-asprintf: Likewise.
63464         * modules/unistdio/u16-u16-snprintf: Likewise.
63465         * modules/unistdio/u16-u16-sprintf: Likewise.
63466         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63467         * modules/unistdio/u16-u16-vasprintf: Likewise.
63468         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63469         * modules/unistdio/u16-u16-vsprintf: Likewise.
63470         * modules/unistdio/u16-vasnprintf: Likewise.
63471         * modules/unistdio/u16-vasprintf: Likewise.
63472         * modules/unistdio/u16-vsnprintf: Likewise.
63473         * modules/unistdio/u16-vsprintf: Likewise.
63474         * modules/unistdio/u32-asnprintf: Likewise.
63475         * modules/unistdio/u32-asprintf: Likewise.
63476         * modules/unistdio/u32-snprintf: Likewise.
63477         * modules/unistdio/u32-sprintf: Likewise.
63478         * modules/unistdio/u32-u32-asnprintf: Likewise.
63479         * modules/unistdio/u32-u32-asprintf: Likewise.
63480         * modules/unistdio/u32-u32-snprintf: Likewise.
63481         * modules/unistdio/u32-u32-sprintf: Likewise.
63482         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63483         * modules/unistdio/u32-u32-vasprintf: Likewise.
63484         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63485         * modules/unistdio/u32-u32-vsprintf: Likewise.
63486         * modules/unistdio/u32-vasnprintf: Likewise.
63487         * modules/unistdio/u32-vasprintf: Likewise.
63488         * modules/unistdio/u32-vsnprintf: Likewise.
63489         * modules/unistdio/u32-vsprintf: Likewise.
63490         * modules/unistdio/ulc-asnprintf: Likewise.
63491         * modules/unistdio/ulc-asprintf: Likewise.
63492         * modules/unistdio/ulc-fprintf: Likewise.
63493         * modules/unistdio/ulc-snprintf: Likewise.
63494         * modules/unistdio/ulc-sprintf: Likewise.
63495         * modules/unistdio/ulc-vasnprintf: Likewise.
63496         * modules/unistdio/ulc-vasprintf: Likewise.
63497         * modules/unistdio/ulc-vfprintf: Likewise.
63498         * modules/unistdio/ulc-vsnprintf: Likewise.
63499         * modules/unistdio/ulc-vsprintf: Likewise.
63500         * modules/unistr/u8-check: Likewise.
63501         * modules/unistr/u8-chr: Likewise.
63502         * modules/unistr/u8-cmp: Likewise.
63503         * modules/unistr/u8-cmp2: Likewise.
63504         * modules/unistr/u8-cpy: Likewise.
63505         * modules/unistr/u8-cpy-alloc: Likewise.
63506         * modules/unistr/u8-endswith: Likewise.
63507         * modules/unistr/u8-mblen: Likewise.
63508         * modules/unistr/u8-mbsnlen: Likewise.
63509         * modules/unistr/u8-mbtouc: Likewise.
63510         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63511         * modules/unistr/u8-mbtoucr: Likewise.
63512         * modules/unistr/u8-move: Likewise.
63513         * modules/unistr/u8-next: Likewise.
63514         * modules/unistr/u8-prev: Likewise.
63515         * modules/unistr/u8-set: Likewise.
63516         * modules/unistr/u8-startswith: Likewise.
63517         * modules/unistr/u8-stpcpy: Likewise.
63518         * modules/unistr/u8-stpncpy: Likewise.
63519         * modules/unistr/u8-strcat: Likewise.
63520         * modules/unistr/u8-strchr: Likewise.
63521         * modules/unistr/u8-strcmp: Likewise.
63522         * modules/unistr/u8-strcoll: Likewise.
63523         * modules/unistr/u8-strcpy: Likewise.
63524         * modules/unistr/u8-strcspn: Likewise.
63525         * modules/unistr/u8-strdup: Likewise.
63526         * modules/unistr/u8-strlen: Likewise.
63527         * modules/unistr/u8-strmblen: Likewise.
63528         * modules/unistr/u8-strmbtouc: Likewise.
63529         * modules/unistr/u8-strncat: Likewise.
63530         * modules/unistr/u8-strncmp: Likewise.
63531         * modules/unistr/u8-strncpy: Likewise.
63532         * modules/unistr/u8-strnlen: Likewise.
63533         * modules/unistr/u8-strpbrk: Likewise.
63534         * modules/unistr/u8-strrchr: Likewise.
63535         * modules/unistr/u8-strspn: Likewise.
63536         * modules/unistr/u8-strstr: Likewise.
63537         * modules/unistr/u8-strtok: Likewise.
63538         * modules/unistr/u8-to-u16: Likewise.
63539         * modules/unistr/u8-to-u32: Likewise.
63540         * modules/unistr/u8-uctomb: Likewise.
63541         * modules/unistr/u16-check: Likewise.
63542         * modules/unistr/u16-chr: Likewise.
63543         * modules/unistr/u16-cmp: Likewise.
63544         * modules/unistr/u16-cmp2: Likewise.
63545         * modules/unistr/u16-cpy: Likewise.
63546         * modules/unistr/u16-cpy-alloc: Likewise.
63547         * modules/unistr/u16-endswith: Likewise.
63548         * modules/unistr/u16-mblen: Likewise.
63549         * modules/unistr/u16-mbsnlen: Likewise.
63550         * modules/unistr/u16-mbtouc: Likewise.
63551         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63552         * modules/unistr/u16-mbtoucr: Likewise.
63553         * modules/unistr/u16-move: Likewise.
63554         * modules/unistr/u16-next: Likewise.
63555         * modules/unistr/u16-prev: Likewise.
63556         * modules/unistr/u16-set: Likewise.
63557         * modules/unistr/u16-startswith: Likewise.
63558         * modules/unistr/u16-stpcpy: Likewise.
63559         * modules/unistr/u16-stpncpy: Likewise.
63560         * modules/unistr/u16-strcat: Likewise.
63561         * modules/unistr/u16-strchr: Likewise.
63562         * modules/unistr/u16-strcmp: Likewise.
63563         * modules/unistr/u16-strcoll: Likewise.
63564         * modules/unistr/u16-strcpy: Likewise.
63565         * modules/unistr/u16-strcspn: Likewise.
63566         * modules/unistr/u16-strdup: Likewise.
63567         * modules/unistr/u16-strlen: Likewise.
63568         * modules/unistr/u16-strmblen: Likewise.
63569         * modules/unistr/u16-strmbtouc: Likewise.
63570         * modules/unistr/u16-strncat: Likewise.
63571         * modules/unistr/u16-strncmp: Likewise.
63572         * modules/unistr/u16-strncpy: Likewise.
63573         * modules/unistr/u16-strnlen: Likewise.
63574         * modules/unistr/u16-strpbrk: Likewise.
63575         * modules/unistr/u16-strrchr: Likewise.
63576         * modules/unistr/u16-strspn: Likewise.
63577         * modules/unistr/u16-strstr: Likewise.
63578         * modules/unistr/u16-strtok: Likewise.
63579         * modules/unistr/u16-to-u32: Likewise.
63580         * modules/unistr/u16-to-u8: Likewise.
63581         * modules/unistr/u16-uctomb: Likewise.
63582         * modules/unistr/u32-check: Likewise.
63583         * modules/unistr/u32-chr: Likewise.
63584         * modules/unistr/u32-cmp: Likewise.
63585         * modules/unistr/u32-cmp2: Likewise.
63586         * modules/unistr/u32-cpy: Likewise.
63587         * modules/unistr/u32-cpy-alloc: Likewise.
63588         * modules/unistr/u32-endswith: Likewise.
63589         * modules/unistr/u32-mblen: Likewise.
63590         * modules/unistr/u32-mbsnlen: Likewise.
63591         * modules/unistr/u32-mbtouc: Likewise.
63592         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63593         * modules/unistr/u32-mbtoucr: Likewise.
63594         * modules/unistr/u32-move: Likewise.
63595         * modules/unistr/u32-next: Likewise.
63596         * modules/unistr/u32-prev: Likewise.
63597         * modules/unistr/u32-set: Likewise.
63598         * modules/unistr/u32-startswith: Likewise.
63599         * modules/unistr/u32-stpcpy: Likewise.
63600         * modules/unistr/u32-stpncpy: Likewise.
63601         * modules/unistr/u32-strcat: Likewise.
63602         * modules/unistr/u32-strchr: Likewise.
63603         * modules/unistr/u32-strcmp: Likewise.
63604         * modules/unistr/u32-strcoll: Likewise.
63605         * modules/unistr/u32-strcpy: Likewise.
63606         * modules/unistr/u32-strcspn: Likewise.
63607         * modules/unistr/u32-strdup: Likewise.
63608         * modules/unistr/u32-strlen: Likewise.
63609         * modules/unistr/u32-strmblen: Likewise.
63610         * modules/unistr/u32-strmbtouc: Likewise.
63611         * modules/unistr/u32-strncat: Likewise.
63612         * modules/unistr/u32-strncmp: Likewise.
63613         * modules/unistr/u32-strncpy: Likewise.
63614         * modules/unistr/u32-strnlen: Likewise.
63615         * modules/unistr/u32-strpbrk: Likewise.
63616         * modules/unistr/u32-strrchr: Likewise.
63617         * modules/unistr/u32-strspn: Likewise.
63618         * modules/unistr/u32-strstr: Likewise.
63619         * modules/unistr/u32-strtok: Likewise.
63620         * modules/unistr/u32-to-u16: Likewise.
63621         * modules/unistr/u32-to-u8: Likewise.
63622         * modules/unistr/u32-uctomb: Likewise.
63623         * modules/uniwbrk/u8-wordbreaks: Likewise.
63624         * modules/uniwbrk/u16-wordbreaks: Likewise.
63625         * modules/uniwbrk/u32-wordbreaks: Likewise.
63626         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63627         * modules/uniwbrk/wordbreak-property: Likewise.
63628         * modules/uniwidth/u8-strwidth: Likewise.
63629         * modules/uniwidth/u8-width: Likewise.
63630         * modules/uniwidth/u16-strwidth: Likewise.
63631         * modules/uniwidth/u16-width: Likewise.
63632         * modules/uniwidth/u32-strwidth: Likewise.
63633         * modules/uniwidth/u32-width: Likewise.
63634         * modules/uniwidth/width: Likewise.
63635         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63636         with $(LIBUNISTRING).
63637         * modules/unicase/ignorable-tests: Likewise.
63638         * modules/unicase/locale-language-tests: Likewise.
63639         * modules/unicase/tolower-tests: Likewise.
63640         * modules/unicase/totitle-tests: Likewise.
63641         * modules/unicase/toupper-tests: Likewise.
63642         * modules/unicase/u8-casecmp-tests: Likewise.
63643         * modules/unicase/u8-casecoll-tests: Likewise.
63644         * modules/unicase/u8-casefold-tests: Likewise.
63645         * modules/unicase/u8-is-cased-tests: Likewise.
63646         * modules/unicase/u8-is-casefolded-tests: Likewise.
63647         * modules/unicase/u8-is-lowercase-tests: Likewise.
63648         * modules/unicase/u8-is-titlecase-tests: Likewise.
63649         * modules/unicase/u8-is-uppercase-tests: Likewise.
63650         * modules/unicase/u8-tolower-tests: Likewise.
63651         * modules/unicase/u8-totitle-tests: Likewise.
63652         * modules/unicase/u8-toupper-tests: Likewise.
63653         * modules/unicase/u16-casecmp-tests: Likewise.
63654         * modules/unicase/u16-casecoll-tests: Likewise.
63655         * modules/unicase/u16-casefold-tests: Likewise.
63656         * modules/unicase/u16-is-cased-tests: Likewise.
63657         * modules/unicase/u16-is-casefolded-tests: Likewise.
63658         * modules/unicase/u16-is-lowercase-tests: Likewise.
63659         * modules/unicase/u16-is-titlecase-tests: Likewise.
63660         * modules/unicase/u16-is-uppercase-tests: Likewise.
63661         * modules/unicase/u16-tolower-tests: Likewise.
63662         * modules/unicase/u16-totitle-tests: Likewise.
63663         * modules/unicase/u16-toupper-tests: Likewise.
63664         * modules/unicase/u32-casecmp-tests: Likewise.
63665         * modules/unicase/u32-casecoll-tests: Likewise.
63666         * modules/unicase/u32-casefold-tests: Likewise.
63667         * modules/unicase/u32-is-cased-tests: Likewise.
63668         * modules/unicase/u32-is-casefolded-tests: Likewise.
63669         * modules/unicase/u32-is-lowercase-tests: Likewise.
63670         * modules/unicase/u32-is-titlecase-tests: Likewise.
63671         * modules/unicase/u32-is-uppercase-tests: Likewise.
63672         * modules/unicase/u32-tolower-tests: Likewise.
63673         * modules/unicase/u32-totitle-tests: Likewise.
63674         * modules/unicase/u32-toupper-tests: Likewise.
63675         * modules/unicase/ulc-casecmp-tests: Likewise.
63676         * modules/unicase/ulc-casecoll-tests: Likewise.
63677         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63678         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63679         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63680         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63681         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63682         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63683         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63684         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63685         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63686         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63687         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63688         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63689         * modules/unictype/bidicategory-byname-tests: Likewise.
63690         * modules/unictype/bidicategory-name-tests: Likewise.
63691         * modules/unictype/bidicategory-of-tests: Likewise.
63692         * modules/unictype/bidicategory-test-tests: Likewise.
63693         * modules/unictype/block-list-tests: Likewise.
63694         * modules/unictype/block-of-tests: Likewise.
63695         * modules/unictype/block-test-tests: Likewise.
63696         * modules/unictype/category-C-tests: Likewise.
63697         * modules/unictype/category-Cc-tests: Likewise.
63698         * modules/unictype/category-Cf-tests: Likewise.
63699         * modules/unictype/category-Cn-tests: Likewise.
63700         * modules/unictype/category-Co-tests: Likewise.
63701         * modules/unictype/category-Cs-tests: Likewise.
63702         * modules/unictype/category-L-tests: Likewise.
63703         * modules/unictype/category-Ll-tests: Likewise.
63704         * modules/unictype/category-Lm-tests: Likewise.
63705         * modules/unictype/category-Lo-tests: Likewise.
63706         * modules/unictype/category-Lt-tests: Likewise.
63707         * modules/unictype/category-Lu-tests: Likewise.
63708         * modules/unictype/category-M-tests: Likewise.
63709         * modules/unictype/category-Mc-tests: Likewise.
63710         * modules/unictype/category-Me-tests: Likewise.
63711         * modules/unictype/category-Mn-tests: Likewise.
63712         * modules/unictype/category-N-tests: Likewise.
63713         * modules/unictype/category-Nd-tests: Likewise.
63714         * modules/unictype/category-Nl-tests: Likewise.
63715         * modules/unictype/category-No-tests: Likewise.
63716         * modules/unictype/category-P-tests: Likewise.
63717         * modules/unictype/category-Pc-tests: Likewise.
63718         * modules/unictype/category-Pd-tests: Likewise.
63719         * modules/unictype/category-Pe-tests: Likewise.
63720         * modules/unictype/category-Pf-tests: Likewise.
63721         * modules/unictype/category-Pi-tests: Likewise.
63722         * modules/unictype/category-Po-tests: Likewise.
63723         * modules/unictype/category-Ps-tests: Likewise.
63724         * modules/unictype/category-S-tests: Likewise.
63725         * modules/unictype/category-Sc-tests: Likewise.
63726         * modules/unictype/category-Sk-tests: Likewise.
63727         * modules/unictype/category-Sm-tests: Likewise.
63728         * modules/unictype/category-So-tests: Likewise.
63729         * modules/unictype/category-Z-tests: Likewise.
63730         * modules/unictype/category-Zl-tests: Likewise.
63731         * modules/unictype/category-Zp-tests: Likewise.
63732         * modules/unictype/category-Zs-tests: Likewise.
63733         * modules/unictype/category-and-not-tests: Likewise.
63734         * modules/unictype/category-and-tests: Likewise.
63735         * modules/unictype/category-byname-tests: Likewise.
63736         * modules/unictype/category-name-tests: Likewise.
63737         * modules/unictype/category-none-tests: Likewise.
63738         * modules/unictype/category-of-tests: Likewise.
63739         * modules/unictype/category-or-tests: Likewise.
63740         * modules/unictype/category-test-withtable-tests: Likewise.
63741         * modules/unictype/combining-class-tests: Likewise.
63742         * modules/unictype/ctype-alnum-tests: Likewise.
63743         * modules/unictype/ctype-alpha-tests: Likewise.
63744         * modules/unictype/ctype-blank-tests: Likewise.
63745         * modules/unictype/ctype-cntrl-tests: Likewise.
63746         * modules/unictype/ctype-digit-tests: Likewise.
63747         * modules/unictype/ctype-graph-tests: Likewise.
63748         * modules/unictype/ctype-lower-tests: Likewise.
63749         * modules/unictype/ctype-print-tests: Likewise.
63750         * modules/unictype/ctype-punct-tests: Likewise.
63751         * modules/unictype/ctype-space-tests: Likewise.
63752         * modules/unictype/ctype-upper-tests: Likewise.
63753         * modules/unictype/ctype-xdigit-tests: Likewise.
63754         * modules/unictype/decimal-digit-tests: Likewise.
63755         * modules/unictype/digit-tests: Likewise.
63756         * modules/unictype/mirror-tests: Likewise.
63757         * modules/unictype/numeric-tests: Likewise.
63758         * modules/unictype/property-alphabetic-tests: Likewise.
63759         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
63760         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
63761         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
63762         * modules/unictype/property-bidi-block-separator-tests: Likewise.
63763         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
63764         * modules/unictype/property-bidi-common-separator-tests: Likewise.
63765         * modules/unictype/property-bidi-control-tests: Likewise.
63766         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
63767         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
63768         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
63769         * modules/unictype/property-bidi-european-digit-tests: Likewise.
63770         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
63771         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
63772         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
63773         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
63774         * modules/unictype/property-bidi-pdf-tests: Likewise.
63775         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
63776         * modules/unictype/property-bidi-whitespace-tests: Likewise.
63777         * modules/unictype/property-byname-tests: Likewise.
63778         * modules/unictype/property-combining-tests: Likewise.
63779         * modules/unictype/property-composite-tests: Likewise.
63780         * modules/unictype/property-currency-symbol-tests: Likewise.
63781         * modules/unictype/property-dash-tests: Likewise.
63782         * modules/unictype/property-decimal-digit-tests: Likewise.
63783         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
63784         * modules/unictype/property-deprecated-tests: Likewise.
63785         * modules/unictype/property-diacritic-tests: Likewise.
63786         * modules/unictype/property-extender-tests: Likewise.
63787         * modules/unictype/property-format-control-tests: Likewise.
63788         * modules/unictype/property-grapheme-base-tests: Likewise.
63789         * modules/unictype/property-grapheme-extend-tests: Likewise.
63790         * modules/unictype/property-grapheme-link-tests: Likewise.
63791         * modules/unictype/property-hex-digit-tests: Likewise.
63792         * modules/unictype/property-hyphen-tests: Likewise.
63793         * modules/unictype/property-id-continue-tests: Likewise.
63794         * modules/unictype/property-id-start-tests: Likewise.
63795         * modules/unictype/property-ideographic-tests: Likewise.
63796         * modules/unictype/property-ids-binary-operator-tests: Likewise.
63797         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
63798         * modules/unictype/property-ignorable-control-tests: Likewise.
63799         * modules/unictype/property-iso-control-tests: Likewise.
63800         * modules/unictype/property-join-control-tests: Likewise.
63801         * modules/unictype/property-left-of-pair-tests: Likewise.
63802         * modules/unictype/property-line-separator-tests: Likewise.
63803         * modules/unictype/property-logical-order-exception-tests: Likewise.
63804         * modules/unictype/property-lowercase-tests: Likewise.
63805         * modules/unictype/property-math-tests: Likewise.
63806         * modules/unictype/property-non-break-tests: Likewise.
63807         * modules/unictype/property-not-a-character-tests: Likewise.
63808         * modules/unictype/property-numeric-tests: Likewise.
63809         * modules/unictype/property-other-alphabetic-tests: Likewise.
63810         * modules/unictype/property-other-default-ignorable-code-point-tests:
63811         Likewise.
63812         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
63813         * modules/unictype/property-other-id-continue-tests: Likewise.
63814         * modules/unictype/property-other-id-start-tests: Likewise.
63815         * modules/unictype/property-other-lowercase-tests: Likewise.
63816         * modules/unictype/property-other-math-tests: Likewise.
63817         * modules/unictype/property-other-uppercase-tests: Likewise.
63818         * modules/unictype/property-paired-punctuation-tests: Likewise.
63819         * modules/unictype/property-paragraph-separator-tests: Likewise.
63820         * modules/unictype/property-pattern-syntax-tests: Likewise.
63821         * modules/unictype/property-pattern-white-space-tests: Likewise.
63822         * modules/unictype/property-private-use-tests: Likewise.
63823         * modules/unictype/property-punctuation-tests: Likewise.
63824         * modules/unictype/property-quotation-mark-tests: Likewise.
63825         * modules/unictype/property-radical-tests: Likewise.
63826         * modules/unictype/property-sentence-terminal-tests: Likewise.
63827         * modules/unictype/property-soft-dotted-tests: Likewise.
63828         * modules/unictype/property-space-tests: Likewise.
63829         * modules/unictype/property-terminal-punctuation-tests: Likewise.
63830         * modules/unictype/property-test-tests: Likewise.
63831         * modules/unictype/property-titlecase-tests: Likewise.
63832         * modules/unictype/property-unassigned-code-value-tests: Likewise.
63833         * modules/unictype/property-unified-ideograph-tests: Likewise.
63834         * modules/unictype/property-uppercase-tests: Likewise.
63835         * modules/unictype/property-variation-selector-tests: Likewise.
63836         * modules/unictype/property-white-space-tests: Likewise.
63837         * modules/unictype/property-xid-continue-tests: Likewise.
63838         * modules/unictype/property-xid-start-tests: Likewise.
63839         * modules/unictype/property-zero-width-tests: Likewise.
63840         * modules/unictype/scripts-tests: Likewise.
63841         * modules/unictype/syntax-c-ident-tests: Likewise.
63842         * modules/unictype/syntax-c-whitespace-tests: Likewise.
63843         * modules/unictype/syntax-java-ident-tests: Likewise.
63844         * modules/unictype/syntax-java-whitespace-tests: Likewise.
63845         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
63846         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
63847         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
63848         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
63849         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
63850         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
63851         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
63852         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
63853         * modules/uniname/uniname-tests: Likewise.
63854         * modules/uninorm/canonical-decomposition-tests: Likewise.
63855         * modules/uninorm/compat-decomposition-tests: Likewise.
63856         * modules/uninorm/composition-tests: Likewise.
63857         * modules/uninorm/decomposing-form-tests: Likewise.
63858         * modules/uninorm/decomposition-tests: Likewise.
63859         * modules/uninorm/filter-tests: Likewise.
63860         * modules/uninorm/nfc-tests: Likewise.
63861         * modules/uninorm/nfd-tests: Likewise.
63862         * modules/uninorm/nfkc-tests: Likewise.
63863         * modules/uninorm/nfkd-tests: Likewise.
63864         * modules/uninorm/u8-normcmp-tests: Likewise.
63865         * modules/uninorm/u8-normcoll-tests: Likewise.
63866         * modules/uninorm/u16-normcmp-tests: Likewise.
63867         * modules/uninorm/u16-normcoll-tests: Likewise.
63868         * modules/uninorm/u32-normcmp-tests: Likewise.
63869         * modules/uninorm/u32-normcoll-tests: Likewise.
63870         * modules/unistdio/u8-asnprintf-tests: Likewise.
63871         * modules/unistdio/u8-vasnprintf-tests: Likewise.
63872         * modules/unistdio/u8-vasprintf-tests: Likewise.
63873         * modules/unistdio/u8-vsnprintf-tests: Likewise.
63874         * modules/unistdio/u8-vsprintf-tests: Likewise.
63875         * modules/unistdio/u16-asnprintf-tests: Likewise.
63876         * modules/unistdio/u16-vasnprintf-tests: Likewise.
63877         * modules/unistdio/u16-vasprintf-tests: Likewise.
63878         * modules/unistdio/u16-vsnprintf-tests: Likewise.
63879         * modules/unistdio/u16-vsprintf-tests: Likewise.
63880         * modules/unistdio/u32-asnprintf-tests: Likewise.
63881         * modules/unistdio/u32-vasnprintf-tests: Likewise.
63882         * modules/unistdio/u32-vasprintf-tests: Likewise.
63883         * modules/unistdio/u32-vsnprintf-tests: Likewise.
63884         * modules/unistdio/u32-vsprintf-tests: Likewise.
63885         * modules/unistdio/ulc-asnprintf-tests: Likewise.
63886         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
63887         * modules/unistdio/ulc-vasprintf-tests: Likewise.
63888         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
63889         * modules/unistdio/ulc-vsprintf-tests: Likewise.
63890         * modules/unistr/u8-check-tests: Likewise.
63891         * modules/unistr/u8-chr-tests: Likewise.
63892         * modules/unistr/u8-cmp-tests: Likewise.
63893         * modules/unistr/u8-cmp2-tests: Likewise.
63894         * modules/unistr/u8-cpy-alloc-tests: Likewise.
63895         * modules/unistr/u8-cpy-tests: Likewise.
63896         * modules/unistr/u8-mblen-tests: Likewise.
63897         * modules/unistr/u8-mbsnlen-tests: Likewise.
63898         * modules/unistr/u8-mbtouc-tests: Likewise.
63899         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
63900         * modules/unistr/u8-mbtoucr-tests: Likewise.
63901         * modules/unistr/u8-move-tests: Likewise.
63902         * modules/unistr/u8-next-tests: Likewise.
63903         * modules/unistr/u8-prev-tests: Likewise.
63904         * modules/unistr/u8-set-tests: Likewise.
63905         * modules/unistr/u8-stpcpy-tests: Likewise.
63906         * modules/unistr/u8-stpncpy-tests: Likewise.
63907         * modules/unistr/u8-strcat-tests: Likewise.
63908         * modules/unistr/u8-strcmp-tests: Likewise.
63909         * modules/unistr/u8-strcoll-tests: Likewise.
63910         * modules/unistr/u8-strcpy-tests: Likewise.
63911         * modules/unistr/u8-strdup-tests: Likewise.
63912         * modules/unistr/u8-strlen-tests: Likewise.
63913         * modules/unistr/u8-strmblen-tests: Likewise.
63914         * modules/unistr/u8-strmbtouc-tests: Likewise.
63915         * modules/unistr/u8-strncat-tests: Likewise.
63916         * modules/unistr/u8-strncmp-tests: Likewise.
63917         * modules/unistr/u8-strncpy-tests: Likewise.
63918         * modules/unistr/u8-strnlen-tests: Likewise.
63919         * modules/unistr/u8-to-u16-tests: Likewise.
63920         * modules/unistr/u8-to-u32-tests: Likewise.
63921         * modules/unistr/u8-uctomb-tests: Likewise.
63922         * modules/unistr/u16-check-tests: Likewise.
63923         * modules/unistr/u16-chr-tests: Likewise.
63924         * modules/unistr/u16-cmp-tests: Likewise.
63925         * modules/unistr/u16-cmp2-tests: Likewise.
63926         * modules/unistr/u16-cpy-alloc-tests: Likewise.
63927         * modules/unistr/u16-cpy-tests: Likewise.
63928         * modules/unistr/u16-mblen-tests: Likewise.
63929         * modules/unistr/u16-mbsnlen-tests: Likewise.
63930         * modules/unistr/u16-mbtouc-tests: Likewise.
63931         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
63932         * modules/unistr/u16-mbtoucr-tests: Likewise.
63933         * modules/unistr/u16-move-tests: Likewise.
63934         * modules/unistr/u16-next-tests: Likewise.
63935         * modules/unistr/u16-prev-tests: Likewise.
63936         * modules/unistr/u16-set-tests: Likewise.
63937         * modules/unistr/u16-stpcpy-tests: Likewise.
63938         * modules/unistr/u16-stpncpy-tests: Likewise.
63939         * modules/unistr/u16-strcat-tests: Likewise.
63940         * modules/unistr/u16-strcmp-tests: Likewise.
63941         * modules/unistr/u16-strcoll-tests: Likewise.
63942         * modules/unistr/u16-strcpy-tests: Likewise.
63943         * modules/unistr/u16-strdup-tests: Likewise.
63944         * modules/unistr/u16-strlen-tests: Likewise.
63945         * modules/unistr/u16-strmblen-tests: Likewise.
63946         * modules/unistr/u16-strmbtouc-tests: Likewise.
63947         * modules/unistr/u16-strncat-tests: Likewise.
63948         * modules/unistr/u16-strncmp-tests: Likewise.
63949         * modules/unistr/u16-strncpy-tests: Likewise.
63950         * modules/unistr/u16-strnlen-tests: Likewise.
63951         * modules/unistr/u16-to-u32-tests: Likewise.
63952         * modules/unistr/u16-to-u8-tests: Likewise.
63953         * modules/unistr/u16-uctomb-tests: Likewise.
63954         * modules/unistr/u32-check-tests: Likewise.
63955         * modules/unistr/u32-chr-tests: Likewise.
63956         * modules/unistr/u32-cmp-tests: Likewise.
63957         * modules/unistr/u32-cmp2-tests: Likewise.
63958         * modules/unistr/u32-cpy-alloc-tests: Likewise.
63959         * modules/unistr/u32-cpy-tests: Likewise.
63960         * modules/unistr/u32-mblen-tests: Likewise.
63961         * modules/unistr/u32-mbsnlen-tests: Likewise.
63962         * modules/unistr/u32-mbtouc-tests: Likewise.
63963         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
63964         * modules/unistr/u32-mbtoucr-tests: Likewise.
63965         * modules/unistr/u32-move-tests: Likewise.
63966         * modules/unistr/u32-next-tests: Likewise.
63967         * modules/unistr/u32-prev-tests: Likewise.
63968         * modules/unistr/u32-set-tests: Likewise.
63969         * modules/unistr/u32-stpcpy-tests: Likewise.
63970         * modules/unistr/u32-stpncpy-tests: Likewise.
63971         * modules/unistr/u32-strcat-tests: Likewise.
63972         * modules/unistr/u32-strcmp-tests: Likewise.
63973         * modules/unistr/u32-strcoll-tests: Likewise.
63974         * modules/unistr/u32-strcpy-tests: Likewise.
63975         * modules/unistr/u32-strdup-tests: Likewise.
63976         * modules/unistr/u32-strlen-tests: Likewise.
63977         * modules/unistr/u32-strmblen-tests: Likewise.
63978         * modules/unistr/u32-strmbtouc-tests: Likewise.
63979         * modules/unistr/u32-strncat-tests: Likewise.
63980         * modules/unistr/u32-strncmp-tests: Likewise.
63981         * modules/unistr/u32-strncpy-tests: Likewise.
63982         * modules/unistr/u32-strnlen-tests: Likewise.
63983         * modules/unistr/u32-to-u16-tests: Likewise.
63984         * modules/unistr/u32-to-u8-tests: Likewise.
63985         * modules/unistr/u32-uctomb-tests: Likewise.
63986         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
63987         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
63988         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
63989         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
63990         * modules/uniwidth/u8-strwidth-tests: Likewise.
63991         * modules/uniwidth/u8-width-tests: Likewise.
63992         * modules/uniwidth/u16-strwidth-tests: Likewise.
63993         * modules/uniwidth/u16-width-tests: Likewise.
63994         * modules/uniwidth/u32-strwidth-tests: Likewise.
63995         * modules/uniwidth/u32-width-tests: Likewise.
63996         * modules/uniwidth/width-tests: Likewise.
63998 2010-05-18  Richard Jones  <rjones@redhat.com>
64000         doc: users.txt: list hivex
64001         * users.txt: Add hivex.
64003 2010-05-18  Richard Jones  <rjones@redhat.com>
64005         doc: users.txt: list febootstrap
64006         * users.txt: Add febootstrap.
64008 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64010         bootstrap: fix an error when gnulib is not used as a git submodule
64011         * build-aux/bootstrap (gnulib_path): If its length is zero then
64012         assign "gnulib" to it.
64013         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64015 2010-05-16  Bruno Haible  <bruno@clisp.org>
64017         Avoid autoconf warnings about AM_ICONV.
64018         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64019         2.64.
64021 2010-05-16  Bruno Haible  <bruno@clisp.org>
64023         absolute-header: Make the macro usable in more situations.
64024         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64025         from gl_ABSOLUTE_HEADER.
64026         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64028 2010-05-16  James Youngman  <jay@gnu.org>
64030         doc: update users.txt
64031         * users.txt: Add CSSC.
64033 2010-05-16  Jim Meyering  <meyering@redhat.com>
64035         init.sh: fix an error in the previous change; add more comments
64036         * tests/init.sh: Compare exit code in loop against 9, not 2.
64037         Patch by Bruno Haible.
64038         Make the two tests more similar by adding an empty "then" clause.
64039         Add comments.
64041         init.sh: avoid unnecessary shell re-exec
64042         * tests/init.sh: Improve the re-exec-required check to first test the
64043         current shell.  If it passes the test, do not search for a shell that
64044         does pass, and do not re-exec.  This test is particularly contorted to
64045         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64046         of $(...) evokes a syntax error and causes immediate shell exit with
64047         status 2.  Bruno Haible reported that the re-exec made it impossible
64048         to single-step through any init.sh-using script.
64050 2010-05-16  Bruno Haible  <bruno@clisp.org>
64052         Fix collision between gnulib's and libintl's printf replacements.
64053         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64054         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64055         (printf): When using GNU C, map the __printf__ function to rpl_printf
64056         via __asm__. When not using GNU C, define rpl_printf instead of
64057         __printf__.
64058         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64059         commit.
64060         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64061         commit.
64062         * m4/asm-underscore.m4: New file.
64063         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64064         * modules/stdio (Files): Add m4/asm-underscore.m4.
64065         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64066         Reported by Ben Pfaff.
64068 2010-05-16  Bruno Haible  <bruno@clisp.org>
64070         verify: Avoid skipping the test on openSUSE 11.0.
64071         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64073 2010-05-13  Bruno Haible  <bruno@clisp.org>
64075         Avoid useless warnings from G++.
64076         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64077         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64078         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64080 2010-05-11  Jim Meyering  <meyering@redhat.com>
64082         maint.mk: tweak preceding change
64083         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64084         regexps tighter by anchoring at EOL, and make the new group "shy"
64085         for slightly decreased overhead.
64087 2010-05-11  Eric Blake  <eblake@redhat.com>
64089         maint.mk: gnulib doesn't guarantee NSIG
64090         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64092 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64094         test-pwrite.c: Remove unused variable declaration.
64095         * tests/test-pwrite.c (main): Remove read_buf declaration.
64097         Remove useless test-pwrite.sh file.
64098         * tests/test-pwrite.sh: Delete file.
64099         * modules/pwrite-tests: Remove references.
64100         Reported by Bruno Haible.
64102 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64104         init.sh: fix a typo
64105         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64107 2010-05-10  Jim Meyering  <meyering@redhat.com>
64109         maint.mk: avoid using a temporary file in the always-defined-macros check
64110         * top/maint.mk (.re-defmac): Remove rule.
64111         (gl_trap_): Remove definition.
64112         (sc_prohibit_always-defined_macros): Rewrite not to create and
64113         depend on a temporary file.  Instead, depend on GNU grep's ability
64114         to read a list of regular expressions from stdin when given "-f -".
64116 2010-05-09  Bruno Haible  <bruno@clisp.org>
64118         Update to GNU gettext 0.18, part 1.
64119         * m4/gettext.m4: Update to GNU gettext 0.18.
64120         * m4/intl.m4: Likewise.
64121         * m4/po.m4: Likewise.
64122         * modules/gettext (Files): Add m4/fcntl-o.m4.
64123         (configure.ac): Require gettext infrastructure from version 0.18.
64125 2010-05-09  Jim Meyering  <meyering@redhat.com>
64127         init.sh: enable MALLOC_PERTURB_
64128         * tests/init.sh: Enable glibc's malloc-perturbing option.
64130         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64131         With my recent change in init.sh from the two-line form:
64132             -#   : ${srcdir=.}
64133             -#   . "$srcdir/init.sh"; path_prepend_ .
64134             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64135         I noticed that using the one-line form would cause this test
64136         to fail with a false-positive, or to stop working altogether,
64137         depending on whether help-version changed or all the tests did.
64138         * top/maint.mk (_hv_regex): Remove this definition.
64139         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64140         (_hv_regex_strong): Use a stronger regex to check for conformance.
64141         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64142         Give a separate diagnostic for lack of conforming use.
64144         maint.mk: prohibit definition of symbols defined by gnulib
64145         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64146         definition of symbols defined by gnulib.
64148 2010-05-09  Bruno Haible  <bruno@clisp.org>
64150         acl: Avoid test failure on Cygwin-hosted mingw.
64151         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64153 2010-05-09  Bruno Haible  <bruno@clisp.org>
64155         error: Use system's fcntl function.
64156         * lib/error.c (fcntl): Undefine.
64158 2010-05-09  Jim Meyering  <meyering@redhat.com>
64160         verify: adjust formatting to be more consistent
64161         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64162         argument-list '('s, and after one comma.
64164 2010-05-09  Bruno Haible  <bruno@clisp.org>
64166         error: More reliable output on mingw.
64167         * lib/error.c: Include <windows.h>.
64168         (is_open): New function.
64169         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64170         defined.
64172 2010-05-09  Bruno Haible  <bruno@clisp.org>
64174         vasnprintf: Fix syntax errors in libintl build on mingw.
64175         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64176         pad_ourselves and prec_ourselves after use.
64178 2010-05-08  Bruno Haible  <bruno@clisp.org>
64180         * lib/config.charset: Update comments for Cygwin 1.7.
64181         * lib/localcharset.c: Likewise.
64183 2010-05-07  Jim Meyering  <meyering@redhat.com>
64185         init.sh: improve comments
64186         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64187         . "${srcdir=.}/init.sh"; path_prepend_ .
64188         Add a note about path_prepend_ and the alternative of using
64189         TESTS_ENVIRONMENT.
64191 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64193         exclude: Unescape hashed patterns in wildcard mode.
64194         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64195         to the hash list.
64196         * tests/test-exclude8.sh: New test case.
64197         * modules/exclude-tests: Add new test.
64199 2010-05-05  Eric Blake  <eblake@redhat.com>
64201         verify: automate tests
64202         * modules/verify-tests: New module.
64203         * tests/test-verify.sh: New file.
64204         * tests/test-verify.c: Guard each negative test with a unique id.
64205         Also avoid warning about unused left hand of comma expressions.
64207 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64209         Further improvements to verify.h, suggested by Eric Blake.
64210         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64211         the GL_* versions, to avoid collision with OpenGL.
64212         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64213         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64214         than testing merely whether it's defined.
64216         Modify verify.h to pacify gcc -Wredundant_decls.
64217         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64218         These use the prefix "GL_" since they're likely to be useful elsewhere.
64219         We may need to break them out into a different .h file.
64220         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64221         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64222         of verify_function__.
64224 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64226         Tests for module pwrite.
64227         * modules/pwrite-tests: New file.
64228         * tests/test-pwrite.sh: New file.
64229         * tests/test-pwrite.c: New file.
64231         New module pwrite.
64232         * lib/unistd.in.h (pwrite): New declaration.
64233         * lib/pwrite.c: New file, from glibc with modifications.
64234         * m4/pwrite.m4: New file.
64235         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64236         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64237         REPLACE_PWRITE.
64238         * modules/pwrite: New file.
64239         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64240         REPLACE_PWRITE.
64241         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64242         * doc/posix-functions/pwrite.texi: Mention the new module.
64244 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64246         pread: Update documentation.
64247         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64249 2010-05-04  Eric Blake  <eblake@redhat.com>
64251         docs: update cygwin progress
64252         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64253         this bug.
64254         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64255         Added in cygwin 1.7.2.
64256         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64257         Likewise.
64258         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64259         Likewise.
64260         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64261         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64262         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64263         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64264         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64265         Mention nproc module.
64266         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64267         bug in cygwin 1.7.5 addition.
64268         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64269         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64270         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64271         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64272         1.7.5.
64273         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64274         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64275         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64276         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64277         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64278         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64279         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64280         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64281         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64282         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64283         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64284         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64285         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64286         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64287         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64288         Likewise.
64289         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64290         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64291         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64292         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64293         Likewise.
64294         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64295         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64296         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64297         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64298         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64299         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64300         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64301         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64302         Likewise.
64303         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64304         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64305         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64306         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64307         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64308         Likewise.
64309         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64310         Likewise.
64311         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64312         Likewise.
64313         * doc/glibc-functions/xdrrec_endofrecord.texi
64314         (xdrrec_endofrecord): Likewise.
64315         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64316         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64317         Likewise.
64318         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64319         Likewise.
64321 2010-05-04  Jim Meyering  <meyering@redhat.com>
64323         gendocs.sh: make its "-s FILE" option more useful
64324         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64325         $PACKAGE to reflect the probably-different basename of "FILE".
64327 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64329         bootstrap: don't ignore download_po_files failure
64330         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64331         failure.
64333 2010-05-03  Jim Meyering  <meyering@redhat.com>
64335         maint.mk: allow to pass options to gendocs.sh
64336         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64337         (gendocs_options_): New overridable variable.
64339         gnu-web-doc-update: don't ignore configure or build failure
64340         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64342         announce-gen: backslash-escape '@'s in --help output
64343         * build-aux/announce-gen: Fix syntax errors.
64345         maint.mk, announce-gen: allow project-specific announcement mail headers
64346         * top/maint.mk (translation_project_): Define default.
64347         (announcement_Cc_, announcement_mail_headers_): Likewise.
64348         (announcement): Invoke announce-gen with new --mail-headers option.
64349         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64351         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64352         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64353         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64354         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64355         line in the "err2" output file when running "make check" in verbose
64356         mode (i.e., with set -x enabled).
64358 2010-05-03  Bruno Haible  <bruno@clisp.org>
64360         wctob: Fix for weird platforms.
64361         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64362         argument value.
64364 2010-05-03  Jim Meyering  <meyering@redhat.com>
64366         maint.mk: prohibit unwarranted use of <strings.h>
64367         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64368         strings.h in a file that does not also use strcasecmp, strncasecmp,
64369         ffs or ffsll.
64371         maint.mk: remove obsolete comments
64372         * top/maint.mk: Remove stale, commented-out rules.
64374 2010-05-02  Bruno Haible  <bruno@clisp.org>
64376         wcwidth: Declare also when it's aliased.
64377         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64378         macro.
64380 2010-05-02  Bruno Haible  <bruno@clisp.org>
64382         Fix regression from 2010-04-25.
64383         * gnulib-tool (func_modules_transitive_closure): Check the status of
64384         all modules, not only of the tests that are of the form foo-tests where
64385         foo is a module.
64387 2010-05-02  Bruno Haible  <bruno@clisp.org>
64389         wctob: Work around nasty Cygwin 1.7.2 bug.
64390         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64391         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64393 2010-05-01  Bruno Haible  <bruno@clisp.org>
64395         fpurge: Sharper test.
64396         * tests/test-fpurge.c (main): Add one more ftell check.
64397         * modules/fpurge-tests (Depends-on): Add ftell.
64398         Suggested by Eric Blake.
64400 2010-05-01  Bruno Haible  <bruno@clisp.org>
64402         ftello: Another test.
64403         * tests/test-ftello3.c: New file.
64404         * modules/ftello-tests (Files): Add it.
64405         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64406         MOSTLYCLEANFILES.
64408         ftell: Another test.
64409         * tests/test-ftell3.c: New file.
64410         * modules/ftell-tests (Files): Add it.
64411         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64412         MOSTLYCLEANFILES.
64414 2010-05-01  Bruno Haible  <bruno@clisp.org>
64416         ftell, ftello: Work around Solaris bug.
64417         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64418         * lib/ftello.c: Include stdio-impl.h.
64419         (ftello): On Solaris, when _IOWRT is set, compute the result without
64420         looking at _IOREAD.
64421         * modules/ftello (Files): Add lib/stdio-impl.h.
64422         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64423         * doc/posix-functions/ftello.texi: Likewise.
64424         Reported by Eric Blake.
64426 2010-05-01  Bruno Haible  <bruno@clisp.org>
64428         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64429         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64430         the _IOWRT flag is also set.
64432 2010-05-01  Bruno Haible  <bruno@clisp.org>
64434         Fix doc about a HP-UX stdio bug.
64435         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64436         * doc/posix-functions/ftello.texi: Likewise.
64438 2010-05-01  Bruno Haible  <bruno@clisp.org>
64440         lseek test: Fix failure on Solaris.
64441         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64442         output.
64444 2010-04-30  Jim Meyering  <meyering@redhat.com>
64446         bootstrap: don't ignore failure to generate po*/Makevars
64447         * build-aux/bootstrap (with_gettext): Don't ignore failure
64448         to create po/Makevars or runtime-po/Makevars.
64450 2010-04-29  Eric Blake  <eblake@redhat.com>
64452         headers: relax license to LGPLv2+
64453         * modules/fcntl-h (License): Relax license.
64454         * modules/getopt-posix (License): Likewise.
64455         * modules/locale (License): Likewise.
64456         * modules/math (License): Likewise.
64457         * modules/pty (License): Likewise.
64458         * modules/sched (License): Likewise.
64459         * modules/search (License): Likewise.
64460         * modules/spawn (License): Likewise.
64461         * modules/stdarg (License): Likewise.
64462         * modules/sysexits (License): Likewise.
64464 2010-04-29  Jim Meyering  <meyering@redhat.com>
64466         inttypes: relax license to LGPLv2+
64467         * modules/inttypes (License): Relax license.
64469 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64471         * top/maint.mk (indent): Run twice to produce idempotent results.
64473 2010-04-28  Bruno Haible  <bruno@clisp.org>
64475         getdate: Generate getdate.c in the source directory.
64476         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64477         MOSTLYCLEANFILES.
64478         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64480 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64482         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64483         is not declared as a const *; avoid warnings in that case.
64485 2010-04-28  Eric Blake  <eblake@redhat.com>
64487         canonicalize-lgpl: avoid compiler warning
64488         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64489         declaration' / 'extraneous semicolon' warning with some compilers.
64490         Reported by Andreas Gruenbacher.
64492 2010-04-28  Jim Meyering  <meyering@redhat.com>
64494         init.sh: ensure a more reliable exit status when exiting via trap
64495         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64496         Inspired by patches from Dmitry V. Levin.
64497         Also trap on signal 3 (SIGQUIT).
64499 2010-04-27  Bruno Haible  <bruno@clisp.org>
64501         Update doc about utimes().
64502         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64503         'utimens' module.
64504         Reported by Andreas Gruenbacher <agruen@suse.de>.
64506 2010-04-27  Eric Blake  <eblake@redhat.com>
64508         full-read, full-write: relax license
64509         * modules/full-read (License): Drop to LGPLv2+.
64510         * modules/full-write (License): Likewise.
64511         * modules/safe-read (License): Likewise.
64512         * modules/safe-write (License): Likewise.
64514         pthread: mention library for linking
64515         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64517 2010-04-27  Jim Meyering  <meyering@redhat.com>
64519         maint.mk: fix a bug introduced in last change
64520         * top/maint.mk (gl_assured_headers_): Now that all names are on
64521         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64522         is not anchored to end of word, it should be adequate.
64524         maint.mk: avoid side-effect in latest syntax-check
64525         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64526         to run commands via $(shell...), and hence to incur cost only when
64527         the new rule is actually run.
64529         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64530         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64531         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64532         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64533         (gl_assured_headers_, az_, AZ_): Define.
64534         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64536 2010-04-26  Jim Meyering  <jim@meyering.net>
64537             Bruno Haible  <bruno@clisp.org>
64539         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64540         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64541         Prompted by an exchange with Gilles Espinasse.
64543 2010-04-26  Jim Meyering  <meyering@redhat.com>
64545         git-version-gen: aesthetic tweak
64546         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64547         so that the command remains on a single line.
64549 2010-04-26  Eric Blake  <eblake@redhat.com>
64551         git-version-gen: allow use on EBCDIC hosts
64552         * build-aux/git-version-gen (dirty): Use literal rather than tying
64553         ourselves to ascii.
64554         Reported by Steve Goetze.
64556 2010-04-25  Bruno Haible  <bruno@clisp.org>
64558         netdb: Add support for GNULIB_POSIXCHECK.
64559         * lib/netdb.in.h: Include warn-on-use.h.
64560         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64561         functions are used when GNULIB_POSIXCHECK is defined and the
64562         getaddrinfo module is not in use.
64563         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64564         freeaddrinfo, gai_strerror, getnameinfo are declared.
64565         * modules/netdb (Depends-on): Add warn-on-use.
64566         (Makefile.am): Include warn-on-use.h in netdb.h.
64568 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64570         build: avoid "make check" failure without .git/ directory
64571         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64572         there is no .git/ directory.
64574 2010-04-25  Bruno Haible  <bruno@clisp.org>
64576         ptsname: Fix misuse of ttyname_r.
64577         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64578         of errno.
64580 2010-04-25  Bruno Haible  <bruno@clisp.org>
64582         ttyname_r: Make it work on Solaris 10.
64583         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64584         if the system function has the POSIX declaration. Test whether the
64585         function fails if the buffer is less than 128 bytes large.
64586         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64587         system's ttyname_r function. Provide a reasonably large buffer.
64588         * modules/ttyname_r (Depends-on): Add extensions.
64589         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64591 2010-04-25  Bruno Haible  <bruno@clisp.org>
64593         Use the 'extensions' module for some more functions on Solaris.
64594         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64595         module.
64596         * doc/posix-functions/ctime_r.texi: Likewise.
64597         * doc/posix-functions/getgrgid_r.texi: Likewise.
64598         * doc/posix-functions/getgrnam_r.texi: Likewise.
64599         * doc/posix-functions/getpwnam_r.texi: Likewise.
64600         * doc/posix-functions/getpwuid_r.texi: Likewise.
64601         * doc/posix-functions/readdir_r.texi: Likewise.
64602         * doc/posix-functions/sigwait.texi: Likewise.
64603         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64604         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64606 2010-04-25  Bruno Haible  <bruno@clisp.org>
64608         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64610         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64611         * lib/ttyname_r.c: Include <limits.h>.
64612         (ttyname_r): Define using the system's ttyname_r function, if it exists
64613         and not on Solaris.
64614         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64615         set.
64616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64617         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64618         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64619         Reported by Simon Josefsson.
64621 2010-04-25  Bruno Haible  <bruno@clisp.org>
64623         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64624         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64625         * doc/posix-functions/ctime_r.texi: Likewise.
64626         * doc/posix-functions/getgrgid_r.texi: Likewise.
64627         * doc/posix-functions/getgrnam_r.texi: Likewise.
64628         * doc/posix-functions/getlogin_r.texi: Likewise.
64629         * doc/posix-functions/getpwnam_r.texi: Likewise.
64630         * doc/posix-functions/getpwuid_r.texi: Likewise.
64631         * doc/posix-functions/readdir_r.texi: Likewise.
64632         * doc/posix-functions/sigwait.texi: Likewise.
64633         * doc/posix-functions/ttyname_r.texi: Likewise.
64634         Reported by Simon Josefsson.
64636 2010-04-25  Bruno Haible  <bruno@clisp.org>
64638         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64639         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64640         also to --create-testdir.
64641         (func_acceptable): Don't consider the status of *-tests modules here.
64642         (func_modules_transitive_closure): Consider it here, before including a
64643         test module.
64644         (func_import, func_create_testdir): Set inc_all_direct_tests,
64645         inc_all_indirect_tests.
64646         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64647         --create-testdir and --create-megatestdir.
64649 2010-04-25  Bruno Haible  <bruno@clisp.org>
64651         gnulib-tool: Add --without-*-tests options.
64652         * gnulib-tool (func_usage): Document the --without-*-tests options.
64653         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64654         excl_unportable_tests): New variables.
64655         Fail if they are specified with --import or --update.
64656         (func_acceptable): Respect the excl_*_tests variables.
64657         (func_import): Set the excl_*_tests variables to empty.
64659 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64660             Bruno Haible  <bruno@clisp.org>
64662         Work around a MacOS X 10.4 bug with openpty.
64663         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64664         * tests/test-openpty.c (main): Close the master side explicitly.
64666 2010-04-25  Bruno Haible  <bruno@clisp.org>
64668         strnlen: Fix a C++ test error on MacOS X and Solaris.
64669         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64670         the function is not declared.
64671         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64672         Simon Josefsson.
64674 2010-04-24  Bruno Haible  <bruno@clisp.org>
64676         Avoid a gcc warning.
64677         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64678         of correct type for %08lx directive.
64679         Reported by Eric Blake.
64681 2010-04-24  Bruno Haible  <bruno@clisp.org>
64683         vasnprintf: Correct errno value in case of out-of-memory.
64684         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64685         or sprintf. Use the errno value from SNPRINTF or sprintf.
64686         Reported by Ian Beckwith <ianb@erislabs.net>.
64688 2010-04-24  Bruno Haible  <bruno@clisp.org>
64690         ansi-c++-opt: Find correct compiler when cross-compiling.
64691         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64692         AC_CHECK_PROGS.
64693         Reported by Simon Josefsson.
64695 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64697         vc-list-files: Add support for subversion
64698         * build-aux/vc-list-files: Use "svn list" to generate the list of
64699         files controlled by subversion.
64701 2010-04-23  Jim Meyering  <meyering@redhat.com>
64703         vc-list-files tests: convert to use init.sh
64704         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64705         path_prepend_.
64706         Use Exit, not exit.
64707         Use skip_ rather than open coding it.
64708         Remove trap set-up and compare definitions.
64709         * tests/test-vc-list-files-git.sh: Likewise.
64710         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64712 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64714         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64715         backup files.
64717 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64719         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
64721 2010-04-20  Eric Blake  <eblake@redhat.com>
64723         tests: be robust to ignored SIGPIPE
64724         * tests/test-select-in.sh: Consume all output.
64725         * tests/test-lseek.sh: Check correct exit status, while avoiding
64726         EPIPE.
64728 2010-04-20  Simon Josefsson  <simon@josefsson.org>
64729             Bruno Haible  <bruno@clisp.org>
64731         visibility: Don't use -fvisibility if it leads to a warning.
64732         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
64733         yes, don't pretend that visibility works if it leads to a warning.
64734         Reported by Mike Gran <spk121@yahoo.com>.
64736 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
64738         * build-aux/bootstrap: Use "git -h" for testing for supported options
64739         instead of "git --help".  The short-form option only shows a summary,
64740         and doesn't layout the full man page.  Grep for the full option name
64741         in the summary, too.
64743 2010-04-19  Bruno Haible  <bruno@clisp.org>
64745         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
64746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
64747         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
64748         mention of RELOCATABLE_STRIP.
64749         Reported by Sylvain Beucler <beuc@beuc.net>.
64751 2010-04-19  Bruno Haible  <bruno@clisp.org>
64753         * lib/diffseq.h: Fix typo in comment.
64754         Reported by Eric Blake.
64756 2010-04-19  Bruno Haible  <bruno@clisp.org>
64758         ioctl: Move autoconf macro to a .m4 file.
64759         * m4/ioctl.m4: New file, extracted from modules/ioctl.
64760         * modules/ioctl (Files): Add it.
64761         (configure.ac): Simply invoke gl_FUNC_IOCTL.
64762         Reported by Ian Beckwith <ianb@erislabs.net>.
64764 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
64765             Bruno Haible  <bruno@clisp.org>
64767         diffseq: Accommodate use-case with abstract arrays.
64768         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
64769         is not defined.
64770         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
64771         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
64773 2010-04-18  Bruno Haible  <bruno@clisp.org>
64775         * doc/posix-headers/stdbool.texi: More precise wording.
64777 2010-04-17  Jim Meyering  <meyering@redhat.com>
64779         maint.mk: use gnu-style indentation in an embedded perl script
64780         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
64781         Rename variable: s/two/last_two_bytes/
64783 2010-04-16  Eric Blake  <eblake@redhat.com>
64785         test-stdbool: skip test that fails with Solaris CC
64786         * tests/test-stdbool.c (f): Skip test that causes compilation
64787         error under buggy C++ compiler.
64788         * lib/stdbool.in.h: Document the limitation.
64789         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
64791         setenv: allow compilation with C++
64792         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
64793         register keyword.
64795         stdint: allow test to pass with C++
64796         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
64798         getopt: allow compilation with C++
64799         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
64800         struct.
64801         * lib/getopt.c (_getopt_internal_r): Use correct type.
64802         Reported by Dagobert Michelson, via Joel E. Denny.
64804 2010-04-16  Bruno Haible  <bruno@clisp.org>
64806         Override netdb.h always.
64807         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
64808         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
64809         Reported by Ludovic Courtès <ludo@gnu.org>.
64811 2010-04-15  Bruno Haible  <bruno@clisp.org>
64813         openpty: Fix mistake from 2010-03-21.
64814         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
64815         Reported by Simon Josefsson.
64817 2010-04-15  Eric Blake  <eblake@redhat.com>
64819         test-forkpty: fix expected signature
64820         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
64821         Reported by Simon Josefsson.
64823 2010-04-15  Jim Meyering  <meyering@redhat.com>
64825         maint.mk: texinfo_suffix_re_: correct the default regexp
64826         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
64828         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
64829         make it configurable via texinfo_suffix_re_.
64831 2010-04-14  Eric Blake  <eblake@redhat.com>
64833         strtok_r: relax license to LGPLv2+
64834         * modules/strtok_r (License): Relax license.
64835         Reported by Matthias Bolte.
64837 2010-04-14  Simon Josefsson  <simon@josefsson.org>
64839         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
64840         version 1.4.4 by default instead of requiring the libgcrypt
64841         version used during build.  This makes it possible to use the
64842         application with older but still binary compatible libgcrypt
64843         versions.
64845 2010-04-13  Eric Blake  <eblake@redhat.com>
64847         getopt-gnu: match recent glibc fixes and posix ruling
64848         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
64849         '+' handling, when requesting extensions.
64850         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
64851         'W;' handling.
64852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
64853         * doc/posix-functions/getopt.texi (getopt): Document this.
64854         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64855         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64856         Likewise.
64858         getopt: merge bug fixes from glibc
64859         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
64860         diagnostics.  Honor '+:' correctly.  Reject ';'.
64862         getopt-posix: detect MacOS bug
64863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
64864         optind when missing a required argument.
64865         * doc/posix-functions/getopt.texi (getopt): Document the bug.
64866         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64867         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64868         Likewise.
64870         getopt-posix: avoid spurious failure on Solaris
64871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
64872         an indicator that setting optind=1 is sufficient for reset.
64874         getopt-posix: avoid spurious failure on FreeBSD
64875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
64876         in POSIX mode, since the m4 test uses it.
64878         gnulib-tool: silence warning on BSD sh
64879         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
64881 2010-04-13  Jim Meyering  <meyering@redhat.com>
64883         doc: users.txt: GNU patch now uses gnulib
64884         * users.txt: Add patch.
64886 2010-04-12  Jim Meyering  <meyering@redhat.com>
64888         maint.mk: generate more concise timing data for syntax-check rules
64889         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
64890         " done" from each line that reports a syntax-check test duration.
64892 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
64894         git-version-gen: use "git update-index..." rather than "git status"
64895         * build-aux/git-version-gen: Use git update-index --refresh, not
64896         "git status".  With some versions of git, "git status" would fail
64897         to update the index and result in an unwarranted "-dirty" suffix.
64899 2010-04-11  Jim Meyering  <meyering@redhat.com>
64901         openat: correct formatting (no semantic change)
64902         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
64903         Suggested by Bruno Haible.
64905 2010-04-11  Bruno Haible  <bruno@clisp.org>
64907         Stricter declaration checking in testdirs.
64908         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64909         If for_tests is true, augment AM_CPPFLAGS to define
64910         GNULIB_STRICT_CHECKING.
64911         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
64912         GNULIB_STRICT_CHECKING is defined, verify that the function is
64913         declared.
64915 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
64916             Bruno Haible  <bruno@clisp.org>
64918         libunistring: Improve configure output.
64919         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
64920         Don't say "consider installing GNU libunistring" when checking again
64921         with libiconv.
64923 2010-04-11  Bruno Haible  <bruno@clisp.org>
64925         libunistring: Correct value of $LTLIBUNISTRING.
64926         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
64927         correct the value of $LTLIBUNISTRING.
64929 2010-04-11  Bruno Haible  <bruno@clisp.org>
64931         havelib: Add static libraries to LIBS in the right order.
64932         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
64933         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
64935 2010-04-11  Bruno Haible  <bruno@clisp.org>
64937         libunistring: Detect libunistring also when it depends on libiconv.
64938         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
64939         the second AC_LIB_HAVE_LINKFLAGS invocation.
64941 2010-04-11  James Youngman  <jay@gnu.org>
64943         close-stream: declare local scalars to be "const"
64944         * lib/close-stream.c (close_stream): Make boolean variables const
64945         to document the fact that we set but do not change them.
64947 2010-04-11  Bruno Haible  <bruno@clisp.org>
64949         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
64951 2010-04-11  Jim Meyering  <meyering@redhat.com>
64953         maint.mk: don't include dist-check.mk
64954         * top/maint.mk: Remove bogus include directive.
64956         maint.mk: improve empty-line-at-EOF check
64957         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
64958         solution, rather than tail+Perl-based one.  The latter would read
64959         a few kilobytes from the end of each file, and did not handle empty
64960         files properly.
64962         maint.mk: print the elapsed time for each syntax-check rule
64963         * top/maint.mk (sc_m_rules_): Save start time in a file.
64964         (sc_z_rules_): New rules: remove temp file and print elapsed time.
64965         (local-check): Interpose the .z rules
64967 2010-04-11  Jim Meyering  <meyering@redhat.com>
64969         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
64970         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
64971         empty file with one that ends in an empty line.
64973 2010-04-10  Bruno Haible  <bruno@clisp.org>
64975         mkdir: Make it work on mingw64.
64976         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
64977         * lib/mkdir.c: Update comment.
64978         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
64980 2010-04-10  Bruno Haible  <bruno@clisp.org>
64982         Don't override improved macro from newer autoconf.
64983         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
64984         autoconf >= 2.62.
64985         Reported by Joel E. Denny <jdenny@clemson.edu>.
64987 2010-04-10  Jim Meyering  <meyering@redhat.com>
64989         maint.mk: new syntax-check rule: prohibit empty lines at end of file
64990         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
64992         maint.mk: correct a diagnostic
64993         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
64994         in diagnostic; now use $prohibit.
64996 2010-04-10  Bruno Haible  <address@hidden>
64998         fchownat: Fix a C++ test error on Solaris 8.
64999         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65000         the function does not exist.
65002 2010-04-10  Bruno Haible  <bruno@clisp.org>
65004         vasnprintf: Add more tests.
65005         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65006         (test_function): Test converting an invalid wide string.
65008         vasnprintf: Correct handling of unconvertible wide string arguments.
65009         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65010         VASNPRINTF.
65011         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65012         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65013         smaller than the expected maximum need for the directive. Set errno to
65014         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65015         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65017         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65018         * modules/vasnprintf (Files): Add m4/printf.m4.
65019         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65021 2010-04-10  Bruno Haible  <bruno@clisp.org>
65023         vasnprintf: Fix crash in %ls directive.
65024         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65025         string is passed as argument to %ls, with no precision and no width.
65026         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65028 2010-04-10  Bruno Haible  <bruno@clisp.org>
65030         vasnprintf: Fix multiple test failures on mingw.
65031         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65032         _snprintf, or snwprintf, not _snwprintf.
65034 2010-04-10  Bruno Haible  <bruno@clisp.org>
65036         write: Fix a C++ test error on mingw.
65037         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65039 2010-04-10  Bruno Haible  <bruno@clisp.org>
65041         vasnprintf test: Reduce code duplication.
65042         * tests/test-vasnprintf.c (test_function): New function, extracted from
65043         test_vasnprintf.
65044         (test_vasnprintf, test_asnprintf): Invoke it.
65046 2010-04-10  Bruno Haible  <bruno@clisp.org>
65048         strnlen: Fix warning in C++ mode on MacOS X.
65049         * lib/string.in.h (strnlen): Use the modern idiom.
65050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65051         defining strnlen as a macro already in <config.h>.
65052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65053         REPLACE_STRNLEN.
65054         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65055         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65057 2010-04-08  James Youngman  <jay@gnu.org>
65059         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65060         the example.
65062 2010-04-09  Jim Meyering  <meyering@redhat.com>
65064         maint.mk: print better diagnostic when there is no $(_hv_file)
65065         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65066         announce that when $(_hv_file) (aka help-version) does not exist.
65068         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65069         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65070         not try to interpret its random input bytes.  Jarno Rajahalme reported
65071         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65072         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65073         (mktempd_): Likewise, just in case.
65075         ftruncate: add two years to projected module removal date: 2012
65076         * m4/ftruncate.m4: Adjust comments.
65078         ftruncate: mark module as obsolete; even MinGW provides it, now
65079         * modules/ftruncate (Status): Obsolete.
65080         (Notice): Say that.
65081         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65084 2010-04-08  Bruno Haible  <bruno@clisp.org>
65086         Fix side effects from tests-related modules.
65087         * modules/dprintf-posix (Comment): New section.
65088         * modules/fprintf-posix (Comment): Likewise.
65089         * modules/obstack-printf-posix (Comment): Likewise.
65090         * modules/printf-posix (Comment): Likewise.
65091         * modules/snprintf-posix (Comment): Likewise.
65092         * modules/sprintf-posix (Comment): Likewise.
65093         * modules/vasnprintf-posix (Comment): Likewise.
65094         * modules/vasprintf-posix (Comment): Likewise.
65095         * modules/vdprintf-posix (Comment): Likewise.
65096         * modules/vfprintf-posix (Comment): Likewise.
65097         * modules/vprintf-posix (Comment): Likewise.
65098         * modules/vsnprintf-posix (Comment): Likewise.
65099         * modules/vsprintf-posix (Comment): Likewise.
65100         * modules/xprintf-posix (Comment): Likewise.
65101         * modules/xvasprintf-posix (Comment): Likewise.
65102         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65103         * modules/floorf-tests (Depends-on): Likewise.
65104         * modules/round-tests (Depends-on): Likewise.
65105         * modules/roundf-tests (Depends-on): Likewise.
65106         * modules/trunc-tests (Depends-on): Likewise.
65107         * modules/truncf-tests (Depends-on): Likewise.
65108         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65109         'fprintf-posix' module is not present.
65110         * tests/test-floorf2.c (check): Likewise.
65111         * tests/test-trunc2.c (check): Likewise.
65112         * tests/test-truncf2.c (check): Likewise.
65113         * tests/test-round2.c (equal): Likewise.
65114         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65116 2010-04-07  Karl Berry  <karl@gnu.org>
65118         * config/srclist.txt,
65119         * config/srclistvars.sh,
65120         * config/srclist-update: doc fixes.
65122 2010-04-07  Jim Meyering  <meyering@redhat.com>
65124         maint.mk: add a PATH crosschecking syntax-check rule
65125         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65126         Useful if you use a test like the one in help-version (coreutils,
65127         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65128         printed by prog --version.
65130 2010-04-06  Bruno Haible  <bruno@clisp.org>
65132         Fix link error on mingw.
65133         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65134         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65136 2010-04-06  Bruno Haible  <bruno@clisp.org>
65138         Assume rmdir exists.
65139         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65141 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65143         doc: update users.txt
65144         * users.txt: Add gcal.
65146 2010-04-06  Jim Meyering  <meyering@redhat.com>
65148         init.sh: simply unset TMPDIR rather than risking env -i
65149         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65150         although it probably works fine on all Unix-based systems, some
65151         systems (Cygwin?) cannot tolerate a totally cleared environment.
65152         Suggestion from Eric Blake.
65154 2010-04-06  Jim Meyering  <meyering@redhat.com>
65156         init.sh: portability fix: use env's POSIX-specified -i option not -u
65157         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65158         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65160 2010-04-05  Bruno Haible  <bruno@clisp.org>
65162         btowc: Work around Cygwin 1.7.2 bug.
65163         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65164         does not map NUL to 0.
65165         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65167 2010-04-05  Bruno Haible  <bruno@clisp.org>
65169         Make the multithread modules work on Cygwin 1.7.2.
65170         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65171         imported symbols can be declared weak, so that it returns "no" on
65172         Cygwin 1.7.2.
65174 2010-04-05  Bruno Haible  <bruno@clisp.org>
65176         Use the module 'strncat'.
65177         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65179         Tests for module 'strncat'.
65180         * modules/strncat-tests: New file.
65181         * tests/test-strncat.c: New file.
65183         New module 'strncat'.
65184         * lib/string.in.h (strncat): New declaration.
65185         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65186         * m4/strncat.m4: New file, based on m4/memchr.m4.
65187         * modules/strncat: New file.
65188         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65189         is declared.
65190         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65191         REPLACE_STRNCAT.
65192         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65193         REPLACE_STRNCAT.
65194         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65195         module.
65196         * tests/test-string-c++.cc: Check signature of strncat.
65198 2010-04-05  Jim Meyering  <meyering@redhat.com>
65200         xstrtoumax-tests: convert to use init.sh
65201         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65202         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65203         Use Exit, not exit.
65204         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65206         xstrtoimax-tests: convert to use init.sh
65207         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65208         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65209         Use Exit, not exit.
65210         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65212 2010-04-05  Bruno Haible  <bruno@clisp.org>
65214         sys_socket: Avoid #define replacements in C++ mode.
65215         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65216         warning to the function if possible, rather than #defining the symbol
65217         to a dysfunctional alias.
65219 2010-04-05  Bruno Haible  <bruno@clisp.org>
65221         fseeko: Fix C++ test error on mingw.
65222         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65223         gl_FUNC_FSEEKO.
65224         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65225         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65226         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65227         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65229 2010-04-05  Bruno Haible  <bruno@clisp.org>
65231         duplocale: Improve test output.
65232         * tests/test-duplocale.c (main): Print reason for skipped test.
65234 2010-04-05  Bruno Haible  <bruno@clisp.org>
65236         Assume rmdir exists.
65237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65238         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65240 2010-04-05  Bruno Haible  <bruno@clisp.org>
65242         Fix link error on Solaris 8 with cc.
65243         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65245 2010-04-05  Bruno Haible  <bruno@clisp.org>
65247         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65248         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65250 2010-04-05  Bruno Haible  <bruno@clisp.org>
65252         vasprintf: Update documentation.
65253         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65255 2010-04-05  Bruno Haible  <bruno@clisp.org>
65257         ptsname: Improve test.
65258         * tests/test-ptsname.c (main): Also try the various master names of BSD
65259         systems.
65261 2010-04-05  Bruno Haible  <bruno@clisp.org>
65263         memchr: Avoid a possible C++ test error.
65264         * lib/string.in.h (memchr): Provide declaration if function is missing.
65265         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65266         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65268         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65270 2010-04-05  Bruno Haible  <bruno@clisp.org>
65272         strtok_r: Improve idiom.
65273         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65274         AC_LIBOBJ is used.
65276 2010-04-05  Bruno Haible  <bruno@clisp.org>
65278         strdup: Improve idiom.
65279         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65280         AC_LIBOBJ is used.
65281         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65282         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65283         when AC_LIBOBJ is used.
65285 2010-04-05  Bruno Haible  <bruno@clisp.org>
65287         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65288         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65289         don't set REPLACE_MBSINIT to 1.
65290         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65291         don't set REPLACE_MBRTOWC to 1.
65292         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65293         exist, don't set REPLACE_MBSRTOWCS to 1.
65294         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65295         exist, don't set REPLACE_MBSNRTOWCS to 1.
65296         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65297         don't set REPLACE_WCRTOMB to 1.
65298         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65299         exist, don't set REPLACE_WCSRTOMBS to 1.
65300         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65301         exist, don't set REPLACE_WCSNRTOMBS to 1.
65303 2010-04-05  Bruno Haible  <bruno@clisp.org>
65305         ldexpl: Improve idiom.
65306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65307         make sure to set HAVE_DECL_LDEXPL to 0.
65309 2010-04-05  Jim Meyering  <meyering@redhat.com>
65311         xstrtol-tests: convert to use init.sh
65312         * modules/xstrtol-tests (Files): Add tests/init.sh.
65313         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65314         Use Exit, not exit.
65315         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65317         atexit-tests: convert to use init.sh
65318         * modules/atexit-tests (Files): Add tests/init.sh.
65319         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65320         Use Exit, not exit.
65321         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65323         init.sh: fix typo
65324         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65326         init.sh: make it easier for a test script to write to the tty, ...
65327         when using automake's parallel-tests mode.
65328         * tests/init.sh (stderr_fileno_): Define overridable variable.
65329         (warn_): New function, to use it.
65330         (fail_, skip_, framework_failure_): Use warn_.
65332 2010-04-04  Bruno Haible  <bruno@clisp.org>
65334         btowc: Avoid warning.
65335         * lib/btowc.c: Include <stdlib.h>.
65336         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65338 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65339             Bruno Haible  <bruno@clisp.org>
65341         wchar: Port to NetBSD 1.5.
65342         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65343         * lib/wctype.in.h (WEOF): Likewise.
65345 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65346             Bruno Haible  <bruno@clisp.org>
65348         Port extended stdio to NetBSD 1.5.
65349         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65350         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65351         older.
65353 2010-04-04  Bruno Haible  <bruno@clisp.org>
65355         string: Remove unused substitution.
65356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65357         HAVE_DECL_STRERROR.
65358         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65360 2010-04-04  Bruno Haible  <bruno@clisp.org>
65362         strtod: Avoid a possible C++ test error.
65363         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65364         set REPLACE_STRTOD.
65366 2010-04-04  Bruno Haible  <bruno@clisp.org>
65368         strerror: Update documentation.
65369         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65371 2010-04-04  Bruno Haible  <bruno@clisp.org>
65373         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65374         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65375         _GL_CXXALIAS_SYS_CAST.
65377 2010-04-04  Bruno Haible  <bruno@clisp.org>
65379         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65380         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65381         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65382         REPLACE_FREXPL to 1.
65383         * doc/posix-functions/frexpl.texi: Update documentation.
65385 2010-04-04  Bruno Haible  <bruno@clisp.org>
65387         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65388         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65390 2010-04-04  Bruno Haible  <bruno@clisp.org>
65392         Implement nanosleep for native Windows.
65393         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65395 2010-04-04  Bruno Haible  <bruno@clisp.org>
65397         math: Fix some C++ test errors on Solaris 8.
65398         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65400 2010-04-04  Bruno Haible  <bruno@clisp.org>
65402         math: Fix some C++ test errors on Cygwin.
65403         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65404         truncl): Provide declaration if the system does not have it.
65405         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65406         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65407         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65408         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65409         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65410         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65411         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65412         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65413         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65414         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65415         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65416         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65417         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65418         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65419         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65420         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65422         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65423         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65424         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65425         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65426         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65428 2010-04-04  Bruno Haible  <bruno@clisp.org>
65430         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65431         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65432         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65433         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65434         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65435         * m4/isinf.m4 (gl_ISINF): Likewise.
65436         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65438 2010-04-04  Bruno Haible  <bruno@clisp.org>
65440         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65441         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65443 2010-04-04  Bruno Haible  <bruno@clisp.org>
65445         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65446         * modules/tmpfile (configure.ac): Update.
65448         tmpfile: Fix C++ test error on mingw.
65449         * lib/stdio.in.h (tmpfile): New declaration.
65450         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65451         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65452         * modules/tmpfile (Depends-on): Add stdio.
65453         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65454         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65455         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65456         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65457         REPLACE_TMPFILE.
65458         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65460 2010-04-04  Bruno Haible  <bruno@clisp.org>
65462         ioctl: Fix C++ test error on mingw.
65463         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65464         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65465         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65467 2010-04-03  Bruno Haible  <bruno@clisp.org>
65469         wcwidth: Fix C++ test error on mingw.
65470         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65472         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65474 2010-04-03  Bruno Haible  <bruno@clisp.org>
65476         nanosleep: Fix C++ test error on mingw.
65477         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65478         * lib/time.in.h (nanosleep): Use modern idiom.
65479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65480         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65481         REPLACE_NANOSLEEP to 1.
65482         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65483         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65485 2010-04-03  Bruno Haible  <bruno@clisp.org>
65487         strptime: Fix C++ test error on mingw.
65488         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65489         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65490         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65491         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65492         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65493         not REPLACE_STRPTIME.
65494         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65495         REPLACE_STRPTIME.
65497 2010-04-03  Bruno Haible  <bruno@clisp.org>
65499         timegm: Fix C++ test error on mingw.
65500         * lib/time.in.h (timegm): Use modern idiom.
65501         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65502         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65503         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65504         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65506 2010-04-03  Bruno Haible  <bruno@clisp.org>
65508         timegm: Assume declaration if function exists.
65509         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65510         if it exists. Don't clobber ac_cv_func_timegm.
65512 2010-04-03  Bruno Haible  <bruno@clisp.org>
65514         time_r: Fix C++ test error on mingw.
65515         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65516         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65517         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65519         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65521 2010-04-03  Bruno Haible  <bruno@clisp.org>
65523         time_r: Minor updates.
65524         * modules/time_r (Description): Mention the provided functions.
65525         * lib/time_r.c: Don't include <string.h>.
65526         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65527         * doc/posix-functions/localtime_r.texi: Likewise.
65529 2010-04-03  Bruno Haible  <bruno@clisp.org>
65531         time: Fix regression introduced on 2010-03-08.
65532         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65533         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65535 2010-04-03  Jim Meyering  <meyering@redhat.com>
65537         maint.mk: don't silently disable project-specific syntax-check rules
65538         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65539         that they need to convert their project-specific syntax-check rules
65540         to use the new _sc_search_regexp.
65542 2010-04-03  Bruno Haible  <bruno@clisp.org>
65544         fchdir: Fix regression introduced on 2010-03-08.
65545         * lib/unistd.in.h (fchdir): Fix declaration.
65546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65548         REPLACE_FCHDIR.
65549         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65550         REPLACE_FCHDIR.
65552 2010-04-03  Bruno Haible  <bruno@clisp.org>
65554         getpagesize: Fix C++ test error on mingw.
65555         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65556         system does not declare the function.
65557         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65558         declared.
65559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65560         HAVE_DECL_GETPAGESIZE.
65561         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65563 2010-04-03  Bruno Haible  <bruno@clisp.org>
65565         stdio: Make C++ tests work on mingw.
65566         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65567         does not declare the function.
65569 2010-04-03  Bruno Haible  <bruno@clisp.org>
65571         ftello: Fix C++ test error on mingw.
65572         * lib/stdio.in.h (ftello): Use modern idiom.
65573         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65574         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65575         is missing and that it needs to be replaced.
65576         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65578         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65580 2010-04-03  Bruno Haible  <bruno@clisp.org>
65582         fseeko: Fix C++ test error on mingw.
65583         * lib/stdio.in.h (fseeko): Use modern idiom.
65584         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65586         is missing and that it needs to be replaced.
65587         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65589         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65591 2010-04-03  Bruno Haible  <bruno@clisp.org>
65593         mkstemp: Fix C++ test error on mingw.
65594         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65596         function is missing and that it needs to be replaced.
65597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65598         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65600 2010-04-03  Bruno Haible  <bruno@clisp.org>
65602         stpncpy: Fix C++ test error on mingw.
65603         * lib/string.in.h (stpncpy): Use modern idiom.
65604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65605         function is missing and that it needs to be replaced.
65606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65607         REPLACE_STPNCPY.
65608         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65610 2010-04-03  Bruno Haible  <bruno@clisp.org>
65612         sys_stat: Fix C++ test error on mingw.
65613         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65614         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65616 2010-04-03  Bruno Haible  <bruno@clisp.org>
65618         pty: Update doc.
65619         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65621 2010-04-03  Bruno Haible  <bruno@clisp.org>
65623         unistd: Fix C++ test error on mingw.
65624         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65626 2010-04-03  Bruno Haible  <bruno@clisp.org>
65628         Update doc regarding mingw.
65629         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65630         * doc/glibc-functions/login_tty.texi: Likewise.
65631         * doc/glibc-functions/forkpty.texi: Likewise.
65633 2010-04-03  Bruno Haible  <bruno@clisp.org>
65635         stdlib: Avoid compilation failure of c-strtold on mingw.
65636         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65638 2010-04-03  Bruno Haible  <bruno@clisp.org>
65640         locale: Make C++ tests work on Cygwin and mingw.
65641         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65642         cannot provide the function.
65643         Reported by Simon Josefsson.
65645 2010-04-03  Bruno Haible  <bruno@clisp.org>
65647         localename: Port to MacOS X 10.6.
65648         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65649         memory layout of the locales in MacOS X 10.6 as well.
65650         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65652 2010-04-02  Bruno Haible  <bruno@clisp.org>
65654         gnulib-tool: Ensure that long-running tests are executed last.
65655         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65656         running tests after the one for the other tests.
65658 2010-04-02  Bruno Haible  <bruno@clisp.org>
65660         gnulib-tool: Ensure the tests in the main directory are executed first.
65661         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65662         start with the current directory.
65664 2010-04-02  Bruno Haible  <bruno@clisp.org>
65666         Tests for module 'havelib', moved here from GNU gettext.
65667         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65668         modifications.
65669         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65670         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65671         with modifications.
65672         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65673         modifications.
65674         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65675         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65676         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65677         with modifications.
65678         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65679         with modifications.
65680         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65681         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65682         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65683         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65684         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65685         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65686         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65687         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65688         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65689         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65690         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65691         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65692         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65693         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65694         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65695         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65696         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65697         with modifications.
65698         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65699         with modifications.
65700         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65701         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65702         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65703         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65704         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65705         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65706         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65707         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65708         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65709         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65710         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65711         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65712         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65713         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65714         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65715         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65716         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65717         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65718         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65719         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
65720         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
65721         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
65722         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
65723         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
65724         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
65725         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
65726         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
65727         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
65728         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
65729         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
65730         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
65731         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
65732         * tests/havelib/rpathx/rpathx.c: New file, from
65733         gettext/autoconf-lib-link.
65734         * tests/havelib/rpathx/Makefile.am: New file, from
65735         gettext/autoconf-lib-link.
65736         * tests/havelib/rpathx/configure.ac: New file, from
65737         gettext/autoconf-lib-link with modifications.
65738         * tests/havelib/rpathy/rpathy.c: New file, from
65739         gettext/autoconf-lib-link.
65740         * tests/havelib/rpathy/Makefile.am: New file, from
65741         gettext/autoconf-lib-link.
65742         * tests/havelib/rpathy/configure.ac: New file, from
65743         gettext/autoconf-lib-link with modifications.
65744         * tests/havelib/rpathz/rpathz.c: New file, from
65745         gettext/autoconf-lib-link.
65746         * tests/havelib/rpathz/Makefile.am: New file, from
65747         gettext/autoconf-lib-link.
65748         * tests/havelib/rpathz/configure.ac: New file, from
65749         gettext/autoconf-lib-link with modifications.
65750         * tests/havelib/rpathlx/usex.c: New file, from
65751         gettext/autoconf-lib-link.
65752         * tests/havelib/rpathlx/Makefile.am: New file, from
65753         gettext/autoconf-lib-link.
65754         * tests/havelib/rpathlx/configure.ac: New file, from
65755         gettext/autoconf-lib-link with modifications.
65756         * tests/havelib/rpathly/usey.c: New file, from
65757         gettext/autoconf-lib-link.
65758         * tests/havelib/rpathly/Makefile.am: New file, from
65759         gettext/autoconf-lib-link.
65760         * tests/havelib/rpathly/configure.ac: New file, from
65761         gettext/autoconf-lib-link with modifications.
65762         * tests/havelib/rpathlz/usez.c: New file, from
65763         gettext/autoconf-lib-link.
65764         * tests/havelib/rpathlz/Makefile.am: New file, from
65765         gettext/autoconf-lib-link.
65766         * tests/havelib/rpathlz/configure.ac: New file, from
65767         gettext/autoconf-lib-link with modifications.
65768         * tests/havelib/rpathlyx/usey.c: New file, from
65769         gettext/autoconf-lib-link.
65770         * tests/havelib/rpathlyx/Makefile.am: New file, from
65771         gettext/autoconf-lib-link.
65772         * tests/havelib/rpathlyx/configure.ac: New file, from
65773         gettext/autoconf-lib-link with modifications.
65774         * tests/havelib/rpathlzyx/usez.c: New file, from
65775         gettext/autoconf-lib-link.
65776         * tests/havelib/rpathlzyx/Makefile.am: New file, from
65777         gettext/autoconf-lib-link.
65778         * tests/havelib/rpathlzyx/configure.ac: New file, from
65779         gettext/autoconf-lib-link with modifications.
65780         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
65781         with modifications.
65783 2010-04-02  Bruno Haible  <bruno@clisp.org>
65785         gnulib-tool: Create distributed built sources also for the tests.
65786         * gnulib-tool (func_create_testdir): Also generate distributed built
65787         sources in the tests directory.
65789 2010-04-02  Bruno Haible  <bruno@clisp.org>
65791         gnulib-tool: Obey user's environment variables.
65792         * gnulib-tool (func_create_testdir): When creating built sources,
65793         respect the environment variables for autoconf, automake, etc. given by
65794         the user.
65796 2010-04-02  Bruno Haible  <bruno@clisp.org>
65798         gnulib-tool: Provide the value of --m4-base to modules.
65799         * gnulib-tool (func_import, func_create_testdir): Emit a definition
65800         of gl_m4_base.
65802 2010-04-02  Eric Blake  <eblake@redhat.com>
65804         maint.mk: fix some fallout
65805         * NEWS: Document the incompatible change, and its effect on cfg.mk.
65806         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
65808 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65810         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
65811         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
65812         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
65813         (sc_cast_of_x_alloc_return_value): Likewise.
65814         (sc_cast_of_alloca_return_value): Likewise.
65815         (sc_space_tab): Likewise.
65816         (sc_prohibit_atoi_atof): Likewise.
65817         (sc_prohibit_magic_number_exit): Likewise.
65818         (sc_error_exit_success): Likewise.
65819         (sc_file_system): Likewise.
65820         (sc_prohibit_have_config_h): Likewise.
65821         (sc_require_config_h): Likewise.
65822         (sc_prohibit_HAVE_MBRTOWC): Likewise.
65823         (sc_obsolete_symbols): Likewise.
65824         (sc_changelog): Likewise.
65825         (sc_program_name): Likewise.
65826         (sc_the_the): Likewise.
65827         (sc_trailing_blank): Likewise.
65828         (sc_two_space_separator_in_usage): Likewise.
65829         (sc_useless_cpp_parens): Likewise.
65830         (sc_GPL_version): Likewise.
65831         (sc_GFDL_version): Likewise.
65832         (sc_texinfo_acronym): Likewise.
65833         (sc_prohibit_cvs_keyword): Likewise.
65834         (sc_prohibit_stat_st_blocks): Likewise.
65835         (sc_prohibit_S_IS_definition): Likewise.
65836         (sc_redundant_const): Likewise.
65837         (sc_makefile_TAB_only_indentation): Likewise.
65838         (sc_m4_quote_check): Likewise.
65839         (sc_makefile_path_separator_check): Likewise.
65840         (sc_copyright_check): Likewise.
65841         (sc_Wundef_boolean): Likewise.
65842         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65844         maint.mk: match 0 or more whitespace-before-function-call '('
65845         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
65846         that have zero or two-and-more spaces between the function name
65847         and the open parenthesis.
65848         (sc_error_message_warn_fatal): Likewise.
65849         (sc_error_message_uppercase): Likewise.
65850         (sc_error_message_period): Likewise.
65852 2010-03-31  Eric Blake  <eblake@redhat.com>
65854         maint.mk: check for [ as well as test
65855         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
65856         Based on a libvirt report by Matthias Bolte.
65858         gnumakefile: don't squelch _version output
65859         * top/GNUmakefile (_version): Create one-shot dependency rather
65860         than using $(shell) when version must be regenerated.
65861         (_autoreconf): Run verbosely, by default.
65863         sys_time: avoid compiler warnings
65864         * lib/sys_time.in.h (includes): Ensure gcc pragma is
65865         unconditional, fixing regression from 2010-03-29.
65866         Reported by Simon Josefsson.
65868 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65870         maint.mk: s/_header_without_use/_sc_header_without_use/
65871         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
65872         (sc_prohibit_assert_without_use): Use the new name.
65873         (sc_prohibit_close_stream_without_use): Likewise.
65874         (sc_prohibit_getopt_without_use): Likewise.
65875         (sc_prohibit_quotearg_without_use): Likewise.
65876         (sc_prohibit_quote_without_use): Likewise.
65877         (sc_prohibit_long_options_without_use): Likewise.
65878         (sc_prohibit_inttostr_without_use): Likewise.
65879         (sc_prohibit_ignore_value_without_use): Likewise.
65880         (sc_prohibit_error_without_use): Likewise.
65881         (sc_prohibit_xalloc_without_use): Likewise.
65882         (sc_prohibit_hash_without_use): Likewise.
65883         (sc_prohibit_hash_pjw_without_use): Likewise.
65884         (sc_prohibit_safe_read_without_use): Likewise.
65885         (sc_prohibit_argmatch_without_use): Likewise.
65886         (sc_prohibit_canonicalize_without_use): Likewise.
65887         (sc_prohibit_root_dev_ino_without_use): Likewise.
65888         (sc_prohibit_openat_without_use): Likewise.
65889         (sc_prohibit_c_ctype_without_use): Likewise.
65890         (sc_prohibit_signal_without_use): Likewise.
65891         (sc_prohibit_intprops_without_use): Likewise.
65893 2010-03-30  Eric Blake  <eblake@redhat.com>
65895         maint: improve module indicators
65896         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
65897         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
65898         columns, and avoid extra macro expansion.
65900         fdopendir: work around FreeBSD bug
65901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
65902         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
65903         * modules/dirent (Makefile.am): Substitute it.
65904         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
65905         declaration.
65906         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
65907         fix.
65908         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65910 2010-03-29  Bruno Haible  <bruno@clisp.org>
65912         Emit #pragma system_header after the inclusion guard, not before.
65913         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
65914         guard that spans the entire file, not before. This enables an
65915         optimization in GCC's preprocessor.
65916         * lib/ctype.in.h: Likewise.
65917         * lib/dirent.in.h: Likewise.
65918         * lib/errno.in.h: Likewise.
65919         * lib/float.in.h: Likewise.
65920         * lib/getopt.in.h: Likewise.
65921         * lib/iconv.in.h: Likewise.
65922         * lib/langinfo.in.h: Likewise.
65923         * lib/locale.in.h: Likewise.
65924         * lib/math.in.h: Likewise.
65925         * lib/netdb.in.h: Likewise.
65926         * lib/netinet_in.in.h: Likewise.
65927         * lib/pty.in.h: Likewise.
65928         * lib/sched.in.h: Likewise.
65929         * lib/se-selinux.in.h: Likewise.
65930         * lib/search.in.h: Likewise.
65931         * lib/spawn.in.h: Likewise.
65932         * lib/stdarg.in.h: Likewise.
65933         * lib/stdint.in.h: Likewise.
65934         * lib/string.in.h: Likewise.
65935         * lib/strings.in.h: Likewise.
65936         * lib/sys_file.in.h: Likewise.
65937         * lib/sys_ioctl.in.h: Likewise.
65938         * lib/sys_time.in.h: Likewise.
65939         * lib/sys_times.in.h: Likewise.
65940         * lib/sys_utsname.in.h: Likewise.
65941         * lib/sys_wait.in.h: Likewise.
65942         * lib/sysexits.in.h: Likewise.
65943         * lib/wctype.in.h: Likewise.
65945 2010-03-28  James Youngman  <jay@gnu.org>
65947         save-cwd: don't leak a file descriptor when the caller execs.
65948         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
65949         saved file descriptor.
65950         * modules/save-cwd (Depends-on): Depend on cloexec.
65952 2010-03-29  Bruno Haible  <bruno@clisp.org>
65954         Remove vestiges of fts-lgpl module.
65955         * lib/fts_.h: Assume GNULIB_FTS is 1.
65956         * lib/fts.c: Likewise.
65957         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
65959 2010-03-28  Bruno Haible  <bruno@clisp.org>
65961         Fix definition of tests witness macro.
65962         * gnulib-tool (func_import): Fix definition of witness macro.
65964 2010-03-28  Bruno Haible  <bruno@clisp.org>
65966         Fix ioctl's protoype on glibc systems.
65967         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
65968         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
65969         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
65970         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
65971         signature. If not, arrange to replace the ioctl function.
65972         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
65973         REPLACE_IOCTL.
65974         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
65975         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
65976         Reported by Ludovic Courtès <ludo@gnu.org>.
65978 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
65980         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
65981         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
65982         made it so grep -r --include=GLOB* ... did not work.
65984 2010-03-26  Jim Meyering  <meyering@redhat.com>
65985             Eric Blake  <eblake@redhat.com>
65987         maint.mk: prohibit use of test's -o and -a operators
65988         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
65990 2010-03-28  Bruno Haible  <bruno@clisp.org>
65992         Remove unused GNULIB_XYZ macro definitions.
65993         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
65994         invocation.
65996 2010-03-28  Bruno Haible  <bruno@clisp.org>
65998         Mark privileged tests modules.
65999         * modules/idpriv-drop-tests (Status): New section.
66000         * modules/idpriv-droptemp-tests (Status): New section.
66002 2010-03-28  Bruno Haible  <bruno@clisp.org>
66004         Split C++ tests into separate tests modules.
66005         * modules/dirent-c++-tests: New file, extracted from
66006         modules/dirent-tests.
66007         * modules/dirent-tests: Depend on it.
66008         * modules/fcntl-h-c++-tests: New file, extracted from
66009         modules/fcntl-h-tests.
66010         * modules/fcntl-h-tests: Depend on it.
66011         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66012         * modules/glob-tests: Depend on it.
66013         * modules/iconv-h-c++-tests: New file, extracted from
66014         modules/iconv-h-tests.
66015         * modules/iconv-h-tests: Depend on it.
66016         * modules/langinfo-c++-tests: New file, extracted from
66017         modules/langinfo-tests.
66018         * modules/langinfo-tests: Depend on it.
66019         * modules/locale-c++-tests: New file, extracted from
66020         modules/locale-tests.
66021         * modules/locale-tests: Depend on it.
66022         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66023         * modules/math-tests: Depend on it.
66024         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66025         * modules/pty-tests: Depend on it.
66026         * modules/search-c++-tests: New file, extracted from
66027         modules/search-tests.
66028         * modules/search-tests: Depend on it.
66029         * modules/signal-c++-tests: New file, extracted from
66030         modules/signal-tests.
66031         * modules/signal-tests: Depend on it.
66032         * modules/spawn-c++-tests: New file, extracted from
66033         modules/spawn-tests.
66034         * modules/spawn-tests: Depend on it.
66035         * modules/stdio-c++-tests: New file, extracted from
66036         modules/stdio-tests.
66037         * modules/stdio-tests: Depend on it.
66038         * modules/stdlib-c++-tests: New file, extracted from
66039         modules/stdlib-tests.
66040         * modules/stdlib-tests: Depend on it.
66041         * modules/string-c++-tests: New file, extracted from
66042         modules/string-tests.
66043         * modules/string-tests: Depend on it.
66044         * modules/sys_ioctl-c++-tests: New file, extracted from
66045         modules/sys_ioctl-tests.
66046         * modules/sys_ioctl-tests: Depend on it.
66047         * modules/sys_select-c++-tests: New file, extracted from
66048         modules/sys_select-tests.
66049         * modules/sys_select-tests: Depend on it.
66050         * modules/sys_socket-c++-tests: New file, extracted from
66051         modules/sys_socket-tests.
66052         * modules/sys_socket-tests: Depend on it.
66053         * modules/sys_stat-c++-tests: New file, extracted from
66054         modules/sys_stat-tests.
66055         * modules/sys_stat-tests: Depend on it.
66056         * modules/sys_time-c++-tests: New file, extracted from
66057         modules/sys_time-tests.
66058         * modules/sys_time-tests: Depend on it.
66059         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66060         * modules/time-tests: Depend on it.
66061         * modules/unistd-c++-tests: New file, extracted from
66062         modules/unistd-tests.
66063         * modules/unistd-tests: Depend on it.
66064         * modules/wchar-c++-tests: New file, extracted from
66065         modules/wchar-tests.
66066         * modules/wchar-tests: Depend on it.
66067         * modules/wctype-c++-tests: New file, extracted from
66068         modules/wctype-tests.
66069         * modules/wctype-tests: Depend on it.
66070         Reported by Simon Josefsson.
66072 2010-03-28  Bruno Haible  <bruno@clisp.org>
66074         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66075         * gnulib-tool (func_exists_module): New function, extracted from
66076         func_verify_module.
66077         (func_verify_module): Use it.
66078         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66079         'foo' only if 'foo' exists.
66080         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66081         module.
66083 2010-03-28  Bruno Haible  <bruno@clisp.org>
66085         gnulib-tool: Add support for special categories of tests.
66086         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66087         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66088         (func_usage): Document them.
66089         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66090         inc_unportable_tests, inc_all_tests): New variables.
66091         (func_acceptable): Consider these variables.
66092         (func_modules_transitive_closure): Make it work when the 'Status' field
66093         consists of multiple words.
66094         (func_import): Store and restore the values of inc_cxx_tests,
66095         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66096         inc_all_tests in gnulib-comp.m4.
66097         (func_create_testdir): Set inc_all_tests to true.
66098         * doc/gnulib.texi (Extra tests modules): New section.
66099         Suggested by Jim Meyering.
66101 2010-03-28  Bruno Haible  <bruno@clisp.org>
66103         ansi-c++-opt: Allow turning off the C++ build by default.
66104         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66105         gl_CXX_CHOICE_DEFAULT_NO is defined.
66106         Requested by Eric Blake.
66108 2010-03-28  Bruno Haible  <bruno@clisp.org>
66110         unistd: Avoid #define replacements in C++ mode.
66111         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66112         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66113         setsockopt, shutdown, select): In C++, attach a warning to the function
66114         if possible, rather than #defining the symbol to a dysfunctional alias.
66115         Reported by John W. Eaton <jwe@gnu.org>.
66117 2010-03-28  Bruno Haible  <bruno@clisp.org>
66119         Fix link errors on mingw.
66120         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66121         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66122         $(LIBSOCKET).
66123         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66124         $(LIBSOCKET).
66126 2010-03-28  Bruno Haible  <bruno@clisp.org>
66127             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66129         lib-ignore: Determine different options for different compilers.
66130         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66131         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66132         Add comments.
66133         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66134         * NEWS: Mention the change.
66136 2010-03-27  Bruno Haible  <bruno@clisp.org>
66138         Remove unused GNULIB_XYZ macro definitions.
66139         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66140         * modules/fseek (configure.ac): Likewise.
66141         * modules/ioctl (configure.ac): Likewise.
66142         * modules/open (configure.ac): Likewise.
66143         * modules/stdlib-safer (configure.ac): Likewise.
66145 2010-03-27  Bruno Haible  <bruno@clisp.org>
66147         Add a remark about certain modules.
66148         * modules/malloc (Comment): New section.
66149         * modules/realloc (Comment): Likewise.
66150         * modules/sigpipe (Comment): Likewise.
66152 2010-03-27  Bruno Haible  <bruno@clisp.org>
66154         Resolve conflict between the two kinds of module indicators.
66155         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66156         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66157         * modules/canonicalize (configure.ac): Invoke
66158         gl_MODULE_INDICATOR_FOR_TESTS.
66159         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66160         GNULIB_XYZ.
66161         * tests/test-dirent-c++.cc: Likewise.
66162         * tests/test-dirent-safer.c: Likewise.
66163         * tests/test-dup2.c: Likewise.
66164         * tests/test-fchdir.c: Likewise.
66165         * tests/test-fcntl-h-c++.cc: Likewise.
66166         * tests/test-getopt.c: Likewise.
66167         * tests/test-getopt.h: Likewise.
66168         * tests/test-langinfo-c++.cc: Likewise.
66169         * tests/test-locale-c++.cc: Likewise.
66170         * tests/test-math-c++.cc: Likewise.
66171         * tests/test-pty-c++.cc: Likewise.
66172         * tests/test-search-c++.cc: Likewise.
66173         * tests/test-signal-c++.cc: Likewise.
66174         * tests/test-spawn-c++.cc: Likewise.
66175         * tests/test-stdio-c++.cc: Likewise.
66176         * tests/test-stdlib-c++.cc: Likewise.
66177         * tests/test-string-c++.cc: Likewise.
66178         * tests/test-sys_ioctl-c++.cc: Likewise.
66179         * tests/test-sys_select-c++.cc: Likewise.
66180         * tests/test-sys_socket-c++.cc: Likewise.
66181         * tests/test-sys_stat-c++.cc: Likewise.
66182         * tests/test-sys_time-c++.cc: Likewise.
66183         * tests/test-time-c++.cc: Likewise.
66184         * tests/test-unistd-c++.cc: Likewise.
66185         * tests/test-wchar-c++.cc: Likewise.
66186         * tests/uninorm/test-u8-nfc.c: Likewise.
66187         * tests/uninorm/test-u8-nfd.c: Likewise.
66188         * tests/uninorm/test-u8-nfkc.c: Likewise.
66189         * tests/uninorm/test-u8-nfkd.c: Likewise.
66190         * tests/uninorm/test-u16-nfc.c: Likewise.
66191         * tests/uninorm/test-u16-nfd.c: Likewise.
66192         * tests/uninorm/test-u16-nfkc.c: Likewise.
66193         * tests/uninorm/test-u16-nfkd.c: Likewise.
66194         * tests/uninorm/test-u32-nfc.c: Likewise.
66195         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66196         * tests/uninorm/test-u32-nfd.c: Likewise.
66197         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66198         * tests/uninorm/test-u32-nfkc.c: Likewise.
66199         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66200         * tests/uninorm/test-u32-nfkd.c: Likewise.
66201         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66202         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66204 2010-03-27  Bruno Haible  <bruno@clisp.org>
66206         Distinguish two kinds of module indicators.
66207         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66208         gl_MODULE_INDICATOR.
66209         (gl_MODULE_INDICATOR): New macro.
66210         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66211         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66212         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66213         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66214         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66215         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66216         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66217         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66218         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66219         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66220         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66221         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66222         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66224         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66226         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66227         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66228         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66229         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66230         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66231         * modules/cloexec (configure.ac): Likewise.
66232         * modules/getopt-gnu (configure.ac): Likewise.
66233         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66234         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66235         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66236         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66238 2010-03-27  Bruno Haible  <bruno@clisp.org>
66240         New module description field 'Comment'.
66241         * gnulib-tool: New option --extract-comment.
66242         (func_usage): Document it.
66243         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66244         (func_get_comment): New function.
66245         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66247 2010-03-27  Bruno Haible  <bruno@clisp.org>
66249         Addendum to 2010-02-07 commit.
66250         * gnulib-tool (func_usage): Document --extract-applicability option.
66252 2010-03-27  Bruno Haible  <bruno@clisp.org>
66254         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66255         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66256         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66257         rather than link errors.
66259 2010-03-27  Bruno Haible  <bruno@clisp.org>
66261         Avoid side effects from tests-related modules on the compilation of lib.
66262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66263         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66264         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66265         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66266         macro.
66267         (func_import): Define a witness macro. Assign it a value that depends
66268         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66269         tests-related modules.
66270         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66271         Reported by Jim Meyering.
66273 2010-03-27  Bruno Haible  <bruno@clisp.org>
66275         Factorize common .m4 code.
66276         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66277         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66278         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66279         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66280         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66281         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66282         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66283         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66284         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66285         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66286         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66287         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66288         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66289         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66290         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66291         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66292         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66293         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66295         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66296         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66298         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66300         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66301         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66302         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66303         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66304         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66305         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66306         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66307         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66309 2010-03-27  Bruno Haible  <bruno@clisp.org>
66311         Fix a compilation error on Cygwin with g++ >= 4.3.
66312         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66313         if it is undefined or if we alias it to chmod.
66314         (lstat): Don't warn about the use of this function if it is undefined
66315         or if we alias it to stat.
66316         Reported by Simon Josefsson.
66318 2010-03-27  Bruno Haible  <bruno@clisp.org>
66320         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66321         * modules/getlogin (configure.ac): Update.
66323         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66324         * modules/getlogin_r (configure.ac): Update.
66326         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66327         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66328         * modules/inet_ntop (configure.ac): Update.
66330         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66331         * modules/inet_pton (configure.ac): Update.
66333         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66334         * modules/mbslen (configure.ac): Update.
66336         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66337         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66338         * modules/forkpty (configure.ac): Update.
66339         * modules/openpty (configure.ac): Update.
66341 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66343         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66344         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66346 2010-03-25  Eric Blake  <eblake@redhat.com>
66348         maint: use pragma consistently across replacement headers
66349         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66350         * lib/dirent.in.h (system_header): Likewise.
66351         * lib/errno.in.h (system_header): Likewise.
66352         * lib/float.in.h (system_header): Likewise.
66353         * lib/getopt.in.h (system_header): Likewise.
66354         * lib/iconv.in.h (system_header): Likewise.
66355         * lib/inttypes.in.h (system_header): Likewise.
66356         * lib/langinfo.in.h (system_header): Likewise.
66357         * lib/locale.in.h (system_header): Likewise.
66358         * lib/math.in.h (system_header): Likewise.
66359         * lib/netdb.in.h (system_header): Likewise.
66360         * lib/netinet_in.in.h (system_header): Likewise.
66361         * lib/pty.in.h (system_header): Likewise.
66362         * lib/sched.in.h (system_header): Likewise.
66363         * lib/se-selinux.in.h (system_header): Likewise.
66364         * lib/search.in.h (system_header): Likewise.
66365         * lib/spawn.in.h (system_header): Likewise.
66366         * lib/stdarg.in.h (system_header): Likewise.
66367         * lib/stdint.in.h (system_header): Likewise.
66368         * lib/string.in.h (system_header): Likewise.
66369         * lib/strings.in.h (system_header): Likewise.
66370         * lib/sys_file.in.h (system_header): Likewise.
66371         * lib/sys_ioctl.in.h (system_header): Likewise.
66372         * lib/sys_socket.in.h (system_header): Likewise.
66373         * lib/sys_times.in.h (system_header): Likewise.
66374         * lib/sys_utsname.in.h (system_header): Likewise.
66375         * lib/sys_wait.in.h (system_header): Likewise.
66376         * lib/sysexits.in.h (system_header): Likewise.
66377         * lib/unistd.in.h (system_header): Likewise.
66378         * lib/wctype.in.h (system_header): Likewise.
66380         arpa/inet: fix mingw compilation warning
66381         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66382         Reported by Matthew Bolte.
66384 2010-03-25  Bruno Haible  <bruno@clisp.org>
66386         Avoid collision between gnulib wrapper and libintl wrapper.
66387         * lib/printf.c (printf): Don't define if a printf wrapper is already
66388         defined in intl/printf.c.
66389         Reported by Michel Boaventura <michel@michelboaventura.com>.
66391 2010-03-25  Bruno Haible  <bruno@clisp.org>
66393         Use ANSI C.
66394         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66396 2010-03-25  Bruno Haible  <bruno@clisp.org>
66398         Minor formatting changes.
66399         * lib/acosl.c: Insert space before function argument list.
66400         * lib/argz.c: Likewise.
66401         * lib/asinl.c: Likewise.
66402         * lib/expl.c: Likewise.
66403         * lib/gen-uni-tables.c: Likewise.
66404         * lib/gettext.h: Likewise.
66405         * lib/glthread/lock.h: Likewise.
66406         * lib/tanl.c: Likewise.
66407         * lib/uniname/uniname.c: Likewise.
66408         * tests/test-idpriv-drop.c: Likewise.
66409         * tests/test-idpriv-droptemp.c: Likewise.
66410         * tests/test-lock.c: Likewise.
66411         * tests/test-tls.c: Likewise.
66412         * lib/argp-help.c: Insert space before function-like macro argument
66413         list.
66414         * lib/memcmp.c: Likewise.
66415         * tests/test-base64.c: Likewise.
66416         * lib/localename.c: Insert space before sizeof's argument list.
66417         * lib/safe-alloc.h: Likewise.
66418         * lib/file-set.h: Insert space before macro argument list.
66419         * tests/test-argp.c: Likewise.
66420         * lib/argp-namefrob.h: Insert space before function parameter list.
66421         * lib/getaddrinfo.c: Likewise.
66422         * lib/netdb.in.h: Likewise.
66423         * lib/parse-duration.h: Likewise.
66424         * lib/parse-duration.c: Likewise.
66425         * lib/poll.c: Likewise.
66426         * lib/select.c: Likewise.
66427         * lib/trim.h: Likewise.
66428         * tests/test-usleep.c: Likewise.
66429         * lib/ldexpl.c: Insert space before function parameter list and before
66430         function argument list.
66431         * lib/logl.c: Likewise.
66432         * lib/sqrtl.c: Likewise.
66433         * lib/trim.c: Likewise.
66434         * lib/cosl.c: Use GNU style indentation. Insert space before function
66435         argument list.
66436         * lib/sinl.c: Likewise.
66437         * lib/tsearch.c: Insert space after 'for'.
66438         Reported by Jim Meyering.
66440 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66442         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66443         config header before grepping, as it's not present before
66444         autoreconf/configure are run.  Reported by Simon Josefsson.
66446 2010-03-23  Bruno Haible  <bruno@clisp.org>
66448         pt_chown: Make it work with automake < 1.11.
66449         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66450         Reported by Simon Josefsson.
66452 2010-03-23  Bruno Haible  <bruno@clisp.org>
66454         pt_chown: Don't depend on GPLed modules.
66455         * lib/pt_chown.c: Don't include idpriv.h.
66456         (main): Don't drop privileges.
66457         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66458         Reported by Simon Josefsson.
66460 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66462         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66463         suggestions from karl@freefriends.org (Karl Berry).
66465 2010-03-22  Eric Blake  <eblake@redhat.com>
66467         gethostname: further tweaks
66468         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66469         are overriding gethostname.
66470         Suggested by Bruno Haible.
66472 2010-03-21  Bruno Haible  <bruno@clisp.org>
66474         Fix comments.
66475         * lib/forkpty.c (rpl_forkpty): Fix comment.
66476         * lib/openpty.c (rpl_openpty): Likewise.
66477         Reported by Eric Blake.
66479 2010-03-22  Eric Blake  <eblake@redhat.com>
66481         gethostname: fix build on mingw
66482         * lib/unistd.in.h (includes): Work around fact that mingw
66483         <winsock2.h> re-includes <unistd.h>, by avoiding any
66484         redeclarations if we are being included by <winsock2.h>.
66485         Reported by Matthias Bolte.
66487 2010-03-21  Bruno Haible  <bruno@clisp.org>
66489         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66490         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66491         modifications.
66492         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66493         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66494         provide the replacement.
66495         * modules/forkpty (Depends-on): Add openpty, login_tty.
66496         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66497         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66498         * doc/glibc-functions/forkpty.texi: More supported platforms.
66499         * config/srclist.txt: Add forkpty.c (commented).
66501 2010-03-21  Bruno Haible  <bruno@clisp.org>
66503         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66504         (Makefile.am): Verify that PTY_LIB is defined.
66506         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66508 2010-03-21  Bruno Haible  <bruno@clisp.org>
66510         Tests for module 'login_tty'.
66511         * modules/login_tty-tests: New file.
66512         * tests/test-login_tty.c: New file.
66514         New module 'login_tty'.
66515         * lib/login_tty.c: New file.
66516         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66517         * modules/login_tty: New file.
66518         * doc/glibc-functions/login_tty.texi: Mention the new module.
66520 2010-03-21  Bruno Haible  <bruno@clisp.org>
66522         login_tty: Documentation.
66523         * doc/glibc-functions/login_tty.texi: New file.
66524         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66526 2010-03-21  Bruno Haible  <bruno@clisp.org>
66528         pty: Consistent macro naming.
66529         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66530         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66531         * modules/pty (configure.ac): Update.
66533 2010-03-21  Bruno Haible  <bruno@clisp.org>
66535         Tests for openpty: Make stricter.
66536         * tests/test-openpty.c (main): Add test of canonical processing and
66537         erase.
66538         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66540         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66541         * lib/openpty.c (openpty): New replacement function.
66542         * lib/pty.in.h: Include <termios.h>.
66543         (openpty): Update declaration. Add comments.
66544         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66545         is not declared, arrange to provide the replacement. Check for _getpty
66546         and posix_openpt.
66547         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66548         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66549         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66550         * modules/pty-tests (test_pty_c___LDADD): New variable.
66551         * doc/glibc-functions/openpty.texi: More supported platforms.
66553 2010-03-21  Bruno Haible  <bruno@clisp.org>
66555         setenv: Tweaks.
66556         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66557         the test program.
66558         * doc/posix-functions/setenv.texi: Update platforms list.
66560 2010-03-21  Bruno Haible  <bruno@clisp.org>
66562         New module 'unlockpt'.
66563         * lib/unlockpt.c: New file, from glibc with modifications.
66564         * m4/unlockpt.m4: New file.
66565         * modules/unlockpt: New file.
66566         * lib/stdlib.in.h (unlockpt): New declaration.
66567         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66568         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66569         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66570         HAVE_UNLOCKPT.
66571         * doc/posix-functions/unlockpt.texi: Mention the new module.
66572         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66573         * config/srclist.txt: Add unlockpt.c (commented).
66575 2010-03-21  Jim Meyering  <meyering@redhat.com>
66577         maint.mk: prohibit inclusion of "intprops.h" without use
66578         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66580 2010-03-21  Bruno Haible  <bruno@clisp.org>
66582         New module 'grantpt'.
66583         * lib/grantpt.c: New file, from glibc with modifications.
66584         * m4/grantpt.m4: New file.
66585         * modules/grantpt: New file.
66586         * lib/stdlib.in.h (grantpt): New declaration.
66587         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66588         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66589         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66590         HAVE_GRANTPT.
66591         * doc/posix-functions/grantpt.texi: Mention the new module.
66592         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66593         * config/srclist.txt: Add grantpt.c (commented).
66595 2010-03-21  Bruno Haible  <bruno@clisp.org>
66597         New module 'pt_chown'.
66598         * lib/pt_chown.c: New file, from glibc with modifications.
66599         * lib/pty-private.h: New file, from glibc with modifications.
66600         * modules/pt_chown: New file.
66601         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66603 2010-03-21  Bruno Haible  <bruno@clisp.org>
66605         Tests for module 'ptsname'.
66606         * modules/ptsname-tests: New file.
66607         * tests/test-ptsname.c: New file.
66609         New module 'ptsname'.
66610         * lib/ptsname.c: New file, from glibc with modifications.
66611         * m4/ptsname.m4: New file.
66612         * modules/ptsname: New file.
66613         * lib/stdlib.in.h (ptsname): New declaration.
66614         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66615         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66616         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66617         HAVE_PTSNAME.
66618         * doc/posix-functions/ptsname.texi: Mention the new module.
66619         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66620         * config/srclist.txt: Add ptsname.c (commented).
66622 2010-03-21  Bruno Haible  <bruno@clisp.org>
66624         Tests for module 'ttyname_r'.
66625         * modules/ttyname_r-tests: New file.
66626         * tests/test-ttyname_r.c: New file.
66628         New module 'ttyname_r'.
66629         * lib/ttyname_r.c: New file.
66630         * m4/ttyname_r.m4: New file.
66631         * modules/ttyname_r: New file.
66632         * lib/unistd.in.h (ttyname_r): New declaration.
66633         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66634         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66635         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66636         HAVE_TTYNAME_R.
66637         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66638         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66640 2010-03-20  Bruno Haible  <bruno@clisp.org>
66642         signal: Undefine macro definitions in C++ mode.
66643         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66644         sigfillset): Undefine macro definitions from the system header in C++
66645         mode.
66646         Reported by John W. Eaton <jwe@gnu.org>.
66648 2010-03-20  Bruno Haible  <bruno@clisp.org>
66650         Ensure no #include statements inside extern "C" { ... }.
66651         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66652         contain #include statements.
66653         * lib/time.in.h: Likewise.
66655 2010-03-20  Bruno Haible  <bruno@clisp.org>
66657         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66658         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66659         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66660         Reported by John W. Eaton <jwe@gnu.org>.
66662 2010-03-20  Bruno Haible  <bruno@clisp.org>
66664         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66665         Reported by Jim Meyering.
66667 2010-03-20  Bruno Haible  <bruno@clisp.org>
66669         pipe: Set errno upon failure.
66670         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66671         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66672         errno value in error message.
66674 2010-03-20  Bruno Haible  <bruno@clisp.org>
66675             Jim Meyering  <meyering@redhat.com>
66677         lchown: Avoid "unused variable" warning.
66678         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66680 2010-03-20  Bruno Haible  <bruno@clisp.org>
66682         Work around unlink() bug on MacOS X 10.5.6.
66683         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66684         attempting to unlink a parent directory.
66685         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66686         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66687         activate for the replacement function.
66688         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66690 2010-03-20  Bruno Haible  <bruno@clisp.org>
66692         Fix link errors on Solaris 8.
66693         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66694         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66696 2010-03-19  Jim Meyering  <meyering@redhat.com>
66698         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66699         The _LIBC implementation of build_range_exp correctly honors the
66700         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66701         However, the non-_LIBC implementation would ignore that syntax-bit
66702         flag and return REG_ERANGE unconditionally.
66703         This change makes it honor that flag.
66704         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66705         Make two pointer parameters "const".
66706         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66707         (parse_bracket_exp): Update caller.
66709         regex.m4: correct the reversed range endpoint ([b-a]) test
66710         * m4/regex.m4: When requiring that [b-a] evoke failure,
66711         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66712         test pass once again for x86-based systems.
66714 2010-03-19  Bruno Haible  <bruno@clisp.org>
66716         scandir: Fix link error on Solaris 8.
66717         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66718         macros.
66720 2010-03-19  Bruno Haible  <bruno@clisp.org>
66722         getusershell: Fix documentation.
66723         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
66724         module.
66725         * doc/glibc-functions/setusershell.texi: Likewise.
66727         getusershell: Provide declaration, missing on Solaris 9.
66728         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
66729         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
66730         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
66731         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
66732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66733         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
66734         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
66735         HAVE_GETUSERSHELL.
66736         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
66738 2010-03-19  Bruno Haible  <bruno@clisp.org>
66740         wctype: Provide iswblank function.
66741         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
66742         exists and is fine.
66743         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
66744         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
66745         * tests/test-wctype.c (main): Re-enable the iswblank tests.
66746         * doc/posix-functions/iswblank.texi: Update.
66748 2010-03-19  Bruno Haible  <bruno@clisp.org>
66750         Tests of module 'pty' in C++ mode.
66751         * modules/pty-tests: New file.
66752         * tests/test-pty-c++.cc: New file.
66753         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66755 2010-03-19  Eric Blake  <eblake@redhat.com>
66757         logb: fix documentation
66758         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
66759         1.5 declaration bug.
66761         forkpty, openpty: prefer glibc's const-safe prototype
66762         * lib/forkpty.c (rpl_forkpty): New file.
66763         * lib/openpty.c (rpl_openpty): Likewise.
66764         * modules/forkpty (Files): Distribute it.
66765         * modules/openpty (Files): Likewise.
66766         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
66767         check...
66768         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
66769         replacement for non-const BSD signature.
66770         * modules/pty (Makefile.am): Substitute witnesses.
66771         * lib/pty.in.h (forkpty, openpty): Declare replacements.
66772         * tests/test-forkpty.c: Update signature check.
66773         * tests/test-openpty.c: Likewise.
66774         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
66775         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66777         forkpty, openpty: split functions into new modules
66778         * modules/pty (Makefile.am): Substitute new witnesses.
66779         (Libraries): Move library detection...
66780         * modules/forkpty: ...into new module.
66781         * modules/openpty: Another new module.
66782         * modules/pty-tests: Rename and split...
66783         * modules/forkpty-tests: ...to this...
66784         * modules/openpty-tests: ...and this.
66785         * tests/test-pty.c: Rename and split...
66786         * tests/test-forkpty.c: ...to this...
66787         * tests/test-openpty.c: ...and this.
66788         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
66789         (gl_PTY): Split library searching...
66790         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
66791         (gl_FORKPTY, gl_OPENPTY): New macros.
66792         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
66793         * NEWS: Mention the split.
66794         * MODULES.html.sh (Misc): Document the modules.
66795         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
66796         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66798         pty: improve replacement header
66799         * lib/pty.in.h: New file.
66800         * modules/pty (Files): Ship it.
66801         (Makefile.am): Always build replacement.
66802         * m4/pty.m4: Rename...
66803         * m4/pty_h.m4: ...to this.
66804         (gl_PTY): Modernize setting of witness macros; update check of
66805         forkpty to take proper advantage of cache.
66806         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
66808         getopt: avoid compiler warning
66809         * lib/getopt.c (attribute_hidden): Remove unused macro.
66811 2010-03-18  Bruno Haible  <bruno@clisp.org>
66813         Fix link errors on Solaris 8.
66814         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
66815         * modules/search-tests (test_search_c___LDADD): Likewise.
66816         * modules/signal-tests (test_signal_c___LDADD): Likewise.
66817         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
66818         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
66819         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
66820         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
66821         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
66822         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
66824 2010-03-18  Bruno Haible  <bruno@clisp.org>
66826         Fix bug introduced on 2010-03-14.
66827         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
66828         (gl_SPAWN_H): Require it.
66829         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
66830         Reported by Simon Josefsson.
66832 2010-03-18  Bruno Haible  <bruno@clisp.org>
66834         Fix typo introduced on 2009-12-31.
66835         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
66836         posix_spawn_file_actions_adddup2.
66838 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
66839         and Eric Blake  <eblake@redhat.com>
66841         test-vc-list-files-git: make more robust
66842         * tests/test-vc-list-files-git.sh: Unset problematic environment
66843         variables.  Chain commands together.
66845 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
66847         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
66848         `AC_CHECK_DECL' invocation.
66850 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
66852         * lib/inttostr.c (inttostr): Make sure the invocation of verify
66853         appears before executable statements. Suggested by Petr Sumbera
66854         <Petr.Sumbera@Sun.COM>.
66856 2010-03-14  Bruno Haible  <bruno@clisp.org>
66858         * tests/test-flock.c (test_exclusive): Comment out a test that causes
66859         portability problems. Instead use a simpler test.
66860         (main): Check that invalid arguments are rejected only on Linux.
66862 2010-03-14  Bruno Haible  <bruno@clisp.org>
66864         Fix bug introduced on 2009-12-31.
66865         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
66866         gl_PREREQ_SYS_H_WINSOCK2 always.
66867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
66868         SYS_SOCKET_H variable.
66869         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
66870         Update comments.
66871         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
66872         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
66873         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
66874         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
66875         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
66877 2010-03-14  Bruno Haible  <bruno@clisp.org>
66879         Fix values returned by sinl, cosl.
66880         * lib/trigl.h: Add specification comments.
66881         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
66882         that combines the values from the precomputed table with the values of
66883         the Chebyshev polynomials.
66885 2010-03-14  Bruno Haible  <bruno@clisp.org>
66887         Fix compilation error when modules 'posix_spawn[p]' are not used.
66888         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
66889         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
66891 2010-03-14  Bruno Haible  <bruno@clisp.org>
66893         Fix compilation error on mingw when module 'time_r' is not used.
66894         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
66895         is 1.
66896         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
66897         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
66898         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
66899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
66901 2010-03-14  Bruno Haible  <bruno@clisp.org>
66903         Fix compilation error with Sun C.
66904         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
66905         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
66906         instead of GCC specific ULONG_LONG_MAX.
66907         * lib/xstrtoll.c: Likewise.
66908         * lib/xstrtoull.c: Likewise.
66910 2010-03-13  Bruno Haible  <bruno@clisp.org>
66912         Allow the user to disable C++ code and tests.
66913         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
66914         (gl_PROG_ANSI_CXX): Require it.
66916 2010-03-13  Bruno Haible  <bruno@clisp.org>
66918         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
66919         cases.
66921 2010-03-13  Bruno Haible  <bruno@clisp.org>
66923         Test that gnulib does not break the standard C++ headers.
66924         * tests/test-locale-c++2.cc: New file.
66925         * modules/locale-tests (Files): Add it.
66926         (Makefile.am): Compile it for test-locale-c++.
66927         * tests/test-math-c++2.cc: New file.
66928         * modules/math-tests (Files): Add it.
66929         (Makefile.am): Compile it for test-math-c++.
66930         * tests/test-signal-c++2.cc: New file.
66931         * modules/signal-tests (Files): Add it.
66932         (Makefile.am): Compile it for test-signal-c++.
66933         * tests/test-stdio-c++2.cc: New file.
66934         * modules/stdio-tests (Files): Add it.
66935         (Makefile.am): Compile it for test-stdio-c++.
66936         * tests/test-stdlib-c++2.cc: New file.
66937         * modules/stdlib-tests (Files): Add it.
66938         (Makefile.am): Compile it for test-stdlib-c++.
66939         * tests/test-string-c++2.cc: New file.
66940         * modules/string-tests (Files): Add it.
66941         (Makefile.am): Compile it for test-string-c++.
66942         * tests/test-time-c++2.cc: New file.
66943         * modules/time-tests (Files): Add it.
66944         (Makefile.am): Compile it for test-time-c++.
66945         Reported by John W. Eaton <jwe@gnu.org>.
66947 2010-03-13  Bruno Haible  <bruno@clisp.org>
66949         * gnulib-tool (func_usage): Clarify which options are available for
66950         --create-testdir and --create-megatestdir.
66952 2010-03-13  Bruno Haible  <bruno@clisp.org>
66954         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
66955         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
66956         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
66957         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
66958         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
66959         when appropriate.
66960         Reported by Jim Meyering.
66962 2010-03-12  Simon Josefsson  <simon@josefsson.org>
66964         * gnulib-tool (func_import): Explain origin of code.
66966 2010-03-12  Bruno Haible  <bruno@clisp.org>
66968         Fix problem with automake's definition of CXXLINK.
66969         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
66970         Reported by Simon Josefsson and Ludovic Courtès.
66972 2010-03-12  Bruno Haible  <bruno@clisp.org>
66974         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
66975         stable releases.
66977 2010-03-11  Bruno Haible  <bruno@clisp.org>
66979         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
66980         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
66981         whether the system provides one variant or multiple variants of the
66982         function.
66983         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
66984         C++ compilers.
66985         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
66986         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
66987         Reported by Jim Meyering.
66989 2010-03-09  Simon Josefsson  <simon@josefsson.org>
66991         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
66993 2010-03-08  Bruno Haible  <bruno@clisp.org>
66995         gnulib-tool: Add support for --libtool in --create-testdir.
66996         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
66997         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
66999 2010-03-08  Eric Blake  <eblake@redhat.com>
67001         gnulib-tool.texi: mention possibility of git submodule
67002         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67003         submodules.
67004         * doc/.gitignore: Ignore another generated file.
67006 2010-03-08  Karl Berry  <karl@gnu.org>
67008         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67009         of committing gnulib files while skipping others.
67011 2010-03-07  Bruno Haible  <bruno@clisp.org>
67013         Tests of module 'wctype' in C++ mode.
67014         * tests/test-wctype-c++.cc: New file.
67015         * modules/wctype-tests (Files): Add it and tests/signature.h.
67016         (Depends-on): Add ansi-c++-opt.
67017         (Makefile.am): Arrange to compile and run test-wctype-c++.
67019         Tests of module 'wchar' in C++ mode.
67020         * tests/test-wchar-c++.cc: New file.
67021         * modules/wchar-tests (Files): Add it and tests/signature.h.
67022         (Depends-on): Add ansi-c++-opt.
67023         (Makefile.am): Arrange to compile and run test-wchar-c++.
67024         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67025         gl_MODULE_INDICATOR.
67027         Tests of module 'unistd' in C++ mode.
67028         * tests/test-unistd-c++.cc: New file.
67029         * modules/unistd-tests (Files): Add it and tests/signature.h.
67030         (Depends-on): Add ansi-c++-opt.
67031         (Makefile.am): Arrange to compile and run test-unistd-c++.
67032         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67033         gl_MODULE_INDICATOR.
67035         Tests of module 'time' in C++ mode.
67036         * tests/test-time-c++.cc: New file.
67037         * modules/time-tests (Files): Add it and tests/signature.h.
67038         (Depends-on): Add ansi-c++-opt.
67039         (Makefile.am): Arrange to compile and run test-time-c++.
67040         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67042         Tests of module 'sys_time' in C++ mode.
67043         * tests/test-sys_time-c++.cc: New file.
67044         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67045         (Depends-on): Add ansi-c++-opt.
67046         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67047         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67048         gl_MODULE_INDICATOR.
67050         Tests of module 'sys_stat' in C++ mode.
67051         * tests/test-sys_stat-c++.cc: New file.
67052         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67053         (Depends-on): Add ansi-c++-opt.
67054         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67055         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67056         gl_MODULE_INDICATOR.
67058         Tests of module 'sys_socket' in C++ mode.
67059         * tests/test-sys_socket-c++.cc: New file.
67060         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67061         (Depends-on): Add ansi-c++-opt.
67062         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67063         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67064         gl_MODULE_INDICATOR.
67066         Tests of module 'sys_select' in C++ mode.
67067         * tests/test-sys_select-c++.cc: New file.
67068         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67069         (Depends-on): Add ansi-c++-opt.
67070         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67071         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67072         gl_MODULE_INDICATOR.
67074         Tests of module 'sys_ioctl' in C++ mode.
67075         * tests/test-sys_ioctl-c++.cc: New file.
67076         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67077         (Depends-on): Add ansi-c++-opt.
67078         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67079         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67080         gl_MODULE_INDICATOR.
67082         Tests of module 'string' in C++ mode.
67083         * tests/test-string-c++.cc: New file.
67084         * modules/string-tests (Files): Add it and tests/signature.h.
67085         (Depends-on): Add ansi-c++-opt.
67086         (Makefile.am): Arrange to compile and run test-string-c++.
67087         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67088         gl_MODULE_INDICATOR.
67090         Tests of module 'stdlib' in C++ mode.
67091         * tests/test-stdlib-c++.cc: New file.
67092         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67093         (Depends-on): Add ansi-c++-opt.
67094         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67095         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67096         gl_MODULE_INDICATOR.
67098         Tests of module 'stdio' in C++ mode.
67099         * tests/test-stdio-c++.cc: New file.
67100         * modules/stdio-tests (Files): Add it and tests/signature.h.
67101         (Depends-on): Add ansi-c++-opt.
67102         (Makefile.am): Arrange to compile and run test-stdio-c++.
67103         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67104         gl_MODULE_INDICATOR.
67106         Tests of module 'spawn' in C++ mode.
67107         * tests/test-spawn-c++.cc: New file.
67108         * modules/spawn-tests (Files): Add it and tests/signature.h.
67109         (Depends-on): Add ansi-c++-opt.
67110         (Makefile.am): Arrange to compile and run test-spawn-c++.
67111         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67112         gl_MODULE_INDICATOR.
67114         Tests of module 'signal' in C++ mode.
67115         * tests/test-signal-c++.cc: New file.
67116         * modules/signal-tests (Files): Add it and tests/signature.h.
67117         (Depends-on): Add ansi-c++-opt.
67118         (Makefile.am): Arrange to compile and run test-signal-c++.
67119         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67120         gl_MODULE_INDICATOR.
67122         Tests of module 'search' in C++ mode.
67123         * tests/test-search-c++.cc: New file.
67124         * modules/search-tests (Files): Add it and tests/signature.h.
67125         (Depends-on): Add ansi-c++-opt.
67126         (Makefile.am): Arrange to compile and run test-search-c++.
67127         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67128         gl_MODULE_INDICATOR.
67130         Tests of module 'math' in C++ mode.
67131         * tests/test-math-c++.cc: New file.
67132         * modules/math-tests (Files): Add it and tests/signature.h.
67133         (Depends-on): Add ansi-c++-opt.
67134         (Makefile.am): Arrange to compile and run test-math-c++.
67135         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67137         Tests of module 'locale' in C++ mode.
67138         * tests/test-locale-c++.cc: New file.
67139         * modules/locale-tests (Files): Add it and tests/signature.h.
67140         (Depends-on): Add ansi-c++-opt.
67141         (Makefile.am): Arrange to compile and run test-locale-c++.
67142         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67143         gl_MODULE_INDICATOR.
67145         Tests of module 'langinfo' in C++ mode.
67146         * tests/test-langinfo-c++.cc: New file.
67147         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67148         (Depends-on): Add ansi-c++-opt.
67149         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67150         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67151         gl_MODULE_INDICATOR.
67153         Tests of module 'iconv-h' in C++ mode.
67154         * tests/test-iconv-h-c++.cc: New file.
67155         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67156         (Depends-on): Add ansi-c++-opt.
67157         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67159         Tests of module 'glob' in C++ mode.
67160         * tests/test-glob-c++.cc: New file.
67161         * modules/glob-tests (Files): Add it.
67162         (Depends-on): Add ansi-c++-opt.
67163         (Makefile.am): Arrange to compile and run test-glob-c++.
67165         Tests of module 'fcntl-h' in C++ mode.
67166         * tests/test-fcntl-h-c++.cc: New file.
67167         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67168         (Depends-on): Add ansi-c++-opt.
67169         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67170         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67171         gl_MODULE_INDICATOR.
67173         Tests of module 'dirent' in C++ mode.
67174         * tests/test-dirent-c++.cc: New file.
67175         * modules/dirent-tests (Files): Add it and tests/signature.h.
67176         (Depends-on): Add ansi-c++-opt.
67177         (Makefile.am): Arrange to compile and run test-dirent-c++.
67178         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67179         gl_MODULE_INDICATOR.
67181         New module 'ansi-c++-opt'.
67182         * modules/ansi-c++-opt: New file.
67183         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67185         Document C++ namespace mode.
67186         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67188         wctype: Avoid #define replacements in C++ mode.
67189         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67190         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67191         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67192         In C++, define a namespaced alias symbol.
67193         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67194         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67195         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67196         rule.
67198         wchar: Avoid #define replacements in C++ mode.
67199         * lib/wchar.in.h: Include c++defs.h.
67200         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67201         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67202         symbol.
67203         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67204         * modules/wchar (Depends-on): Add c++defs.
67205         (Makefile.am): Update wchar.h rule.
67207         unistd: Avoid #define replacements in C++ mode.
67208         * lib/unistd.in.h: Include c++defs.h.
67209         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67210         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67211         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67212         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67213         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67214         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67215         symbol.
67216         (environ): Update.
67217         * modules/unistd (Depends-on): Add c++defs.
67218         (Makefile.am): Update unistd.h rule.
67220         time: Avoid #define replacements in C++ mode.
67221         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67222         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67223         define a namespaced alias symbol.
67224         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67225         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67226         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67227         * modules/time (Depends-on): Add c++defs, warn-on-use.
67228         (Makefile.am): Update time.h rule.
67229         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67230         * modules/nanosleep (configure.ac): Likewise.
67231         * modules/strptime (configure.ac): Likewise.
67232         * modules/timegm (configure.ac): Likewise.
67234         sys_time: Avoid #define replacements in C++ mode.
67235         * lib/sys_time.in.h: Include c++defs.h.
67236         (gettimeofday): In C++, define a namespaced alias symbol.
67237         * modules/sys_time (Depends-on): Add c++defs.
67238         (Makefile.am): Update sys/time.h rule.
67240         sys_stat: Avoid #define replacements in C++ mode.
67241         * lib/sys_stat.in.h: Include c++defs.h.
67242         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67243         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67244         namespaced alias symbol.
67245         In C++, define a namespaced alias symbol.
67246         * modules/sys_stat (Depends-on): Add c++defs.
67247         (Makefile.am): Update sys/stat.h rule.
67249         sys_socket: Avoid #define replacements in C++ mode.
67250         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67251         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67252         definitions also when the system has a <sys/socket.h>.
67253         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67254         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67255         In C++, define a namespaced alias symbol.
67256         * modules/sys_socket (Depends-on): Add c++defs.
67257         (Makefile.am): Update sys/socket.h rule.
67259         sys_select: Avoid #define replacements in C++ mode.
67260         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67261         definitions also when the system has a <sys/select.h>.
67262         (select): In C++, define a namespaced alias symbol.
67263         * modules/sys_select (Depends-on): Add c++defs.
67264         (Makefile.am): Update sys/select.h rule.
67266         sys_ioctl: Avoid #define replacements in C++ mode.
67267         * lib/sys_ioctl.in.h: Include c++defs.h.
67268         (ioctl): In C++, define a namespaced alias symbol.
67269         * modules/sys_ioctl (Depends-on): Add c++defs.
67270         (Makefile.am): Update sys/ioctl.h rule.
67272         string: Avoid #define replacements in C++ mode.
67273         * lib/string.in.h: Include c++defs.h.
67274         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67275         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67276         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67277         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67278         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67279         * modules/string (Depends-on): Add c++defs.
67280         (Makefile.am): Update string.h rule.
67282         stdlib: Avoid #define replacements in C++ mode.
67283         * lib/stdlib.in.h: Include c++defs.h.
67284         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67285         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67286         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67287         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67288         symbol.
67289         * modules/stdlib (Depends-on): Add c++defs.
67290         (Makefile.am): Update stdlib.h rule.
67292         stdio: Avoid #define replacements in C++ mode.
67293         * lib/stdio.in.h: Include c++defs.h.
67294         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67295         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67296         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67297         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67298         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67299         namespaced alias symbol.
67300         * modules/stdio (Depends-on): Add c++defs.
67301         (Makefile.am): Update stdio.h rule.
67303         spawn: Avoid #define replacements in C++ mode.
67304         * lib/spawn.in.h: Include c++defs.h.
67305         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67306         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67307         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67308         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67309         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67310         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67311         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67312         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67313         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67314         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67315         In C++, define a namespaced alias symbol.
67316         * modules/spawn (Depends-on): Add c++defs.
67317         (Makefile.am): Update spawn.h rule.
67319         signal: Avoid #define replacements in C++ mode.
67320         * lib/signal.in.h: Include c++defs.h.
67321         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67322         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67323         namespaced alias symbol.
67324         * modules/signal (Depends-on): Add c++defs.
67325         (Makefile.am): Update signal.h rule.
67327         search: Avoid #define replacements in C++ mode.
67328         * lib/search.in.h: Include c++defs.h.
67329         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67330         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67331         symbol.
67332         * modules/search (Depends-on): Add c++defs.
67333         (Makefile.am): Update search.h rule.
67335         math: Avoid #define replacements in C++ mode.
67336         * lib/math.in.h: Include c++defs.h.
67337         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67338         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67339         trunc, truncl): In C++, define a namespaced alias symbol.
67340         * modules/math (Depends-on): Add c++defs.
67341         (Makefile.am): Update math.h rule.
67343         locale: Avoid #define replacements in C++ mode.
67344         * lib/locale.in.h: Include c++defs.h.
67345         (duplocale): In C++, define a namespaced alias symbol.
67346         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67347         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67348         * modules/locale (Depends-on): Add c++defs.
67349         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67351         langinfo: Avoid #define replacements in C++ mode.
67352         * lib/langinfo.in.h: Include c++defs.h.
67353         (nl_langinfo): In C++, define a namespaced alias symbol.
67354         * modules/langinfo (Depends-on): Add c++defs.
67355         (Makefile.am): Update langinfo.h rule.
67357         iconv-h: Avoid #define replacements in C++ mode.
67358         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67359         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67360         symbol.
67361         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67362         whenever iconv is present.
67363         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67364         (Makefile.am): Update iconv.h rule.
67366         glob: Avoid #define replacements in C++ mode.
67367         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67368         (_gl_glob_errfunc_fn): New type.
67369         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67370         symbol.
67371         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67372         (Makefile.am): Update glob.h rule.
67374         fcntl-h: Avoid #define replacements in C++ mode.
67375         * lib/fcntl.in.h: Include c++defs.h.
67376         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67377         * modules/fcntl-h (Depends-on): Add c++defs.
67378         (Makefile.am): Update fcntl.h rule.
67380         dirent: Avoid #define replacements in C++ mode.
67381         * lib/dirent.in.h: Include c++defs.h.
67382         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67383         namespaced alias symbol.
67384         (dirfd): Update declaration.
67385         * modules/dirent (Depends-on): Add c++defs.
67386         (Makefile.am): Update dirent.h rule.
67388         ctype: Make it usable in C++ code.
67389         * lib/ctype.in.h: Include c++defs.h.
67390         (isblank): Declare as extern "C".
67391         * modules/ctype (Depends-on): Add c++defs.
67392         (Makefile.am): Update ctype.h rule.
67394         New module 'c++defs'.
67395         * modules/c++defs: New file.
67396         * build-aux/c++defs.h: New file.
67397         Reported by John W. Eaton <jwe@gnu.org>.
67399 2010-03-07  Bruno Haible  <bruno@clisp.org>
67401         logb: Provide missing declaration for Cygwin.
67402         * lib/math.in.h (logb): New declaration.
67403         * m4/logb.m4: New file.
67404         * modules/logb (Files): Add m4/logb.m4.
67405         (Depends-on): Add math.
67406         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67407         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67409         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67410         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67412 2010-03-07  Bruno Haible  <bruno@clisp.org>
67414         Fix test-cond link error.
67415         * tests/test-cond.c: Include <stdio.h>.
67417 2010-03-07  Bruno Haible  <bruno@clisp.org>
67419         Fix test-dirent-safer link error.
67420         * modules/dirent-safer-tests (Makefile.am): Define
67421         test_dirent_safer_LDADD.
67423 2010-03-07  Bruno Haible  <bruno@clisp.org>
67425         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67426         among default module list.
67428 2010-03-07  Bruno Haible  <bruno@clisp.org>
67430         Fix link error on platforms with GNU libiconv.
67431         * modules/unistr/u8-strcoll-tests (Makefile): Define
67432         test_u8_strcoll_LDADD.
67433         * modules/unistr/u16-strcoll-tests (Makefile): Define
67434         test_u16_strcoll_LDADD.
67435         * modules/unistr/u32-strcoll-tests (Makefile): Define
67436         test_u32_strcoll_LDADD.
67438 2010-03-07  Bruno Haible  <bruno@clisp.org>
67440         Use POSIX declarations for socket functions.
67441         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67442         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67443         rpl_sendto): Change declaration to match POSIX.
67444         * lib/connect.c (rpl_connect): Likewise.
67445         * lib/accept.c (rpl_accept): Likewise.
67446         * lib/bind.c (rpl_bind): Likewise.
67447         * lib/getpeername.c (rpl_getpeername): Likewise.
67448         * lib/getsockname.c (rpl_getsockname): Likewise.
67449         * lib/recv.c (rpl_recv): Likewise.
67450         * lib/send.c (rpl_send): Likewise.
67451         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67452         * lib/sendto.c (rpl_sendto): Likewise.
67454 2010-03-06  Bruno Haible  <bruno@clisp.org>
67456         Clarify access, euidaccess, faccessat.
67457         * doc/posix-functions/faccessat.texi: Mention security problem under
67458         "Other problems", not "Portability problems".
67459         * doc/posix-functions/access.texi: Likewise. Mention a related security
67460         problem.
67461         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67462         * lib/euidaccess.c: Add comments about platforms.
67463         * lib/unistd.in.h (access, euidaccess): Add warnings.
67465 2010-03-07  Bruno Haible  <bruno@clisp.org>
67467         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67468         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67469         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67470         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67471         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67472         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67473         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67474         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67475         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67476         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67477         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67478         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67479         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67480         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67481         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67482         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67483         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67484         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67485         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67486         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67487         Likewise.
67488         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67489         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67490         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67491         Likewise.
67492         * tests/test-spawn.c (main): Make it work when
67493         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67495 2010-03-07  Bruno Haible  <bruno@clisp.org>
67497         Fix incorrect Makefile.am generation in German locale.
67498         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67499         Execute sed command with character range in C locale.
67501 2010-03-06  Bruno Haible  <bruno@clisp.org>
67503         Tests for module 'iconv-h'.
67504         * modules/iconv-h-tests: New file.
67505         * tests/test-iconv-h.c: New file.
67507         New module 'iconv-h'.
67508         * modules/iconv-h: New file.
67509         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67510         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67511         (configure.ac): Remove gl_ICONV_H.
67512         (Makefile.am): Remove rule for iconv.h.
67514 2010-03-06  Bruno Haible  <bruno@clisp.org>
67516         More consistent naming of *.m4 files.
67517         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67518         * modules/wctype (Files): Update.
67520         More consistent naming of *.m4 files.
67521         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67522         * modules/wchar (Files): Update.
67524 2010-03-06  Jim Meyering  <meyering@redhat.com>
67526         euidaccess: relax license to LGPLv2+
67527         * modules/euidaccess (License): Relax to LGPLv2+.
67529 2010-03-06  Bruno Haible  <bruno@clisp.org>
67531         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67532         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67533         (Makefile.am): Augment lib_SOURCES instead.
67535 2010-03-04  Jim Meyering  <meyering@redhat.com>
67537         utime: remove obsolete module
67538         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67539         unnecessary for years, and has been marked as obsolete for 10 months.
67540         * modules/utime: Remove file.
67541         * lib/utime.c: Remove file.
67542         * m4/utime.m4: Remove file.
67543         * m4/utimes-null.m4: Remove file.
67544         * doc/posix-functions/utime.texi (utime): Remove reference to
67545         the module.  Move the sole "fixed by gnulib" item into the
67546         "problems not fixed by Gnulib" list.
67547         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67549 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67551         * modules/exit (License): Relax license to LGPLv2+.
67552         (Status): Mark as obsolete.
67553         * NEWS: Mention deprecated 'exit' module.
67554         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67555         of now obsolete 'exit'.
67557 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67559         fts-lgpl: remove unused module
67560         * modules/fts-lgpl: Remove.
67561         * MODULES.html.sh (func_all_modules): Adjust.
67562         * check-module (find_included_lib_files): Adjust.
67563         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67565 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67567         copy-acl: enhance Solaris ACL error handling
67568         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67569         * lib/set-mode-acl.c (qset_acl): Likewise.
67571 2010-03-02  Bruno Haible  <bruno@clisp.org>
67573         spawn: Don't override the system defined values on FreeBSD 8.
67574         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67575         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67576         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67577         if HAVE_POSIX_SPAWN is 1.
67578         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67580 2010-03-01  Bruno Haible  <bruno@clisp.org>
67582         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67583         regarding Automake.
67585 2010-02-25  Bruno Haible  <bruno@clisp.org>
67587         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67588         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67589         setting, not afterwards.
67590         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67592 2010-02-24  Eric Blake  <eblake@redhat.com>
67594         bootstrap, git-version-gen: use timestamp
67595         * build-aux/git-version-gen (scriptversion): Force UTC.
67596         * build-aux/bootstrap (scriptversion): New variable.
67598         bootstrap: allow older git
67599         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67600         older than 1.6.4.  Requested by the libvirt project.
67602 2010-02-23  Eric Blake  <eblake@redhat.com>
67604         warn-on-use: work with old autoconf
67605         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67606         AS_VAR semantics of autoconf 2.60.
67607         Reported by Bruno Haible.
67609         bootstrap: improve some comments
67610         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67611         clarification comments.
67613         gettimeofday: provide correct function
67614         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67615         when replacement is declared, otherwise provide gettimeofday.
67616         Reported by Michael Goffioul.
67618 2010-02-23  Jim Meyering  <meyering@redhat.com>
67620         lib-ignore: relax license to "unlimited", not LGPLv2+
67621         * modules/lib-ignore (License): Relax to "unlimited".
67623 2010-02-23  Jim Meyering  <meyering@redhat.com>
67625         lib-ignore: relax license to LGPLv2+
67626         * modules/lib-ignore (License): Relax to LGPLv2+.
67628 2010-02-22  Eric Blake  <eblake@redhat.com>
67630         lseek: avoid bash 3.2 broken pipe bug
67631         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67632         warning from bash 3.2.
67633         Reported by Ben Pfaff, with analysis from Bruno Haible.
67635         bootstrap: support non-FSF copyright holder
67636         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67637         bootstrap.conf override of COPYRIGHT_HOLDER.
67638         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67640         bootstrap: interoperate with gettext 0.14.1
67641         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67643         bootstrap: allow for alternate submodule location
67644         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67645         hardcoding submodule location.
67646         (gnulib_mk): Allow direct use of Makefile.am.
67648         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67649         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67650         rather than reconfiguring where the submodule points.
67652         gettimeofday: restore support for platforms that lack function
67653         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67654         replacement if function is missing.
67655         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67656         * modules/sys_time (Makefile.am): Substitute it.
67657         * lib/sys_time.in.h (gettimeofday): Check it.
67658         Reported by Michael Goffioul.
67660 2010-02-21  Bruno Haible  <bruno@clisp.org>
67662         * lib/stdio.in.h (obstack_printf): Fix typo.
67664 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67666         vc-list-files: use bzr ls's -R option
67667         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67668         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67670 2010-02-21  Jim Meyering  <meyering@redhat.com>
67672         init.sh: fix EXEEXT shims to work also for names like test-prog
67673         * tests/init.sh: Re-exec a better shell, when needed.
67674         If the current shell lacks support for posix $(...), an init.sh-using
67675         test will now try to find a shell that supports that.  If EXEEXT is
67676         nonempty, we also require support for hyphen-in-alias-name and shell
67677         substitutions like ${var#glob}.  Failure to find such a shell results
67678         in a skipped test.
67680 2010-02-21  Bruno Haible  <bruno@clisp.org>
67682         Really work around "broken pipe" error message from bash 3.2.
67683         * gnulib-tool (func_reset_sigpipe): Remove function.
67684         (echo): In bash 3.2, define to a function that uses printf.
67685         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67687 2010-02-20  Bruno Haible  <bruno@clisp.org>
67689         Restore support for automake 1.9.6 with autoconf 2.61.
67690         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67691         Reported by James Youngman <jay@gnu.org>.
67693 2010-02-20  Bruno Haible  <bruno@clisp.org>
67695         Improve *printf warning condition.
67696         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67697         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67698         and the function is overridden due to SIGPIPE emulation.
67700 2010-02-20  Bruno Haible  <bruno@clisp.org>
67702         * lib/stdio.in.h: Tweak comments.
67704 2010-02-19  Bruno Haible  <bruno@clisp.org>
67706         Make it easier to find modules. New gnulib-tool option '--find'.
67707         * gnulib-tool: New option --find.
67708         (func_usage): Document it.
67709         (func_sanitize_modulelist): New function, extracted from
67710         func_all_modules.
67711         (func_all_modules): Invoke it.
67712         * doc/gnulib-tool.texi (Which modules?): New node.
67714 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67716         * lib/sys_select.in.h: Provide select replacement even if
67717         sys/select.h exists on a system, for Interix.
67719 2010-02-18  Jim Meyering  <meyering@redhat.com>
67721         init.sh: don't use $(...) just yet
67722         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
67723         to accommodate e.g., Solaris' /bin/sh.
67725 2010-02-17  Bruno Haible  <bruno@clisp.org>
67727         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
67728         Reported by Ludovic Courtès <ludo@gnu.org>.
67730 2010-02-16  Simon Josefsson  <simon@josefsson.org>
67732         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
67733         linking with -lintl.
67735 2010-02-17  Simon Josefsson  <simon@josefsson.org>
67737         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
67738         if not provided by the system's netdb.h.  Reported by
67739         ludo@gnu.org (Ludovic Courtès).
67741 2010-02-15  Jim Meyering  <meyering@redhat.com>
67743         init.sh: improve portability and efficiency
67744         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
67745         "dummy" in a for loop.
67746         Use '!', not '^' to select the complement of a character set used
67747         in a "case" statement.
67748         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
67749         Suggestions from Eric Blake.
67751         init.sh: automatically accommodate programs with the .exe suffix
67752         Automatically arrange for an invocation of "prog" to execute the
67753         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
67754         may use the simpler "prog", yet still work when built on a system
67755         that requires specifying the added suffix.
67756         Do this by constructing a function named "prog" that invokes
67757         "prog.exe" for each .exe file in selected directories.
67758         * tests/init.sh (find_exe_basenames_): New function.
67759         (create_exe_shim_functions_): New function.
67760         (path_prepend_): Use it.
67762         maint.mk: mark syntax-check sc_*.m rules as .PHONY
67763         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
67764         "make -t syntax-check" doesn't create a ton of sc_*.m files.
67766 2010-02-14  Jim Meyering  <meyering@redhat.com>
67768         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
67769         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
67770         (sc_prohibit_hash_pjw_without_use): New rule.
67772         maint.mk: allow the default upload destination dir to be overridden
67773         * top/maint.mk (upload_dest_dir_): Define with a default that
67774         preserves the status quo.
67775         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
67776         Reported by Peter Simons.
67778         maint.mk: prohibit inclusion of "hash.h" without_use
67779         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
67781 2010-02-10  Jim Meyering  <meyering@redhat.com>
67783         maint.mk: prohibit inclusion of "ignore-value.h" without_use
67784         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
67786 2010-02-09  Eric Blake  <ebb9@byu.net>
67787         and Bruno Haible  <bruno@clisp.org>
67789         obstack-printf-posix: ensure declaration
67790         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
67791         extracted from gl_FUNC_OBSTACK_PRINTF.
67792         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
67793         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67794         Likewise.
67795         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
67796         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
67797         0.
67799 2010-02-08  Bruno Haible  <bruno@clisp.org>
67801         gnulib-tool: Fix typo in 2010-02-07 commit.
67802         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
67803         Reported by Eric Blake.
67805 2010-02-07  Bruno Haible  <bruno@clisp.org>
67807         gnulib-tool: Fix up caching patches.
67808         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
67809         option --no-cache. Use associative arrays when supported by the shell.
67810         (sed_comments): New variable.
67811         (modcache): Renamed from do_cache.
67812         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
67813         abbreviate unnecessarily.
67814         (have_associative): New variable.
67815         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
67816         way also for ksh and zsh.
67817         (func_init_sed_convert_to_cache_statements): New function, extracted
67818         from func_cache_lookup_module. Add support for associative arrays.
67819         Don't set the c_MODULE_cached variable here. Ignore all lines before
67820         the first field header. Remove only the final newline, not all trailing
67821         newlines. Support empty fields correctly. Limit the use of 'eval' to
67822         assignments.
67823         (func_get_description, func_get_status, func_get_notice,
67824         func_get_applicability, func_get_filelist, func_get_dependencies,
67825         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
67826         func_get_automake_snippet, func_get_include_directive,
67827         func_get_link_directive, func_get_license, func_get_maintainer):
67828         Update documentation. List the unoptimized code first. Add support for
67829         associative arrays. Limit the use of 'eval' to assignments.
67830         (func_get_applicability): Undo stylistic pessimisations.
67831         (func_get_automake_snippet, func_get_include_directive): Reduce code
67832         duplication.
67833         (func_modules_transitive_closure, func_modules_add_dummy,
67834         func_modules_notice, func_modules_to_filelist, func_add_file,
67835         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
67836         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
67837         func_create_testdir, func_create_megatestdir): Update documentation.
67839 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67841         * gnulib-tool (func_cache_lookup_module): Store the module name
67842         belonging to the cache variable; error out if two different
67843         module names map to the same cache variable name.
67845 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67847         gnulib-tool: Make caching optional.
67848         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
67849         Update matching short versions of --no-changelog.
67850         (func_usage): Update.
67851         (sed_extract_cache_prog): Renamed from ...
67852         (sed_extract_prog): ... this; revert to old extraction script.
67853         (func_get_description, func_get_status)
67854         (func_get_notice, func_get_applicability, func_get_filelist)
67855         (func_get_dependencies, func_get_autoconf_early_snippet)
67856         (func_get_autoconf_snippet, func_get_automake_snippet)
67857         (func_get_include_directive, func_get_link_directive)
67858         (func_get_license, func_get_maintainer): If $do_cache is false,
67859         use old, non-caching extraction scripts.
67860         Suggestion by Bruno Haible.
67862 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67864         gnulib-tool: cache module metainformation.
67865         * gnulib-tool (sed_extract_prog): Match newline before each
67866         header, and rewrite header to a shell variable suffix.
67867         (func_cache_var, func_cache_lookup_module): New functions,
67868         to turn a module name into a cache variable prefix, and to
67869         look up and cache module metainformation.
67870         (func_get_description, func_get_status)
67871         (func_get_notice, func_get_applicability, func_get_filelist)
67872         (func_get_dependencies, func_get_autoconf_early_snippet)
67873         (func_get_autoconf_snippet, func_get_automake_snippet)
67874         (func_get_include_directive, func_get_link_directive)
67875         (func_get_license, func_get_maintainer): Use
67876         func_cache_lookup_module.
67878 2010-02-07  Bruno Haible  <bruno@clisp.org>
67880         fnctl: Fix missing dependency.
67881         * modules/fcntl (Depends-on): Add getdtablesize.
67882         Reported by John W. Eaton <jwe@gnu.org>.
67884 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67886         Argp: fix recognition of short alias options.
67888         * lib/argp-parse.c (convert_options): Fix improper use of
67889         `|' between character values.
67890         * tests/test-argp.c (group1_option): New alias option
67891         --read (-r).
67892         (group1_parser): Special handling for 'r'.
67893         (test15): New test case.
67894         (test_fun): Add test15.
67895         * tests/test-argp-2.sh: Update expected --help and --usage
67896         outputs.
67898 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67900         * tests/test-argp.c: Fix indentation.
67902 2010-02-04  Eric Blake  <ebb9@byu.net>
67904         gettimeofday: expose type of second argument
67905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
67906         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
67907         * tests/test-gettimeofday.c: Use it to silence warning.
67908         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
67909         the issue.
67911 2010-02-03  Jim Meyering  <meyering@redhat.com>
67913         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
67914         * lib/regcomp.c (TYPE_SIGNED): Define.
67915         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
67917         regcomp.c: avoid a new -Wshadow warning
67918         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
67920 2010-02-01  Jim Meyering  <meyering@redhat.com>
67922         removing useless parentheses in cpp #define directives
67923         For motivation, see commit c0221df4, "define STREQ(a,b)
67924         consistently, removing useless parentheses"
67925         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
67926         * lib/mountlist.c (MNT_IGNORE): Likewise.
67927         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
67929 2010-02-01  Eric Blake  <ebb9@byu.net>
67931         sys_time: use link-warning
67932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
67933         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
67934         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
67935         * modules/sys_time (Depends-on): Add warn-on-use.
67936         (Makefile.am): Always build replacement.
67937         (configure.ac): Update substitutions.
67938         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
67939         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
67940         bother with SYS_TIME_H.
67941         * modules/gettimeofday (configure.ac): Declare indicator.
67942         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
67943         in use.
67945         closein-tests: silence compiler warning
67946         * tests/test-closein.c (main): Ignore fread result.
67947         * modules/closein-tests (Depends-on): Add ignore-value.
67949         tests: silence warning about system return
67950         * tests/test-areadlink-with-size.c (main): Ignore system result.
67951         * tests/test-areadlink.c (main): Likewise.
67952         * tests/test-areadlinkat-with-size.c (main): Likewise.
67953         * tests/test-areadlinkat.c (main): Likewise.
67954         * tests/test-canonicalize-lgpl.c (main): Likewise.
67955         * tests/test-canonicalize.c (main): Likewise.
67956         * tests/test-chown.c (main): Likewise.
67957         * tests/test-fchownat.c (main): Likewise.
67958         * tests/test-fdutimensat.c (main): Likewise.
67959         * tests/test-fstatat.c (main): Likewise.
67960         * tests/test-futimens.c (main): Likewise.
67961         * tests/test-lchown.c (main): Likewise.
67962         * tests/test-link.c (main): Likewise.
67963         * tests/test-linkat.c (main): Likewise.
67964         * tests/test-lstat.c (main): Likewise.
67965         * tests/test-mkdir.c (main): Likewise.
67966         * tests/test-mkdirat.c (main): Likewise.
67967         * tests/test-mkfifo.c (main): Likewise.
67968         * tests/test-mkfifoat.c (main): Likewise.
67969         * tests/test-mknod.c (main): Likewise.
67970         * tests/test-readlink.c (main): Likewise.
67971         * tests/test-remove.c (main): Likewise.
67972         * tests/test-rename.c (main): Likewise.
67973         * tests/test-renameat.c (main): Likewise.
67974         * tests/test-rmdir.c (main): Likewise.
67975         * tests/test-symlink.c (main): Likewise.
67976         * tests/test-symlinkat.c (main): Likewise.
67977         * tests/test-unlink.c (main): Likewise.
67978         * tests/test-unlinkat.c (main): Likewise.
67979         * tests/test-utimens.c (main): Likewise.
67980         * tests/test-utimensat.c (main): Likewise.
67981         * modules/areadlink-tests (Depends-on): Add ignore-value.
67982         * modules/areadlink-with-size-tests (Depends-on): Likewise.
67983         * modules/areadlinkat-tests (Depends-on): Likewise.
67984         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
67985         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
67986         * modules/canonicalize-tests (Depends-on): Likewise.
67987         * modules/chown-tests (Depends-on): Likewise.
67988         * modules/fdutimensat-tests (Depends-on): Likewise.
67989         * modules/futimens-tests (Depends-on): Likewise.
67990         * modules/lchown-tests (Depends-on): Likewise.
67991         * modules/link-tests (Depends-on): Likewise.
67992         * modules/linkat-tests (Depends-on): Likewise.
67993         * modules/lstat-tests (Depends-on): Likewise.
67994         * modules/mkdir-tests (Depends-on): Likewise.
67995         * modules/mkfifo-tests (Depends-on): Likewise.
67996         * modules/mkfifoat-tests (Depends-on): Likewise.
67997         * modules/mknod-tests (Depends-on): Likewise.
67998         * modules/openat-tests (Depends-on): Likewise.
67999         * modules/readlink-tests (Depends-on): Likewise.
68000         * modules/remove-tests (Depends-on): Likewise.
68001         * modules/rename-tests (Depends-on): Likewise.
68002         * modules/renameat-tests (Depends-on): Likewise.
68003         * modules/rmdir-tests (Depends-on): Likewise.
68004         * modules/symlink-tests (Depends-on): Likewise.
68005         * modules/symlinkat-tests (Depends-on): Likewise.
68006         * modules/unlink-tests (Depends-on): Likewise.
68007         * modules/utimens-tests (Depends-on): Likewise.
68008         * modules/utimensat-tests (Depends-on): Likewise.
68010 2010-01-31  Bruno Haible  <bruno@clisp.org>
68012         Perform the same test for many <math.h> functions.
68013         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68014         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68015         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68016         of gl_MATHFUNC.
68017         * modules/acos (configure.ac): Likewise.
68018         * modules/asin (configure.ac): Likewise.
68019         * modules/atan (configure.ac): Likewise.
68020         * modules/atan2 (configure.ac): Likewise.
68021         * modules/cbrt (configure.ac): Likewise.
68022         * modules/copysign (configure.ac): Likewise.
68023         * modules/cos (configure.ac): Likewise.
68024         * modules/cosh (configure.ac): Likewise.
68025         * modules/erf (configure.ac): Likewise.
68026         * modules/erfc (configure.ac): Likewise.
68027         * modules/exp (configure.ac): Likewise.
68028         * modules/fmod (configure.ac): Likewise.
68029         * modules/hypot (configure.ac): Likewise.
68030         * modules/j0 (configure.ac): Likewise.
68031         * modules/j1 (configure.ac): Likewise.
68032         * modules/jn (configure.ac): Likewise.
68033         * modules/lgamma (configure.ac): Likewise.
68034         * modules/log (configure.ac): Likewise.
68035         * modules/log10 (configure.ac): Likewise.
68036         * modules/log1p (configure.ac): Likewise.
68037         * modules/pow (configure.ac): Likewise.
68038         * modules/remainder (configure.ac): Likewise.
68039         * modules/sin (configure.ac): Likewise.
68040         * modules/sinh (configure.ac): Likewise.
68041         * modules/tan (configure.ac): Likewise.
68042         * modules/tanh (configure.ac): Likewise.
68043         * modules/y0 (configure.ac): Likewise.
68044         * modules/y1 (configure.ac): Likewise.
68045         * modules/yn (configure.ac): Likewise.
68046         Suggested by Paolo Bonzini.
68048 2010-01-31  Bruno Haible  <bruno@clisp.org>
68050         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68052 2010-01-31  Bruno Haible  <bruno@clisp.org>
68054         Work around getdelim() bug on FreeBSD 8.0.
68055         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68056         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68057         not work.
68058         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68059         is 1.
68060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68061         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68062         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68063         a non-zero size.
68064         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68066 2010-01-31  Bruno Haible  <bruno@clisp.org>
68068         Work around getline() bug on FreeBSD 8.0.
68069         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68070         and a non-zero size.
68071         * tests/test-getline.c (main): Likewise.
68072         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68073         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68075 2010-01-28  Eric Blake  <ebb9@byu.net>
68077         regex: fix build failure
68078         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68079         platforms.
68081 2010-01-28  Jim Meyering  <meyering@redhat.com>
68083         regex: do not ignore memory allocation failure
68084         * lib/regex_internal.c (create_cd_newstate): Detect
68085         re_node_set_init_copy failure.   Extracted from glibc commit
68086         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68088         regex: sync more white-space changes from libc
68089         * lib/regex_internal.c: White-space only changes.
68090         * lib/regexec.c: Likewise.
68092         regex: add many uses of __attribute_warn_unused_result__
68093         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68094         * lib/regexec.c: Likewise.
68095         Extracted from a messy glibc commit.
68097         regcomp.c: spelling and merge-artifact from glibc
68098         * lib/regcomp.c: Merge remainder of glibc's
68099         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68101         regcomp.c: sync white-space changes from glibc
68102         * lib/regcomp.c: Merge to accommodate white space
68103         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68105         regcomp.c: do not ignore internal return values
68106         * lib/regcomp.c: Do not ignore internal return values.
68107         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68108         but without its white-space changes and spelling fixes.
68110         regex_internal.h: define __attribute_warn_unused_result__
68111         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68113         maint: add a syntax-check rule to check for vulnerable Makefile.in
68114         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68116 2010-01-27  Jim Meyering  <meyering@redhat.com>
68118         ncftpput-ftp: clean up spaces
68119         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68120         Remove trailing blanks.
68122 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68124         * build-aux/git-version-gen: Fix copyright statement.
68125         * build-aux/gnupload: Likewise.
68126         * tests/test-arcfour.c: Likewise.
68127         * tests/test-arctwo.c: Likewise.
68128         * tests/test-count-one-bits.c: Likewise.
68129         * tests/test-crc.c: Likewise.
68130         * tests/test-des.c: Likewise.
68131         * tests/test-gc-arcfour.c: Likewise.
68132         * tests/test-gc-arctwo.c: Likewise.
68133         * tests/test-gc-des.c: Likewise.
68134         * tests/test-gc-hmac-md5.c: Likewise.
68135         * tests/test-gc-hmac-sha1.c: Likewise.
68136         * tests/test-gc-md2.c: Likewise.
68137         * tests/test-gc-md4.c: Likewise.
68138         * tests/test-gc-md5.c: Likewise.
68139         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68140         * tests/test-gc-rijndael.c: Likewise.
68141         * tests/test-gc-sha1.c: Likewise.
68142         * tests/test-gc.c: Likewise.
68143         * tests/test-gethostname.c: Likewise.
68144         * tests/test-gettimeofday.c: Likewise.
68145         * tests/test-hash.c: Likewise.
68146         * tests/test-hmac-md5.c: Likewise.
68147         * tests/test-hmac-sha1.c: Likewise.
68148         * tests/test-md2.c: Likewise.
68149         * tests/test-md4.c: Likewise.
68150         * tests/test-md5.c: Likewise.
68151         * tests/test-memchr.c: Likewise.
68152         * tests/test-memchr2.c: Likewise.
68153         * tests/test-memcmp.c: Likewise.
68154         * tests/test-memmem.c: Likewise.
68155         * tests/test-memrchr.c: Likewise.
68156         * tests/test-rawmemchr.c: Likewise.
68157         * tests/test-read-file.c: Likewise.
68158         * tests/test-rijndael.c: Likewise.
68159         * tests/test-sockets.c: Likewise.
68160         * tests/test-strchrnul.c: Likewise.
68161         * tests/test-strstr.c: Likewise.
68162         * tests/test-strtod.c: Likewise.
68163         * build-aux/ncftpput-ftp: Likewise.
68165 2010-01-26  Eric Blake  <ebb9@byu.net>
68167         ignore-value: update recommended header name
68168         * modules/ignore-value (Include): Only use <> for headers that
68169         exist in glibc.
68171 2010-01-26  Jim Meyering  <meyering@redhat.com>
68173         test-userspec.c: avoid compiler warnings
68174         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68175         and "initialization discards qualifiers..." warnings.
68176         Put the first "uid" in its own scope, and make char* members "const".
68178 2010-01-25  Bruno Haible  <bruno@clisp.org>
68180         gnulib-tool: Make warning diagnostics consistent.
68181         * gnulib-tool (func_warning): New function.
68182         Use it everywhere where gnulib-tool produces output to stderr and it is
68183         not a fatal error.
68185 2010-01-25  Bruno Haible  <bruno@clisp.org>
68187         Fix test dependencies.
68188         * modules/xstrtol-tests (Depends-on): Add inttypes.
68189         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68191 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68193         syntax-check: detect incorrect boolean macro values in config.h
68194         * modules/maintainer-makefile (configure.ac): Parameterize the location
68195         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68196         The logic is from Eric Blake and the location indicated by Jim Meyering.
68197         Note the more natural CONFIG_HEADER name is prohibited by automake
68198         for backwards compatibility reasons.
68199         * top/maint.mk (sc_Wundef_boolean): New rule.
68201 2010-01-25  Jim Meyering  <meyering@redhat.com>
68203         bootstrap: detect MacOS 10.6's shasum, too
68204         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68205         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68207 2010-01-23  Jim Meyering  <meyering@redhat.com>
68209         xstrtoll: new module
68210         * modules/xstrtoll: New file.
68211         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68212         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68213         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68214         ./configure fails if you use this module and lack "long long".
68215         * modules/xstrtoll-tests: New module.
68216         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68217         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68218         new init.sh-based test framework.
68220 2010-01-24  Bruno Haible  <bruno@clisp.org>
68222         Tests for module 'yn'.
68223         * modules/yn-tests: New file.
68224         * tests/test-yn.c: New file.
68226         Tests for module 'y1'.
68227         * modules/y1-tests: New file.
68228         * tests/test-y1.c: New file.
68230         Tests for module 'y0'.
68231         * modules/y0-tests: New file.
68232         * tests/test-y0.c: New file.
68234         Tests for module 'tanh'.
68235         * modules/tanh-tests: New file.
68236         * tests/test-tanh.c: New file.
68238         Tests for module 'tan'.
68239         * modules/tan-tests: New file.
68240         * tests/test-tan.c: New file.
68242         Tests for module 'sqrt'.
68243         * modules/sqrt-tests: New file.
68244         * tests/test-sqrt.c: New file.
68246         Tests for module 'sinh'.
68247         * modules/sinh-tests: New file.
68248         * tests/test-sinh.c: New file.
68250         Tests for module 'sin'.
68251         * modules/sin-tests: New file.
68252         * tests/test-sin.c: New file.
68254         Tests for module 'rint'.
68255         * modules/rint-tests: New file.
68256         * tests/test-rint.c: New file.
68258         Tests for module 'remainder'.
68259         * modules/remainder-tests: New file.
68260         * tests/test-remainder.c: New file.
68262         Tests for module 'pow'.
68263         * modules/pow-tests: New file.
68264         * tests/test-pow.c: New file.
68266         Tests for module 'nextafter'.
68267         * modules/nextafter-tests: New file.
68268         * tests/test-nextafter.c: New file.
68270         Tests for module 'modf'.
68271         * modules/modf-tests: New file.
68272         * tests/test-modf.c: New file.
68274         Tests for module 'logb'.
68275         * modules/logb-tests: New file.
68276         * tests/test-logb.c: New file.
68278         Tests for module 'log1p'.
68279         * modules/log1p-tests: New file.
68280         * tests/test-log1p.c: New file.
68282         Tests for module 'log10'.
68283         * modules/log10-tests: New file.
68284         * tests/test-log10.c: New file.
68286         Tests for module 'log'.
68287         * modules/log-tests: New file.
68288         * tests/test-log.c: New file.
68290         Tests for module 'lgamma'.
68291         * modules/lgamma-tests: New file.
68292         * tests/test-lgamma.c: New file.
68294         Tests for module 'ldexp'.
68295         * modules/ldexp-tests: New file.
68296         * tests/test-ldexp.c: New file.
68298         Tests for module 'jn'.
68299         * modules/jn-tests: New file.
68300         * tests/test-jn.c: New file.
68302         Tests for module 'j1'.
68303         * modules/j1-tests: New file.
68304         * tests/test-j1.c: New file.
68306         Tests for module 'j0'.
68307         * modules/j0-tests: New file.
68308         * tests/test-j0.c: New file.
68310         Tests for module 'hypot'.
68311         * modules/hypot-tests: New file.
68312         * tests/test-hypot.c: New file.
68314         Tests for module 'fmod'.
68315         * modules/fmod-tests: New file.
68316         * tests/test-fmod.c: New file.
68318         Tests for module 'fabs'.
68319         * modules/fabs-tests: New file.
68320         * tests/test-fabs.c: New file.
68322         Tests for module 'exp'.
68323         * modules/exp-tests: New file.
68324         * tests/test-exp.c: New file.
68326         Tests for module 'erfc'.
68327         * modules/erfc-tests: New file.
68328         * tests/test-erfc.c: New file.
68330         Tests for module 'erf'.
68331         * modules/erf-tests: New file.
68332         * tests/test-erf.c: New file.
68334         Tests for module 'cosh'.
68335         * modules/cosh-tests: New file.
68336         * tests/test-cosh.c: New file.
68338         Tests for module 'cos'.
68339         * modules/cos-tests: New file.
68340         * tests/test-cos.c: New file.
68342         Tests for module 'copysign'.
68343         * modules/copysign-tests: New file.
68344         * tests/test-copysign.c: New file.
68346         Tests for module 'cbrt'.
68347         * modules/cbrt-tests: New file.
68348         * tests/test-cbrt.c: New file.
68350         Tests for module 'atan2'.
68351         * modules/atan2-tests: New file.
68352         * tests/test-atan2.c: New file.
68354         Tests for module 'atan'.
68355         * modules/atan-tests: New file.
68356         * tests/test-atan.c: New file.
68358         Tests for module 'asin'.
68359         * modules/asin-tests: New file.
68360         * tests/test-asin.c: New file.
68362         Tests for module 'acos'.
68363         * modules/acos-tests: New file.
68364         * tests/test-acos.c: New file.
68366 2010-01-24  Bruno Haible  <bruno@clisp.org>
68368         Fix tests for common <math.h> functions.
68369         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68370         code snippet that references the function pointer, rather than merely
68371         calling the function. Substitute the FUNC_LIBM variable.
68372         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68373         * modules/acos (configure.ac): Likewise.
68374         * modules/asin (configure.ac): Likewise.
68375         * modules/atan (configure.ac): Likewise.
68376         * modules/atan2 (configure.ac): Likewise.
68377         * modules/cbrt (configure.ac): Likewise.
68378         * modules/copysign (configure.ac): Likewise.
68379         * modules/cos (configure.ac): Likewise.
68380         * modules/cosh (configure.ac): Likewise.
68381         * modules/erf (configure.ac): Likewise.
68382         * modules/erfc (configure.ac): Likewise.
68383         * modules/exp (configure.ac): Likewise.
68384         * modules/fabs (configure.ac): Likewise.
68385         * modules/fmod (configure.ac): Likewise.
68386         * modules/hypot (configure.ac): Likewise.
68387         * modules/j0 (configure.ac): Likewise.
68388         * modules/j1 (configure.ac): Likewise.
68389         * modules/jn (configure.ac): Likewise.
68390         * modules/ldexp (configure.ac): Likewise.
68391         * modules/lgamma (configure.ac): Likewise.
68392         * modules/log (configure.ac): Likewise.
68393         * modules/log10 (configure.ac): Likewise.
68394         * modules/log1p (configure.ac): Likewise.
68395         * modules/logb (configure.ac): Likewise.
68396         * modules/modf (configure.ac): Likewise.
68397         * modules/nextafter (configure.ac): Likewise.
68398         * modules/pow (configure.ac): Likewise.
68399         * modules/remainder (configure.ac): Likewise.
68400         * modules/rint (configure.ac): Likewise.
68401         * modules/sin (configure.ac): Likewise.
68402         * modules/sinh (configure.ac): Likewise.
68403         * modules/tan (configure.ac): Likewise.
68404         * modules/tanh (configure.ac): Likewise.
68405         * modules/y0 (configure.ac): Likewise.
68406         * modules/y1 (configure.ac): Likewise.
68407         * modules/yn (configure.ac): Likewise.
68409 2010-01-24  Bruno Haible  <bruno@clisp.org>
68411         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68412         * tests/test-acosl.c (x): New variable.
68413         (main): Store argument in x and fetch it from x.
68414         * tests/test-asinl.c (x): New variable.
68415         (main): Store argument in x and fetch it from x.
68416         * tests/test-atanl.c (x): New variable.
68417         (main): Store argument in x and fetch it from x.
68418         * tests/test-cosl.c (x): New variable.
68419         (main): Store argument in x and fetch it from x.
68420         * tests/test-expl.c (x): New variable.
68421         (main): Store argument in x and fetch it from x.
68422         * tests/test-logl.c (x): New variable.
68423         (main): Store argument in x and fetch it from x.
68424         * tests/test-sinl.c (x): New variable.
68425         (main): Store argument in x and fetch it from x.
68426         * tests/test-sqrtl.c (x): New variable.
68427         (main): Store argument in x and fetch it from x.
68428         * tests/test-tanl.c (x): New variable.
68429         (main): Store argument in x and fetch it from x.
68431 2010-01-24  Bruno Haible  <bruno@clisp.org>
68433         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68434         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68435         assignments to the initial TESTS_ENVIRONMENT.
68436         * doc/gnulib.texi (Unit test modules): Document it.
68437         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68438         TESTS_ENVIRONMENT.
68439         * modules/btowc-tests (Makefile.am): Likewise.
68440         * modules/c-stack-tests (Makefile.am): Likewise.
68441         * modules/c-strcase-tests (Makefile.am): Likewise.
68442         * modules/copy-file-tests (Makefile.am): Likewise.
68443         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68444         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68445         * modules/mbrtowc-tests (Makefile.am): Likewise.
68446         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68447         * modules/mbscasestr-tests (Makefile.am): Likewise.
68448         * modules/mbschr-tests (Makefile.am): Likewise.
68449         * modules/mbscspn-tests (Makefile.am): Likewise.
68450         * modules/mbsinit-tests (Makefile.am): Likewise.
68451         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68452         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68453         * modules/mbspbrk-tests (Makefile.am): Likewise.
68454         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68455         * modules/mbsrchr-tests (Makefile.am): Likewise.
68456         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68457         * modules/mbsspn-tests (Makefile.am): Likewise.
68458         * modules/mbsstr-tests (Makefile.am): Likewise.
68459         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68460         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68461         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68462         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68463         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68464         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68465         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68466         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68467         * modules/wcrtomb-tests (Makefile.am): Likewise.
68468         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68469         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68470         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68471         assignments from TESTS_ENVIRONMENT.
68472         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68473         augmentation.
68474         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68475         * modules/atexit-tests (Makefile.am): Likewise.
68476         * modules/binary-io-tests (Makefile.am): Likewise.
68477         * modules/closein-tests (Makefile.am): Likewise.
68478         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68479         * modules/exclude-tests (Makefile.am): Likewise.
68480         * modules/fflush-tests (Makefile.am): Likewise.
68481         * modules/fpending-tests (Makefile.am): Likewise.
68482         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68483         * modules/freadahead-tests (Makefile.am): Likewise.
68484         * modules/freadptr-tests (Makefile.am): Likewise.
68485         * modules/freadseek-tests (Makefile.am): Likewise.
68486         * modules/fseek-tests (Makefile.am): Likewise.
68487         * modules/fseeko-tests (Makefile.am): Likewise.
68488         * modules/ftell-tests (Makefile.am): Likewise.
68489         * modules/ftello-tests (Makefile.am): Likewise.
68490         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68491         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68492         * modules/lseek-tests (Makefile.am): Likewise.
68493         * modules/parse-duration-tests (Makefile.am): Likewise.
68494         * modules/perror-tests (Makefile.am): Likewise.
68495         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68496         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68497         * modules/pipe-tests (Makefile.am): Likewise.
68498         * modules/pread-tests (Makefile.am): Likewise.
68499         * modules/printf-posix-tests (Makefile.am): Likewise.
68500         * modules/select-tests (Makefile.am): Likewise.
68501         * modules/sigpipe-tests (Makefile.am): Likewise.
68502         * modules/tsearch-tests (Makefile.am): Likewise.
68503         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68504         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68505         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68506         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68507         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68508         * modules/version-etc-tests (Makefile.am): Likewise.
68509         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68510         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68511         * modules/xalloc-die-tests (Makefile.am): Likewise.
68512         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68513         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68514         * modules/xstrtol-tests (Makefile.am): Likewise.
68515         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68516         * modules/yesno-tests (Makefile.am): Likewise.
68517         Suggested by Jim Meyering.
68519 2010-01-24  Bruno Haible  <bruno@clisp.org>
68521         More documentation.
68522         * doc/gnulib.texi (Writing modules): New chapter.
68523         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68524         the new chapter.
68526 2010-01-24  Jim Meyering  <meyering@redhat.com>
68528         maint.mk: do not prepend "./" after filtering
68529         * top/maint.mk (_prepend_srcdir_prefix): New variable
68530         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68531         "./" when $(srcdir) is ".".
68533         define STREQ(a,b) consistently, removing useless parentheses
68534         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68535         since the only risk is that "a" or "b" contains an unparenthesized
68536         comma, but if either did that, STREQ would have 3 or more arguments.
68537         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68538         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68539         * lib/hash-triple.c (STREQ): Likewise.
68540         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68541         * lib/getugroups.c (STREQ): Likewise.
68543 2010-01-23  Jim Meyering  <meyering@redhat.com>
68545         maint.mk: fix syntax-check in a non-srcdir build directory
68546         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68547         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68549 2010-01-22  Jim Meyering  <meyering@redhat.com>
68551         userspec: add unit tests
68552         * tests/test-userspec.c: New file.
68553         * modules/userspec-tests: Likewise.
68555 2010-01-21  Jim Meyering  <meyering@redhat.com>
68557         maint.mk: handle source file names containing "." robustly
68558         * top/maint.mk (_dot_escaped_srcdir): Define.
68559         (VC_LIST): Use it in LHS of sed substitution.
68561 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68563         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68564         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68565         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68566         from a non-srcdir build.
68568 2010-01-20  Eric Blake  <ebb9@byu.net>
68570         warn-on-use: use instead of link-warning
68571         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68572         * modules/unistd (Depends-on, Makefile.am): Likewise.
68573         * modules/arpa_inet (Depends-on): Replace link-warning with
68574         warn-on-use.
68575         (Makefile.am): Update rules accordingly.
68576         * modules/ctype (Depends-on, Makefile.am): Likewise.
68577         * modules/dirent (Depends-on, Makefile.am): Likewise.
68578         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68579         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68580         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68581         * modules/locale (Depends-on, Makefile.am): Likewise.
68582         * modules/math (Depends-on, Makefile.am): Likewise.
68583         * modules/search (Depends-on, Makefile.am): Likewise.
68584         * modules/signal (Depends-on, Makefile.am): Likewise.
68585         * modules/spawn (Depends-on, Makefile.am): Likewise.
68586         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68587         * modules/string (Depends-on, Makefile.am): Likewise.
68588         * modules/strings (Depends-on, Makefile.am): Likewise.
68589         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68590         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68591         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68592         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68593         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68594         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68595         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68596         * modules/wchar (Depends-on, Makefile.am): Likewise.
68597         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68598         should be poisoned.
68599         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68600         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68601         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68602         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68603         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68604         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68605         * m4/math_h.m4 (gl_MATH_H): Likewise.
68606         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68607         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68608         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68609         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68610         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68611         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68612         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68613         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68615         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68616         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68618         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68619         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68620         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68621         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68622         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68623         GL_LINK_WARNING.
68624         * lib/ctype.in.h: Likewise.
68625         * lib/dirent.in.h: Likewise.
68626         * lib/fcntl.in.h: Likewise.
68627         * lib/inttypes.in.h: Likewise.
68628         * lib/langinfo.in.h: Likewise.
68629         * lib/locale.in.h: Likewise.
68630         * lib/math.in.h: Likewise.
68631         * lib/search.in.h: Likewise.
68632         * lib/signal.in.h: Likewise.
68633         * lib/spawn.in.h: Likewise.
68634         * lib/stdio.in.h: Likewise.
68635         * lib/stdlib.in.h: Likewise.
68636         * lib/string.in.h: Likewise.
68637         * lib/strings.in.h: Likewise.
68638         * lib/sys_file.in.h: Likewise.
68639         * lib/sys_ioctl.in.h: Likewise.
68640         * lib/sys_select.in.h: Likewise.
68641         * lib/sys_socket.in.h: Likewise.
68642         * lib/sys_stat.in.h: Likewise.
68643         * lib/sys_times.in.h: Likewise.
68644         * lib/sys_utsname.in.h: Likewise.
68645         * lib/unistd.in.h: Likewise.
68646         * lib/wchar.in.h: Likewise.
68648 2010-01-20  Bruno Haible  <bruno@clisp.org>
68650         Avoid duplicate -lm.
68651         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68652         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68653         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68654         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68655         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68656         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68657         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68658         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68659         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68660         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68661         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68662         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68663         Reported by Paolo Bonzini.
68665 2010-01-19  Bruno Haible  <bruno@clisp.org>
68667         langinfo, nl_langinfo: Relicense under LGPLv2+.
68668         * modules/langinfo (License): Change to LGPLv2+.
68669         * modules/nl_langinfo (License): Likewise.
68670         Patch by David Lutterkort <lutter@redhat.com>.
68672 2010-01-19  Bruno Haible  <bruno@clisp.org>
68674         Avoid compilation error with cc on OSF/1 5.1.
68675         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68676         statement, not before.
68677         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68679 2010-01-18  Bruno Haible  <bruno@clisp.org>
68681         Avoid a link error due to the __printf__ symbol.
68682         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68683         and 2.6.x.
68684         (__format__, __printf__): Remove definitions.
68685         * lib/argp-fmtstream.h: Likewise.
68686         * lib/argp.h: Likewise.
68687         * lib/error.h: Likewise.
68688         * lib/vasnprintf.h: Likewise.
68689         * lib/xprintf.h: Likewise.
68690         * lib/xvasprintf.h: Likewise.
68691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68693 2010-01-18  Bruno Haible  <bruno@clisp.org>
68695         Tests for module 'tanl'.
68696         * modules/tanl-tests: New file.
68697         * tests/test-tanl.c: New file.
68699         Tests for module 'sqrtl'.
68700         * modules/sqrtl-tests: New file.
68701         * tests/test-sqrtl.c: New file.
68703         Tests for module 'sinl'.
68704         * modules/sinl-tests: New file.
68705         * tests/test-sinl.c: New file.
68707         Tests for module 'logl'.
68708         * modules/logl-tests: New file.
68709         * tests/test-logl.c: New file.
68711         Tests for module 'expl'.
68712         * modules/expl-tests: New file.
68713         * tests/test-expl.c: New file.
68715         Tests for module 'cosl'.
68716         * modules/cosl-tests: New file.
68717         * tests/test-cosl.c: New file.
68719         Tests for module 'atanl'.
68720         * modules/atanl-tests: New file.
68721         * tests/test-atanl.c: New file.
68723         Tests for module 'asinl'.
68724         * modules/asinl-tests: New file.
68725         * tests/test-asinl.c: New file.
68727         Tests for module 'acosl'.
68728         * modules/acosl-tests: New file.
68729         * tests/test-acosl.c: New file.
68731         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68732         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
68733         tanl): Use the standard gnulib idiom.
68734         * lib/cosl.c: Don't include trigl.c and sincosl.c.
68735         * lib/sinl.c: Likewise.
68736         * lib/tanl.c: Don't include trigl.c.
68737         (kernel_tanl): Make static.
68738         * lib/sincosl.c: Include trigl.h first.
68739         * lib/trigl.c: Likewise.
68740         * m4/acosl.m4: New file.
68741         * m4/asinl.m4: New file.
68742         * m4/atanl.m4: New file.
68743         * m4/cosl.m4: New file.
68744         * m4/expl.m4: New file.
68745         * m4/logl.m4: New file.
68746         * m4/sinl.m4: New file.
68747         * m4/sqrtl.m4: New file.
68748         * m4/tanl.m4: New file.
68749         * m4/mathl.m4: Remove file.
68750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
68751         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68752         Don't initialize GNULIB_MATHL.
68753         * modules/acosl: New file.
68754         * modules/asinl: New file.
68755         * modules/atanl: New file.
68756         * modules/cosl: New file.
68757         * modules/expl: New file.
68758         * modules/logl: New file.
68759         * modules/sinl: New file.
68760         * modules/sqrtl: New file.
68761         * modules/tanl: New file.
68762         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
68763         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
68764         substitute GNULIB_MATHL.
68765         * modules/mathl: Rewritten.
68766         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
68767         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
68768         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
68769         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
68770         * doc/posix-functions/expl.texi: Mention the 'expl' module.
68771         * doc/posix-functions/logl.texi: Mention the 'logl' module.
68772         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
68773         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
68774         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
68776 2010-01-18  Bruno Haible  <bruno@clisp.org>
68778         sqrt: Make gl_FUNC_SQRT requirable.
68779         * m4/sqrt.m4: New file.
68780         * modules/sqrt (Files): Add it.
68781         (configure.ac): Invoke gl_FUNC_SQRT.
68783 2010-01-18  Bruno Haible  <bruno@clisp.org>
68785         New modules for common <math.h> functions.
68786         * m4/mathfunc.m4: New file.
68787         * modules/acos: New file.
68788         * modules/asin: New file.
68789         * modules/atan: New file.
68790         * modules/atan2: New file.
68791         * modules/cbrt: New file.
68792         * modules/copysign: New file.
68793         * modules/cos: New file.
68794         * modules/cosh: New file.
68795         * modules/erf: New file.
68796         * modules/erfc: New file.
68797         * modules/exp: New file.
68798         * modules/fabs: New file.
68799         * modules/fmod: New file.
68800         * modules/hypot: New file.
68801         * modules/j0: New file.
68802         * modules/j1: New file.
68803         * modules/jn: New file.
68804         * modules/ldexp: New file.
68805         * modules/lgamma: New file.
68806         * modules/log: New file.
68807         * modules/log10: New file.
68808         * modules/log1p: New file.
68809         * modules/logb: New file.
68810         * modules/modf: New file.
68811         * modules/nextafter: New file.
68812         * modules/pow: New file.
68813         * modules/remainder: New file.
68814         * modules/rint: New file.
68815         * modules/sin: New file.
68816         * modules/sinh: New file.
68817         * modules/sqrt: New file.
68818         * modules/tan: New file.
68819         * modules/tanh: New file.
68820         * modules/y0: New file.
68821         * modules/y1: New file.
68822         * modules/yn: New file.
68823         * doc/posix-functions/acos.texi: Mention the 'acos' module.
68824         * doc/posix-functions/asin.texi: Mention the 'asin' module.
68825         * doc/posix-functions/atan.texi: Mention the 'atan' module.
68826         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
68827         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
68828         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
68829         * doc/posix-functions/cos.texi: Mention the 'cos' module.
68830         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
68831         * doc/posix-functions/erf.texi: Mention the 'erf' module.
68832         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
68833         * doc/posix-functions/exp.texi: Mention the 'exp' module.
68834         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
68835         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
68836         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
68837         * doc/posix-functions/j0.texi: Mention the 'j0' module.
68838         * doc/posix-functions/j1.texi: Mention the 'j1' module.
68839         * doc/posix-functions/jn.texi: Mention the 'jn' module.
68840         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
68841         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
68842         * doc/posix-functions/log.texi: Mention the 'log' module.
68843         * doc/posix-functions/log10.texi: Mention the 'log10' module.
68844         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
68845         * doc/posix-functions/logb.texi: Mention the 'logb' module.
68846         * doc/posix-functions/modf.texi: Mention the 'modf' module.
68847         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
68848         * doc/posix-functions/pow.texi: Mention the 'pow' module.
68849         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
68850         * doc/posix-functions/rint.texi: Mention the 'rint' module.
68851         * doc/posix-functions/sin.texi: Mention the 'sin' module.
68852         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
68853         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
68854         * doc/posix-functions/tan.texi: Mention the 'tan' module.
68855         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
68856         * doc/posix-functions/y0.texi: Mention the 'y0' module.
68857         * doc/posix-functions/y1.texi: Mention the 'y1' module.
68858         * doc/posix-functions/yn.texi: Mention the 'yn' module.
68860 2010-01-18  Jim Meyering  <meyering@redhat.com>
68862         ignore-value: relax license to LGPLv2+
68863         * modules/ignore-value (License): Relax to LGPLv2+.
68865         getdate: don't leak when TZ contains two or more '"'s
68866         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
68867         double quote in TZ after the first one.
68869         readtokens: do not leak internal token_lengths buffer
68870         * lib/readtokens.c (readtokens): Free the local, lengths,
68871         when the supplied "token_lengths" parameter is NULL.
68873 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68875         Fix a couple of missing LIBTHREAD link failures on AIX.
68876         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
68877         $(LIBTHREAD).
68878         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
68880         Link test-poll against INET_PTON_LIB.
68881         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
68882         for inet_pton on Solaris 10.
68884 2010-01-17  Bruno Haible  <bruno@clisp.org>
68886         unistdio/*-sprintf: Fix typo in module description.
68887         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
68888         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
68889         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
68890         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
68891         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
68892         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
68893         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
68894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68896 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68898         gnulib-tool: fix filelist for AIX, HP-UX ksh.
68899         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
68900         variables in shell case patterns, for AIX and HP-UX ksh.
68902         Split large sed scripts, for HP-UX sed.
68903         * modules/stdio: Split sed scripts around 50 sed commands,
68904         to avoid HP-UX limit of 99 commands, in the near future.
68905         * modules/string: Likewise.
68906         * modules/unistd: Likewise.
68908         gnulib-tool: avoid writing in the current directory.
68909         * gnulib-tool (func_emit_lib_Makefile_am)
68910         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
68911         not in the current directory, so concurrent gnulib-tool
68912         instances do not interfere.
68914 2010-01-16  Jim Meyering  <meyering@redhat.com>
68916         doc: update users.txt
68917         * users.txt: Add grep.
68918         (diffutils, gzip): Update URLs.
68920 2010-01-12  Bruno Haible  <bruno@clisp.org>
68922         posix_spawn: Avoid test failure on Cygwin.
68923         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
68924         characters.
68925         Reported by Simon Josefsson.
68927 2010-01-12  Bruno Haible  <bruno@clisp.org>
68929         * tests/test-cond.c (main): When skipping the test, show the reason.
68931 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68933         * lib/striconv.c (str_cd_iconv): Avoid if before free.
68935 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68937         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
68938         VC_LIST_ALWAYS_EXCLUDE_REGEX.
68940 2010-01-12  Eric Blake  <ebb9@byu.net>
68942         build: guarantee AS_VAR_IF
68943         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
68944         (gl_AS_VAR_IF): Move...
68945         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
68946         Reported by Simon Josefsson.
68948 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68950         * lib/stdio.in.h: Fix typo.
68952 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68954         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
68955         libgpg-error.
68957 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68959         * tests/test-xalloc-die.sh: Use $EXEEXT.
68961 2010-01-12  Simon Josefsson  <simon@josefsson.org>
68962             Bruno Haible  <bruno@clisp.org>
68964         getlogin, getlogin_r: Avoid test failure.
68965         * tests/test-getlogin.c: Include <stdio.h>.
68966         (main): Skip the test when the function fails because stdin is not a
68967         tty.
68968         * tests/test-getlogin_r.c: Include <stdio.h>.
68969         (main): Skip the test when the function fails because stdin is not a
68970         tty.
68972 2010-01-11  Eric Blake  <ebb9@byu.net>
68974         tests: avoid more large file warnings
68975         * tests/test-fflush.c: Avoid warning about ftell use.
68976         * tests/test-fseek.c: Avoid warning about fseek use.
68978 2010-01-10  Bruno Haible  <bruno@clisp.org>
68980         nproc: Work better on Linux when /proc and /sys are not mounted.
68981         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
68982         as lower bound when, on glibc/Linux systems,
68983         sysconf (_SC_NPROCESSORS_CONF) returns 1.
68984         Suggested by Pádraig Brady <P@draigbrady.com>.
68985         Reported by Dmitry V. Levin <ldv@altlinux.org>.
68987         nproc: Refactor.
68988         * lib/nproc.c (num_processors_via_affinity_mask): New function,
68989         extracted from num_processors.
68990         (num_processors): Call it.
68992 2010-01-11  Jim Meyering  <meyering@redhat.com>
68994         utimecmp: avoid new warning from upcoming gcc-4.5.0
68995         * lib/utimecmp.c (BILLION): Define using #define rather than an
68996         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
68998 2010-01-11  Eric Blake  <ebb9@byu.net>
69000         math: add portability warnings for classification macros
69001         * modules/math (Depends-on): Add warn-on-use.
69002         (Makefile.am): Provide new substitutions.
69003         * m4/math_h.m4 (gl_MATH_H): Require inline.
69004         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69005         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69006         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69007         implement warnings.
69009         unistd: warn on use of environ without module
69010         * modules/unistd (Depends-on): Add warn-on-use.
69011         (Makefile.am): Provide new substitutions.
69012         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69013         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69015         stdio: warn on suspicious uses
69016         * modules/stdio (Depends-on): Add warn-on-use.
69017         (Makefile.am): Provide new substitutions.
69018         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69019         fseeko.
69020         * lib/stdio.in.h (gets): Always warn on use.
69021         (fseek, ftell): Adjust when warnings are issued, and honor
69022         _GL_NO_LARGE_FILES as a way to silence the warning.
69023         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69024         any warning about large file offsets.
69025         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69026         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69027         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69028         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69029         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69030         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69031         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69032         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69034         warn-on-use: new module
69035         * modules/warn-on-use: New file.
69036         * build-aux/warn-on-use.h: Likewise.
69037         * m4/warn-on-use.m4: Likewise.
69038         * MODULES.html.sh (Support for building): Mention it.
69040 2010-01-10  Bruno Haible  <bruno@clisp.org>
69042         Tests for module 'unistr/u32-strdup'.
69043         * modules/unistr/u32-strdup-tests: New file.
69044         * tests/unistr/test-u32-strdup.c: New file.
69046         Tests for module 'unistr/u16-strdup'.
69047         * modules/unistr/u16-strdup-tests: New file.
69048         * tests/unistr/test-u16-strdup.c: New file.
69050         Tests for module 'unistr/u8-strdup'.
69051         * modules/unistr/u8-strdup-tests: New file.
69052         * tests/unistr/test-u8-strdup.c: New file.
69053         * tests/unistr/test-strdup.h: New file.
69055         Tests for module 'unistr/u32-strncmp'.
69056         * modules/unistr/u32-strncmp-tests: New file.
69057         * tests/unistr/test-u32-strncmp.c: New file.
69059         Tests for module 'unistr/u16-strncmp'.
69060         * modules/unistr/u16-strncmp-tests: New file.
69061         * tests/unistr/test-u16-strncmp.c: New file.
69063         Tests for module 'unistr/u8-strncmp'.
69064         * modules/unistr/u8-strncmp-tests: New file.
69065         * tests/unistr/test-u8-strncmp.c: New file.
69066         * tests/unistr/test-strncmp.h: New file.
69068         Tests for module 'unistr/u32-strcoll'.
69069         * modules/unistr/u32-strcoll-tests: New file.
69070         * tests/unistr/test-u32-strcoll.c: New file.
69072         Tests for module 'unistr/u16-strcoll'.
69073         * modules/unistr/u16-strcoll-tests: New file.
69074         * tests/unistr/test-u16-strcoll.c: New file.
69076         Tests for module 'unistr/u8-strcoll'.
69077         * modules/unistr/u8-strcoll-tests: New file.
69078         * tests/unistr/test-u8-strcoll.c: New file.
69080         Tests for module 'unistr/u32-strcmp'.
69081         * modules/unistr/u32-strcmp-tests: New file.
69082         * tests/unistr/test-u32-strcmp.c: New file.
69083         * tests/unistr/test-u32-strcmp.h: New file.
69085         Tests for module 'unistr/u16-strcmp'.
69086         * modules/unistr/u16-strcmp-tests: New file.
69087         * tests/unistr/test-u16-strcmp.c: New file.
69088         * tests/unistr/test-u16-strcmp.h: New file.
69090         Tests for module 'unistr/u8-strcmp'.
69091         * modules/unistr/u8-strcmp-tests: New file.
69092         * tests/unistr/test-u8-strcmp.c: New file.
69093         * tests/unistr/test-u8-strcmp.h: New file.
69094         * tests/unistr/test-strcmp.h: New file.
69096         Tests for module 'unistr/u32-strncat'.
69097         * modules/unistr/u32-strncat-tests: New file.
69098         * tests/unistr/test-u32-strncat.c: New file.
69100         Tests for module 'unistr/u16-strncat'.
69101         * modules/unistr/u16-strncat-tests: New file.
69102         * tests/unistr/test-u16-strncat.c: New file.
69104         Tests for module 'unistr/u8-strncat'.
69105         * modules/unistr/u8-strncat-tests: New file.
69106         * tests/unistr/test-u8-strncat.c: New file.
69107         * tests/unistr/test-strncat.h: New file.
69109         Tests for module 'unistr/u32-strcat'.
69110         * modules/unistr/u32-strcat-tests: New file.
69111         * tests/unistr/test-u32-strcat.c: New file.
69113         Tests for module 'unistr/u16-strcat'.
69114         * modules/unistr/u16-strcat-tests: New file.
69115         * tests/unistr/test-u16-strcat.c: New file.
69117         Tests for module 'unistr/u8-strcat'.
69118         * modules/unistr/u8-strcat-tests: New file.
69119         * tests/unistr/test-u8-strcat.c: New file.
69120         * tests/unistr/test-strcat.h: New file.
69122         Tests for module 'unistr/u32-stpncpy'.
69123         * modules/unistr/u32-stpncpy-tests: New file.
69124         * tests/unistr/test-u32-stpncpy.c: New file.
69126         Tests for module 'unistr/u16-stpncpy'.
69127         * modules/unistr/u16-stpncpy-tests: New file.
69128         * tests/unistr/test-u16-stpncpy.c: New file.
69130         Tests for module 'unistr/u8-stpncpy'.
69131         * modules/unistr/u8-stpncpy-tests: New file.
69132         * tests/unistr/test-u8-stpncpy.c: New file.
69133         * tests/unistr/test-stpncpy.h: New file.
69135         Tests for module 'unistr/u32-strncpy'.
69136         * modules/unistr/u32-strncpy-tests: New file.
69137         * tests/unistr/test-u32-strncpy.c: New file.
69139         Tests for module 'unistr/u16-strncpy'.
69140         * modules/unistr/u16-strncpy-tests: New file.
69141         * tests/unistr/test-u16-strncpy.c: New file.
69143         Tests for module 'unistr/u8-strncpy'.
69144         * modules/unistr/u8-strncpy-tests: New file.
69145         * tests/unistr/test-u8-strncpy.c: New file.
69146         * tests/unistr/test-strncpy.h: New file.
69148         Tests for module 'unistr/u32-stpcpy'.
69149         * modules/unistr/u32-stpcpy-tests: New file.
69150         * tests/unistr/test-u32-stpcpy.c: New file.
69152         Tests for module 'unistr/u16-stpcpy'.
69153         * modules/unistr/u16-stpcpy-tests: New file.
69154         * tests/unistr/test-u16-stpcpy.c: New file.
69156         Tests for module 'unistr/u8-stpcpy'.
69157         * modules/unistr/u8-stpcpy-tests: New file.
69158         * tests/unistr/test-u8-stpcpy.c: New file.
69159         * tests/unistr/test-stpcpy.h: New file.
69161         Tests for module 'unistr/u32-strcpy'.
69162         * modules/unistr/u32-strcpy-tests: New file.
69163         * tests/unistr/test-u32-strcpy.c: New file.
69165         Tests for module 'unistr/u16-strcpy'.
69166         * modules/unistr/u16-strcpy-tests: New file.
69167         * tests/unistr/test-u16-strcpy.c: New file.
69169         Tests for module 'unistr/u8-strcpy'.
69170         * modules/unistr/u8-strcpy-tests: New file.
69171         * tests/unistr/test-u8-strcpy.c: New file.
69172         * tests/unistr/test-strcpy.h: New file.
69174         Tests for module 'unistr/u32-strnlen'.
69175         * modules/unistr/u32-strnlen-tests: New file.
69176         * tests/unistr/test-u32-strnlen.c: New file.
69178         Tests for module 'unistr/u16-strnlen'.
69179         * modules/unistr/u16-strnlen-tests: New file.
69180         * tests/unistr/test-u16-strnlen.c: New file.
69182         Tests for module 'unistr/u8-strnlen'.
69183         * modules/unistr/u8-strnlen-tests: New file.
69184         * tests/unistr/test-u8-strnlen.c: New file.
69185         * tests/unistr/test-strnlen.h: New file.
69187         Tests for module 'unistr/u32-strlen'.
69188         * modules/unistr/u32-strlen-tests: New file.
69189         * tests/unistr/test-u32-strlen.c: New file.
69191         Tests for module 'unistr/u16-strlen'.
69192         * modules/unistr/u16-strlen-tests: New file.
69193         * tests/unistr/test-u16-strlen.c: New file.
69195         Tests for module 'unistr/u8-strlen'.
69196         * modules/unistr/u8-strlen-tests: New file.
69197         * tests/unistr/test-u8-strlen.c: New file.
69199         Tests for module 'unistr/u32-prev'.
69200         * modules/unistr/u32-prev-tests: New file.
69201         * tests/unistr/test-u32-prev.c: New file.
69203         Tests for module 'unistr/u16-prev'.
69204         * modules/unistr/u16-prev-tests: New file.
69205         * tests/unistr/test-u16-prev.c: New file.
69207         Tests for module 'unistr/u8-prev'.
69208         * modules/unistr/u8-prev-tests: New file.
69209         * tests/unistr/test-u8-prev.c: New file.
69211         Tests for module 'unistr/u32-next'.
69212         * modules/unistr/u32-next-tests: New file.
69213         * tests/unistr/test-u32-next.c: New file.
69215         Tests for module 'unistr/u16-next'.
69216         * modules/unistr/u16-next-tests: New file.
69217         * tests/unistr/test-u16-next.c: New file.
69219         Tests for module 'unistr/u8-next'.
69220         * modules/unistr/u8-next-tests: New file.
69221         * tests/unistr/test-u8-next.c: New file.
69223         Tests for module 'unistr/u32-strmbtouc'.
69224         * modules/unistr/u32-strmbtouc-tests: New file.
69225         * tests/unistr/test-u32-strmbtouc.c: New file.
69227         Tests for module 'unistr/u16-strmbtouc'.
69228         * modules/unistr/u16-strmbtouc-tests: New file.
69229         * tests/unistr/test-u16-strmbtouc.c: New file.
69231         Tests for module 'unistr/u8-strmbtouc'.
69232         * modules/unistr/u8-strmbtouc-tests: New file.
69233         * tests/unistr/test-u8-strmbtouc.c: New file.
69235         Tests for module 'unistr/u32-strmblen'.
69236         * modules/unistr/u32-strmblen-tests: New file.
69237         * tests/unistr/test-u32-strmblen.c: New file.
69239         Tests for module 'unistr/u16-strmblen'.
69240         * modules/unistr/u16-strmblen-tests: New file.
69241         * tests/unistr/test-u16-strmblen.c: New file.
69243         Tests for module 'unistr/u8-strmblen'.
69244         * modules/unistr/u8-strmblen-tests: New file.
69245         * tests/unistr/test-u8-strmblen.c: New file.
69247         Tests for module 'unistr/u32-cpy-alloc'.
69248         * modules/unistr/u32-cpy-alloc-tests: New file.
69249         * tests/unistr/test-u32-cpy-alloc.c: New file.
69251         Tests for module 'unistr/u16-cpy-alloc'.
69252         * modules/unistr/u16-cpy-alloc-tests: New file.
69253         * tests/unistr/test-u16-cpy-alloc.c: New file.
69255         Tests for module 'unistr/u8-cpy-alloc'.
69256         * modules/unistr/u8-cpy-alloc-tests: New file.
69257         * tests/unistr/test-u8-cpy-alloc.c: New file.
69258         * tests/unistr/test-cpy-alloc.h: New file.
69260         Tests for module 'unistr/u32-mbsnlen'.
69261         * modules/unistr/u32-mbsnlen-tests: New file.
69262         * tests/unistr/test-u32-mbsnlen.c: New file.
69264         Tests for module 'unistr/u16-mbsnlen'.
69265         * modules/unistr/u16-mbsnlen-tests: New file.
69266         * tests/unistr/test-u16-mbsnlen.c: New file.
69268         Tests for module 'unistr/u8-mbsnlen'.
69269         * modules/unistr/u8-mbsnlen-tests: New file.
69270         * tests/unistr/test-u8-mbsnlen.c: New file.
69272         Tests for module 'unistr/u32-chr'.
69273         * modules/unistr/u32-chr-tests: New file.
69274         * tests/unistr/test-u32-chr.c: New file.
69276         Tests for module 'unistr/u16-chr'.
69277         * modules/unistr/u16-chr-tests: New file.
69278         * tests/unistr/test-u16-chr.c: New file.
69280         Tests for module 'unistr/u8-chr'.
69281         * modules/unistr/u8-chr-tests: New file.
69282         * tests/unistr/test-u8-chr.c: New file.
69283         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69285         Tests for module 'unistr/u32-cmp2'.
69286         * modules/unistr/u32-cmp2-tests: New file.
69287         * tests/unistr/test-u32-cmp2.c: New file.
69289         Tests for module 'unistr/u16-cmp2'.
69290         * modules/unistr/u16-cmp2-tests: New file.
69291         * tests/unistr/test-u16-cmp2.c: New file.
69293         Tests for module 'unistr/u8-cmp2'.
69294         * modules/unistr/u8-cmp2-tests: New file.
69295         * tests/unistr/test-u8-cmp2.c: New file.
69296         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69298         Tests for module 'unistr/u32-cmp'.
69299         * modules/unistr/u32-cmp-tests: New file.
69300         * tests/unistr/test-u32-cmp.c: New file.
69302         Tests for module 'unistr/u16-cmp'.
69303         * modules/unistr/u16-cmp-tests: New file.
69304         * tests/unistr/test-u16-cmp.c: New file.
69306         Tests for module 'unistr/u8-cmp'.
69307         * modules/unistr/u8-cmp-tests: New file.
69308         * tests/unistr/test-u8-cmp.c: New file.
69309         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69311         Tests for module 'unistr/u32-set'.
69312         * modules/unistr/u32-set-tests: New file.
69313         * tests/unistr/test-u32-set.c: New file.
69315         Tests for module 'unistr/u16-set'.
69316         * modules/unistr/u16-set-tests: New file.
69317         * tests/unistr/test-u16-set.c: New file.
69319         Tests for module 'unistr/u8-set'.
69320         * modules/unistr/u8-set-tests: New file.
69321         * tests/unistr/test-u8-set.c: New file.
69322         * tests/unistr/test-set.h: New file.
69324         Tests for module 'unistr/u32-move'.
69325         * modules/unistr/u32-move-tests: New file.
69326         * tests/unistr/test-u32-move.c: New file.
69328         Tests for module 'unistr/u16-move'.
69329         * modules/unistr/u16-move-tests: New file.
69330         * tests/unistr/test-u16-move.c: New file.
69332         Tests for module 'unistr/u8-move'.
69333         * modules/unistr/u8-move-tests: New file.
69334         * tests/unistr/test-u8-move.c: New file.
69335         * tests/unistr/test-move.h: New file.
69337         Tests for module 'unistr/u32-cpy'.
69338         * modules/unistr/u32-cpy-tests: New file.
69339         * tests/unistr/test-u32-cpy.c: New file.
69341         Tests for module 'unistr/u16-cpy'.
69342         * modules/unistr/u16-cpy-tests: New file.
69343         * tests/unistr/test-u16-cpy.c: New file.
69345         Tests for module 'unistr/u8-cpy'.
69346         * modules/unistr/u8-cpy-tests: New file.
69347         * tests/unistr/test-u8-cpy.c: New file.
69348         * tests/unistr/test-cpy.h: New file.
69350 2010-01-09  Bruno Haible  <bruno@clisp.org>
69352         Tests for module 'unistr/u32-uctomb'.
69353         * modules/unistr/u32-uctomb-tests: New file.
69354         * tests/unistr/test-u32-uctomb.c: New file.
69356         Tests for module 'unistr/u16-uctomb'.
69357         * modules/unistr/u16-uctomb-tests: New file.
69358         * tests/unistr/test-u16-uctomb.c: New file.
69360         Tests for module 'unistr/u8-uctomb'.
69361         * modules/unistr/u8-uctomb-tests: New file.
69362         * tests/unistr/test-u8-uctomb.c: New file.
69364         Tests for module 'unistr/u32-mbtoucr'.
69365         * modules/unistr/u32-mbtoucr-tests: New file.
69366         * tests/unistr/test-u32-mbtoucr.c: New file.
69368         Tests for module 'unistr/u16-mbtoucr'.
69369         * modules/unistr/u16-mbtoucr-tests: New file.
69370         * tests/unistr/test-u16-mbtoucr.c: New file.
69372         Tests for module 'unistr/u8-mbtoucr'.
69373         * modules/unistr/u8-mbtoucr-tests: New file.
69374         * tests/unistr/test-u8-mbtoucr.c: New file.
69376         Tests for module 'unistr/u32-mbtouc'.
69377         * modules/unistr/u32-mbtouc-tests: New file.
69378         * tests/unistr/test-u32-mbtouc.c: New file.
69380         Tests for module 'unistr/u16-mbtouc'.
69381         * modules/unistr/u16-mbtouc-tests: New file.
69382         * tests/unistr/test-u16-mbtouc.c: New file.
69384         Tests for module 'unistr/u8-mbtouc'.
69385         * modules/unistr/u8-mbtouc-tests: New file.
69386         * tests/unistr/test-u8-mbtouc.c: New file.
69388         Tests for module 'unistr/u32-mbtouc-unsafe'.
69389         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69390         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69391         * tests/unistr/test-u32-mbtouc.h: New file.
69393         Tests for module 'unistr/u16-mbtouc-unsafe'.
69394         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69395         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69396         * tests/unistr/test-u16-mbtouc.h: New file.
69398         Tests for module 'unistr/u8-mbtouc-unsafe'.
69399         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69400         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69401         * tests/unistr/test-u8-mbtouc.h: New file.
69403         Tests for module 'unistr/u32-mblen'.
69404         * modules/unistr/u32-mblen-tests: New file.
69405         * tests/unistr/test-u32-mblen.c: New file.
69407         Tests for module 'unistr/u16-mblen'.
69408         * modules/unistr/u16-mblen-tests: New file.
69409         * tests/unistr/test-u16-mblen.c: New file.
69411         Tests for module 'unistr/u8-mblen'.
69412         * modules/unistr/u8-mblen-tests: New file.
69413         * tests/unistr/test-u8-mblen.c: New file.
69415         Tests for module 'unistr/u32-to-u16'.
69416         * modules/unistr/u32-to-u16-tests: New file.
69417         * tests/unistr/test-u32-to-u16.c: New file.
69419         Tests for module 'unistr/u32-to-u8'.
69420         * modules/unistr/u32-to-u8-tests: New file.
69421         * tests/unistr/test-u32-to-u8.c: New file.
69423         Tests for module 'unistr/u16-to-u32'.
69424         * modules/unistr/u16-to-u32-tests: New file.
69425         * tests/unistr/test-u16-to-u32.c: New file.
69427         Tests for module 'unistr/u16-to-u8'.
69428         * modules/unistr/u16-to-u8-tests: New file.
69429         * tests/unistr/test-u16-to-u8.c: New file.
69431         Tests for module 'unistr/u8-to-u32'.
69432         * modules/unistr/u8-to-u32-tests: New file.
69433         * tests/unistr/test-u8-to-u32.c: New file.
69435         Tests for module 'unistr/u8-to-u16'.
69436         * modules/unistr/u8-to-u16-tests: New file.
69437         * tests/unistr/test-u8-to-u16.c: New file.
69439         Tests for module 'unistr/u32-check'.
69440         * modules/unistr/u32-check-tests: New file.
69441         * tests/unistr/test-u32-check.c: New file.
69443         Tests for module 'unistr/u16-check'.
69444         * modules/unistr/u16-check-tests: New file.
69445         * tests/unistr/test-u16-check.c: New file.
69447         Tests for module 'unistr/u8-check'.
69448         * modules/unistr/u8-check-tests: New file.
69449         * tests/unistr/test-u8-check.c: New file.
69451         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69452         (category_equals): New function.
69453         (main): Add more tests.
69454         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69456         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69458 2010-01-10  Bruno Haible  <bruno@clisp.org>
69460         unistr/u*-strcoll: Try harder to distinguish different strings.
69461         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69462         compare s1 and s2 to see if they are different.
69464 2010-01-10  Bruno Haible  <bruno@clisp.org>
69466         unistr/u*-stpncpy: Fix the return value.
69467         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69468         description of the return value consistent with stpncpy in glibc.
69469         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69470         written non-NUL unit.
69472 2010-01-10  Bruno Haible  <bruno@clisp.org>
69474         unistr/u*-next: Add missing dependencies.
69475         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69476         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69477         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69479 2010-01-10  Bruno Haible  <bruno@clisp.org>
69481         unistr/u8-mbsnlen: Fix return value for incomplete character.
69482         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69483         u8_mblen.
69484         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69485         Remove unistr/u8-mblen.
69486         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69487         u16_mblen.
69488         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69489         Remove unistr/u16-mblen.
69491 2010-01-10  Bruno Haible  <bruno@clisp.org>
69493         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69494         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69495         Reported by Brian Gough <bjg@gnu.org> and
69496         Chris Clayton <chris2553@googlemail.com> via
69497         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69499 2010-01-09  Bruno Haible  <bruno@clisp.org>
69501         unistr/u16-to-u32: Reject invalid input.
69502         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69503         u16_mbtouc.
69504         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69505         Remove unistr/u16-mbtouc.
69507         unistr/u16-to-u8: Reject invalid input.
69508         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69509         u16_mbtouc.
69510         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69511         Remove unistr/u16-mbtouc.
69513         unistr/u8-to-u32: Reject invalid input.
69514         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69515         u8_mbtouc.
69516         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69517         Remove unistr/u8-mbtouc.
69519         unistr/u8-to-u16: Reject invalid input.
69520         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69521         u8_mbtouc.
69522         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69523         Remove unistr/u8-mbtouc.
69525 2010-01-09  Bruno Haible  <bruno@clisp.org>
69527         Tests for module 'getlogin'.
69528         * modules/getlogin-tests: New file.
69529         * tests/test-getlogin.c: New file.
69531         New module 'getlogin'.
69532         * lib/unistd.in.h (getlogin): New declaration.
69533         * lib/getlogin.c: New file.
69534         * m4/getlogin.m4: New file.
69535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69536         HAVE_GETLOGIN.
69537         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69538         HAVE_GETLOGIN.
69539         * modules/getlogin: New file.
69540         * doc/posix-functions/getlogin.texi: Mention the new module.
69541         Reported by John W. Eaton <jwe@gnu.org>.
69543 2010-01-09  Bruno Haible  <bruno@clisp.org>
69545         getlogin_r: Support for native Windows.
69546         * lib/getlogin_r.c: Include <windows.h>
69547         (getlogin_r): Implement for native Windows.
69548         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69549         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69550         via John W. Eaton <jwe@gnu.org>.
69552 2010-01-09  Bruno Haible  <bruno@clisp.org>
69554         getlogin_r: Small fixes.
69555         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69556         succeeds.
69557         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69558         before testing whether getlogin_r is declared. No need to set
69559         HAVE_DECL_GETLOGIN_R to 1.
69560         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69562 2010-01-09  Bruno Haible  <bruno@clisp.org>
69564         * lib/unistd.in.h (getlogin_r): Add comment.
69566 2010-01-09  Bruno Haible  <bruno@clisp.org>
69568         Tests for module 'getlogin_r'.
69569         * modules/getlogin_r-tests: New file.
69570         * tests/test-getlogin_r.c: New file.
69572 2010-01-09  Jim Meyering  <meyering@redhat.com>
69574         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69575         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69576         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69578 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69580         * lib/dup2.c (rpl_dup2): Improve comment.
69582 2010-01-08  Eric Blake  <ebb9@byu.net>
69584         maint.mk: allow packages to add makefile @@ exceptions
69585         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69586         (sc_makefile_check): Rename...
69587         (sc_makefile_at_at_check): ...to this, and use hook.
69589         dup2: work around mingw bug
69590         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69591         Reported by Simon Josefsson.
69593 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69595         glob: Fix C++ compilation.
69596         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69597         C++.
69599 2010-01-07  Bruno Haible  <bruno@clisp.org>
69601         Fix indentation of wctype.in.h, broken since 2007-01-06.
69602         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69604 2010-01-07  Bruno Haible  <bruno@clisp.org>
69606         mbslen: Avoid collision with system function.
69607         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69608         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69609         * m4/mbslen.m4: New file.
69610         * modules/mbslen (Files): Add it.
69611         (configure.ac): Invoke gl_MBSLEN.
69612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69613         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69614         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69615         via Ian Beckwith <ianb@erislabs.net>.
69617 2010-01-07  Bruno Haible  <bruno@clisp.org>
69619         dirent: Document the last fix.
69620         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69622 2010-01-07  Bruno Haible  <bruno@clisp.org>
69624         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69625         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69626         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69627         va_list are defined.
69628         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69629         Reported by Eric Blake.
69631 2010-01-07  Bruno Haible  <bruno@clisp.org>
69633         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69634         * modules/xlist (Depends-on): Add 'list',
69635         * modules/xoset (Depends-on): Add 'oset'.
69636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69638 2010-01-07  Bruno Haible  <bruno@clisp.org>
69640         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69641         * doc/posix-functions/strncasecmp.texi: Likewise.
69643 2010-01-07  Bruno Haible  <bruno@clisp.org>
69645         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69647 2010-01-07  John W. Eaton  <jwe@octave.org>
69649         wctype: allow C++ use
69650         * lib/wctype.in.h: Add extern "C" block for C++.
69652 2010-01-06  Eric Blake  <ebb9@byu.net>
69654         maint.mk: detect incorrect GFDL usage
69655         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69657 2010-01-06  Jim Meyering  <meyering@redhat.com>
69658         and Eric Blake  <ebb9@byu.net>
69660         maint.mk: ignore multi-line copyright in NEWS
69661         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69663 2010-01-06  Eric Blake  <ebb9@byu.net>
69665         select: add missing dependency
69666         * modules/select-tests (Depends-on): Move sockets dependency...
69667         * modules/select (Depends-on): ...here.
69668         Reported by Ian Beckwith.
69670         doc: regenerate INSTALL
69671         * doc/INSTALL: Reflect recent autoconf update.
69672         * doc/INSTALL.ISO: Likewise.
69673         * doc/INSTALL.UTF-8: Likewise.
69675         pread: fix compilation on glibc
69676         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69677         Reported by Ralf Wildenhues.
69679         dirent: fix test failure
69680         * lib/dirent.in.h (includes): Guarantee ino_t.
69681         Reported by Ralf Wildenhues.
69683 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69685         linkat, renameat: avoid bad free
69686         * lib/at-func2.c (at_func2): Fix typo.
69687         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69689 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69691         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69692         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69693         to avoid failure of symlink test later.
69695 2010-01-06  Eric Blake  <ebb9@byu.net>
69697         stdio, unistd: guarantee ssize_t
69698         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69699         2008 are exposed when needed.
69700         * lib/stdio.in.h (includes): Likewise.
69701         Reported by Ralf Wildenhues.
69703 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69705         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69706         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69707         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69709 2010-01-06  Jim Meyering  <meyering@redhat.com>
69711         readtokens: this module *does* require xalloc.h
69712         It uses only functions that were omitted by the old syntax-check rule.
69713         * lib/readtokens.c: Include "xalloc.h" once again.
69714         * modules/readtokens (Depends-on): Add xalloc.
69715         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69717 2010-01-05  Eric Blake  <ebb9@byu.net>
69719         maint: support 'make announcement' from a VPATH build
69720         * top/maint.mk (announcement): Look for correct NEWS file.
69722 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
69724         utimens (fdutimens): ignore a negative FD, per contract
69725         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
69726         when we have a valid file descriptor.  Otherwise, using a brand
69727         new glibc (with just-patched futimens that now fails with EBADF)
69728         would cause this function to fail with ENOSYS.
69729         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
69730         See also http://bugzilla.redhat.com/552320.
69732 2010-01-05  Eric Blake  <ebb9@byu.net>
69734         strcase: document what it provides
69735         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
69736         gnulib module.
69737         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
69738         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
69740 2010-01-05  Jim Meyering  <meyering@redhat.com>
69742         maint: remove useless inclusions of "xalloc.h"
69743         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
69744         * lib/readtokens.c: Likewise.
69745         * lib/same.c: Likewise.
69746         * modules/getloadavg (Depends-on): Remove xalloc.
69747         * modules/readtokens: Likewise.
69748         * modules/same: Likewise.
69750         maint.mk: include 4 more function names in alloca.h-checking regexp
69751         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
69752         regexp.  Before, we would give a false-positive (saying alloca.h
69753         is included unnecessarily) when the only uses involved omitted symbols.
69755         xalloc.h: use consistent formatting
69756         * lib/xalloc.h: Move declarations to start in the first column.
69758 2010-01-05  Eric Blake  <ebb9@byu.net>
69760         mkdir: avoid xalloc
69761         * lib/mkdir.c (includes): Drop unused header.
69762         Reported by John W. Eaton.
69764 2010-01-04  Jim Meyering  <meyering@redhat.com>
69766         nl_langinfo: avoid configure-time syntax error
69767         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
69768         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
69769         the empty string.  Don't let that provoke a shell syntax error.
69771         regcomp, regexec, fnmatch: avoid array bounds read error
69772         * lib/regcomp.c (build_equiv_class): From glibc:
69773         Use only the low 24 bits of a findidx return value as an index
69774         into the weights array.  Patch by Ulrich Drepper:
69775         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
69776         * lib/regexec.c (check_node_accept_bytes): Likewise.
69777         * lib/fnmatch_loop.c (FCT): Likewise.
69779         regcomp: skip collseq lookup when there are no rules
69780         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
69781         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
69783         regcomp: recognize ill-formed { } expressions
69784         * lib/regcomp.c (parse_dup_op): From glibc:
69785         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
69787         regcomp: fix typo in comment
69788         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
69789         s/satisfy/satisfies/.
69791         regcomp: sync from glibc: remove dead store
69792         * lib/regcomp.c (duplicate_node_closure): Remove useless
69793         search_duplicated_node call and dead store.
69795         regcomp: sync from glibc; always use nl_langinfo
69796         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
69797         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
69798         * modules/regex (Depends-on): Add nl_langinfo.
69800 2010-01-04  Eric Blake  <ebb9@byu.net>
69802         fdopendir: fix configure test
69803         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
69805 2010-01-01  Bruno Haible  <bruno@clisp.org>
69807         wchar: Remove unused configure check.
69808         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
69810 2010-01-01  Eric Blake  <ebb9@byu.net>
69812         headers: make check of system header explicit
69813         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
69814         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
69815         ourselves.
69816         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69818         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69819         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
69820         internals.
69821         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
69822         missing.
69823         Suggested by Bruno Haible.
69825 2010-01-01  Jim Meyering  <meyering@redhat.com>
69827         ChangeLog: tweak to eliminate unnecessary copyright line
69828         * ChangeLog: Remove a copyright line that was mistakenly updated
69829         by today's update-copyright run.  Reported by Eric Blake.
69831         test-update-copyright: don't let envvar setting cause test failure
69832         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
69834 2010-01-01  Bruno Haible  <bruno@clisp.org>
69836         localename: Avoid gcc warning.
69837         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
69838         function if it is not used.
69840 2010-01-01  Jim Meyering  <meyering@redhat.com>
69842         update nearly all FSF copyright year lists to include 2010
69843         Use the same procedure as for 2009, outlined in
69844         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
69846         version-etc: set COPYRIGHT_YEAR to 2010
69847         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
69849 2009-12-31  Eric Blake  <ebb9@byu.net>
69851         doc: correct availability of cygwin 1.5.x getopt
69852         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
69853         variables.
69854         * doc/posix-functions/opterr.texi (opterr): Likewise.
69855         * doc/posix-functions/optind.texi (optind): Likewise.
69856         * doc/posix-functions/optopt.texi (optopt): Likewise.
69857         * doc/posix-functions/tzname.texi (tzname): Likewise.
69859         openat: update maintainer
69860         * modules/openat (Maintainer): Add myself.
69862         utimens: avoid shadowing warning
69863         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
69864         buffers into one, to avoid shadowing, as well as avoiding a
69865         redundant stat.
69866         Reported by Jim Meyering.
69868         test-dup2: avoid compiler warning
69869         * tests/test-dup2.c (is_inheritable): Only define if used.
69871 2010-01-01  Bruno Haible  <bruno@clisp.org>
69873         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
69874         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
69875         defined, use wctomb instead of wcrtomb.
69877 2010-01-01  Bruno Haible  <bruno@clisp.org>
69879         iconv: Reject native Solaris iconv.
69880         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
69881         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
69883 2009-12-31  Bruno Haible  <bruno@clisp.org>
69885         * tests/test-signal.c (main): Remove test of 'SIG'.
69887 2009-12-31  Bruno Haible  <bruno@clisp.org>
69889         spawn: Fix incomplete fix.
69890         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
69891         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
69892         warnings for GNULIB_POSIXCHECK again.
69893         Reported by Eric Blake.
69895 2009-12-31  Bruno Haible  <bruno@clisp.org>
69897         Avoid namespace pollution on glibc systems.
69898         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
69899         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
69900         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
69901         glibc systems.
69903 2009-12-31  Bruno Haible  <bruno@clisp.org>
69905         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
69906         (gl_REPLACE_WCHAR_H): Turn into a no-op.
69907         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
69908         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
69909         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
69910         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
69911         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
69913 2009-12-31  Bruno Haible  <bruno@clisp.org>
69915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
69916         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
69917         afterwards.
69919 2009-12-31  Bruno Haible  <bruno@clisp.org>
69921         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
69922         SYS_UTSNAME_H.
69924 2009-12-31  Bruno Haible  <bruno@clisp.org>
69926         spawn: Fix misapplied patch.
69927         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
69928         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
69929         warnings for GNULIB_POSIXCHECK.
69931 2009-12-31  Bruno Haible  <bruno@clisp.org>
69933         times: Update after sys_times changed.
69934         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
69935         * modules/times (Files): Add it.
69936         (configure.ac): Invoke gl_FUNC_TIMES.
69938 2009-12-31  Bruno Haible  <bruno@clisp.org>
69940         Use AC_C_INLINE where necessary.
69941         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
69942         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
69943         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69944         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
69945         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69946         * m4/mbiter.m4 (gl_MBITER): Likewise.
69947         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69948         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
69949         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
69950         * modules/u64 (configure.ac): Likewise.
69952 2009-12-31  Bruno Haible  <bruno@clisp.org>
69954         Use AC_C_INLINE instead of module 'inline' where possible.
69955         * modules/inline (Description): Clarify purpose.
69956         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
69957         * modules/count-one-bits (Depends-on): Remove inline.
69958         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
69959         * modules/openat (Depends-on): Remove inline.
69960         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
69961         instead of depending on module 'inline'.
69962         * modules/filevercmp (Depends-on, configure.ac): Likewise.
69963         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
69964         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
69965         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
69966         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
69967         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
69968         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
69969         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
69970         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
69971         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
69972         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
69973         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
69974         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
69975         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
69976         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
69977         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
69978         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
69979         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
69980         Likewise.
69981         * modules/unictype/property-ascii-hex-digit (Depends-on,
69982         configure.ac): Likewise.
69983         * modules/unictype/property-bidi-arabic-digit (Depends-on,
69984         configure.ac): Likewise.
69985         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
69986         configure.ac): Likewise.
69987         * modules/unictype/property-bidi-block-separator (Depends-on,
69988         configure.ac): Likewise.
69989         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
69990         configure.ac): Likewise.
69991         * modules/unictype/property-bidi-common-separator (Depends-on,
69992         configure.ac): Likewise.
69993         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
69994         Likewise.
69995         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
69996         configure.ac): Likewise.
69997         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
69998         configure.ac): Likewise.
69999         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70000         configure.ac): Likewise.
70001         * modules/unictype/property-bidi-european-digit (Depends-on,
70002         configure.ac): Likewise.
70003         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70004         configure.ac): Likewise.
70005         * modules/unictype/property-bidi-left-to-right (Depends-on,
70006         configure.ac): Likewise.
70007         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70008         configure.ac): Likewise.
70009         * modules/unictype/property-bidi-other-neutral (Depends-on,
70010         configure.ac): Likewise.
70011         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70012         Likewise.
70013         * modules/unictype/property-bidi-segment-separator (Depends-on,
70014         configure.ac): Likewise.
70015         * modules/unictype/property-bidi-whitespace (Depends-on,
70016         configure.ac): Likewise.
70017         * modules/unictype/property-combining (Depends-on, configure.ac):
70018         Likewise.
70019         * modules/unictype/property-composite (Depends-on, configure.ac):
70020         Likewise.
70021         * modules/unictype/property-currency-symbol (Depends-on,
70022         configure.ac): Likewise.
70023         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70024         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70025         Likewise.
70026         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70027         configure.ac): Likewise.
70028         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70029         Likewise.
70030         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70031         Likewise.
70032         * modules/unictype/property-extender (Depends-on, configure.ac):
70033         Likewise.
70034         * modules/unictype/property-format-control (Depends-on, configure.ac):
70035         Likewise.
70036         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70037         Likewise.
70038         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70039         Likewise.
70040         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70041         Likewise.
70042         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70043         Likewise.
70044         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70045         Likewise.
70046         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70047         Likewise.
70048         * modules/unictype/property-id-start (Depends-on, configure.ac):
70049         Likewise.
70050         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70051         Likewise.
70052         * modules/unictype/property-ids-binary-operator (Depends-on,
70053         configure.ac): Likewise.
70054         * modules/unictype/property-ids-trinary-operator (Depends-on,
70055         configure.ac): Likewise.
70056         * modules/unictype/property-ignorable-control (Depends-on,
70057         configure.ac): Likewise.
70058         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70059         Likewise.
70060         * modules/unictype/property-join-control (Depends-on, configure.ac):
70061         Likewise.
70062         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70063         Likewise.
70064         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70065         Likewise.
70066         * modules/unictype/property-logical-order-exception (Depends-on,
70067         configure.ac): Likewise.
70068         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70069         Likewise.
70070         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70071         * modules/unictype/property-non-break (Depends-on, configure.ac):
70072         Likewise.
70073         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70074         Likewise.
70075         * modules/unictype/property-numeric (Depends-on, configure.ac):
70076         Likewise.
70077         * modules/unictype/property-other-alphabetic (Depends-on,
70078         configure.ac): Likewise.
70079         * modules/unictype/property-other-default-ignorable-code-point
70080         (Depends-on, configure.ac): Likewise.
70081         * modules/unictype/property-other-grapheme-extend (Depends-on,
70082         configure.ac): Likewise.
70083         * modules/unictype/property-other-id-continue (Depends-on,
70084         configure.ac): Likewise.
70085         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70086         Likewise.
70087         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70088         Likewise.
70089         * modules/unictype/property-other-math (Depends-on, configure.ac):
70090         Likewise.
70091         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70092         Likewise.
70093         * modules/unictype/property-paired-punctuation (Depends-on,
70094         configure.ac): Likewise.
70095         * modules/unictype/property-paragraph-separator (Depends-on,
70096         configure.ac): Likewise.
70097         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70098         Likewise.
70099         * modules/unictype/property-pattern-white-space (Depends-on,
70100         configure.ac): Likewise.
70101         * modules/unictype/property-private-use (Depends-on, configure.ac):
70102         Likewise.
70103         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70104         Likewise.
70105         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70106         Likewise.
70107         * modules/unictype/property-radical (Depends-on, configure.ac):
70108         Likewise.
70109         * modules/unictype/property-sentence-terminal (Depends-on,
70110         configure.ac): Likewise.
70111         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70112         Likewise.
70113         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70114         * modules/unictype/property-terminal-punctuation (Depends-on,
70115         configure.ac): Likewise.
70116         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70117         Likewise.
70118         * modules/unictype/property-unassigned-code-value (Depends-on,
70119         configure.ac): Likewise.
70120         * modules/unictype/property-unified-ideograph (Depends-on,
70121         configure.ac): Likewise.
70122         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70123         Likewise.
70124         * modules/unictype/property-variation-selector (Depends-on,
70125         configure.ac): Likewise.
70126         * modules/unictype/property-white-space (Depends-on, configure.ac):
70127         Likewise.
70128         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70129         Likewise.
70130         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70131         Likewise.
70132         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70133         Likewise.
70134         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70135         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70136         Likewise.
70138 2009-12-31  Bruno Haible  <bruno@clisp.org>
70140         Remove unnecessary AC_C_INLINE invocation.
70141         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70142         since 2009-08-21.
70144 2009-12-31  Jim Meyering  <meyering@redhat.com>
70146         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70147         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70148         With this change, we can all remove the gpg_key_ID = ... definition
70149         from our respective cfg.mk files.
70151         maint.mk: create announcement template in ~/, not in /tmp
70152         * top/maint.mk (emit_upload_commands): Adjust.
70153         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70154         Remove temporary file, .ci-msg.
70156 2009-12-31  Eric Blake  <ebb9@byu.net>
70158         link-warning: always build headers with link warnings
70159         * modules/arpa_inet (Makefile.am): Always build replacement
70160         header.
70161         * modules/ctype (Makefile.am): Likewise.
70162         * modules/dirent (Makefile.am): Likewise.
70163         * modules/inttypes (Makefile.am): Likewise.
70164         * modules/langinfo (Makefile.am): Likewise.
70165         * modules/locale (Makefile.am): Likewise.
70166         * modules/spawn (Makefile.am): Likewise.
70167         * modules/sys_file (Makefile.am): Likewise.
70168         * modules/sys_ioctl (Makefile.am): Likewise.
70169         * modules/sys_select (Makefile.am): Likewise.
70170         * modules/sys_socket (Makefile.am): Likewise.
70171         * modules/sys_times (Makefile.am): Likewise.
70172         * modules/sys_utsname (Makefile.am): Likewise.
70173         * modules/sys_wait (Makefile.am): Likewise.
70174         * modules/wchar (Makefile.am): Likewise.
70175         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70176         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70177         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70178         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70179         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70180         Likewise.
70181         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70182         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70183         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70184         Likewise.
70185         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70186         Likewise.
70187         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70188         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70189         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70191         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70192         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70193         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70194         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70195         (gl_WCHAR_H_DEFAULTS): Likewise.
70197 2009-12-31  Eric Blake  <ebb9@byu.net>
70199         signal, spawn: use link warnings
70200         * lib/signal.in.h (sigset_t): Make unconditional.
70201         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70202         (sigpending, sigprocmask, sigaction): Add link warnings.
70203         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70204         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70205         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70206         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70207         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70208         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70209         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70210         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70211         (posix_spawn_file_actions_destroy)
70212         (posix_spawn_file_actions_addopen)
70213         (posix_spawn_file_actions_addclose)
70214         (posix_spawn_file_actions_adddup2): Likewise.
70215         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70216         * tests/test-signal.c (main): Enhance test.
70218         spawn: improve wrapper support
70219         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70220         (gl_SPAWN_H_DEFAULTS): New defaults.
70221         * modules/spawn (Makefile.am): Substitute them.
70222         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70223         Only declare if missing or broken.
70225         sys_times, sys_utsname: use include_next
70226         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70227         header.
70228         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70230         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70231         * modules/sys_times (Depends-on): Add include_next.
70232         (Makefile.am): Substitute additional values.
70233         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70234         * lib/sys_times.in.h (includes): Include native header, if
70235         available.
70236         * lib/sys_utsname.in.h (includes): Likewise.
70237         * tests/test-sys_times.c (main): Enhance test.
70239         fdutimensat: revert prior patch
70240         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70241         utimens.h.
70242         Reported by Bruno Haible.
70244 2009-12-30  Eric Blake  <ebb9@byu.net>
70246         sys_wait: drop link-warning dependency
70247         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70248         link-warning efforts.
70249         * lib/sys_wait.in.h: Likewise.
70251         fdutimensat: remove bogus dependency
70252         * modules/fdutimensat (Depends-on): Drop inline.
70254         unistd: fix typo
70255         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70257 2009-12-30  Bruno Haible  <bruno@clisp.org>
70259         Fix compilation error with Solaris cc.
70260         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70261         * lib/unicase/u16-is-invariant.c: Likewise.
70262         * lib/unicase/u32-is-invariant.c: Likewise.
70263         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70265 2009-12-30  Bruno Haible  <bruno@clisp.org>
70267         Fix test crash.
70268         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70269         locales.
70270         Reported by Simon Josefsson <simon@josefsson.org>.
70272 2009-12-30  Bruno Haible  <bruno@clisp.org>
70274         Fix compilation error on most platforms.
70275         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70276         Reported by Simon Josefsson <simon@josefsson.org>
70277         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70279 2009-12-30  Eric Blake  <ebb9@byu.net>
70281         futimens, utimensat: work around ntfs-3g bug
70282         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70283         a ctime bug is present, and expand workaround to cover ntfs-3g.
70284         * lib/utimens.c (fdutimens, lutimens): Likewise.
70285         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70286         (validate_timespec): Adjust return value.
70287         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70288         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70289         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70291 2009-12-29  Eric Blake  <ebb9@byu.net>
70293         link-warning: make usage consistent
70294         * modules/ctype (Depends-on): Add link-warning.
70295         (Makefile.am): Update rules accordingly.
70296         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70297         * modules/locale (Depends-on, Makefile.am): Likewise.
70298         * modules/sys_file (Makefile.am): Likewise.
70299         * modules/getopt-posix (Makefile.am): Delete unused link warning
70300         efforts.
70301         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70302         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70303         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70304         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70306         stdio: remove unused variables
70307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70308         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70309         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70311         tests: test more substitute headers
70312         * modules/ctype-tests: New file.
70313         * modules/dirent-tests: Likewise.
70314         * modules/spawn-tests: Likewise.
70315         * modules/sys_file-tests: Likewise.
70316         * modules/sys_ioctl-tests: Likewise.
70317         * modules/sys_wait-tests: Likewise.
70318         * tests/test-ctype.c: Likewise.
70319         * tests/test-dirent.c: Likewise.
70320         * tests/test-spawn.c: Likewise.
70321         * tests/test-sys_file.c: Likewise.
70322         * tests/test-sys_ioctl.c: Likewise.
70323         * tests/test-sys_wait.c: Likewise.
70324         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70325         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70326         whether or not flock is in use.
70328         tests: remove License section from module
70329         * modules/arpa_inet-tests: Remove unneeded section.
70330         * modules/byteswap-tests: Likewise.
70331         * modules/ceilf-tests: Likewise.
70332         * modules/ceill-tests: Likewise.
70333         * modules/crypto/des-tests: Likewise.
70334         * modules/crypto/gc-arcfour-tests: Likewise.
70335         * modules/crypto/gc-arctwo-tests: Likewise.
70336         * modules/crypto/gc-des-tests: Likewise.
70337         * modules/crypto/gc-hmac-md5-tests: Likewise.
70338         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70339         * modules/crypto/gc-md2-tests: Likewise.
70340         * modules/crypto/gc-md4-tests: Likewise.
70341         * modules/crypto/gc-md5-tests: Likewise.
70342         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70343         * modules/crypto/gc-rijndael-tests: Likewise.
70344         * modules/crypto/gc-sha1-tests: Likewise.
70345         * modules/crypto/gc-tests: Likewise.
70346         * modules/crypto/md2-tests: Likewise.
70347         * modules/crypto/md4-tests: Likewise.
70348         * modules/fcntl-h-tests: Likewise.
70349         * modules/floorf-tests: Likewise.
70350         * modules/floorl-tests: Likewise.
70351         * modules/frexp-nolibm-tests: Likewise.
70352         * modules/frexp-tests: Likewise.
70353         * modules/frexpl-nolibm-tests: Likewise.
70354         * modules/frexpl-tests: Likewise.
70355         * modules/getaddrinfo-tests: Likewise.
70356         * modules/inttypes-tests: Likewise.
70357         * modules/isfinite-tests: Likewise.
70358         * modules/isinf-tests: Likewise.
70359         * modules/ldexpl-tests: Likewise.
70360         * modules/locale-tests: Likewise.
70361         * modules/math-tests: Likewise.
70362         * modules/netdb-tests: Likewise.
70363         * modules/netinet_in-tests: Likewise.
70364         * modules/printf-frexp-tests: Likewise.
70365         * modules/printf-frexpl-tests: Likewise.
70366         * modules/priv-set-tests: Likewise.
70367         * modules/random_r-tests: Likewise.
70368         * modules/round-tests: Likewise.
70369         * modules/roundf-tests: Likewise.
70370         * modules/roundl-tests: Likewise.
70371         * modules/search-tests: Likewise.
70372         * modules/select-tests: Likewise.
70373         * modules/signal-tests: Likewise.
70374         * modules/stdbool-tests: Likewise.
70375         * modules/stddef-tests: Likewise.
70376         * modules/stdint-tests: Likewise.
70377         * modules/stdio-tests: Likewise.
70378         * modules/stdlib-tests: Likewise.
70379         * modules/string-tests: Likewise.
70380         * modules/strings-tests: Likewise.
70381         * modules/sys_select-tests: Likewise.
70382         * modules/sys_socket-tests: Likewise.
70383         * modules/sys_stat-tests: Likewise.
70384         * modules/sys_time-tests: Likewise.
70385         * modules/sys_utsname-tests: Likewise.
70386         * modules/sysexits-tests: Likewise.
70387         * modules/time-tests: Likewise.
70388         * modules/trunc-tests: Likewise.
70389         * modules/truncf-tests: Likewise.
70390         * modules/truncl-tests: Likewise.
70391         * modules/tsearch-tests: Likewise.
70392         * modules/unistd-tests: Likewise.
70393         * modules/wchar-tests: Likewise.
70394         * modules/wctype-tests: Likewise.
70396         tests: fix license on several tests
70397         * tests/test-des.c: Update to GPLv3+.
70398         * tests/test-flock.c: Likewise.
70399         * tests/test-fsync.c: Likewise.
70400         * tests/test-futimens.h: Likewise.
70401         * tests/test-gc-arcfour.c: Likewise.
70402         * tests/test-gc-arctwo.c: Likewise.
70403         * tests/test-gc-des.c: Likewise.
70404         * tests/test-gc-hmac-md5.c: Likewise.
70405         * tests/test-gc-hmac-sha1.c: Likewise.
70406         * tests/test-gc-md2.c: Likewise.
70407         * tests/test-gc-md4.c: Likewise.
70408         * tests/test-gc-md5.c: Likewise.
70409         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70410         * tests/test-gc-rijndael.c: Likewise.
70411         * tests/test-gc-sha1.c: Likewise.
70412         * tests/test-gc.c: Likewise.
70413         * tests/test-getcwd.c: Likewise.
70414         * tests/test-link.c: Likewise.
70415         * tests/test-link.h: Likewise.
70416         * tests/test-lutimens.h: Likewise.
70417         * tests/test-md2.c: Likewise.
70418         * tests/test-md4.c: Likewise.
70419         * tests/test-mkdir.h: Likewise.
70420         * tests/test-rename.c: Likewise.
70421         * tests/test-rename.h: Likewise.
70422         * tests/test-safe-alloc.c: Likewise.
70423         * tests/test-utimens-common.h: Likewise.
70424         * tests/test-utimens.h: Likewise.
70426         maint: sync license texts
70427         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70428         * doc/gpl-3.0.texi: Revert copyright year update.
70429         * doc/lgpl-3.0.texi: Likewise.
70431 2009-12-29  Jim Meyering  <meyering@redhat.com>
70433         update nearly all FSF copyright year lists to include 2009
70434         The files named by the following are exempted:
70435             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70436               test -f "$dst" && { echo "$dst"; continue; }
70437               test -d "$dst" || continue
70438               echo "$dst"/$(basename "$src")
70439             done > exempt
70440             git ls-files tests/unictype >> exempt
70441         In the remaining files, convert to all-interval notation if
70442         - there is already at least one year interval like 2000-2003
70443         - the file is maintained by me
70444         - the file is in lib/uni*/, where that style already prevails
70445         Otherwise, use update-copyright's default.
70447 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70448         and Eric Blake  <ebb9@byu.net>
70450         tests: don't require debug system() to pass
70451         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70452         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70453         * tests/test-unlink.h (test_unlink_func): Likewise.
70454         * tests/test-fstatat.c (main): ...into callers.
70455         * tests/test-lstat.c (main): Likewise.
70456         * tests/test-rmdir.c (main): Likewise.
70457         * tests/test-unlink.c (main): Likewise.
70458         * tests/test-unlinkat.c (main): Likewise.
70459         * tests/test-areadlink-with-size.c (main): Don't require a
70460         debug-only system call to pass, aiding cross-testing to mingw.
70461         * tests/test-areadlink.c (main): Likewise.
70462         * tests/test-areadlinkat-with-size.c (main): Likewise.
70463         * tests/test-areadlinkat.c (main): Likewise.
70464         * tests/test-canonicalize-lgpl.c (main): Likewise.
70465         * tests/test-canonicalize.c (main): Likewise.
70466         * tests/test-chown.c (main): Likewise.
70467         * tests/test-fchownat.c (main): Likewise.
70468         * tests/test-lchown.c (main): Likewise.
70469         * tests/test-fdutimensat.c (main): Likewise.
70470         * tests/test-futimens.c (main): Likewise.
70471         * tests/test-link.c (main): Likewise.
70472         * tests/test-linkat.c (main): Likewise.
70473         * tests/test-mkdir.c (main): Likewise.
70474         * tests/test-mkdirat.c (main): Likewise.
70475         * tests/test-mkfifo.c (main): Likewise.
70476         * tests/test-mkfifoat.c (main): Likewise.
70477         * tests/test-mknod.c (main): Likewise.
70478         * tests/test-readlink.c (main): Likewise.
70479         * tests/test-remove.c (main): Likewise.
70480         * tests/test-rename.c (main): Likewise.
70481         * tests/test-renameat.c (main): Likewise.
70482         * tests/test-symlink.c (main): Likewise.
70483         * tests/test-symlinkat.c (main): Likewise.
70484         * tests/test-utimens.c (main): Likewise.
70485         * tests/test-utimensat.c (main): Likewise.
70487 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70489         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70490         on $(UNUSED_PARAMETER_H) to avoid build failure.
70492 2009-12-28  Jim Meyering  <meyering@redhat.com>
70494         update-copyright: you may specify a max. line length other than 72
70495         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70497         maint: use consistent FSF copyright line syntax
70498         * lib/posixtm.c: Add missing comma in FSF copyright line.
70499         * lib/posixtm.h: Likewise.
70500         * lib/getugroups.c: Add missing ", Inc.".
70502         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70503         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70504         FSF copyright line.  Remove trailing blanks.
70506 2009-12-28  Eric Blake  <ebb9@byu.net>
70508         test-dup2: reduce dependencies
70509         * modules/cloexec (Configure.ac): Set witness.
70510         * modules/dup2-tests (Depends-on): Drop cloexec.
70511         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70512         not present.
70513         Suggested by Bruno Haible.
70515 2009-12-26  Bruno Haible  <bruno@clisp.org>
70517         Remove an unneeded dependency.
70518         * modules/fseterr (Depends-on): Remove dup2.
70520 2009-12-26  Eric Blake  <ebb9@byu.net>
70522         tests: use macros.h in more places
70523         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70524         (ASSERT_STREAM): Provide default of stderr.
70525         * tests/test-dirent-safer.c: Include macros.h, using alternate
70526         stream for assertions.
70527         * tests/test-dup-safer.c: Likewise.
70528         * tests/test-freopen-safer.c: Likewise.
70529         * tests/test-getopt.c: Likewise.
70530         * tests/test-openat-safer.c: Likewise.
70531         * tests/test-pipe.c: Likewise.
70532         * tests/test-popen-safer.c: Likewise.
70533         * modules/dirent-safer-tests (Files): Include macros.h.
70534         * modules/unistd-safer-tests (Files): Likewise.
70535         * modules/freopen-safer-tests (Files): Likewise.
70536         * modules/getopt-posix-tests (Files): Likewise.
70537         * modules/openat-safer-tests (Files): Likewise.
70538         * modules/pipe-tests (Files): Likewise.
70540 2009-12-26  Bruno Haible  <bruno@clisp.org>
70542         javacomp-script: Portability fix.
70543         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70544         that it also works on Solaris.
70546 2009-12-26  Bruno Haible  <bruno@clisp.org>
70548         localename: Fix storage allocation of gl_locale_name_thread's result.
70549         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70550         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70551         all platforms that have 'uselocale'.
70552         (gl_locale_name_thread_unsafe): New function, extracted from
70553         gl_locale_name_thread.
70554         (gl_locale_name_thread): Call struniq on all platforms that have
70555         'uselocale'.
70556         * tests/test-localename.c (test_locale_name_thread): Check that the
70557         resulting strings are permanently allocated.
70558         * modules/localename-tests (Depends-on): Add strdup.
70560 2009-12-26  Bruno Haible  <bruno@clisp.org>
70562         * tests/test-localename.c (categories): Fill in the strings.
70564 2009-12-26  Jim Meyering  <meyering@redhat.com>
70566         isdir: complete the removal of m4/isdir.m4
70567         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70569         isdir: clean up, since at least grep still uses it
70570         * lib/isdir.c: Include "isdir.h".
70571         (S_ISDIR): Remove now-unneeded definition.
70572         * modules/isdir (Files): Add lib/isdir.h.
70573         * lib/isdir.h: New file, with declaration.
70574         * m4/isdir.m4: Remove file -- unneeded.
70576 2009-12-25  Bruno Haible  <bruno@clisp.org>
70578         selinux-h: Make generated .h files standalone.
70579         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70580         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70581         * lib/se-selinux.in.h: Likewise.
70582         * modules/selinux-h (Depends-on): Add unused-parameter.
70583         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70584         selinux/selinux.h and selinux/context.h.
70585         Suggested by Eric Blake.
70587 2009-12-25  Bruno Haible  <bruno@clisp.org>
70589         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70590         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70591         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70592         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70593         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70595 2009-12-24  Bruno Haible  <bruno@clisp.org>
70597         openat: Fix warning.
70598         * lib/openat-proc.c: Include <unistd.h>.
70600 2009-12-24  Bruno Haible  <bruno@clisp.org>
70602         New module 'unused-parameter'.
70603         * build-aux/unused-parameter.h: New file, extracted from earlier
70604         gnulib-common.m4.
70605         * modules/unused-parameter: New file.
70606         * lib/unistr.h: Include unused-parameter.h.
70607         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70608         _GL_UNUSED.
70609         * modules/unistr/base (Depends-on): Add unused-parameter.
70611 2009-12-24  Bruno Haible  <bruno@clisp.org>
70613         Add missing dependencies to 'extensions' module.
70614         * m4/extensions.m4: Add comment.
70615         * modules/accept4 (Depends-on): Add extensions.
70616         * modules/dup3 (Depends-on): Likewise.
70617         * modules/fcntl (Depends-on): Likewise.
70618         * modules/futimens (Depends-on): Likewise.
70619         * modules/mknod (Depends-on): Likewise.
70620         * modules/pipe2 (Depends-on): Likewise.
70621         * modules/stat-time (Depends-on): Likewise.
70622         * modules/strcasestr-simple (Depends-on): Likewise.
70623         * modules/strsignal (Depends-on): Likewise.
70624         * modules/utimensat (Depends-on): Likewise.
70625         * modules/localcharset (Depends-on): Likewise. Needed because of
70626         gl_FCNTL_O_FLAGS.
70627         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70628         AC_TYPE_MBSTATE_T.
70629         * modules/wcsnrtombs (Depends-on): Likewise.
70630         * modules/wcsrtombs (Depends-on): Likewise.
70632 2009-12-24  Bruno Haible  <bruno@clisp.org>
70634         binary-io: Avoid gcc warning due to SET_BINARY.
70635         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70636         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70638 2009-12-24  Bruno Haible  <bruno@clisp.org>
70640         Avoid future namespace pollution on glibc systems.
70641         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70642         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70643         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70644         glibc systems.
70646 2009-12-24  Bruno Haible  <bruno@clisp.org>
70648         Refactor common macros used in tests.
70649         * tests/macros.h: New file.
70650         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70651         and/or <stdlib.h>, if appropriate.
70652         (ASSERT, SIZEOF): Remove macros.
70653         * tests/test-areadlink-with-size.c: Likewise.
70654         * tests/test-areadlinkat.c: Likewise.
70655         * tests/test-areadlinkat-with-size.c: Likewise.
70656         * tests/test-argmatch.c: Likewise.
70657         * tests/test-argv-iter.c: Likewise.
70658         * tests/test-array-mergesort.c: Likewise.
70659         * tests/test-array_list.c: Likewise.
70660         * tests/test-array_oset.c: Likewise.
70661         * tests/test-avltree_list.c: Likewise.
70662         * tests/test-avltree_oset.c: Likewise.
70663         * tests/test-avltreehash_list.c: Likewise.
70664         * tests/test-base64.c: Likewise.
70665         * tests/test-binary-io.c: Likewise.
70666         * tests/test-bitrotate.c: Likewise.
70667         * tests/test-btowc.c: Likewise.
70668         * tests/test-byteswap.c: Likewise.
70669         * tests/test-c-ctype.c: Likewise.
70670         * tests/test-c-stack.c: Likewise.
70671         * tests/test-c-strcasecmp.c: Likewise.
70672         * tests/test-c-strcasestr.c: Likewise.
70673         * tests/test-c-strncasecmp.c: Likewise.
70674         * tests/test-c-strstr.c: Likewise.
70675         * tests/test-canonicalize-lgpl.c: Likewise.
70676         * tests/test-canonicalize.c: Likewise.
70677         * tests/test-carray_list.c: Likewise.
70678         * tests/test-ceilf1.c: Likewise.
70679         * tests/test-ceilf2.c: Likewise.
70680         * tests/test-ceill.c: Likewise.
70681         * tests/test-chown.c: Likewise.
70682         * tests/test-cloexec.c: Likewise.
70683         * tests/test-copy-acl.c: Likewise.
70684         * tests/test-copy-file.c: Likewise.
70685         * tests/test-count-one-bits.c: Likewise.
70686         * tests/test-dprintf-posix.c: Likewise.
70687         * tests/test-dup2.c: Likewise.
70688         * tests/test-dup3.c: Likewise.
70689         * tests/test-duplocale.c: Likewise.
70690         * tests/test-fbufmode.c: Likewise.
70691         * tests/test-fchdir.c: Likewise.
70692         * tests/test-fchownat.c: Likewise.
70693         * tests/test-fcntl-safer.c: Likewise.
70694         * tests/test-fcntl.c: Likewise.
70695         * tests/test-fdopendir.c: Likewise.
70696         * tests/test-fdutimensat.c: Likewise.
70697         * tests/test-fflush2.c: Likewise.
70698         * tests/test-file-has-acl.c: Likewise.
70699         * tests/test-filevercmp.c: Likewise.
70700         * tests/test-flock.c: Likewise.
70701         * tests/test-floorf1.c: Likewise.
70702         * tests/test-floorf2.c: Likewise.
70703         * tests/test-floorl.c: Likewise.
70704         * tests/test-fnmatch.c: Likewise.
70705         * tests/test-fopen.h: Likewise.
70706         * tests/test-fpending.c: Likewise.
70707         * tests/test-fprintf-posix.c: Likewise.
70708         * tests/test-fpurge.c: Likewise.
70709         * tests/test-freadable.c: Likewise.
70710         * tests/test-freadahead.c: Likewise.
70711         * tests/test-freading.c: Likewise.
70712         * tests/test-freadptr.c: Likewise.
70713         * tests/test-freadptr2.c: Likewise.
70714         * tests/test-freadseek.c: Likewise.
70715         * tests/test-freopen.c: Likewise.
70716         * tests/test-frexp.c: Likewise.
70717         * tests/test-frexpl.c: Likewise.
70718         * tests/test-fseek.c: Likewise.
70719         * tests/test-fseeko.c: Likewise.
70720         * tests/test-fstatat.c: Likewise.
70721         * tests/test-fstrcmp.c: Likewise.
70722         * tests/test-fsync.c: Likewise.
70723         * tests/test-ftell.c: Likewise.
70724         * tests/test-ftello.c: Likewise.
70725         * tests/test-func.c: Likewise.
70726         * tests/test-futimens.c: Likewise.
70727         * tests/test-fwritable.c: Likewise.
70728         * tests/test-fwriting.c: Likewise.
70729         * tests/test-getcwd.c: Likewise.
70730         * tests/test-getdate.c: Likewise.
70731         * tests/test-getdelim.c: Likewise.
70732         * tests/test-getdtablesize.c: Likewise.
70733         * tests/test-getgroups.c: Likewise.
70734         * tests/test-getline.c: Likewise.
70735         * tests/test-getndelim2.c: Likewise.
70736         * tests/test-glob.c: Likewise.
70737         * tests/test-hash.c: Likewise.
70738         * tests/test-i-ring.c: Likewise.
70739         * tests/test-iconv-utf.c: Likewise.
70740         * tests/test-iconv.c: Likewise.
70741         * tests/test-idpriv-drop.c: Likewise.
70742         * tests/test-idpriv-droptemp.c: Likewise.
70743         * tests/test-inet_ntop.c: Likewise.
70744         * tests/test-inet_pton.c: Likewise.
70745         * tests/test-isblank.c: Likewise.
70746         * tests/test-isfinite.c: Likewise.
70747         * tests/test-isinf.c: Likewise.
70748         * tests/test-isnan.c: Likewise.
70749         * tests/test-isnand.h: Likewise.
70750         * tests/test-isnanf.h: Likewise.
70751         * tests/test-isnanl.h: Likewise.
70752         * tests/test-lchown.c: Likewise.
70753         * tests/test-ldexpl.c: Likewise.
70754         * tests/test-link.c: Likewise.
70755         * tests/test-linkat.c: Likewise.
70756         * tests/test-linked_list.c: Likewise.
70757         * tests/test-linkedhash_list.c: Likewise.
70758         * tests/test-localename.c: Likewise.
70759         * tests/test-lseek.c: Likewise.
70760         * tests/test-lstat.c: Likewise.
70761         * tests/test-mbmemcasecmp.c: Likewise.
70762         * tests/test-mbmemcasecoll.c: Likewise.
70763         * tests/test-mbrtowc.c: Likewise.
70764         * tests/test-mbscasecmp.c: Likewise.
70765         * tests/test-mbscasestr1.c: Likewise.
70766         * tests/test-mbscasestr2.c: Likewise.
70767         * tests/test-mbscasestr3.c: Likewise.
70768         * tests/test-mbscasestr4.c: Likewise.
70769         * tests/test-mbschr.c: Likewise.
70770         * tests/test-mbscspn.c: Likewise.
70771         * tests/test-mbsinit.c: Likewise.
70772         * tests/test-mbsncasecmp.c: Likewise.
70773         * tests/test-mbsnrtowcs.c: Likewise.
70774         * tests/test-mbspbrk.c: Likewise.
70775         * tests/test-mbspcasecmp.c: Likewise.
70776         * tests/test-mbsrchr.c: Likewise.
70777         * tests/test-mbsrtowcs.c: Likewise.
70778         * tests/test-mbsspn.c: Likewise.
70779         * tests/test-mbsstr1.c: Likewise.
70780         * tests/test-mbsstr2.c: Likewise.
70781         * tests/test-mbsstr3.c: Likewise.
70782         * tests/test-memchr.c: Likewise.
70783         * tests/test-memchr2.c: Likewise.
70784         * tests/test-memcmp.c: Likewise.
70785         * tests/test-memmem.c: Likewise.
70786         * tests/test-memrchr.c: Likewise.
70787         * tests/test-mkdir.c: Likewise.
70788         * tests/test-mkdirat.c: Likewise.
70789         * tests/test-mkfifo.c: Likewise.
70790         * tests/test-mkfifoat.c: Likewise.
70791         * tests/test-mknod.c: Likewise.
70792         * tests/test-nanosleep.c: Likewise.
70793         * tests/test-nl_langinfo.c: Likewise.
70794         * tests/test-obstack-printf.c: Likewise.
70795         * tests/test-open.c: Likewise.
70796         * tests/test-openat.c: Likewise.
70797         * tests/test-pipe-filter-gi1.c: Likewise.
70798         * tests/test-pipe-filter-gi2-main.c: Likewise.
70799         * tests/test-pipe-filter-ii1.c: Likewise.
70800         * tests/test-pipe-filter-ii2-main.c: Likewise.
70801         * tests/test-pipe2.c: Likewise.
70802         * tests/test-popen.h: Likewise.
70803         * tests/test-posixtm.c: Likewise.
70804         * tests/test-pread.c: Likewise.
70805         * tests/test-printf-frexp.c: Likewise.
70806         * tests/test-printf-frexpl.c: Likewise.
70807         * tests/test-printf-posix.c: Likewise.
70808         * tests/test-priv-set.c: Likewise.
70809         * tests/test-quotearg.c: Likewise.
70810         * tests/test-random_r.c: Likewise.
70811         * tests/test-rawmemchr.c: Likewise.
70812         * tests/test-rbtree_list.c: Likewise.
70813         * tests/test-rbtree_oset.c: Likewise.
70814         * tests/test-rbtreehash_list.c: Likewise.
70815         * tests/test-readlink.c: Likewise.
70816         * tests/test-remove.c: Likewise.
70817         * tests/test-rename.c: Likewise.
70818         * tests/test-renameat.c: Likewise.
70819         * tests/test-rmdir.c: Likewise.
70820         * tests/test-round1.c: Likewise.
70821         * tests/test-roundf1.c: Likewise.
70822         * tests/test-roundl.c: Likewise.
70823         * tests/test-safe-alloc.c: Likewise.
70824         * tests/test-sameacls.c: Likewise.
70825         * tests/test-set-mode-acl.c: Likewise.
70826         * tests/test-setenv.c: Likewise.
70827         * tests/test-sigaction.c: Likewise.
70828         * tests/test-signbit.c: Likewise.
70829         * tests/test-sleep.c: Likewise.
70830         * tests/test-snprintf-posix.c: Likewise.
70831         * tests/test-snprintf.c: Likewise.
70832         * tests/test-sprintf-posix.c: Likewise.
70833         * tests/test-stat-time.c: Likewise.
70834         * tests/test-stat.c: Likewise.
70835         * tests/test-strcasestr.c: Likewise.
70836         * tests/test-strchrnul.c: Likewise.
70837         * tests/test-strerror.c: Likewise.
70838         * tests/test-striconv.c: Likewise.
70839         * tests/test-striconveh.c: Likewise.
70840         * tests/test-striconveha.c: Likewise.
70841         * tests/test-strsignal.c: Likewise.
70842         * tests/test-strstr.c: Likewise.
70843         * tests/test-strtod.c: Likewise.
70844         * tests/test-strverscmp.c: Likewise.
70845         * tests/test-symlink.c: Likewise.
70846         * tests/test-symlinkat.c: Likewise.
70847         * tests/test-trunc1.c: Likewise.
70848         * tests/test-trunc2.c: Likewise.
70849         * tests/test-truncf1.c: Likewise.
70850         * tests/test-truncf2.c: Likewise.
70851         * tests/test-truncl.c: Likewise.
70852         * tests/test-uname.c: Likewise.
70853         * tests/test-unlink.c: Likewise.
70854         * tests/test-unlinkat.c: Likewise.
70855         * tests/test-unsetenv.c: Likewise.
70856         * tests/test-usleep.c: Likewise.
70857         * tests/test-utimens.c: Likewise.
70858         * tests/test-utimensat.c: Likewise.
70859         * tests/test-vasnprintf-posix.c: Likewise.
70860         * tests/test-vasnprintf-posix2.c: Likewise.
70861         * tests/test-vasnprintf.c: Likewise.
70862         * tests/test-vasprintf-posix.c: Likewise.
70863         * tests/test-vasprintf.c: Likewise.
70864         * tests/test-vdprintf-posix.c: Likewise.
70865         * tests/test-vfprintf-posix.c: Likewise.
70866         * tests/test-vprintf-posix.c: Likewise.
70867         * tests/test-vsnprintf-posix.c: Likewise.
70868         * tests/test-vsnprintf.c: Likewise.
70869         * tests/test-vsprintf-posix.c: Likewise.
70870         * tests/test-wcrtomb.c: Likewise.
70871         * tests/test-wcsnrtombs.c: Likewise.
70872         * tests/test-wcsrtombs.c: Likewise.
70873         * tests/test-wctype.c: Likewise.
70874         * tests/test-wcwidth.c: Likewise.
70875         * tests/test-xfprintf-posix.c: Likewise.
70876         * tests/test-xmemdup0.c: Likewise.
70877         * tests/test-xprintf-posix.c: Likewise.
70878         * tests/test-xvasprintf.c: Likewise.
70879         * tests/unicase/test-locale-language.c: Likewise.
70880         * tests/unicase/test-mapping-part1.h: Likewise.
70881         * tests/unicase/test-predicate-part1.h: Likewise.
70882         * tests/unicase/test-u8-casecmp.c: Likewise.
70883         * tests/unicase/test-u8-casecoll.c: Likewise.
70884         * tests/unicase/test-u8-casefold.c: Likewise.
70885         * tests/unicase/test-u8-is-cased.c: Likewise.
70886         * tests/unicase/test-u8-is-casefolded.c: Likewise.
70887         * tests/unicase/test-u8-is-lowercase.c: Likewise.
70888         * tests/unicase/test-u8-is-titlecase.c: Likewise.
70889         * tests/unicase/test-u8-is-uppercase.c: Likewise.
70890         * tests/unicase/test-u8-tolower.c: Likewise.
70891         * tests/unicase/test-u8-totitle.c: Likewise.
70892         * tests/unicase/test-u8-toupper.c: Likewise.
70893         * tests/unicase/test-u16-casecmp.c: Likewise.
70894         * tests/unicase/test-u16-casecoll.c: Likewise.
70895         * tests/unicase/test-u16-casefold.c: Likewise.
70896         * tests/unicase/test-u16-is-cased.c: Likewise.
70897         * tests/unicase/test-u16-is-casefolded.c: Likewise.
70898         * tests/unicase/test-u16-is-lowercase.c: Likewise.
70899         * tests/unicase/test-u16-is-titlecase.c: Likewise.
70900         * tests/unicase/test-u16-is-uppercase.c: Likewise.
70901         * tests/unicase/test-u16-tolower.c: Likewise.
70902         * tests/unicase/test-u16-totitle.c: Likewise.
70903         * tests/unicase/test-u16-toupper.c: Likewise.
70904         * tests/unicase/test-u32-casecmp.c: Likewise.
70905         * tests/unicase/test-u32-casecoll.c: Likewise.
70906         * tests/unicase/test-u32-casefold.c: Likewise.
70907         * tests/unicase/test-u32-is-cased.c: Likewise.
70908         * tests/unicase/test-u32-is-casefolded.c: Likewise.
70909         * tests/unicase/test-u32-is-lowercase.c: Likewise.
70910         * tests/unicase/test-u32-is-titlecase.c: Likewise.
70911         * tests/unicase/test-u32-is-uppercase.c: Likewise.
70912         * tests/unicase/test-u32-tolower.c: Likewise.
70913         * tests/unicase/test-u32-totitle.c: Likewise.
70914         * tests/unicase/test-u32-toupper.c: Likewise.
70915         * tests/unicase/test-ulc-casecmp.c: Likewise.
70916         * tests/unicase/test-ulc-casecoll.c: Likewise.
70917         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70918         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
70919         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70920         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70921         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
70922         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
70923         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70924         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70925         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70926         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
70927         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70928         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70929         * tests/unictype/test-bidi_byname.c: Likewise.
70930         * tests/unictype/test-bidi_name.c: Likewise.
70931         * tests/unictype/test-bidi_of.c: Likewise.
70932         * tests/unictype/test-bidi_test.c: Likewise.
70933         * tests/unictype/test-block_list.c: Likewise.
70934         * tests/unictype/test-block_of.c: Likewise.
70935         * tests/unictype/test-block_test.c: Likewise.
70936         * tests/unictype/test-categ_and.c: Likewise.
70937         * tests/unictype/test-categ_and_not.c: Likewise.
70938         * tests/unictype/test-categ_byname.c: Likewise.
70939         * tests/unictype/test-categ_name.c: Likewise.
70940         * tests/unictype/test-categ_none.c: Likewise.
70941         * tests/unictype/test-categ_of.c: Likewise.
70942         * tests/unictype/test-categ_or.c: Likewise.
70943         * tests/unictype/test-categ_test_withtable.c: Likewise.
70944         * tests/unictype/test-combining.c: Likewise.
70945         * tests/unictype/test-decdigit.c: Likewise.
70946         * tests/unictype/test-digit.c: Likewise.
70947         * tests/unictype/test-mirror.c: Likewise.
70948         * tests/unictype/test-numeric.c: Likewise.
70949         * tests/unictype/test-pr_byname.c: Likewise.
70950         * tests/unictype/test-pr_test.c: Likewise.
70951         * tests/unictype/test-predicate-part1.h: Likewise.
70952         * tests/unictype/test-scripts.c: Likewise.
70953         * tests/unictype/test-sy_c_ident.c: Likewise.
70954         * tests/unictype/test-sy_java_ident.c: Likewise.
70955         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
70956         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
70957         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
70958         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
70959         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
70960         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
70961         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
70962         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
70963         * tests/uninorm/test-canonical-decomposition.c: Likewise.
70964         * tests/uninorm/test-compat-decomposition.c: Likewise.
70965         * tests/uninorm/test-composition.c: Likewise.
70966         * tests/uninorm/test-decomposing-form.c: Likewise.
70967         * tests/uninorm/test-decomposition.c: Likewise.
70968         * tests/uninorm/test-u8-nfc.c: Likewise.
70969         * tests/uninorm/test-u8-nfd.c: Likewise.
70970         * tests/uninorm/test-u8-nfkc.c: Likewise.
70971         * tests/uninorm/test-u8-nfkd.c: Likewise.
70972         * tests/uninorm/test-u8-normcmp.c: Likewise.
70973         * tests/uninorm/test-u8-normcoll.c: Likewise.
70974         * tests/uninorm/test-u16-nfc.c: Likewise.
70975         * tests/uninorm/test-u16-nfd.c: Likewise.
70976         * tests/uninorm/test-u16-nfkc.c: Likewise.
70977         * tests/uninorm/test-u16-nfkd.c: Likewise.
70978         * tests/uninorm/test-u16-normcmp.c: Likewise.
70979         * tests/uninorm/test-u16-normcoll.c: Likewise.
70980         * tests/uninorm/test-u32-nfc.c: Likewise.
70981         * tests/uninorm/test-u32-nfd.c: Likewise.
70982         * tests/uninorm/test-u32-nfkc.c: Likewise.
70983         * tests/uninorm/test-u32-nfkd.c: Likewise.
70984         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70985         * tests/uninorm/test-u32-normcmp.c: Likewise.
70986         * tests/uninorm/test-u32-normcoll.c: Likewise.
70987         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
70988         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
70989         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
70990         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
70991         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
70992         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
70993         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
70994         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
70995         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
70996         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
70997         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
70998         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
70999         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71000         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71001         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71002         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71003         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71004         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71005         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71006         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71007         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71008         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71009         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71010         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71011         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71012         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71013         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71014         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71015         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71016         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71017         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71018         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71019         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71020         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71021         * tests/uniwidth/test-u8-width.c: Likewise.
71022         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71023         * tests/uniwidth/test-u16-width.c: Likewise.
71024         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71025         * tests/uniwidth/test-u32-width.c: Likewise.
71026         * tests/uniwidth/test-uc_width.c: Likewise.
71027         * tests/uniwidth/test-uc_width2.c: Likewise.
71028         * modules/acl-tests (Files): Add tests/macros.h.
71029         * modules/areadlink-tests (Files): Likewise.
71030         * modules/areadlink-with-size-tests (Files): Likewise.
71031         * modules/areadlinkat-tests (Files): Likewise.
71032         * modules/areadlinkat-with-size-tests (Files): Likewise.
71033         * modules/argmatch-tests (Files): Likewise.
71034         * modules/argv-iter-tests (Files): Likewise.
71035         * modules/array-list-tests (Files): Likewise.
71036         * modules/array-mergesort-tests (Files): Likewise.
71037         * modules/array-oset-tests (Files): Likewise.
71038         * modules/avltree-list-tests (Files): Likewise.
71039         * modules/avltree-oset-tests (Files): Likewise.
71040         * modules/avltreehash-list-tests (Files): Likewise.
71041         * modules/base64-tests (Files): Likewise.
71042         * modules/binary-io-tests (Files): Likewise.
71043         * modules/bitrotate-tests (Files): Likewise.
71044         * modules/btowc-tests (Files): Likewise.
71045         * modules/byteswap-tests (Files): Likewise.
71046         * modules/c-ctype-tests (Files): Likewise.
71047         * modules/c-stack-tests (Files): Likewise.
71048         * modules/c-strcase-tests (Files): Likewise.
71049         * modules/c-strcasestr-tests (Files): Likewise.
71050         * modules/c-strstr-tests (Files): Likewise.
71051         * modules/canonicalize-lgpl-tests (Files): Likewise.
71052         * modules/canonicalize-tests (Files): Likewise.
71053         * modules/carray-list-tests (Files): Likewise.
71054         * modules/ceilf-tests (Files): Likewise.
71055         * modules/ceill-tests (Files): Likewise.
71056         * modules/chown-tests (Files): Likewise.
71057         * modules/cloexec-tests (Files): Likewise.
71058         * modules/copy-file-tests (Files): Likewise.
71059         * modules/count-one-bits-tests (Files): Likewise.
71060         * modules/dprintf-posix-tests (Files): Likewise.
71061         * modules/dup2-tests (Files): Likewise.
71062         * modules/dup3-tests (Files): Likewise.
71063         * modules/duplocale-tests (Files): Likewise.
71064         * modules/fbufmode-tests (Files): Likewise.
71065         * modules/fchdir-tests (Files): Likewise.
71066         * modules/fcntl-safer-tests (Files): Likewise.
71067         * modules/fcntl-tests (Files): Likewise.
71068         * modules/fdopendir-tests (Files): Likewise.
71069         * modules/fdutimensat-tests (Files): Likewise.
71070         * modules/fflush-tests (Files): Likewise.
71071         * modules/filevercmp-tests (Files): Likewise.
71072         * modules/flock-tests (Files): Likewise.
71073         * modules/floorf-tests (Files): Likewise.
71074         * modules/floorl-tests (Files): Likewise.
71075         * modules/fnmatch-tests (Files): Likewise.
71076         * modules/fopen-safer-tests (Files): Likewise.
71077         * modules/fopen-tests (Files): Likewise.
71078         * modules/fpending-tests (Files): Likewise.
71079         * modules/fprintf-posix-tests (Files): Likewise.
71080         * modules/fpurge-tests (Files): Likewise.
71081         * modules/freadable-tests (Files): Likewise.
71082         * modules/freadahead-tests (Files): Likewise.
71083         * modules/freading-tests (Files): Likewise.
71084         * modules/freadptr-tests (Files): Likewise.
71085         * modules/freadseek-tests (Files): Likewise.
71086         * modules/freopen-tests (Files): Likewise.
71087         * modules/frexp-nolibm-tests (Files): Likewise.
71088         * modules/frexp-tests (Files): Likewise.
71089         * modules/frexpl-nolibm-tests (Files): Likewise.
71090         * modules/frexpl-tests (Files): Likewise.
71091         * modules/fseek-tests (Files): Likewise.
71092         * modules/fseeko-tests (Files): Likewise.
71093         * modules/fstrcmp-tests (Files): Likewise.
71094         * modules/fsync-tests (Files): Likewise.
71095         * modules/ftell-tests (Files): Likewise.
71096         * modules/ftello-tests (Files): Likewise.
71097         * modules/func-tests (Files): Likewise.
71098         * modules/futimens-tests (Files): Likewise.
71099         * modules/fwritable-tests (Files): Likewise.
71100         * modules/fwriting-tests (Files): Likewise.
71101         * modules/getcwd-tests (Files): Likewise.
71102         * modules/getdate-tests (Files): Likewise.
71103         * modules/getdelim-tests (Files): Likewise.
71104         * modules/getdtablesize-tests (Files): Likewise.
71105         * modules/getgroups-tests (Files): Likewise.
71106         * modules/getline-tests (Files): Likewise.
71107         * modules/getndelim2-tests (Files): Likewise.
71108         * modules/glob-tests (Files): Likewise.
71109         * modules/hash-tests (Files): Likewise.
71110         * modules/i-ring-tests (Files): Likewise.
71111         * modules/iconv-tests (Files): Likewise.
71112         * modules/iconv_open-utf-tests (Files): Likewise.
71113         * modules/idpriv-drop-tests (Files): Likewise.
71114         * modules/idpriv-droptemp-tests (Files): Likewise.
71115         * modules/inet_ntop-tests (Files): Likewise.
71116         * modules/inet_pton-tests (Files): Likewise.
71117         * modules/isblank-tests (Files): Likewise.
71118         * modules/isfinite-tests (Files): Likewise.
71119         * modules/isinf-tests (Files): Likewise.
71120         * modules/isnan-tests (Files): Likewise.
71121         * modules/isnand-nolibm-tests (Files): Likewise.
71122         * modules/isnand-tests (Files): Likewise.
71123         * modules/isnanf-nolibm-tests (Files): Likewise.
71124         * modules/isnanf-tests (Files): Likewise.
71125         * modules/isnanl-nolibm-tests (Files): Likewise.
71126         * modules/isnanl-tests (Files): Likewise.
71127         * modules/lchown-tests (Files): Likewise.
71128         * modules/ldexpl-tests (Files): Likewise.
71129         * modules/link-tests (Files): Likewise.
71130         * modules/linkat-tests (Files): Likewise.
71131         * modules/linked-list-tests (Files): Likewise.
71132         * modules/linkedhash-list-tests (Files): Likewise.
71133         * modules/localename-tests (Files): Likewise.
71134         * modules/lseek-tests (Files): Likewise.
71135         * modules/lstat-tests (Files): Likewise.
71136         * modules/mbmemcasecmp-tests (Files): Likewise.
71137         * modules/mbmemcasecoll-tests (Files): Likewise.
71138         * modules/mbrtowc-tests (Files): Likewise.
71139         * modules/mbscasecmp-tests (Files): Likewise.
71140         * modules/mbscasestr-tests (Files): Likewise.
71141         * modules/mbschr-tests (Files): Likewise.
71142         * modules/mbscspn-tests (Files): Likewise.
71143         * modules/mbsinit-tests (Files): Likewise.
71144         * modules/mbsncasecmp-tests (Files): Likewise.
71145         * modules/mbsnrtowcs-tests (Files): Likewise.
71146         * modules/mbspbrk-tests (Files): Likewise.
71147         * modules/mbspcasecmp-tests (Files): Likewise.
71148         * modules/mbsrchr-tests (Files): Likewise.
71149         * modules/mbsrtowcs-tests (Files): Likewise.
71150         * modules/mbsspn-tests (Files): Likewise.
71151         * modules/mbsstr-tests (Files): Likewise.
71152         * modules/memchr-tests (Files): Likewise.
71153         * modules/memchr2-tests (Files): Likewise.
71154         * modules/memcmp-tests (Files): Likewise.
71155         * modules/memmem-tests (Files): Likewise.
71156         * modules/memrchr-tests (Files): Likewise.
71157         * modules/mkdir-tests (Files): Likewise.
71158         * modules/mkfifo-tests (Files): Likewise.
71159         * modules/mkfifoat-tests (Files): Likewise.
71160         * modules/mknod-tests (Files): Likewise.
71161         * modules/nanosleep-tests (Files): Likewise.
71162         * modules/nl_langinfo-tests (Files): Likewise.
71163         * modules/obstack-printf-tests (Files): Likewise.
71164         * modules/open-tests (Files): Likewise.
71165         * modules/openat-tests (Files): Likewise.
71166         * modules/pipe-filter-gi-tests (Files): Likewise.
71167         * modules/pipe-filter-ii-tests (Files): Likewise.
71168         * modules/pipe2-tests (Files): Likewise.
71169         * modules/popen-safer-tests (Files): Likewise.
71170         * modules/popen-tests (Files): Likewise.
71171         * modules/posixtm-tests (Files): Likewise.
71172         * modules/pread-tests (Files): Likewise.
71173         * modules/printf-frexp-tests (Files): Likewise.
71174         * modules/printf-frexpl-tests (Files): Likewise.
71175         * modules/printf-posix-tests (Files): Likewise.
71176         * modules/priv-set-tests (Files): Likewise.
71177         * modules/quotearg-tests (Files): Likewise.
71178         * modules/random_r-tests (Files): Likewise.
71179         * modules/rawmemchr-tests (Files): Likewise.
71180         * modules/rbtree-list-tests (Files): Likewise.
71181         * modules/rbtree-oset-tests (Files): Likewise.
71182         * modules/rbtreehash-list-tests (Files): Likewise.
71183         * modules/readlink-tests (Files): Likewise.
71184         * modules/remove-tests (Files): Likewise.
71185         * modules/rename-tests (Files): Likewise.
71186         * modules/renameat-tests (Files): Likewise.
71187         * modules/rmdir-tests (Files): Likewise.
71188         * modules/round-tests (Files): Likewise.
71189         * modules/roundf-tests (Files): Likewise.
71190         * modules/roundl-tests (Files): Likewise.
71191         * modules/safe-alloc-tests (Files): Likewise.
71192         * modules/setenv-tests (Files): Likewise.
71193         * modules/sigaction-tests (Files): Likewise.
71194         * modules/signbit-tests (Files): Likewise.
71195         * modules/sleep-tests (Files): Likewise.
71196         * modules/snprintf-posix-tests (Files): Likewise.
71197         * modules/snprintf-tests (Files): Likewise.
71198         * modules/sprintf-posix-tests (Files): Likewise.
71199         * modules/stat-tests (Files): Likewise.
71200         * modules/stat-time-tests (Files): Likewise.
71201         * modules/strcasestr-tests (Files): Likewise.
71202         * modules/strchrnul-tests (Files): Likewise.
71203         * modules/strerror-tests (Files): Likewise.
71204         * modules/striconv-tests (Files): Likewise.
71205         * modules/striconveh-tests (Files): Likewise.
71206         * modules/striconveha-tests (Files): Likewise.
71207         * modules/strsignal-tests (Files): Likewise.
71208         * modules/strstr-tests (Files): Likewise.
71209         * modules/strtod-tests (Files): Likewise.
71210         * modules/strverscmp-tests (Files): Likewise.
71211         * modules/symlink-tests (Files): Likewise.
71212         * modules/symlinkat-tests (Files): Likewise.
71213         * modules/trunc-tests (Files): Likewise.
71214         * modules/truncf-tests (Files): Likewise.
71215         * modules/truncl-tests (Files): Likewise.
71216         * modules/uname-tests (Files): Likewise.
71217         * modules/unicase/cased-tests (Files): Likewise.
71218         * modules/unicase/ignorable-tests (Files): Likewise.
71219         * modules/unicase/locale-language-tests (Files): Likewise.
71220         * modules/unicase/tolower-tests (Files): Likewise.
71221         * modules/unicase/totitle-tests (Files): Likewise.
71222         * modules/unicase/toupper-tests (Files): Likewise.
71223         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71224         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71225         * modules/unicase/u8-casefold-tests (Files): Likewise.
71226         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71227         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71228         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71229         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71230         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71231         * modules/unicase/u8-tolower-tests (Files): Likewise.
71232         * modules/unicase/u8-totitle-tests (Files): Likewise.
71233         * modules/unicase/u8-toupper-tests (Files): Likewise.
71234         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71235         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71236         * modules/unicase/u16-casefold-tests (Files): Likewise.
71237         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71238         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71239         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71240         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71241         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71242         * modules/unicase/u16-tolower-tests (Files): Likewise.
71243         * modules/unicase/u16-totitle-tests (Files): Likewise.
71244         * modules/unicase/u16-toupper-tests (Files): Likewise.
71245         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71246         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71247         * modules/unicase/u32-casefold-tests (Files): Likewise.
71248         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71249         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71250         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71251         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71252         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71253         * modules/unicase/u32-tolower-tests (Files): Likewise.
71254         * modules/unicase/u32-totitle-tests (Files): Likewise.
71255         * modules/unicase/u32-toupper-tests (Files): Likewise.
71256         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71257         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71258         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71259         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71260         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71261         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71262         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71263         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71264         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71265         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71266         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71267         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71268         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71269         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71270         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71271         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71272         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71273         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71274         * modules/unictype/block-list-tests (Files): Likewise.
71275         * modules/unictype/block-of-tests (Files): Likewise.
71276         * modules/unictype/block-test-tests (Files): Likewise.
71277         * modules/unictype/category-C-tests (Files): Likewise.
71278         * modules/unictype/category-Cc-tests (Files): Likewise.
71279         * modules/unictype/category-Cf-tests (Files): Likewise.
71280         * modules/unictype/category-Cn-tests (Files): Likewise.
71281         * modules/unictype/category-Co-tests (Files): Likewise.
71282         * modules/unictype/category-Cs-tests (Files): Likewise.
71283         * modules/unictype/category-L-tests (Files): Likewise.
71284         * modules/unictype/category-Ll-tests (Files): Likewise.
71285         * modules/unictype/category-Lm-tests (Files): Likewise.
71286         * modules/unictype/category-Lo-tests (Files): Likewise.
71287         * modules/unictype/category-Lt-tests (Files): Likewise.
71288         * modules/unictype/category-Lu-tests (Files): Likewise.
71289         * modules/unictype/category-M-tests (Files): Likewise.
71290         * modules/unictype/category-Mc-tests (Files): Likewise.
71291         * modules/unictype/category-Me-tests (Files): Likewise.
71292         * modules/unictype/category-Mn-tests (Files): Likewise.
71293         * modules/unictype/category-N-tests (Files): Likewise.
71294         * modules/unictype/category-Nd-tests (Files): Likewise.
71295         * modules/unictype/category-Nl-tests (Files): Likewise.
71296         * modules/unictype/category-No-tests (Files): Likewise.
71297         * modules/unictype/category-P-tests (Files): Likewise.
71298         * modules/unictype/category-Pc-tests (Files): Likewise.
71299         * modules/unictype/category-Pd-tests (Files): Likewise.
71300         * modules/unictype/category-Pe-tests (Files): Likewise.
71301         * modules/unictype/category-Pf-tests (Files): Likewise.
71302         * modules/unictype/category-Pi-tests (Files): Likewise.
71303         * modules/unictype/category-Po-tests (Files): Likewise.
71304         * modules/unictype/category-Ps-tests (Files): Likewise.
71305         * modules/unictype/category-S-tests (Files): Likewise.
71306         * modules/unictype/category-Sc-tests (Files): Likewise.
71307         * modules/unictype/category-Sk-tests (Files): Likewise.
71308         * modules/unictype/category-Sm-tests (Files): Likewise.
71309         * modules/unictype/category-So-tests (Files): Likewise.
71310         * modules/unictype/category-Z-tests (Files): Likewise.
71311         * modules/unictype/category-Zl-tests (Files): Likewise.
71312         * modules/unictype/category-Zp-tests (Files): Likewise.
71313         * modules/unictype/category-Zs-tests (Files): Likewise.
71314         * modules/unictype/category-and-not-tests (Files): Likewise.
71315         * modules/unictype/category-and-tests (Files): Likewise.
71316         * modules/unictype/category-byname-tests (Files): Likewise.
71317         * modules/unictype/category-name-tests (Files): Likewise.
71318         * modules/unictype/category-none-tests (Files): Likewise.
71319         * modules/unictype/category-of-tests (Files): Likewise.
71320         * modules/unictype/category-or-tests (Files): Likewise.
71321         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71322         * modules/unictype/combining-class-tests (Files): Likewise.
71323         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71324         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71325         * modules/unictype/ctype-blank-tests (Files): Likewise.
71326         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71327         * modules/unictype/ctype-digit-tests (Files): Likewise.
71328         * modules/unictype/ctype-graph-tests (Files): Likewise.
71329         * modules/unictype/ctype-lower-tests (Files): Likewise.
71330         * modules/unictype/ctype-print-tests (Files): Likewise.
71331         * modules/unictype/ctype-punct-tests (Files): Likewise.
71332         * modules/unictype/ctype-space-tests (Files): Likewise.
71333         * modules/unictype/ctype-upper-tests (Files): Likewise.
71334         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71335         * modules/unictype/decimal-digit-tests (Files): Likewise.
71336         * modules/unictype/digit-tests (Files): Likewise.
71337         * modules/unictype/mirror-tests (Files): Likewise.
71338         * modules/unictype/numeric-tests (Files): Likewise.
71339         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71340         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71341         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71342         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71343         Likewise.
71344         * modules/unictype/property-bidi-block-separator-tests (Files):
71345         Likewise.
71346         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71347         Likewise.
71348         * modules/unictype/property-bidi-common-separator-tests (Files):
71349         Likewise.
71350         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71351         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71352         Likewise.
71353         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71354         Likewise.
71355         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71356         Likewise.
71357         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71358         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71359         Likewise.
71360         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71361         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71362         Likewise.
71363         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71364         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71365         * modules/unictype/property-bidi-segment-separator-tests (Files):
71366         Likewise.
71367         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71368         * modules/unictype/property-byname-tests (Files): Likewise.
71369         * modules/unictype/property-combining-tests (Files): Likewise.
71370         * modules/unictype/property-composite-tests (Files): Likewise.
71371         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71372         * modules/unictype/property-dash-tests (Files): Likewise.
71373         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71374         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71375         Likewise.
71376         * modules/unictype/property-deprecated-tests (Files): Likewise.
71377         * modules/unictype/property-diacritic-tests (Files): Likewise.
71378         * modules/unictype/property-extender-tests (Files): Likewise.
71379         * modules/unictype/property-format-control-tests (Files): Likewise.
71380         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71381         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71382         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71383         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71384         * modules/unictype/property-hyphen-tests (Files): Likewise.
71385         * modules/unictype/property-id-continue-tests (Files): Likewise.
71386         * modules/unictype/property-id-start-tests (Files): Likewise.
71387         * modules/unictype/property-ideographic-tests (Files): Likewise.
71388         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71389         * modules/unictype/property-ids-trinary-operator-tests (Files):
71390         Likewise.
71391         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71392         * modules/unictype/property-iso-control-tests (Files): Likewise.
71393         * modules/unictype/property-join-control-tests (Files): Likewise.
71394         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71395         * modules/unictype/property-line-separator-tests (Files): Likewise.
71396         * modules/unictype/property-logical-order-exception-tests (Files):
71397         Likewise.
71398         * modules/unictype/property-lowercase-tests (Files): Likewise.
71399         * modules/unictype/property-math-tests (Files): Likewise.
71400         * modules/unictype/property-non-break-tests (Files): Likewise.
71401         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71402         * modules/unictype/property-numeric-tests (Files): Likewise.
71403         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71404         * modules/unictype/property-other-default-ignorable-code-point-tests
71405         (Files): Likewise.
71406         * modules/unictype/property-other-grapheme-extend-tests (Files):
71407         Likewise.
71408         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71409         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71410         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71411         * modules/unictype/property-other-math-tests (Files): Likewise.
71412         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71413         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71414         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71415         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71416         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71417         * modules/unictype/property-private-use-tests (Files): Likewise.
71418         * modules/unictype/property-punctuation-tests (Files): Likewise.
71419         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71420         * modules/unictype/property-radical-tests (Files): Likewise.
71421         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71422         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71423         * modules/unictype/property-space-tests (Files): Likewise.
71424         * modules/unictype/property-terminal-punctuation-tests (Files):
71425         Likewise.
71426         * modules/unictype/property-test-tests (Files): Likewise.
71427         * modules/unictype/property-titlecase-tests (Files): Likewise.
71428         * modules/unictype/property-unassigned-code-value-tests (Files):
71429         Likewise.
71430         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71431         * modules/unictype/property-uppercase-tests (Files): Likewise.
71432         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71433         * modules/unictype/property-white-space-tests (Files): Likewise.
71434         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71435         * modules/unictype/property-xid-start-tests (Files): Likewise.
71436         * modules/unictype/property-zero-width-tests (Files): Likewise.
71437         * modules/unictype/scripts-tests (Files): Likewise.
71438         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71439         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71440         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71441         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71442         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71443         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71444         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71445         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71446         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71447         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71448         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71449         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71450         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71451         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71452         * modules/uninorm/composition-tests (Files): Likewise.
71453         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71454         * modules/uninorm/decomposition-tests (Files): Likewise.
71455         * modules/uninorm/filter-tests (Files): Likewise.
71456         * modules/uninorm/nfc-tests (Files): Likewise.
71457         * modules/uninorm/nfd-tests (Files): Likewise.
71458         * modules/uninorm/nfkc-tests (Files): Likewise.
71459         * modules/uninorm/nfkd-tests (Files): Likewise.
71460         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71461         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71462         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71463         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71464         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71465         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71466         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71467         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71468         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71469         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71470         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71471         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71472         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71473         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71474         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71475         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71476         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71477         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71478         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71479         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71480         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71481         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71482         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71483         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71484         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71485         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71486         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71487         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71488         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71489         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71490         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71491         * modules/uniwidth/u8-width-tests (Files): Likewise.
71492         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71493         * modules/uniwidth/u16-width-tests (Files): Likewise.
71494         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71495         * modules/uniwidth/u32-width-tests (Files): Likewise.
71496         * modules/uniwidth/width-tests (Files): Likewise.
71497         * modules/unlink-tests (Files): Likewise.
71498         * modules/unsetenv-tests (Files): Likewise.
71499         * modules/usleep-tests (Files): Likewise.
71500         * modules/utimens-tests (Files): Likewise.
71501         * modules/utimensat-tests (Files): Likewise.
71502         * modules/vasnprintf-posix-tests (Files): Likewise.
71503         * modules/vasnprintf-tests (Files): Likewise.
71504         * modules/vasprintf-posix-tests (Files): Likewise.
71505         * modules/vasprintf-tests (Files): Likewise.
71506         * modules/vdprintf-posix-tests (Files): Likewise.
71507         * modules/vfprintf-posix-tests (Files): Likewise.
71508         * modules/vprintf-posix-tests (Files): Likewise.
71509         * modules/vsnprintf-posix-tests (Files): Likewise.
71510         * modules/vsnprintf-tests (Files): Likewise.
71511         * modules/vsprintf-posix-tests (Files): Likewise.
71512         * modules/wcrtomb-tests (Files): Likewise.
71513         * modules/wcsnrtombs-tests (Files): Likewise.
71514         * modules/wcsrtombs-tests (Files): Likewise.
71515         * modules/wctype-tests (Files): Likewise.
71516         * modules/wcwidth-tests (Files): Likewise.
71517         * modules/xmemdup0-tests (Files): Likewise.
71518         * modules/xprintf-posix-tests (Files): Likewise.
71519         * modules/xvasprintf-tests (Files): Likewise.
71521 2009-12-24  Eric Blake  <ebb9@byu.net>
71523         test-nanosleep: fix typo
71524         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71525         patch.
71526         Reported by Bruno Haible.
71528 2009-12-24  Bruno Haible  <bruno@clisp.org>
71530         Reduce namespace pollution on glibc systems.
71531         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71532         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71533         systems.
71534         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71535         <getopt.h> on glibc systems.
71536         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71537         systems.
71538         * lib/fcntl.c: Include <unistd.h> here instead.
71540 2009-12-24  Bruno Haible  <bruno@clisp.org>
71542         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71544 2009-12-24  Eric Blake  <ebb9@byu.net>
71546         tests: add signature checks
71547         * tests/signature.h (SIGNATURE_CHECK): New file.
71548         * modules/atexit-tests (Files): Use it.
71549         * modules/btowc-tests (Files): Likewise.
71550         * modules/canonicalize-lgpl-tests (Files): Likewise.
71551         * modules/ceilf-tests (Files): Likewise.
71552         * modules/ceill-tests (Files): Likewise.
71553         * modules/chown-tests (Files): Likewise.
71554         * modules/dprintf-posix-tests (Files): Likewise.
71555         * modules/dup2-tests (Files): Likewise.
71556         * modules/dup3-tests (Files): Likewise.
71557         * modules/duplocale-tests (Files): Likewise.
71558         * modules/fchdir-tests (Files): Likewise.
71559         * modules/fcntl-tests (Files): Likewise.
71560         * modules/fdopendir-tests (Files): Likewise.
71561         * modules/fflush-tests (Files): Likewise.
71562         * modules/flock-tests (Files): Likewise.
71563         * modules/floorf-tests (Files): Likewise.
71564         * modules/floorl-tests (Files): Likewise.
71565         * modules/fnmatch-tests (Files): Likewise.
71566         * modules/fopen-tests (Files): Likewise.
71567         * modules/fprintf-posix-tests (Files): Likewise.
71568         * modules/freopen-tests (Files): Likewise.
71569         * modules/frexp-nolibm-tests (Files): Likewise.
71570         * modules/frexp-tests (Files): Likewise.
71571         * modules/frexpl-nolibm-tests (Files): Likewise.
71572         * modules/frexpl-tests (Files): Likewise.
71573         * modules/fseek-tests (Files): Likewise.
71574         * modules/fseeko-tests (Files): Likewise.
71575         * modules/fsync-tests (Files): Likewise.
71576         * modules/ftell-tests (Files): Likewise.
71577         * modules/ftello-tests (Files): Likewise.
71578         * modules/futimens-tests (Files): Likewise.
71579         * modules/getaddrinfo-tests (Files): Likewise.
71580         * modules/getcwd-tests (Files): Likewise.
71581         * modules/getdelim-tests (Files): Likewise.
71582         * modules/getdtablesize-tests (Files): Likewise.
71583         * modules/getgroups-tests (Files): Likewise.
71584         * modules/gethostname-tests (Files): Likewise.
71585         * modules/getline-tests (Files): Likewise.
71586         * modules/getopt-posix-tests (Files): Likewise.
71587         * modules/gettimeofday-tests (Files): Likewise.
71588         * modules/glob-tests (Files): Likewise.
71589         * modules/iconv-tests (Files): Likewise.
71590         * modules/inet_ntop-tests (Files): Likewise.
71591         * modules/inet_pton-tests (Files): Likewise.
71592         * modules/isblank-tests (Files): Likewise.
71593         * modules/lchown-tests (Files): Likewise.
71594         * modules/ldexpl-tests (Files): Likewise.
71595         * modules/link-tests (Files): Likewise.
71596         * modules/linkat-tests (Files): Likewise.
71597         * modules/lseek-tests (Files): Likewise.
71598         * modules/lstat-tests (Files): Likewise.
71599         * modules/mbrtowc-tests (Files): Likewise.
71600         * modules/mbsinit-tests (Files): Likewise.
71601         * modules/mbsnrtowcs-tests (Files): Likewise.
71602         * modules/mbsrtowcs-tests (Files): Likewise.
71603         * modules/memchr-tests (Files): Likewise.
71604         * modules/memcmp-tests (Files): Likewise.
71605         * modules/memmem-tests (Files): Likewise.
71606         * modules/memrchr-tests (Files): Likewise.
71607         * modules/mkdir-tests (Files): Likewise.
71608         * modules/mkfifo-tests (Files): Likewise.
71609         * modules/mkfifoat-tests (Files): Likewise.
71610         * modules/mknod-tests (Files): Likewise.
71611         * modules/nanosleep-tests (Files): Likewise.
71612         * modules/nl_langinfo-tests (Files): Likewise.
71613         * modules/obstack-printf-tests (Files): Likewise.
71614         * modules/open-tests (Files): Likewise.
71615         * modules/openat-tests (Files): Likewise.
71616         * modules/perror-tests (Files): Likewise.
71617         * modules/pipe2-tests (Files): Likewise.
71618         * modules/poll-tests (Files): Likewise.
71619         * modules/popen-tests (Files): Likewise.
71620         * modules/posix_spawn-tests (Files): Likewise.
71621         * modules/posix_spawnp-tests (Files): Likewise.
71622         * modules/pread-tests (Files): Likewise.
71623         * modules/printf-posix-tests (Files): Likewise.
71624         * modules/pty-tests (Files): Likewise.
71625         * modules/random_r-tests (Files): Likewise.
71626         * modules/rawmemchr-tests (Files): Likewise.
71627         * modules/readlink-tests (Files): Likewise.
71628         * modules/remove-tests (Files): Likewise.
71629         * modules/rename-tests (Files): Likewise.
71630         * modules/renameat-tests (Files): Likewise.
71631         * modules/rmdir-tests (Files): Likewise.
71632         * modules/round-tests (Files): Likewise.
71633         * modules/roundf-tests (Files): Likewise.
71634         * modules/roundl-tests (Files): Likewise.
71635         * modules/select-tests (Files): Likewise.
71636         * modules/setenv-tests (Files): Likewise.
71637         * modules/sigaction-tests (Files): Likewise.
71638         * modules/sleep-tests (Files): Likewise.
71639         * modules/snprintf-posix-tests (Files): Likewise.
71640         * modules/snprintf-tests (Files): Likewise.
71641         * modules/sprintf-posix-tests (Files): Likewise.
71642         * modules/stat-tests (Files): Likewise.
71643         * modules/strcasestr-tests (Files): Likewise.
71644         * modules/strchrnul-tests (Files): Likewise.
71645         * modules/strerror-tests (Files): Likewise.
71646         * modules/strsignal-tests (Files): Likewise.
71647         * modules/strstr-tests (Files): Likewise.
71648         * modules/strtod-tests (Files): Likewise.
71649         * modules/strverscmp-tests (Files): Likewise.
71650         * modules/symlink-tests (Files): Likewise.
71651         * modules/symlinkat-tests (Files): Likewise.
71652         * modules/times-tests (Files): Likewise.
71653         * modules/trunc-tests (Files): Likewise.
71654         * modules/truncf-tests (Files): Likewise.
71655         * modules/truncl-tests (Files): Likewise.
71656         * modules/tsearch-tests (Files): Likewise.
71657         * modules/uname-tests (Files): Likewise.
71658         * modules/unlink-tests (Files): Likewise.
71659         * modules/unsetenv-tests (Files): Likewise.
71660         * modules/usleep-tests (Files): Likewise.
71661         * modules/utimensat-tests (Files): Likewise.
71662         * modules/vasprintf-tests (Files): Likewise.
71663         * modules/vdprintf-posix-tests (Files): Likewise.
71664         * modules/vfprintf-posix-tests (Files): Likewise.
71665         * modules/vprintf-posix-tests (Files): Likewise.
71666         * modules/vsnprintf-posix-tests (Files): Likewise.
71667         * modules/vsnprintf-tests (Files): Likewise.
71668         * modules/vsprintf-posix-tests (Files): Likewise.
71669         * modules/wcrtomb-tests (Files): Likewise.
71670         * modules/wcsnrtombs-tests (Files): Likewise.
71671         * modules/wcsrtombs-tests (Files): Likewise.
71672         * modules/wcwidth-tests (Files): Likewise.
71673         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71674         * tests/test-isinf.c (isinf): Likewise.
71675         * tests/test-isnan.c (isnan): Likewise.
71676         * tests/test-signbit.c (signbit): Likewise.
71677         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71678         declaration, either as macro or with correct signature.
71679         (select): Ensure function under test is declared with correct
71680         signature in correct header.
71681         * tests/test-atexit.c (atexit): Likewise.
71682         * tests/test-btowc.c (btowc): Likewise.
71683         * tests/test-canonicalize-lgpl.c (realpath)
71684         (canonicalize_file_name): Likewise.
71685         * tests/test-ceilf1.c (ceilf): Likewise.
71686         * tests/test-ceill.c (ceill): Likewise.
71687         * tests/test-chown.c (chown): Likewise.
71688         * tests/test-dprintf-posix.c (dprintf): Likewise.
71689         * tests/test-dup2.c (dup2): Likewise.
71690         * tests/test-dup3.c (dup3): Likewise.
71691         * tests/test-duplocale.c (duplocale): Likewise.
71692         * tests/test-fchdir.c (fchdir): Likewise.
71693         * tests/test-fchownat.c (fchownat): Likewise.
71694         * tests/test-fcntl.c (fcntl): Likewise.
71695         * tests/test-fdopendir.c (fdopendir): Likewise.
71696         * tests/test-fflush.c (fflush): Likewise.
71697         * tests/test-flock.c (flock): Likewise.
71698         * tests/test-floorf1.c (floorf): Likewise.
71699         * tests/test-floorl.c (floorl): Likewise.
71700         * tests/test-fnmatch.c (fnmatch): Likewise.
71701         * tests/test-fopen.c (fopen): Likewise.
71702         * tests/test-fprintf-posix.c (fprintf): Likewise.
71703         * tests/test-freopen.c (freopen): Likewise.
71704         * tests/test-frexp.c (frexp): Likewise.
71705         * tests/test-frexpl.c (frexpl): Likewise.
71706         * tests/test-fseek.c (fseek): Likewise.
71707         * tests/test-fseeko.c (fseeko): Likewise.
71708         * tests/test-fstatat.c (fstatat): Likewise.
71709         * tests/test-fsync.c (fsync): Likewise.
71710         * tests/test-ftell.c (ftell): Likewise.
71711         * tests/test-ftello.c (ftello): Likewise.
71712         * tests/test-futimens.c (futimens): Likewise.
71713         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71714         (gai_strerror): Likewise.
71715         * tests/test-getcwd.c (getcwd): Likewise.
71716         * tests/test-getdelim.c (getdelim): Likewise.
71717         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71718         * tests/test-getgroups.c (getgroups): Likewise.
71719         * tests/test-gethostname.c (gethostname): Likewise.
71720         * tests/test-getline.c (getline): Likewise.
71721         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
71722         Likewise.
71723         * tests/test-gettimeofday.c (gettimeofday): Likewise.
71724         * tests/test-glob.c (glob, globfree): Likewise.
71725         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
71726         * tests/test-inet_ntop.c (inet_ntop): Likewise.
71727         * tests/test-inet_pton.c (inet_pton): Likewise.
71728         * tests/test-isblank.c (isblank): Likewise.
71729         * tests/test-lchown.c (lchown): Likewise.
71730         * tests/test-ldexpl.c (ldexpl): Likewise.
71731         * tests/test-link.c (link): Likewise.
71732         * tests/test-linkat.c (linkat): Likewise.
71733         * tests/test-lseek.c (lseek): Likewise.
71734         * tests/test-lstat.c (lstat): Likewise.
71735         * tests/test-mbrtowc.c (mbrtowc): Likewise.
71736         * tests/test-mbsinit.c (mbsinit): Likewise.
71737         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
71738         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
71739         * tests/test-memchr.c (memchr): Likewise.
71740         * tests/test-memcmp.c (memcmp): Likewise.
71741         * tests/test-memmem.c (memmem): Likewise.
71742         * tests/test-memrchr.c (memrchr): Likewise.
71743         * tests/test-mkdir.c (mkdir): Likewise.
71744         * tests/test-mkdirat.c (mkdirat): Likewise.
71745         * tests/test-mkfifo.c (mkfifo): Likewise.
71746         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
71747         * tests/test-mknod.c (mknod): Likewise.
71748         * tests/test-nanosleep.c (nanosleep): Likewise.
71749         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
71750         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
71751         Likewise.
71752         * tests/test-open.c (open): Likewise.
71753         * tests/test-openat.c (openat): Likewise.
71754         * tests/test-perror.c (perror): Likewise.
71755         * tests/test-pipe2.c (pipe2): Likewise.
71756         * tests/test-poll.c (poll): Likewise.
71757         * tests/test-popen.c (popen, pclose): Likewise.
71758         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
71759         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
71760         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
71761         (posix_spawn_file_actions_destroy)
71762         (posix_spawn_file_actions_addclose)
71763         (posix_spawn_file_actions_addopen)
71764         (posix_spawn_file_actions_adddup2): Likewise.
71765         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
71766         * tests/test-pread.c (pread): Likewise.
71767         * tests/test-printf-posix.c (printf): Likewise.
71768         * tests/test-pty.c (openpty, forkpty): Likewise.
71769         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
71770         (random_r): Likewise.
71771         * tests/test-rawmemchr.c (rawmemchr): Likewise.
71772         * tests/test-readlink.c (readlink): Likewise.
71773         * tests/test-remove.c (remove): Likewise.
71774         * tests/test-rename.c (rename): Likewise.
71775         * tests/test-renameat.c (renameat): Likewise.
71776         * tests/test-rmdir.c (rmdir): Likewise.
71777         * tests/test-round1.c (round): Likewise.
71778         * tests/test-roundf1.c (roundf): Likewise.
71779         * tests/test-roundl.c (roundl): Likewise.
71780         * tests/test-setenv.c (setenv): Likewise.
71781         * tests/test-sigaction.c (sigaction): Likewise.
71782         * tests/test-sleep.c (sleep): Likewise.
71783         * tests/test-snprintf.c (snprintf): Likewise.
71784         * tests/test-sprintf-posix.c (sprintf): Likewise.
71785         * tests/test-stat.c (stat): Likewise.
71786         * tests/test-stpncpy.c (stpncpy): Likewise.
71787         * tests/test-strcasestr.c (strcasestr): Likewise.
71788         * tests/test-strchrnul.c (strchrnul): Likewise.
71789         * tests/test-strerror.c (strerror): Likewise.
71790         * tests/test-strsignal.c (strsignal): Likewise.
71791         * tests/test-strstr.c (strstr): Likewise.
71792         * tests/test-strtod.c (strtod): Likewise.
71793         * tests/test-strverscmp.c (strverscmp): Likewise.
71794         * tests/test-symlink.c (symlink): Likewise.
71795         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
71796         * tests/test-times.c (times): Likewise.
71797         * tests/test-trunc1.c (trunc): Likewise.
71798         * tests/test-truncf1.c (truncf): Likewise.
71799         * tests/test-truncl.c (truncl): Likewise.
71800         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
71801         Likewise.
71802         * tests/test-uname.c (uname): Likewise.
71803         * tests/test-unlink.c (unlink): Likewise.
71804         * tests/test-unlinkat.c (unlinkat): Likewise.
71805         * tests/test-unsetenv.c (unsetenv): Likewise.
71806         * tests/test-usleep.c (usleep): Likewise.
71807         * tests/test-utimensat.c (utimensat): Likewise.
71808         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
71809         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
71810         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
71811         * tests/test-vprintf-posix.c (vprintf): Likewise.
71812         * tests/test-vsnprintf.c (vsnprintf): Likewise.
71813         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
71814         * tests/test-wcrtomb.c (wcrtomb): Likewise.
71815         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
71816         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
71817         * tests/test-wcwidth.c (wcwidth): Likewise.
71819         build: pull in conditional headers during GNULIB_POSIXCHECK
71820         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
71821         definitions from any conditionally-included headers.
71822         * lib/stdlib.in.h (includes): Likewise.
71823         * lib/unistd.in.h (includes): Likewise.
71825 2009-12-24  Bruno Haible  <bruno@clisp.org>
71827         * tests/test-argv-iter.c: Include header file being tested immediately
71828         after config.h.
71829         * tests/test-base64.c: Likewise.
71830         * tests/test-flock.c: Likewise.
71831         * tests/test-fsync.c: Likewise.
71832         * tests/test-getdate.c: Likewise.
71833         * tests/test-getndelim2.c: Likewise.
71834         * tests/test-isfinite.c: Likewise.
71835         * tests/test-isinf.c: Likewise.
71836         * tests/test-strerror.c: Likewise.
71837         * tests/test-strsignal.c: Likewise.
71839 2009-12-23  Eric Blake  <ebb9@byu.net>
71841         unistd: work around cygwin bug
71842         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
71843         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
71844         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71846 2009-12-23  Bruno Haible  <bruno@clisp.org>
71848         localename: More tests.
71849         * tests/test-localename.c (SIZEOF): New macro.
71850         (categories): New variable.
71851         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
71852         test_locale_name_default): Add test w.r.t. thread locale.
71853         (test_locale_name_thread): New function.
71854         (main): Invoke it.
71856         localename: Make aware of thread locale.
71857         * lib/localename.h (gl_locale_name_thread): New declaration.
71858         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
71859         behaviour with respect to thread locale.
71860         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
71861         <langinfo.h>, glthread/lock.h.
71862         (SIZE_BITS): New macro.
71863         (string_hash): New function.
71864         (struct hash_node): New type.
71865         (HASH_TABLE_SIZE): New macro.
71866         (struniq_hash_table, struniq_lock): New variables.
71867         (struniq): New function.
71868         (gl_locale_name_thread): New function.
71869         (gl_locale_name): Invoke it.
71870         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
71871         * modules/localename (Depends-on): Add lock.
71872         Reported by Mike Gran <spk121@yahoo.com>.
71874 2009-12-23  Eric Blake  <ebb9@byu.net>
71876         va-args: new module
71877         * modules/va-args: New file.
71878         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
71879         * MODULES.html.sh (Core language properties): Mention it.
71881         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
71882         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
71883         named alias for __attribute__((__unused__)).
71884         * lib/chown.c: Update client.
71885         * lib/fchmodat.c: Likewise.
71886         * lib/fts.c: Likewise.
71887         * lib/getdate.y: Likewise.
71888         * lib/getgroups.c: Likewise.
71889         * lib/getopt.c: Likewise.
71890         * lib/getugroups.c: Likewise.
71891         * lib/mkdir.c: Likewise.
71892         * lib/mkfifo.c: Likewise.
71893         * lib/mkfifoat.c: Likewise.
71894         * lib/mknod.c: Likewise.
71895         * lib/mknodat.c: Likewise.
71896         * lib/readlink.c: Likewise.
71897         * lib/se-context.in.h: Likewise.
71898         * lib/se-selinux.in.h: Likewise.
71899         * lib/sockets.c: Likewise.
71900         * lib/symlink.c: Likewise.
71901         * lib/symlinkat.c: Likewise.
71902         * lib/unicodeio.c: Likewise.
71903         * lib/unistr.h: Likewise.
71904         * tests/test-areadlink.c: Likewise.
71905         * tests/test-areadlinkat.c: Likewise.
71906         * tests/test-filenamecat.c: Likewise.
71907         * tests/test-fseeko.c: Likewise.
71908         * tests/test-ftello.c: Likewise.
71909         * tests/test-getdate.c: Likewise.
71910         * tests/test-getgroups.c: Likewise.
71911         * tests/test-gethostname.c: Likewise.
71912         * tests/test-quotearg.c: Likewise.
71913         * tests/test-version-etc.c: Likewise.
71914         * tests/test-xalloc-die.c: Likewise.
71915         * tests/test-xfprintf-posix.c: Likewise.
71916         * tests/test-xprintf-posix.c: Likewise.
71917         * tests/test-xvasprintf.c: Likewise.
71919         tests: avoid compiler warnings
71920         * tests/test-fcntl.c (main): Delete unused parameters.
71921         * tests/test-freopen-safer.c (main): Likewise.
71922         * tests/test-xalloc-die.c (main): Mark unused parameters.
71923         * tests/test-fseeko.c (main): Likewise.
71924         * tests/test-ftello.c (main): Likewise.
71925         * tests/test-nanosleep.c (main): Avoid declaration warning.
71926         * tests/test-sleep.c (main): Likewise.
71927         * tests/test-unsetenv.c (main): Silence warning about string
71928         literal.
71929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
71931 2009-12-23  Bruno Haible  <bruno@clisp.org>
71933         * tests/test-localename.c (test_locale_name): New function, extracted
71934         from main. Also test mixed situations.
71935         (test_locale_name_posix, test_locale_name_environ,
71936         test_locale_name_default): New functions.
71937         (main): Invoke them all.
71938         * modules/localename-tests (configure.ac): Test for newlocale.
71940 2009-12-23  Bruno Haible  <bruno@clisp.org>
71942         unistd: Ensure getcwd gets declared before being overridden.
71943         * lib/unistd.in.h: Conditionally include <io.h>.
71945 2009-12-22  Bruno Haible  <bruno@clisp.org>
71947         wchar: Diagnose broken combination of glibc and gcc versions and flags.
71948         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
71949         (gl_WCHAR_H): Invoke it.
71950         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
71951         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
71952         Reported by Karl Berry <karl@freefriends.org>.
71954 2009-12-22  Eric Blake  <ebb9@byu.net>
71956         math, unistd: avoid redundant includes
71957         * lib/math.in.h (isnan): No need to re-include <math.h>.
71958         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
71960         getsubopt: work around cygwin bug
71961         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
71962         avoid conflicting with system getsubopt.
71963         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
71964         bug.
71966         getopt: synchronize from glibc
71967         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
71968         parameter order.  Adjust all callers.
71969         (_getopt_internal_r, main): Adjust quoting in error messages.
71970         Drop considerations for outdated POSIX 1003.2 error message.
71971         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
71972         callers.
71973         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
71975         test-getopt: test stderr behavior
71976         * modules/getopt-posix-tests (Depends-on): Add dup2.
71977         * tests/test-getopt.c (ASSERT): Avoid stderr.
71978         (main): Move stderr to a temporary file.
71979         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
71980         Instead, add parameter to inform caller if output occurred.
71981         (test_getopt): Adjust all existing tests to expect silence, and
71982         add new tests of leading ":".
71983         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
71984         glibc shortcomings with leading "-:" or "+:" in optstring.
71985         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71986         Likewise.
71987         * doc/posix-functions/getopt.texi (getopt): Likewise.
71989         test-getopt: enhance test
71990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
71991         supports optind=0.
71992         * tests/test-getopt.c (OPTIND_MIN): Move...
71993         * tests/test-getopt.h (OPTIND_MIN): ...here.
71994         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
71995         Require that optind=0 works, since modern BSD supports it in
71996         addition to optreset, and since coreutils expects it.
71997         (test_getopt_long_only): New test.
71998         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
71999         glibc shortcomings with 'W;', and enforcement of optind=0.
72000         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72001         Likewise.
72003 2009-12-21  Bruno Haible  <bruno@clisp.org>
72005         localename: Improvements for MacOS X and Cygwin.
72006         * lib/localename.h (gl_locale_name_environ): New declaration.
72007         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72008         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72009         (gl_locale_name_posix): Invoke it.
72010         (gl_locale_name_default): Add comments. Use Windows native API also on
72011         Cygwin.
72013 2009-12-21  Bruno Haible  <bruno@clisp.org>
72015         Update list of Win32 locale ids.
72016         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72017         (LANG_SAMI): Renamed from LANG_SAAMI.
72018         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72019         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72020         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72021         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72022         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72023         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72024         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72025         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72026         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72027         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72028         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72029         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72030         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72031         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72032         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72033         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72034         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72035         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72036         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72037         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72038         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72039         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72040         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72041         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72042         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72043         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72044         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72045         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72046         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72047         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72048         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72049         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72050         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72051         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72052         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72053         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72054         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72055         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72056         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72057         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72058         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72059         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72060         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72061         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72062         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72063         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72064         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72065         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72066         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72067         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72068         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72069         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72070         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72071         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72072         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72073         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72074         Add more languages and countries for Sami, Sorbian. Add more countries
72075         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72076         for Pashto. Change country for Syriac, Tswana.
72078 2009-12-21  Eric Blake  <ebb9@byu.net>
72080         test-utimens: avoid spurious failure
72081         * tests/test-chown.h (nap): Factor...
72082         * tests/nap.h: ...into new file.
72083         * tests/test-lchown.h (nap): Avoid duplication.
72084         * tests/test-utimens-common.h (nap): Use shared implementation,
72085         necessary on file systems with 1-second resolution.
72086         * modules/chown-tests (Files): Include new file.
72087         * modules/fdutimensat-tests (Files): Likewise.
72088         * modules/futimens-tests (Files): Likewise.
72089         * modules/lchown-tests (Files): Likewise.
72090         * modules/openat-tests (Files): Likewise.
72091         * modules/utimens-tests (Files): Likewise.
72092         * modules/utimensat-tests (Files): Likewise.
72094 2009-12-19  Eric Blake  <ebb9@byu.net>
72096         futimens, utimensat: work around Linux bug
72097         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72098         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72099         * lib/utimensat.c (rpl_utimensat): Work around it.
72100         * lib/futimens.c (rpl_futimens): Adjust comment.
72102         utimens: work around Linux ctime bug
72103         * lib/utimens.c (detect_ctime_bug): New helper function.
72104         (update_timespec): Differentiate between workaround needed for
72105         this bug vs. what is needed for systems that lack utimensat.
72106         (fdutimens, lutimens): Work around bug.
72108         utimens: check for ctime update
72109         * tests/test-utimens-common.h (check_ctime): Define.
72110         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72111         * tests/test-futimens.h (test_futimens): Likewise.
72112         * tests/test-lutimens.h (test_lutimens): Likewise.
72113         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72114         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72116 2009-12-19  Bruno Haible  <bruno@clisp.org>
72118         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72119         * tests/test-dprintf-posix2.sh: New file.
72120         * tests/test-dprintf-posix2.c: New file.
72121         * modules/dprintf-posix-tests (Files): Add them.
72122         (configure.ac): Check for getrlimit and setrlimit.
72123         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72125 2009-12-19  Bruno Haible  <bruno@clisp.org>
72127         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72128         * tests/test-fprintf-posix3.sh: New file.
72129         * tests/test-fprintf-posix3.c: New file.
72130         * modules/fprintf-posix-tests (Files): Add them.
72131         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72133 2009-12-19  Eric Blake  <ebb9@byu.net>
72135         dirfd: fix prototype
72136         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72137         * lib/dirfd.c (dirfd): Likewise.
72139         canonicalize: reduce memory usage
72140         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72141         allocation to size.
72142         Reported by Solar Designer <solar@openwall.com>.
72144 2009-12-19  Bruno Haible  <bruno@clisp.org>
72146         New module attribute 'Applicability'.
72147         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72148         * gnulib-tool: New option --extract-applicability.
72149         (func_usage): Document it.
72150         (sed_extract_prog): Recognize it.
72151         (func_get_applicability): New function.
72152         (func_import): Generalize handling of 'link-warning' module.
72153         * modules/link-warning (Applicability): New section.
72154         * modules/arg-nonnull (Applicability): New section.
72155         Repoted by Simon Josefsson <simon@josefsson.org>.
72157 2009-12-19  Bruno Haible  <bruno@clisp.org>
72159         fflush: tweak
72160         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72161         * lib/fseeko.c (rpl_fseeko): Likewise.
72163 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72165         * lib/gl_list.h: Fix typo in comment.
72167 2009-12-16  Eric Blake  <ebb9@byu.net>
72169         fcntl: use to simplify other modules
72170         * modules/cloexec (Depends-on): Add fcntl.
72171         * modules/fchdir (Depends-on): Likewise.
72172         * modules/fd-safer-flag (Depends-on): Likewise.
72173         * modules/unistd-safer (Depends-on): Likewise.
72174         * modules/dup3 (configure.ac): Set module indicator.
72175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72176         missing.
72177         * lib/fchdir.c (_gl_register_dup): Fix comment.
72178         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72179         * lib/dup-safer.c (dup_safer): Likewise.
72180         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72181         * lib/dup3.c (dup3): Likewise.
72182         * tests/test-fchdir.c (main): Enhance test.
72183         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72185         fcntl: port portions of fcntl to mingw
72186         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72187         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72188         replacement for mingw.
72189         * modules/fcntl (Description): Update.
72190         (Depends-on): Add dup2.
72191         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72192         * modules/fcntl-h (Makefile.am): Substitute it.
72193         * lib/fcntl.in.h (fcntl): Update declaration.
72194         (F_DUPFD, F_GETFD): New macros, when needed.
72195         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72196         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72197         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72198         we now guarantee.
72200         fcntl: work around cygwin bug in F_DUPFD
72201         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72202         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72203         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72204         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72205         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72207         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72208         * modules/fcntl (Files): List new files.
72209         (configure.ac): Run a test.
72210         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72211         * lib/fcntl.c (rpl_fcntl): Likewise.
72212         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72213         (gl_FCNTL_H): Always replace fcntl.h.
72214         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72215         * lib/fcntl.in.h (fcntl): Declare replacement.
72216         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72217         needed, plus a witness.
72218         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72219         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72220         * tests/test-fcntl.c: New file.
72221         * modules/fcntl-tests: Likewise.
72223         binary-io: avoid potential compilation warning
72224         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72225         directives.
72227         fflush: avoid compilation error on NetBSD
72228         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72229         between off_t and fpos_t, since the latter is sometimes a struct.
72230         * lib/fseeko.c (rpl_fseeko): Likewise.
72231         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72233 2009-12-15  Eric Blake  <ebb9@byu.net>
72235         fcntl-h, stdio, sys_ioctl: fix declarations
72236         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72237         function must not take arguments.
72238         * lib/sys_ioctl.in.h (ioctl): Likewise.
72239         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72240         (open): Add a link warning.
72242 2009-12-15  Jim Meyering  <meyering@redhat.com>
72244         areadlink, areadlink-with-size: relax license to LGPLv2+
72245         * modules/areadlink (License): Relax to LGPLv2+.
72246         * modules/areadlink-with-size (License): Likewise.
72248 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72249             Bruno Haible  <bruno@clisp.org>
72251         *printf: Fix memory leak.
72252         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72253         * lib/vfprintf.c (vfprintf): Likewise.
72254         * lib/dprintf.c (dprintf): Likewise.
72255         * lib/vdprintf.c (vdprintf): Likewise.
72257 2009-12-14  Eric Blake  <ebb9@byu.net>
72259         accept4: adjust module dependencies
72260         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72262         utimens: one more try at avoiding compiler warning
72263         * lib/utimens.c (lutimens): Lower scope of result.
72265 2009-12-13  Bruno Haible  <bruno@clisp.org>
72267         Move the malloc checking from module 'list' to new module 'xlist'.
72268         * modules/xlist: New file.
72269         * lib/gl_xlist.h: New file.
72270         * lib/gl_xlist.c: New file.
72271         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72272         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72273         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72274         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72275         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72276         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72277         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72278         gl_sortedlist_nx_add): New declarations.
72279         (struct gl_list_implementation): Rename and change methods accordingly.
72280         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72281         (gl_list_nx_create): Renamed from gl_list_create.
72282         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72283         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72284         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72285         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72286         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72287         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72288         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72289         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72290         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72291         gl_list_create_empty.
72292         (gl_list_nx_create): Renamed from gl_list_create.
72293         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72294         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72295         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72296         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72297         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72298         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72299         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72300         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72301         * lib/gl_array_list.c: Don't include xalloc.h.
72302         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72303         NULL upon out-of-memory.
72304         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72305         out-of-memory.
72306         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72307         Change return type to 'int'.
72308         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72309         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72310         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72311         upon out-of-memory.
72312         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72313         upon out-of-memory.
72314         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72315         upon out-of-memory.
72316         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72317         upon out-of-memory.
72318         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72319         out-of-memory.
72320         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72321         Update.
72322         (gl_array_list_implementation): Update.
72323         * lib/gl_carray_list.c: Don't include xalloc.h.
72324         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72325         Return NULL upon out-of-memory.
72326         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72327         out-of-memory.
72328         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72329         Change return type to 'int'.
72330         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72331         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72332         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72333         upon out-of-memory.
72334         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72335         upon out-of-memory.
72336         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72337         out-of-memory.
72338         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72339         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72340         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72341         Update.
72342         (gl_carray_list_implementation): Update.
72343         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72344         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72345         gl_linked_create_empty. Return NULL upon out-of-memory.
72346         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72347         out-of-memory.
72348         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72349         Change return type to 'int'. Return -1 upon out-of-memory.
72350         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72351         out-of-memory.
72352         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72353         upon out-of-memory.
72354         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72355         upon out-of-memory.
72356         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72357         NULL upon out-of-memory.
72358         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72359         upon out-of-memory.
72360         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72361         out-of-memory.
72362         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72363         Update.
72364         * lib/gl_linked_list.c: Don't include xalloc.h.
72365         (gl_linked_list_implementation): Update.
72366         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72367         (add_to_bucket): Change return type to 'int'.
72368         (gl_linkedhash_list_implementation): Update.
72369         * lib/gl_anytree_list1.h (free_subtree): New function.
72370         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72371         gl_tree_create_empty. Return NULL upon out-of-memory.
72372         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72373         Change return type to 'int'. Return -1 upon out-of-memory.
72374         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72375         out-of-memory.
72376         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72377         (gl_tree_remove_node): New function, moved here from
72378         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72379         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72380         Update.
72381         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72382         malloc, not xmalloc. Return NULL upon out-of-memory.
72383         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72384         out-of-memory.
72385         (gl_tree_remove_node_from_tree): New function, extracted from
72386         gl_tree_remove_node.
72387         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72388         upon out-of-memory.
72389         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72390         out-of-memory.
72391         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72392         upon out-of-memory.
72393         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72394         upon out-of-memory.
72395         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72396         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72397         not xmalloc. Return NULL upon out-of-memory.
72398         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72399         out-of-memory.
72400         (gl_tree_remove_node_from_tree): New function, extracted from
72401         gl_tree_remove_node.
72402         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72403         upon out-of-memory.
72404         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72405         out-of-memory.
72406         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72407         upon out-of-memory.
72408         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72409         upon out-of-memory.
72410         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72411         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72412         gl_anytree_list1.h before gl_anyavltree_list2.h.
72413         (gl_avltree_list_implementation): Update.
72414         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72415         gl_anytree_list1.h before gl_anyavltree_list2.h.
72416         (gl_rbtree_list_implementation): Update.
72417         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72418         Change return type to 'int'. Return -1 upon out-of-memory. Use
72419         __builtin_expect.
72420         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72421         (gl_avltreehash_list_implementation): Update.
72422         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72423         (gl_rbtreehash_list_implementation): Update.
72424         * modules/array-list (Depends-on): Remove xalloc.
72425         * modules/carray-list (Depends-on): Likewise.
72426         * modules/linked-list (Depends-on): Likewise.
72427         * modules/linkedhash-list (Depends-on): Likewise.
72428         * modules/avltree-list (Depends-on): Likewise.
72429         * modules/rbtree-list (Depends-on): Likewise.
72430         * modules/avltreehash-list (Depends-on): Likewise.
72431         * modules/rbtreehash-list (Depends-on): Likewise.
72433         * modules/xsublist: New file.
72434         * lib/gl_xsublist.h: New file.
72435         * lib/gl_xsublist.c: New file.
72436         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72437         (gl_sublist_nx_create): New declaration.
72438         * lib/gl_sublist.c: Don't include xalloc.h.
72439         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72440         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72441         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72442         Change return type to 'int'. Return -1 upon out-of-memory.
72443         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72444         upon out-of-memory.
72445         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72446         NULL upon out-of-memory.
72447         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72448         upon out-of-memory.
72449         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72450         NULL upon out-of-memory.
72451         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72452         NULL upon out-of-memory.
72453         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72454         upon out-of-memory.
72455         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72456         (gl_sublist_list_implementation): Update.
72457         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72458         upon out-of-memory.
72459         * modules/sublist (Depends-on): Remove xalloc.
72461         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72462         * tests/test-carray_list.c: Likewise.
72463         * tests/test-linked_list.c: Likewise.
72464         * tests/test-linkedhash_list.c: Likewise.
72465         * tests/test-avltree_list.c: Likewise.
72466         * tests/test-rbtree_list.c: Likewise.
72467         * tests/test-avltreehash_list.c: Likewise.
72468         * tests/test-rbtreehash_list.c: Likewise.
72469         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72470         * modules/carray-list-tests (Makefile.am): Likewise.
72471         * modules/linked-list-tests (Makefile.am): Likewise.
72472         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72473         * modules/avltree-list-tests (Makefile.am): Likewise.
72474         * modules/rbtree-list-tests (Makefile.am): Likewise.
72475         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72476         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72478         * NEWS: Mention the changes.
72480         * lib/clean-temp.c: Include gl_xlist.h.
72481         * modules/clean-temp (Depends-on): Add xlist.
72483         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72484         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72486         * tests/test-array_oset.c: Include gl_xlist.h.
72487         * modules/array-oset-tests (Depends-on): Add xlist.
72489         Reported by José E. Marchesi <jemarch@gnu.org>.
72491 2009-12-13  Bruno Haible  <bruno@clisp.org>
72493         Move the malloc checking from module 'oset' to new module 'xoset'.
72494         * modules/xoset: New file.
72495         * lib/gl_xoset.h: New file.
72496         * lib/gl_xoset.c: New file.
72497         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72498         declarations.
72499         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72500         (struct gl_oset_implementation): Rename and change methods accordingly.
72501         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72502         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72503         'int'. Mark as __warn_unused_result__.
72504         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72505         gl_oset_create_empty.
72506         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72507         'int'.
72508         * lib/gl_array_oset.c: Don't include xalloc.h.
72509         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72510         malloc, not xmalloc.
72511         (grow): Change return type to 'int'. Don't call xalloc_die.
72512         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72513         to 'int'.
72514         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72515         'int'.
72516         (gl_array_oset_implementation): Update.
72517         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72518         gl_tree_create_empty.
72519         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72520         'int'.
72521         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72522         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72523         xmalloc.
72524         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72525         not xmalloc.
72526         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72527         xmalloc.
72528         (gl_avltree_oset_implementation): Update.
72529         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72530         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72531         xmalloc.
72532         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72533         not xmalloc.
72534         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72535         xmalloc.
72536         (gl_rbtree_oset_implementation): Update.
72537         * modules/array-oset (Depends-on): Remove xalloc.
72538         * modules/avltree-oset (Depends-on): Likewise.
72539         * modules/rbtree-oset (Depends-on): Likewise.
72540         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72541         * tests/test-avltree_oset.c: Likewise.
72542         * tests/test-rbtree_oset.c: Likewise.
72543         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72544         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72545         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72546         * NEWS: Mention the change.
72548 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72550         maint.mk: allow a project to override release-prep commands
72551         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72552         commands into a new rule.
72553         (release-prep): New rule.
72554         (release-prep-hook): New overridable variable.
72556 2009-12-13  Bruno Haible  <bruno@clisp.org>
72558         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72560 2009-12-13  Jim Meyering  <meyering@redhat.com>
72562         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72563         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72565 2009-12-12  Bruno Haible  <bruno@clisp.org>
72567         duplocale: Tweak.
72568         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72570 2009-12-12  Karl Berry  <karl@gnu.org>
72572         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72574 2009-12-12  Bruno Haible  <bruno@clisp.org>
72576         * m4/po.m4: Undo incorrect untabification.
72578 2009-12-12  Bruno Haible  <bruno@clisp.org>
72580         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72581         * modules/c-strtod (Depends-on): Add locale.
72582         * modules/c-strtold (Depends-on): Likewise.
72584 2009-12-12  Bruno Haible  <bruno@clisp.org>
72586         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72588 2009-12-11  Eric Blake  <ebb9@byu.net>
72590         setenv: relax requirement in light of POSIX ruling
72591         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72592         not NULL.
72593         * tests/test-setenv.c (main): Relax test.
72594         * tests/test-unsetenv.c (main): Likewise.
72595         * doc/posix-functions/setenv.texi (setenv): Document this.
72596         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72598 2009-12-11  Bruno Haible  <bruno@clisp.org>
72600         New module 'fd-safer-flag'.
72601         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72602         * lib/dup-safer.c (dup_safer_flag): Remove function.
72603         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72604         * lib/fd-safer.c (fd_safer_flag): Remove function.
72605         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72606         * modules/cloexec (configure.ac): Drop indicator macro.
72607         * modules/fd-safer-flag: New file.
72608         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72609         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72610         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72612 2009-12-11  Bruno Haible  <bruno@clisp.org>
72614         Tests for module 'nl_langinfo'.
72615         * modules/nl_langinfo-tests: New file.
72616         * tests/test-nl_langinfo.sh: New file.
72617         * tests/test-nl_langinfo.c: New file.
72619         New module 'nl_langinfo'.
72620         * lib/nl_langinfo.c: New file.
72621         * m4/nl_langinfo.m4: New file.
72622         * modules/nl_langinfo: New file.
72623         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72625 2009-12-11  Bruno Haible  <bruno@clisp.org>
72627         Tests for module 'langinfo'.
72628         * modules/langinfo-tests: New file.
72629         * tests/test-langinfo.c: New file.
72631         New module 'langinfo'.
72632         * lib/langinfo.in.h: New file.
72633         * m4/langinfo_h.m4: New file.
72634         * modules/langinfo: New file.
72635         * doc/posix-headers/langinfo.texi: Mention the new module.
72637 2009-12-11  Bruno Haible  <bruno@clisp.org>
72639         * lib/config.charset: Untabify.
72641 2009-12-11  Bruno Haible  <bruno@clisp.org>
72643         * modules/unistd-safer (configure.ac): Drop indicator macro.
72645 2009-12-11  Bruno Haible  <bruno@clisp.org>
72647         Move pipe2-safer code to its own file.
72648         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72649         * lib/pipe-safer.c (pipe2_safer): Remove function.
72650         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72651         (Makefile.am): Add it to lib_SOURCES.
72653 2009-12-10  Bruno Haible  <bruno@clisp.org>
72655         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72657 2009-12-10  Bruno Haible  <bruno@clisp.org>
72659         Declare which arguments expect non-NULL values, for GCC and clang.
72660         * build-aux/arg-nonnull.h: New file.
72661         * modules/arg-nonnull: New file.
72662         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72663         (inet_ntop, inet_pton): Use it.
72664         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72665         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72666         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72667         (open, openat): Use it.
72668         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72669         (fnmatch): Use it.
72670         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72671         (getopt, getopt_long, getopt_long_only): Use it.
72672         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72673         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72674         Use it.
72675         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72676         (iconv_open): Use it.
72677         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72678         (strtoimax, strtoumax): Use it.
72679         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72680         (duplocale): Use it.
72681         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72682         (frexp, frexpl): Use it.
72683         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72684         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72685         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72686         (tsearch, tfind, tdelete, twalk): Use it.
72687         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72688         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72689         sigpending): Use it.
72690         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72691         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72692         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72693         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72694         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72695         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72696         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72697         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72698         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72699         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72700         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72701         Use it.
72702         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72703         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72704         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72705         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72706         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72707         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72708         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72709         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72710         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72711         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72712         strtoull, unsetenv): Use it.
72713         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72714         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72715         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72716         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72717         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72718         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72719         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
72720         (strcasecmp, strncasecmp): Use it.
72721         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
72722         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
72723         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
72724         rpl_setsockopt): Use it.
72725         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
72726         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
72727         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
72728         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
72729         (gettimeofday): Use it.
72730         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
72731         (times): Use it.
72732         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
72733         (uname): Use it.
72734         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
72735         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
72736         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
72737         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
72738         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
72739         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
72740         unlinkat, write): Use it.
72741         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
72742         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
72743         * lib/argv-iter.h: Include arg-nonnull.h.
72744         (_ATTRIBUTE_NONNULL_): Remove macro.
72745         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
72746         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
72747         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
72748         optimization.
72749         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
72750         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
72751         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
72752         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
72753         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
72754         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
72755         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
72756         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
72757         * modules/arpa_inet (Depends-on): Add arg-nonnull.
72758         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
72759         * modules/dirent (Depends-on): Add arg-nonnull.
72760         (Makefile.am): Insert arg-nonnull.h into dirent.h.
72761         * modules/fcntl-h (Depends-on): Add arg-nonnull.
72762         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
72763         * modules/fnmatch (Depends-on): Add arg-nonnull.
72764         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
72765         * modules/getopt-posix (Depends-on): Add arg-nonnull.
72766         (Makefile.am): Insert arg-nonnull.h into getopt.h.
72767         * modules/glob (Depends-on): Add arg-nonnull.
72768         (Makefile.am): Insert arg-nonnull.h into glob.h.
72769         * modules/iconv_open (Depends-on): Add arg-nonnull.
72770         (Makefile.am): Insert arg-nonnull.h into iconv.h.
72771         * modules/inttypes (Depends-on): Add arg-nonnull.
72772         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
72773         * modules/locale (Depends-on): Add arg-nonnull.
72774         (Makefile.am): Insert arg-nonnull.h into locale.h.
72775         * modules/math (Depends-on): Add arg-nonnull.
72776         (Makefile.am): Insert arg-nonnull.h into math.h.
72777         * modules/netdb (Depends-on): Add arg-nonnull.
72778         (Makefile.am): Insert arg-nonnull.h into netdb.h.
72779         * modules/search (Depends-on): Add arg-nonnull.
72780         (Makefile.am): Insert arg-nonnull.h into search.h.
72781         * modules/signal (Depends-on): Add arg-nonnull.
72782         (Makefile.am): Insert arg-nonnull.h into signal.h.
72783         * modules/spawn (Depends-on): Add arg-nonnull.
72784         (Makefile.am): Insert arg-nonnull.h into spawn.h.
72785         * modules/stdio (Depends-on): Add arg-nonnull.
72786         (Makefile.am): Insert arg-nonnull.h into stdio.h.
72787         * modules/stdlib (Depends-on): Add arg-nonnull.
72788         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
72789         * modules/string (Depends-on): Add arg-nonnull.
72790         (Makefile.am): Insert arg-nonnull.h into string.h.
72791         * modules/strings (Depends-on): Add arg-nonnull.
72792         (Makefile.am): Insert arg-nonnull.h into strings.h.
72793         * modules/sys_socket (Depends-on): Add arg-nonnull.
72794         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
72795         * modules/sys_stat (Depends-on): Add arg-nonnull.
72796         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
72797         * modules/sys_time (Depends-on): Add arg-nonnull.
72798         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
72799         * modules/sys_times (Depends-on): Add arg-nonnull.
72800         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
72801         * modules/sys_utsname (Depends-on): Add arg-nonnull.
72802         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
72803         * modules/time (Depends-on): Add arg-nonnull.
72804         (Makefile.am): Insert arg-nonnull.h into time.h.
72805         * modules/unistd (Depends-on): Add arg-nonnull.
72806         (Makefile.am): Insert arg-nonnull.h into unistd.h.
72807         * modules/wchar (Depends-on): Add arg-nonnull.
72808         (Makefile.am): Insert arg-nonnull.h into wchar.h.
72809         * modules/argv-iter (Depends-on): Add arg-nonnull.
72810         * tests/test-canonicalize.c (null_ptr): New function.
72811         (main): Use it.
72812         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
72813         (main): Use it.
72814         * tests/test-memmem.c (null_ptr): New function.
72815         (main): Use it.
72816         Reported by Jim Meyering.
72818 2009-12-10  Bruno Haible  <bruno@clisp.org>
72820         Use spaces for indentation, not tabs.
72821         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
72822         * m4/*.m4: Untabify.
72823         * build-aux/*.h: Untabify.
72824         * tests/**/*.[hc]: Untabify.
72825         * README: New section "Indent with spaces, not TABs", based on
72826         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
72827         * NEWS: Mention the change.
72829 2009-12-10  Bruno Haible  <bruno@clisp.org>
72831         pty test: Fix link error.
72832         * modules/pty-tests (Makefile.am): Add the default LDADD value to
72833         test_pty_LDADD.
72835 2009-12-07  Simon Josefsson  <simon@josefsson.org>
72837         * modules/pty: New file.
72838         * modules/pty-tests: New file.
72839         * m4/pty.m4: New file.
72840         * tests/test-pty.c: New file.
72841         * doc/glibc-headers/pty.texi: Modified.
72842         * doc/glibc-functions/forkpty.texi: Modified.
72843         * doc/glibc-functions/openpty.texi: Modified.
72845 2009-12-10  Bruno Haible  <bruno@clisp.org>
72847         Avoid syntax error in C++ mode.
72848         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
72850 2009-12-10  Bruno Haible  <bruno@clisp.org>
72852         Use sed with option -e.
72853         * gnulib-tool (func_version, func_emit_copyright_notice,
72854         func_emit_initmacro_end, func_import, func_create_testdir): Pass
72855         option -e to sed.
72856         * modules/link-warning (Makefile.am): Likewise.
72858 2009-12-10  Jim Meyering  <meyering@redhat.com>
72860         mgetgroups: do not write bytes beyond end of malloc'd buffer
72861         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
72862         username, we call getgroups with a one-element-shorter buffer,
72863         but still told it the length was original, max_n_groups.
72865 2009-12-09  Eric Blake  <ebb9@byu.net>
72867         cloexec: relax license
72868         * modules/cloexec (Maintainer): Add myself.
72869         (License): Use LGPL, not GPL.
72871         link-warning: optimize generation
72872         * modules/link-warning (Makefile.am): Reduce process usage.
72874 2009-12-09  Bruno Haible  <bruno@clisp.org>
72876         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
72877         workaround was added on 2009-11-17.
72879 2009-12-09  Jim Meyering  <meyering@redhat.com>
72880             Bruno Haible  <bruno@clisp.org>
72882         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
72883         * modules/link-warning (Makefile.am): Make the comment-removing sed
72884         command more robust in the face of bootstrap-prepended comment lines.
72886 2009-12-09  Bruno Haible  <bruno@clisp.org>
72888         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
72889         most one group.
72891 2009-12-09  Simon Josefsson  <simon@josefsson.org>
72892             Bruno Haible  <bruno@clisp.org>
72894         * build-aux/link-warning.h: Add copyright notice.
72895         * modules/link-warning (Makefile.am): Generate link-warning.h from
72896         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
72897         * NEWS: Mention change in link-warning module.
72898         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
72899         * modules/dirent (Makefile.am): Add dependency to dirent.h.
72900         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
72901         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
72902         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
72903         * modules/math (Makefile.am): Add dependency to math.h.
72904         * modules/search (Makefile.am): Add dependency to search.h.
72905         * modules/signal (Makefile.am): Add dependency to signal.h.
72906         * modules/spawn (Makefile.am): Add dependency to spawn.h.
72907         * modules/stdio (Makefile.am): Add dependency to stdio.h.
72908         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
72909         * modules/string (Makefile.am): Add dependency to string.h.
72910         * modules/strings (Makefile.am): Add dependency to strings.h.
72911         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
72912         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
72913         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
72914         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
72915         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
72916         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
72917         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
72918         * modules/unistd (Makefile.am): Add dependency to unistd.h.
72919         * modules/wchar (Makefile.am): Add dependency to wchar.h.
72921 2009-12-09  Bruno Haible  <bruno@clisp.org>
72923         fchdir: Optimize away rpl_fstat when possible.
72924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
72925         REPLACE_OPEN_DIRECTORY.
72926         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
72928 2009-12-09  Bruno Haible  <bruno@clisp.org>
72930         * lib/fchdir.c: Update comment.
72932 2009-12-09  Bruno Haible  <bruno@clisp.org>
72934         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
72936 2009-12-08  Eric Blake  <ebb9@byu.net>
72938         fchdir: avoid memory leak on re-registration.
72939         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
72941 2009-12-08  Jim Meyering  <meyering@redhat.com>
72943         init.sh: avoid Solaris 10 /bin/sh portability problem
72944         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
72945         sourced script:
72946           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
72947           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
72948           bar
72949         tests/init.sh relied on that, accepting a --set-path=DIR argument,
72950         and two tests used that idiom.
72951         * tests/init.sh: Update suggested usage comments.
72952         (path_prepend_): New function, to be used in place
72953         of the --src-path=DIR option.
72954         (setup_): Move PATH-prepending code into path_prepend_.
72955         * tests/test-pread.sh: Adapt to new usage.
72956         * tests/test-xalloc-die.sh: Likewise.
72958 2009-12-08  Simon Josefsson  <simon@josefsson.org>
72960         * doc/gnulib.texi (Glibc pty.h): Add.
72961         * doc/glibc-functions/forkpty.texi: Add.
72962         * doc/glibc-functions/openpty.texi: Add.
72963         Suggested by Bruno Haible.
72965 2009-12-08  Eric Blake  <ebb9@byu.net>
72967         fchdir: fix logic bugs
72968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
72969         * tests/test-fchdir.c (main): Enhance test.
72970         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
72971         is in use.
72973         dup2: fix logic bugs
72974         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
72975         REPLACE_DUP2 to decide when rpl_dup2 is needed.
72976         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
72977         exists.
72978         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
72980 2009-12-07  Eric Blake  <ebb9@byu.net>
72982         unlink: fix m4 detection
72983         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
72985         unistd-safer: add unit test
72986         * modules/unistd-safer-tests: New file.
72987         * tests/test-dup-safer.c: Likewise.
72988         * tests/test-cloexec.c (setmode): Avoid compiler warning.
72989         * tests/test-dup2.c (setmode): Likewise.
72990         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
72992         cloexec: preserve text vs. binary across dup_cloexec
72993         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
72994         mode.
72995         * modules/dup2-tests (Depends-on): Add binary-io.
72996         * modules/cloexec-tests (Depends-on): Likewise.
72997         * tests/test-dup2.c (setmode, is_mode): New helpers.
72998         (main): Add tests that translation mode is preserved.
72999         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73000         Reported by Bruno Haible.
73002         mgetgroups: reduce duplicate listings
73003         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73004         resulting array.
73005         * tests/test-chown.h (test_chown): Simplify client.
73006         * tests/test-lchown.h (test_lchown): Likewise.
73008 2009-12-06  Bruno Haible  <bruno@clisp.org>
73010         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73011         value.
73013 2009-12-06  Bruno Haible  <bruno@clisp.org>
73015         * lib/progname.c: Include stdio.h, stdlib.h.
73016         (set_program_name): Reject a NULL argument.
73018 2009-12-05  Eric Blake  <ebb9@byu.net>
73020         pipe2-safer: new module
73021         * modules/pipe2-safer: New file.
73022         * lib/unistd-safer.h (pipe2_safer): New prototype.
73023         * lib/unistd--.h (pipe2): New wrapper.
73024         * lib/pipe-safer.c (pipe2_safer): New function.
73025         * modules/pipe (Depends-on): Add pipe2-safer.
73026         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73028         stdlib-safer: preserve cloexec flag for mkostemp[s]
73029         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73030         fd_safer_flag.
73032         unistd-safer: allow preservation of cloexec status via flag
73033         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73034         prototypes.
73035         * lib/dup-safer.c (dup_safer_flag): New function.
73036         * lib/fd-safer.c (fd_safer_flag): Likewise.
73037         * modules/cloexec (configure.ac): Set witness.
73039         test-dup2: enhance test
73040         * modules/dup2-tests (Depends-on): Add cloexec.
73041         * tests/test-dup2.c (main): Enhance test.
73043         cloexec: add dup_cloexec
73044         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73045         header and comments.
73046         * lib/cloexec.c (set_cloexec_flag): Add comments.
73047         (dup_cloexec): New function, with mingw implementation borrowed
73048         from...
73049         * lib/w32spawn.h (dup_noinherit): ...here.
73050         * modules/execute (Depends-on): Add cloexec.
73051         * modules/pipe (Depends-on): Likewise.
73052         * modules/cloexec (Depends-on): Add dup2.
73053         * modules/cloexec-tests (Files): New file.
73054         * tests/test-cloexec.c: Likewise.
73056         test-xalloc-die: fix test for mingw
73057         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73058         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73059         directory and .exe suffix off argv[0] output.
73061         test-fseeko: fix test for mingw
73062         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73063         than undefining fseek, so test will pass on mingw.
73065 2009-12-05  Bruno Haible  <bruno@clisp.org>
73067         * lib/progname.h (set_program_name): Clarify specification.
73068         * lib/progname.c (set_program_name): Likewise.
73069         Reported by Jim Meyering.
73071 2009-12-05  Jim Meyering  <meyering@redhat.com>
73073         maint.mk: backslash-escape parens in default regexp
73074         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73075         backslash-escape the literal parentheses.
73077         maint.mk: news-date-check: use grep -E
73078         * top/maint.mk (today): Define a Make variable, not a...
73079         (news-date-check): ...shell variable.
73080         (news-date-regexp): Use the Make variable.
73081         Use grep's -E option.  Change the failing diagnostic to mention
73082         the variable, $(news-date-regexp).
73084 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73086         maintainer-makefile: allow customization of NEWS entry format
73087         * top/maint.mk (news-date-regexp): New overridable variable.
73088         (news-date-check): Use it.
73090 2009-12-04  Eric Blake  <ebb9@byu.net>
73092         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73093         * lib/mgetgroups.h (xgetgroups): New prototype.
73094         * lib/mgetgroups.c (xgetgroups): New wrapper.
73095         (mgetgroups): Handle ENOSYS.
73096         * modules/mgetgroups (Depends-on): Add realloc.
73097         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73099         mgetgroups: avoid argument promotion issues with -1
73100         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73101         for invalid gid_t.
73102         * tests/test-chown.h (getegid, test_chown): Likewise.
73103         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73105 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73107         exclude: Fix header file problems.
73108         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73110 2009-12-01  Jim Meyering  <meyering@redhat.com>
73112         fts: fts_open: do not let an empty string cause immediate failure
73113         This is required in support of GNU rm, for which the command
73114         "rm A '' B" must process and remove both A and B, in spite of
73115         the empty string argument.
73116         * lib/fts.c (fts_open): Do not let the presence of an empty string
73117         cause fts_open to fail immediately.  Most fts-using tools must be
73118         able to process all arguments, in order, and can be expected to
73119         diagnose such arguments themselves.
73121 2009-11-30  Eric Blake  <ebb9@byu.net>
73123         utimens: fix compilation error
73124         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73125         Declare variable at right scope.
73127 2009-11-29  Jim Meyering  <meyering@redhat.com>
73129         bootstrap: handle perl-5.11's changed --version output
73130         * build-aux/bootstrap (get_version): Handle perl separately,
73131         since perl-5.11's --version output is different.
73133 2009-11-28  Jim Meyering  <meyering@redhat.com>
73135         userspec: depend on the inttostr module, too
73136         * modules/userspec (Depends-on): Add inttostr.
73138         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73139         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73140         number of MAXUID when it evaluates to (uid_t) -1.
73141         Likewise for group ID.  Reported by Matt McCutchen in
73142         <http://savannah.gnu.org/bugs/?28113>
73144         userspec: reformat to use spaces, not TABs
73145         * lib/userspec.c: Expand TABs to spaces.
73146         Add Emacs' "indent-tabs-mode: nil" hint.
73148 2009-11-27  Eric Blake  <ebb9@byu.net>
73150         getopt-gnu: flush out another BSD bug
73151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73152         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73153         flush out BSD bug.
73154         * tests/test-getopt.h (test_getopt): End lists with NULL.
73155         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73156         (test_getopt_long_posix): Enhance test.
73157         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73158         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73159         getopt-gnu.
73160         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73161         Likewise.
73163 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73165         * modules/idpriv-droptemp-tests (Notice): Fix text.
73167 2009-11-27  Jim Meyering  <meyering@redhat.com>
73169         test-xalloc-die: avoid spurious failure due to libtool argv difference
73170         In a libtool-enabled project, this test would fail due to a difference
73171         in the emitted program name, e.g.,
73172         -test-xalloc-die: memory exhausted
73173         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73174         Use program to avoid that.
73175         * modules/xalloc-die-tests (Depends-on): Add progname.
73176         * tests/test-xalloc-die.c: Include progname.h".
73177         (program_name): Remove decl.
73178         (main): Call set_program_name.
73179         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73181 2009-11-26  Richard Jones  <rjones@redhat.com>
73183         w32sock: leave win32 error in place.
73184         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73186 2009-11-26  Eric Blake  <ebb9@byu.net>
73188         init.sh: suggest to use skip_ and fail_ functions in comments
73189         * tests/init.sh: Add a sentence.
73191 2009-11-25  Bruno Haible  <bruno@clisp.org>
73193         init.sh: add documentation in comments
73194         * tests/init.sh: Add some developer and user documentation.
73196 2009-11-26  Jim Meyering  <meyering@redhat.com>
73198         init.sh: accommodate even those who specify bogus srcdir manually
73199         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73200         configure-time tests to be sanitized, so that there is no need to
73201         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73202         (with no double quotes) suffices.  However, since tests may be
73203         invoked manually, and since you may explicitly set srcdir to the
73204         name of a directory containing spaces, do quote its uses here.
73205         * tests/test-pread.sh: Likewise.
73206         Suggested by Bruno Haible.
73208         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73209         * tests/test-pread.sh: Write no data into the pipe, because
73210         test-pread actually reads none.  This avoids a diagnostic,
73211         "bash: echo: write error: Broken pipe", that arises in the unusual
73212         event something is ignoring SIGPIPE, and might be interpreted
73213         as some sort of failure.  Reported by Bruno Haible.
73215 2009-11-25  Jim Meyering  <meyering@redhat.com>
73217         test-pread: cover failure with ESPIPE and EINVAL
73218         * tests/test-pread.c (main): Test for failure, too.
73219         * tests/test-pread.sh: Invoke with stdin on a pipe.
73220         Suggested by Eric Blake.
73222         pread: improvement and fix
73223         * modules/pread (Depends-on): Depend on lseek, for portability to
73224         e.g., mingw.  Suggested by Eric Blake.
73225         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73227         unistd.in.h: correct declaration of pread
73228         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73229         Reported by Richard W.M. Jones.
73231         test-pread.sh: distribute the test script
73232         * modules/pread-tests (Files): Include test-pread.sh.
73234         test-pread.sh: clean up
73235         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73236         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73237         That is unnecessary, since it's always ".".
73238         Suggestion from Eric Blake.
73240         test-pread.sh: make executable
73241         * tests/test-pread.sh: Set executable bit.
73242         Reported by Eric Blake.
73244         correct typo in test-pread.sh
73245         * tests/test-pread.sh: Add #! line.
73247         test pread
73248         * tests/test-pread.c: New file.
73249         * tests/test-pread.sh: Likewise.
73250         * modules/pread-tests: Likewise.
73252         pread: new module
73253         * modules/pread: New file.
73254         * lib/unistd.in.h (pread): Define/declare.
73255         * lib/pread.c (pread): New file.
73256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73257         * modules/unistd (Makefile.am): Substitute witnesses.
73258         * doc/posix-functions/pread.texi (pread): Update.
73259         * MODULES.html.sh: Add pread.
73261 2009-11-25  Jim Meyering  <meyering@redhat.com>
73263         tests/init.sh: new file to be used via most *.sh tests
73264         * tests/init.sh: New file.
73266 2009-11-25  Eric Blake  <ebb9@byu.net>
73268         utimens: work around older Linux failure with symlinks
73269         * lib/utimens.c (lutimensat_works_really): New variable.
73270         (fdutimens, lutimens): Use it to manage kernels that support
73271         nanosecond times on files, but not on symlinks.
73272         Reported by Ondřej Vašík.
73274         utimes: fix configure grammar
73275         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73277 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73279         regex: Fix fastmap for multibyte character ranges.
73280         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73281         characters when a multibyte character range is included.
73283 2009-11-22  Andy Wingo  <wingo@pobox.com>
73285         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73286         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73288 2009-11-24  Bruno Haible  <bruno@clisp.org>
73290         doc: Most *_l functions exist in MacOS X 10.5.
73291         * doc/posix-functions/duplocale.texi: Update platforms list.
73292         * doc/posix-functions/freelocale.texi: Likewise.
73293         * doc/posix-functions/newlocale.texi: Likewise.
73294         * doc/posix-functions/uselocale.texi: Likewise.
73295         * doc/posix-functions/isalnum_l.texi: Likewise.
73296         * doc/posix-functions/isalpha_l.texi: Likewise.
73297         * doc/posix-functions/isblank_l.texi: Likewise.
73298         * doc/posix-functions/iscntrl_l.texi: Likewise.
73299         * doc/posix-functions/isdigit_l.texi: Likewise.
73300         * doc/posix-functions/isgraph_l.texi: Likewise.
73301         * doc/posix-functions/islower_l.texi: Likewise.
73302         * doc/posix-functions/isprint_l.texi: Likewise.
73303         * doc/posix-functions/ispunct_l.texi: Likewise.
73304         * doc/posix-functions/isspace_l.texi: Likewise.
73305         * doc/posix-functions/isupper_l.texi: Likewise.
73306         * doc/posix-functions/iswalnum_l.texi: Likewise.
73307         * doc/posix-functions/iswalpha_l.texi: Likewise.
73308         * doc/posix-functions/iswblank_l.texi: Likewise.
73309         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73310         * doc/posix-functions/iswctype_l.texi: Likewise.
73311         * doc/posix-functions/iswdigit_l.texi: Likewise.
73312         * doc/posix-functions/iswgraph_l.texi: Likewise.
73313         * doc/posix-functions/iswlower_l.texi: Likewise.
73314         * doc/posix-functions/iswprint_l.texi: Likewise.
73315         * doc/posix-functions/iswpunct_l.texi: Likewise.
73316         * doc/posix-functions/iswspace_l.texi: Likewise.
73317         * doc/posix-functions/iswupper_l.texi: Likewise.
73318         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73319         * doc/posix-functions/isxdigit_l.texi: Likewise.
73320         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73321         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73322         * doc/posix-functions/strcoll_l.texi: Likewise.
73323         * doc/posix-functions/strfmon_l.texi: Likewise.
73324         * doc/posix-functions/strftime_l.texi: Likewise.
73325         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73326         * doc/posix-functions/strxfrm_l.texi: Likewise.
73327         * doc/posix-functions/tolower_l.texi: Likewise.
73328         * doc/posix-functions/toupper_l.texi: Likewise.
73329         * doc/posix-functions/towctrans_l.texi: Likewise.
73330         * doc/posix-functions/towlower_l.texi: Likewise.
73331         * doc/posix-functions/towupper_l.texi: Likewise.
73332         * doc/posix-functions/wcscoll_l.texi: Likewise.
73333         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73334         * doc/posix-functions/wctrans_l.texi: Likewise.
73335         * doc/posix-functions/wctype_l.texi: Likewise.
73336         * doc/glibc-functions/strptime_l.texi: Likewise.
73337         * doc/glibc-functions/strtod_l.texi: Likewise.
73338         * doc/glibc-functions/strtof_l.texi: Likewise.
73339         * doc/glibc-functions/strtol_l.texi: Likewise.
73340         * doc/glibc-functions/strtold_l.texi: Likewise.
73341         * doc/glibc-functions/strtoll_l.texi: Likewise.
73342         * doc/glibc-functions/strtoul_l.texi: Likewise.
73343         * doc/glibc-functions/strtoull_l.texi: Likewise.
73344         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73345         * doc/glibc-functions/wcstod_l.texi: Likewise.
73346         * doc/glibc-functions/wcstof_l.texi: Likewise.
73347         * doc/glibc-functions/wcstol_l.texi: Likewise.
73348         * doc/glibc-functions/wcstold_l.texi: Likewise.
73349         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73350         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73351         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73353 2009-11-24  Bruno Haible  <bruno@clisp.org>
73355         duplocale: Fix logic bug.
73356         * lib/duplocale.c: Don't include <langinfo.h>.
73357         (_NL_LOCALE_NAME): Remove macro.
73358         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73359         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73361 2009-11-23  Jim Meyering  <meyering@redhat.com>
73363         test-update-copyright: don't hard-code /usr/bin/perl
73364         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73365         perl to print the current year.  Gilles Espinasse reported that
73366         the replaced use of perl was hard-coded as /usr/bin/perl.
73368 2009-11-23  Bruno Haible  <bruno@clisp.org>
73370         duplocale: Add support for glibc 2.3.x.
73371         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73373 2009-11-22  Bruno Haible  <bruno@clisp.org>
73375         vasnprintf: Tiny optimization.
73376         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73377         MacOS X.
73379 2009-11-22  Bruno Haible  <bruno@clisp.org>
73381         Tests for module 'duplocale'.
73382         * modules/duplocale-tests: New file.
73383         * tests/test-duplocale.c: New file.
73385         New module 'duplocale'.
73386         * m4/duplocale.m4: New file.
73387         * lib/locale.in.h (duplocale): New declaration.
73388         * lib/duplocale.c: New file.
73389         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73390         gl_LOCALE_H_DEFAULTS): New macros.
73391         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73392         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73393         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73394         REPLACE_DUPLOCALE.
73395         * modules/duplocale: New file.
73396         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73398 2009-11-22  Bruno Haible  <bruno@clisp.org>
73400         * modules/locale-tests (configure.ac): Test for newlocale function.
73401         * tests/test-locale.c: When the system has extended locale functions,
73402         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73404         locale: Make locale_t available when possible.
73405         * lib/locale.in.h: Include <xlocale.h> when it exists.
73406         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73407         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73408         * modules/locale (Depends-on): Add extensions.
73409         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73410         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73412 2009-11-22  Bruno Haible  <bruno@clisp.org>
73414         Add comments.
73415         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73416         invocation.
73417         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73418         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73419         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73421 2009-11-22  Bruno Haible  <bruno@clisp.org>
73423         error: account for the possibility of freopen (stdout).
73424         * lib/error.c: Include <unistd.h>.
73425         (flush_stdout): New function, extracted from error and error_at_line.
73426         Determine stdout's fd dynamically.
73427         (error, error_at_line): Invoke flush_stdout.
73428         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73429         * modules/error (Depends-on): Add unistd.
73431 2009-11-22  Bruno Haible  <bruno@clisp.org>
73433         diffseq: Add comment.
73434         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73436 2009-11-22  Jim Meyering  <meyering@redhat.com>
73438         c-stack: avoid defining an unused static function
73439         * lib/c-stack.c (find_stack_direction): Do not define this function
73440         when it will not be used.
73442         diffseq: avoid spurious gcc warnings
73443         * lib/diffseq.h (IF_LINT2): Define.
73444         (compareseq): Use it to initialize two members of "part".
73445         This avoids two used-uninitialized warnings.
73447 2009-11-21  Jim Meyering  <meyering@redhat.com>
73449         c-stack: avoid "ignoring return value of `write'" warning
73450         * lib/c-stack.c: Include "ignore-value.h".
73451         (die): Explicitly ignore each write return value.
73452         * modules/c-stack (Depends-on): Add ignore-value.
73454 2009-11-21  Bruno Haible  <bruno@clisp.org>
73456         diffseq: reduce scope of variable 'best'.
73457         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73458         variable, earlier used for two different purposes.
73460 2009-11-21  Jim Meyering  <meyering@redhat.com>
73462         diffseq: remove useless assignment to "best"
73463         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73464         assignment.  At that point "best" is already guaranteed to be zero.
73466 2009-11-20  Eric Blake  <ebb9@byu.net>
73468         build: mention ftp redirector in release announcements
73469         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73470         values that used to come from cfg.mk; mention FTP redirect URL.
73471         * build-aux/announce-gen: Mention the mirror list.
73472         Suggested by Karl Berry.
73474         nanosleep: improve port to mingw
73475         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73477         LIB_NANOSLEEP, but only when needed.
73478         * modules/select (Link): Document LIBSOCKET.
73479         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73480         enough.
73482         nanosleep: work around cygwin bug
73483         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73484         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73485         bug.
73486         (getnow): Delete, not needed.
73487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73488         LIB_CLOCK_GETTIME.
73489         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73490         clock-time, gettime.
73491         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73492         bug.
73493         * modules/nanosleep-tests: New test.
73494         * tests/test-nanosleep.c: New file.
73496         sleep: work around cygwin bug
73497         * lib/sleep.c (rpl_sleep): Work around the bug.
73498         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73499         (gl_PREREQ_SLEEP): Delete unused macro.
73500         * modules/sleep (Depends-on): Add verify.
73501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73502         * modules/unistd (Makefile.am): Substitute witness.
73503         * lib/unistd.in.h (sleep): Update prototype.
73504         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73505         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73506         * modules/sleep-tests (Depends-on): Check for alarm.
73508 2009-11-20  Jim Meyering  <meyering@redhat.com>
73510         maint.mk: improve sc_prohibit_magic_number_exit
73511         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73512         so it does not match uses like System.exit(1).
73513         Add comments showing how to correct all offenders.
73515 2009-11-19  Eric Blake  <ebb9@byu.net>
73517         xalloc-die-tests: add missing library
73518         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73520         test-xvasprintf: silence compiler warnings
73521         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73522         empty string from gcc.
73524 2009-11-19  Jim Meyering  <meyering@redhat.com>
73526         xfreopen: new module, from coreutils
73527         * modules/xfreopen: New module.
73528         * lib/xfreopen.c: New file.
73529         * lib/xfreopen.h: New file.
73530         * MODULES.html.sh (File stream based Input/Output"): Add it.
73532 2009-11-19  Eric Blake  <ebb9@byu.net>
73534         manywarnings: depend on warnings
73535         * modules/manywarnings (Depends-on): Add warnings.
73537         build: avoid compiler warnings
73538         * lib/select.c (rpl_select): Delete unused variable.
73539         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73541 2009-11-18  Eric Blake  <ebb9@byu.net>
73543         tests: avoid false negative with --with-packager
73544         * tests/test-version-etc.sh: Discard packager information.
73545         * tests/test-argp-version-etc-1.sh: Likewise.
73546         Reported by Mike Frysinger.
73548         utimens: fix regression on Solaris
73549         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73550         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73551         can only change fd timestamps via futimesat.  Instead, use an
73552         additional witness macro to avoid BSD bug.
73553         Reported by Jim Meyering.
73555 2009-11-17  Eric Blake  <ebb9@byu.net>
73557         usleep: use it to simplify tests
73558         * modules/stat-time-tests (Depends-on): Add usleep.
73559         (configure.ac): Drop usleep check.
73560         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73561         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73562         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73563         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73564         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73565         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73566         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73567         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73568         Likewise.
73569         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73570         * tests/test-lchown.h (nap): Likewise.
73571         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73572         * tests/test-stat-time.c (nap): Likewise.
73573         * tests/test-utimens-common.h (nap): Update comments.
73575         usleep: new module
73576         * modules/usleep: New file.
73577         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73578         * lib/usleep.c (usleep): Likewise.
73579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73580         * modules/unistd (Makefile.am): Substitute witnesses.
73581         * lib/unistd.in.h (usleep): Add declaration.
73582         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73583         * MODULES.html.sh (Date and time): Likewise.
73584         * modules/usleep-tests (Depends-on): New test.
73585         * tests/test-usleep.c: New file.
73587         chown: work around OpenBSD bug
73588         * lib/chown.c (rpl_chown): Work around the bug.
73589         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73590         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73591         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73592         * modules/chown (Depends-on): Add stdbool.
73593         * modules/lchown (Depends-on): Likewise.
73594         * doc/posix-functions/chown.texi (chown): Document the bug.
73595         * doc/posix-functions/lchown.texi (lchown): Likewise.
73596         * tests/test-lchown.h (test_chown): Relax test.
73598         mkstemp: avoid conflict with C++ keyword template
73599         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73600         * lib/mkostemp.c (mkostemp): Likewise.
73601         * lib/mkostemps.c (mkostemps): Likewise.
73602         * lib/mkstemp.c (mkstemp): Likewise.
73603         * lib/mkstemps.c (mkstemps): Likewise.
73605         xalloc-die-tests: optimize
73606         * tests/test-xalloc-die.sh: Reduce number of processes.
73608 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73610         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73611         patch from ludo@gnu.org (Ludovic Courtès).
73613 2009-11-17  Jim Meyering  <meyering@redhat.com>
73615         version-etc: use proper license string
73616         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73617         * modules/version-etc-fsf: Likewise.
73619 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73621         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73622         printed to stdout.  Deal with EOL differences.
73624 2009-11-17  Eric Blake  <ebb9@byu.net>
73626         unsetenv: work around Solaris bug
73627         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73628         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73629         Reported by Jim Meyering.
73631         vasnprintf: avoid compiler warnings
73632         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73633         variables.
73634         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73636 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73638         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73639         settings since xalloc-die is no longer the self test,
73640         xalloc-die.sh is.
73642 2009-11-17  Jim Meyering  <meyering@redhat.com>
73644         test-xalloc-die.sh: make the code agree with the commit log
73645         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73646         at the end, just in case you happen to have a test-xalloc-die
73647         program in some other PATH directory.
73649         test-xalloc-die.sh: fix a portability bug
73650         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73651         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73652         Otherwise, argv[0] (as often seen in diagnostics) would be too
73653         system-dependent, sometimes with, and sometimes without the leading "./".
73655         version-etc-fsf: relax license to LGPLv3+
73656         * modules/version-etc-fsf (License): Relax license.
73658 2009-11-16  Eric Blake  <ebb9@byu.net>
73660         xalloc-die-tests: avoid printing null pointer
73661         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73662         shell script.
73663         * tests/test-xalloc-die.c (program_name): Declare.
73664         * tests/test-xalloc-die.sh (tmpfiles): New file.
73666         setenv, unsetenv: work around various bugs
73667         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73668         (setenv) [HAVE_SETENV]: Work around bugs.
73669         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73670         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73671         for bugs.
73672         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73673         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73675         * modules/stdlib (Makefile.am): Update substitutions.
73676         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73677         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73678         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73679         * modules/setenv-tests: New test.
73680         * modules/unsetenv-tests: Likewise.
73681         * tests/test-setenv.c: New file.
73682         * tests/test-unsetenv.c: Likewise.
73684 2009-11-16  Jim Meyering  <meyering@redhat.com>
73686         version-etc: relax license to LGPLv3+
73687         * modules/version-etc (License): Relax license.
73689         better AC_REQUIRE expanded-before-required-warning avoidance
73690         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73691         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73692         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73693         which is no longer needed.
73695 2009-11-16  Eric Blake  <ebb9@byu.net>
73697         test-freading: clean up temporary file
73698         * tests/test-freading.c (main): Remove file on success, and use
73699         ASSERT more liberally.
73700         Reported by Jim Meyering.
73702 2009-11-16  Jim Meyering  <meyering@redhat.com>
73704         avoid new AC_REQUIRE expanded-before-required warnings
73705         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73706         merely using it.
73707         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73708         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73710 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73712         * tests/test-xalloc-die.c: New file.
73713         * modules/xalloc-die-tests: New file.
73714         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73715         XFAIL_TESTS so it can be appended by modules.
73717 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73719         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
73720         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
73722 2009-11-14  Eric Blake  <ebb9@byu.net>
73724         fnmatch: avoid compiler warning
73725         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
73726         to silence compiler warning about mismatch signedness in ?:.
73727         Reported by Robert Millan.
73729         intprops: add double-inclusion guard
73730         * lib/intprops.h: Allow idempotent includes.
73731         Suggested by Bruce Korb.
73733         openat: detect Solaris fchownat bug
73734         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
73735         penalizing glibc chownat when only lchownat is broken.
73736         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
73737         trailing slash bugs.
73738         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
73739         * modules/openat-tests (Files): Include more files.
73740         (Depends-on): Add mgetgroups, sleep, stat-time.
73741         (configure.ac): Add additional checks.
73742         (Makefile.am): Build new test.
73743         * tests/test-fchownat.c: New file.
73745         lchown: detect Solaris and FreeBSD bug
73746         * lib/lchown.c (rpl_lchown): Work around bug.
73747         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
73748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73749         * modules/unistd (Makefile.am): Populate it.
73750         * lib/unistd.in.h (lchown): Update declaration.
73751         * doc/posix-functions/lchown.texi (lchown): Document the bug.
73752         * modules/lchown-tests: New file.
73753         * tests/test-lchown.h (test_lchown): Likewise.
73754         * tests/test-lchown.c (main): Likewise.
73756         chown: detect Solaris and FreeBSD bug
73757         * lib/chown.c (rpl_chown): Work around bug.
73758         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
73759         (gl_PREREQ_CHOWN): Delete.
73760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73761         * modules/unistd (Makefile.am): Populate it.
73762         * lib/unistd.in.h (chown): Update declaration.
73763         * lib/lchown.c (chown): Update client.
73764         * modules/lchown (Depends-on): Add lstat.
73765         * doc/posix-functions/chown.texi (chown): Document the bug.
73766         * doc/posix-functions/getgroups.texi (getgroups): Document
73767         getgroups pitfall.
73768         * modules/chown-tests: New file.
73769         * tests/test-chown.h (test_chown): Likewise.
73770         * tests/test-chown.c (main): Likewise.
73772 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
73774         gnulib-tool: correctly detect absence of m4 directories
73775         * gnulib-tool: Avoid extra newline on data passed to wc -l.
73777 2009-11-14  Jim Meyering  <meyering@redhat.com>
73779         maint.mk: Prohibit inclusion of "xalloc.h" without use.
73780         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73782 2009-11-14  John W. Eaton  <jwe@gnu.org>
73784         strftime.h: wrap function declaration in extern "C" block
73785         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
73787 2009-11-13  Eric Blake  <ebb9@byu.net>
73789         getgroups: avoid compiler warning
73790         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
73792         getgroups: work around FreeBSD bug
73793         * lib/getgroups.c (rpl_getgroups): Work around the bug.
73794         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
73795         * doc/posix-functions/getgroups.texi (getgroups): Document it.
73796         * tests/test-getgroups.c (main): Fix buffer overrun.
73798         getgroups: avoid compilation failure
73799         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
73800         * modules/getgroups (Depends-on): Add stdint.
73802 2009-11-13  Jim Meyering  <meyering@redhat.com>
73804         test-getgroups: avoid compilation failure
73805         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
73807 2009-11-13  Eric Blake  <ebb9@byu.net>
73809         mgetgroups: new module, taken from coreutils
73810         * modules/mgetgroups: New file.
73811         * lib/mgetgroups.h: Likewise.
73812         * lib/mgetgroups.c (mgetgroups): Likewise.
73813         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
73814         * MODULES.html.sh (Users and groups): Mention it.
73816         getgroups: don't expose GETGROUPS_T to user
73817         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
73818         an element at a time if GETGROUPS_T is wrong size.
73819         * lib/getugroups.h (getugroups): Change signature.
73820         * lib/unistd.in.h (getgroups): Likewise.
73821         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
73822         signature needs fixing.
73823         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
73824         AC_TYPE_GETGROUPS.
73825         * modules/group-member (Depends-on): Add getgroups.
73826         * lib/group-member.c (group_info, get_group_info): Use gid_t.
73827         (group_member): Rely on getgroups replacement.
73828         * lib/getugroups.c (getugroups): Use gid_t.
73829         * tests/test-getgroups.c (main): Likewise.
73830         * NEWS: Mention the signature change.
73831         * doc/posix-functions/getgroups.texi (getgroups): Mention the
73832         problem with signature.
73833         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
73834         GETGROUPS_T is still useful for setgroups.
73836         getgroups, getugroups: provide stubs for mingw
73837         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
73838         * lib/getugroups.c (getugroups): Likewise.
73839         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
73840         function.  Modernize replacement scheme.
73841         (gl_PREREQ_GETGROUPS): Delete.
73842         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
73843         * modules/getgroups (configure.ac): Declare witness.
73844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73845         * modules/unistd (Depends-on): Substitute witness.
73846         * lib/unistd.in.h (getgroups): Declare replacement.
73848         getgroups: avoid calling exit
73849         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
73850         drop xalloc.
73851         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
73852         dependencies.
73853         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
73854         exiting, in the rare case of malloc failure.
73856         getgroups: fix logic error
73857         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
73858         has more than 20 groups.
73859         * modules/getgroups-tests: New test.
73860         * tests/test-getgroups.c: New file.
73862 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73864         * tests/test-base64.c: Improve.
73866 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73868         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
73869         Blake <ebb9@byu.net>.
73871 2009-11-13  Simon Josefsson  <simon@josefsson.org>
73873         * tests/test-xvasprintf.c: Add %s%s related checks.
73875 2009-11-12  Eric Blake  <ebb9@byu.net>
73877         version-etc: match standards.texi style
73878         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
73879         and use <> only for URLs.
73881 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
73883         fts: do not fail on a submount during traversal
73884         * lib/fts.c (fts_build): Read the stat info again after opening
73885         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
73886         Original report at http://bugzilla.redhat.com/501848.
73888 2009-11-12  Jim Meyering  <meyering@redhat.com>
73890         bootstrap: sync from coreutils
73891         * build-aux/bootstrap (bootstrap_epilogue): New function.
73892         Use git_modules_config in one more place.  This make bootstrap's
73893         --gnulib-srcdir option more useful for testing.
73895         bootstrap: generalize autoheader check
73896         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
73897         AC_CONFIG_HEADERS.
73899 2009-11-11  Eric Blake  <ebb9@byu.net>
73901         mkfifoat: use new modules for Solaris and BSD bugs
73902         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
73903         * lib/mkfifoat.c (mknodat): Split...
73904         * lib/mknodat.c (mknodat): ...into new file.
73905         * modules/mkfifoat (Files): Ship new file.
73906         (Depends-on): Add mkfifo, mknod.
73907         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
73908         (Depends-on): Add symlink.
73909         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
73910         redundant with test_mkfifo.h.
73911         (do_mkfifoat, do_mknodat): New helpers.
73913         mknod: new module
73914         * modules/mknod: New file.
73915         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
73916         * lib/mknod.c (mknod): Likewise.
73917         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
73918         defaults.
73919         * modules/sys_stat (Makefile.am): Substitute them.
73920         * lib/sys_stat.in.h (mknod): Declare replacement.
73921         * MODULES.html.sh (Support for systems lacking POSIX:2008):
73922         Document it.
73923         * doc/posix-functions/mknod.texi (mknod): Likewise.
73924         * modules/mknod-tests: New test.
73925         * tests/test-mknod.c: Likewise.
73927         mkfifo: new module
73928         * modules/mkfifo: New file.
73929         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
73930         * lib/mkfifo.c (mkfifo): Likewise.
73931         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
73932         defaults.
73933         * modules/sys_stat (Makefile.am): Substitute them.
73934         * lib/sys_stat.in.h (mkfifo): Declare replacement.
73935         * MODULES.html.sh (Support for systems lacking POSIX:2008):
73936         Document it.
73937         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
73938         * modules/mkfifo-tests: New test.
73939         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
73940         from test-mkfifoat.c.
73941         * tests/test-mkfifo.c: New file.
73943         readlink: detect FreeBSD bug
73944         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
73945         slash on symlink.
73946         * doc/posix-functions/readlink.texi (readlink): Document the bug.
73947         * tests/test-readlink.h (test_readlink): Enhance test.
73949         symlink: detect FreeBSD bug
73950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
73951         slash on symlink.
73952         * doc/posix-functions/symlink.texi (symlink): Document the bug.
73953         * tests/test-symlink.h (test_symlink): Enhance test.
73955 2009-11-10  Eric Blake  <ebb9@byu.net>
73957         link: detect FreeBSD bug
73958         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
73959         symlink.
73960         * doc/posix-functions/link.texi (link): Document the bug.
73961         * tests/test-link.h (test_link): Enhance test.
73962         * tests/test-linkat.c (main): Update caller.
73964         unlink, remove: detect FreeBSD bug
73965         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
73966         slash on symlink.
73967         * doc/posix-functions/unlink.texi (unlink): Document the bug.
73968         * doc/posix-functions/remove.texi (remove): Likewise.
73969         * tests/test-unlink.h (test_unlink): Enhance test.
73970         * tests/test-remove.c (main): Likewise.
73972 2009-11-09  Eric Blake  <ebb9@byu.net>
73974         rename: detect FreeBSD bug
73975         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
73976         slash on symlink.
73977         * modules/renameat-tests (Depends-on): Add filenamecat.
73978         * tests/test-rename.h (test_rename): Allow one more errno.
73979         * tests/test-renameat.c (main): Likewise.
73980         * doc/posix-functions/rename.texi (rename): Document the bug.
73982         open: detect FreeBSD bug
73983         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
73984         symlink.
73985         * doc/posix-functions/open.texi (open): Document the bug.
73986         * doc/posix-functions/utimes.texi (utimes): Likewise.
73987         * tests/test-open.h (test_open): Add parameters, and test symlink
73988         handling.
73989         * tests/test-open.c (main): Adjust caller.
73990         * tests/test-fcntl-safer.c (main): Likewise.
73991         * modules/open-tests (Depends-on): Add stdbool, symlink.
73992         * modules/fcntl-safer-tests (Depends-on): Likewise.
73993         * tests/test-openat.c (main): Add test-open tests.
73995         stat: detect FreeBSD bug
73996         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
73997         symlink.
73998         * doc/posix-functions/stat.texi (stat): Document the bug.
73999         * tests/test-stat.h (test_stat_func): Add argument.
74000         * tests/test-stat.c (main): Adjust caller.
74001         * tests/test-fstatat.c (main): Likewise.
74002         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74003         Reported by Jim Meyering.
74005 2009-11-09  James Youngman  <jay@gnu.org>
74007         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74008         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74010 2009-11-08  Jim Meyering  <meyering@redhat.com>
74012         utimens: remove invalid futimesat call
74013         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74014         It used the file descriptor of the target file as the DIR_FD
74015         parameter and NULL as the file name.  That caused failure with
74016         errno == EFAULT on FreeBSD-8.0-rc2
74018 2009-11-07  Eric Blake  <ebb9@byu.net>
74020         fflush, freadseek: use fseeko, not fseek
74021         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74022         (clear_ungetc_buffer): Avoid potential problems on large files.
74023         * lib/freadseek.c (freadseek): Likewise.
74024         * modules/freadseek (Depends-on): Add fseeko.
74025         * modules/fseek (configure.ac): Set a witness.
74026         * tests/test-fflush.c (main): Use fseeko.
74027         * tests/test-fpurge.c (fseek): Disable link warning.
74028         * tests/test-freadable.c (fseek): Likewise.
74029         * tests/test-freading.c (fseek): Likewise.
74030         * tests/test-fseeko.c (fseek): Likewise.
74031         * tests/test-ftell.c (fseek): Likewise.
74032         * tests/test-ftello.c (fseek): Likewise.
74033         * tests/test-fwritable.c (fseek): Likewise.
74034         * tests/test-fwriting.c (fseek): Likewise.
74036 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74038         * modules/memchr (Depends-on): Drop getpagesize dependency.
74040 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74042         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74043         Reported by Ludovic Courtès.
74044         * build-aux/pmccabe2html: Improve example usage.
74045         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74047 2009-11-06  Jim Meyering  <meyering@redhat.com>
74049         do-release-commit-and-tag: New module.
74050         Automate the release-commit and tag process.
74051         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74052         * modules/do-release-commit-and-tag: New file.
74053         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74055 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74057         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74058         because test-select.c uses inet_pton.
74060 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74062         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74063         GETADDRINFO_LIB.  Bump serial number.
74064         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74065         Suggested by Eric Blake <ebb9@byu.net>.
74067 2009-11-05  Eric Blake  <ebb9@byu.net>
74069         strtod: detect darwin bug
74070         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74071         Reported by Leo Davis.
74073         freopen-safer: new module
74074         * modules/freopen-safer: New module.
74075         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74076         * lib/freopen-safer.c (freopen_safer): New file.
74077         * lib/stdio-safer.h (freopen_safer): New declaration.
74078         * lib/stdio--.h (freopen): New override.
74079         * MODULES.html.sh (File stream based Input/Output): Mention it.
74080         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74081         freopen-safer module.
74082         * doc/posix-functions/stderr.texi (stderr): Likewise.
74083         * doc/posix-functions/stdin.texi (stdin): Likewise.
74084         * doc/posix-functions/stdout.texi (stdout): Likewise.
74085         * modules/freopen-safer-tests: New test.
74086         * tests/test-reopen-safer.c: New file.
74088 2009-11-05  Jim Meyering  <meyering@redhat.com>
74090         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74091         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74093 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74095         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74097 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74099         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74101 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74103         Fix link error.
74104         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74105         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74107 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74109         * tests/test-func.c: Also test value of __func__.
74111 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74113         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74114         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74116 2009-11-05  Bruno Haible  <bruno@clisp.org>
74118         Fix link error.
74119         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74121         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74123 2009-11-05  Bruno Haible  <bruno@clisp.org>
74125         Tests for module 'inet_pton'.
74126         * modules/inet_pton-tests: New file.
74127         * tests/test-inet_pton.c: New file.
74129 2009-11-05  Bruno Haible  <bruno@clisp.org>
74131         Tests for module 'inet_ntop'.
74132         * modules/inet_ntop-tests: New file.
74133         * tests/test-inet_ntop.c: New file.
74135 2009-11-04  Eric Blake  <ebb9@byu.net>
74137         stdlib-safer: wrap all mkstemp variants
74138         * modules/mkostemp (configure.ac): Set witness.
74139         * modules/mkostemps (configure.ac): Likewise.
74140         * modules/mkstemps (configure.ac): Likewise.
74141         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74142         (mkstemps_safer): Wrap more functions.
74143         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74144         wrapping.
74145         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74146         (mkstemps_safer): Implement the wrappers.
74148         mkstemps, mkostemps: new modules
74149         * modules/mkostemps: New module.
74150         * modules/mkstemps: Likewise.
74151         * lib/mkostemps.c (mkostemps): New file.
74152         * lib/mkstemps.c (mkstemps): Likewise.
74153         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74154         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74156         * modules/stdlib (Makefile.am): Substitute them.
74157         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74158         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74159         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74160         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74161         * MODULES.html.sh (File system functions): Mention them.
74163         tempname: resync from glibc
74164         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74165         same values for __GT_FILE as glibc.  Abort even when assertions
74166         are disabled.
74167         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74168         match its value otherwise.  Allow idempotent inclusion.
74169         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74170         * lib/mkostemp.c (mkostemp): Likewise.
74171         * lib/mkstemp.c (mkstemp): Likewise.
74172         * lib/tmpfile.c (tmpfile): Likewise.
74173         * NEWS: Document this.
74175         utimens: fix use of futimens on older Linux
74176         * lib/utimens.c (fdutimens): Use updated, rather than original,
74177         timespec to avoid bug in older Linux kernel.
74178         Reported by Simon Josefsson.
74180 2009-11-04  Bruno Haible  <bruno@clisp.org>
74182         Make num_processors more flexible and consistent.
74183         * lib/nproc.h (enum nproc_query): New type.
74184         (num_processors): Add a 'query' argument.
74185         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74186         (num_processors): Add a 'query' argument. Test the value of the
74187         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74188         mingw, count the number of CPUs available for the current process.
74189         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74190         Check for sched_getaffinity and sched_getaffinity_np.
74191         * modules/nproc (Depends-on): Add c-ctype, extensions.
74192         * NEWS: Mention the change.
74194 2009-11-03  Bruno Haible  <bruno@clisp.org>
74196         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74198 2009-11-03  Jim Meyering  <meyering@redhat.com>
74200         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74201         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74202         if it is defined.
74204 2009-11-02  Eric Blake  <ebb9@byu.net>
74206         mktime, timegm: share common declaration
74207         * lib/mktime-internal.h: New file.
74208         * lib/mktime.c: Use it rather than open-coding a declaration.
74209         * lib/timegm.c: Likewise.
74210         * modules/mktime (Files): Ship it.
74211         * modules/timegm (Files): Likewise.
74212         Suggested by Bruno Haible.
74214         test-update-copyright: update test to match script changes
74215         * tests/test-update-copyright.sh: Avoid hard-coding perl
74216         location.  Don't update *.bak created by earlier runs.
74218 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74219             Simon Josefsson  <simon@josefsson.org>
74220             Bruno Haible  <bruno@clisp.org>
74222         Fix link error on Solaris 8.
74223         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74224         also in libnsl. Define also INET_PTON_LIB.
74225         * modules/inet_pton (Link): New section.
74227 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74228             Bruno Haible  <bruno@clisp.org>
74230         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74231         * modules/inet_ntop (Link): New section.
74232         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74234 2009-11-02  Eric Blake  <ebb9@byu.net>
74236         maint: avoid compiler warnings in m4 macros
74237         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74240 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74242         * m4/pmccabe2html.m4: Remove file.
74243         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74244         function.  Change maintainer.
74245         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74246         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74247         Courtès).
74249 2009-10-31  Eric Blake  <ebb9@byu.net>
74251         fseeko: fix m4 regression
74252         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74253         regression from 2009-10-27.
74254         Reported by Ralf Wildenhues.
74256 2009-10-31  Jim Meyering  <meyering@redhat.com>
74258         inttostr: aesthetics and improved (compile-time) safety
74259         Define inttype_is_signed rather than inttype_is_unsigned,
74260         since the sole use is via "#if inttype_is_signed".
74261         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74262         inttype_is_unsigned.
74263         * lib/offtostr.c (inttype_is_signed): Likewise.
74264         * lib/uinttostr.c (inttype_is_signed): Likewise.
74265         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74266         * lib/inttostr.c (inttostr): Use verify to cross-check the
74267         inttype_is_signed value and the signedness of the actual type.
74268         * modules/inttostr (Depends-on): Add verify.
74270 2009-10-30  Eric Blake  <ebb9@byu.net>
74272         build: avoid compiler warnings
74273         * lib/fchmodat.c (lchmod): Mark unused variables.
74274         * lib/getopt.c (_getopt_initialize): Likewise.
74275         * lib/mktime.c (__mktime_internal): Provide prototype.
74276         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74277         older gcc that do not understand #pragma GCC diagnostic.
74278         * lib/uinttostr.c (inttype_is_unsigned): Define.
74279         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74281 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74283         stat: fix compilation on AIX
74284         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74285         only see struct stat64.
74287 2009-10-30  Eric Blake  <ebb9@byu.net>
74289         exclude: make more robust
74290         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74291         rather than masking a coding bug.
74292         Suggested by Bruno Haible.
74294 2009-10-30  Jim Meyering  <meyering@redhat.com>
74296         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74297         Rather than putting #!/usr/bin/perl on the first line,
74298         start with a variant of what's recommended by "man perlrun" that
74299         invokes the first "perl" program from your shell's search path.
74300         * build-aux/gitlog-to-changelog: Replace #!... as above.
74301         Add a "Local Variables" perl mode setting.
74302         Prompted by a patch from Ludovic Courtès.
74303         Improved by Eric Blake.
74304         * build-aux/useless-if-before-free: Likewise.
74305         * build-aux/announce-gen: Likewise.
74306         * build-aux/update-copyright: Likewise.
74308 2009-10-29  Eric Blake  <ebb9@byu.net>
74310         filenamecat-lgpl: adjust clients
74311         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74312         filenamecat.
74313         * modules/renameat (Depends-on): Likewise.
74315         filenamecat: split into filenamecat-lgpl
74316         * modules/filenamecat-lgpl: New module.
74317         * modules/filenamecat (Files): Move library-safe files into
74318         filenamecat-lgpl.
74319         (Depends-on): Add filenamecat-lgpl.
74320         (configure.ac): Declare witness.
74321         * lib/filenamecat.h (file_name_concat): Only declare when using
74322         GPL module.
74323         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74324         Move...
74325         * lib/filenamecat-lgpl.c: ...into new file.
74326         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74327         (gl_FILE_NAME_CONCAT): Use it.
74328         * MODULES.html.sh (File system functions): Mention new module.
74330         argp: avoid memory leak
74331         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74332         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74333         base_name, since the latter malloc()s and can call exit().
74334         Leak introduced 2006-07-03.
74336         dirname-lgpl: adjust clients that don't need full dirname
74337         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74338         * modules/filenamecat (Depends-on): Likewise.
74339         * modules/linkat (Depends-on): Likewise.
74340         * modules/mkancesdirs (Depends-on): Likewise.
74341         * modules/mkdir (Depends-on): Likewise.
74342         * modules/openat (Depends-on): Likewise.
74343         * modules/savewd (Depends-on): Likewise.
74344         * modules/rename (Depends-on): Likewise.
74345         (License): Relax license.
74346         * modules/mkdir-tests (Depends-on): Drop progname.
74347         (Makefile.am): Delete unneeded LDADD.
74348         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74350         dirname: split into dirname-lgpl
74351         * modules/dirname-lgpl: New module.
74352         * modules/dirname (Files): Move library-safe files into
74353         dirname-lgpl.
74354         (Depends-on): Add dirname-lgpl.
74355         (configure.ac): Declare witness.
74356         * modules/double-slash-root (License): Relax license.
74357         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74358         module.
74359         * lib/dirname.c (dir_len, mdir_name): Move...
74360         * lib/dirname-lgpl.c: ...into new file.
74361         * lib/basename.c (last_component, base_len): Move...
74362         * lib/basename-lgpl.c: ...into new file.
74363         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74364         (gl_DIRNAME): Use it.
74365         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74366         Mention new module.
74367         * modules/dirname-tests (Depends-on): Add progname.
74368         * tests/test-dirname.c (program_name): Delete.
74370         mkdir: make safe for libraries
74371         * modules/mkdir (Depends-on): Drop xalloc.
74372         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74373         exit.
74375         tests: avoid some compiler warnings
74376         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74377         literals.
74378         * tests/test-memchr.c (main): Avoid type mismatch.
74379         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74380         * tests/test-base64.c (main): Likewise.
74381         * tests/test-getdelim.c (main): Likewise.
74382         * tests/test-gethostname.c (main): Likewise.
74383         * tests/test-getline.c (main): Likewise.
74384         * tests/test-netinet_in.c (main): Likewise.
74385         * tests/test-select.c (open_server_socket, main): Likewise.
74386         * tests/test-select-stdin.c (main): Likewise.
74387         * tests/test-sockets.c (main): Likewise.
74388         * tests/test-strsignal.c (main): Likewise.
74389         * tests/test-sys_select.c (main): Likewise.
74390         * tests/test-sys_socket.c (main): Likewise.
74391         * tests/test-u64.c (main): Likewise.
74392         * tests/test-xfprintf-posix.c (main): Likewise.
74393         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74395         sockets: avoid compiler warning
74396         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74398         maint: detect usage(1) and other suspicious exits
74399         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74401 2009-10-29  Jim Meyering  <meyering@redhat.com>
74403         timespec: long-to-int truncation could make timespec_cmp malfunction
74404         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74405         a multiple of 2^32 nanoseconds as no difference.
74407 2009-10-28  Jim Meyering  <meyering@redhat.com>
74409         fprintftime: wrap macro code argument in "do {...} while(0)"
74410         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74411         cpy macro must be a statement that can be followed by a semicolon.
74412         Now that the else clause contains a comment and is hence longer
74413         than one line, I require curly braces.  That in turn requires
74414         that we wrap this code block in the standard do...while(0).
74416         fprintftime: remove stray semicolon from previous change
74417         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74419         fprintftime: avoid a warning about ignored fwrite return value
74420         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74421         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74422         that is unsafe.
74423         * modules/fprintftime (Depends-on): Add ignore-value.
74425         exclude: avoid an unwarranted warning
74426         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74428 2009-10-27  Eric Blake  <ebb9@byu.net>
74430         fseek: avoid compilation failure when fflush is replaced
74431         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74432         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74433         module is in use.
74434         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74435         module is not in use; since REPLACE_FSEEK worked otherwise.
74436         (GNULIB_FTELLO): Likewise for ftell.
74437         Reported by Ian Beckwith and others.
74439 2009-10-27  Bruno Haible  <bruno@clisp.org>
74441         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74442         Reported by Jim Meyering.
74444 2009-10-27  Jim Meyering  <jim@meyering.net>
74445             Bruno Haible  <bruno@clisp.org>
74447         Avoid warning despite dropping the return value of fwrite.
74448         * lib/unicodeio.c: Include ignore-value.h.
74449         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74450         * modules/unicodeio (Depends-on): Add ignore-value.
74452 2009-10-26  Eric Blake  <ebb9@byu.net>
74454         areadlinkat: fix fallback path
74455         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74456         pointer and zero.
74458 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74460         Use a better IO block size for modern systems
74461         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74462         * lib/md2.c: Likewise.
74463         * lib/md4.c: Likewise.
74464         * lib/md5.c: Likewise.
74465         * lib/sha1.c: Likewise.
74466         * lib/sha256.c: Likewise.
74467         * lib/sha512.c: Likewise.
74469 2009-10-22  Eric Blake  <ebb9@byu.net>
74471         tests: avoid several compiler warnings
74472         * tests/test-getcwd.c (main): Avoid buffer underflow.
74473         * tests/test-getdate.c (main): String literals are not safe with
74474         putenv, so use setenv.  Declare unused argument.
74475         * modules/getdate-tests (Depends-on): Add setenv.
74476         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74477         problems with string literals in char *.
74478         * tests/test-hash.c (main): Avoid shadowing declaration.
74479         (insert_new): Treat string literals as char const *.
74480         * tests/test-getopt.h (test_getopt): Likewise.
74481         (getopt_loop): Alter types to minimize casting elsewhere.
74482         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74483         (test_getopt_long_posix): Likewise.
74484         (do_getopt_long): Add wrapper to minimize casting.
74485         * tests/test-atexit.c (clear_temp_file): Use void.
74486         * tests/test-areadlink-with-size.c (main): Declare unused
74487         arguments.
74488         * tests/test-areadlink.c (main): Likewise.
74489         * tests/test-areadlinkat-with-size.c (main): Likewise.
74490         * tests/test-areadlinkat.c (main): Likewise.
74491         * tests/test-canonicalize-lgpl.c (main): Likewise.
74492         * tests/test-canonicalize.c (main): Likewise.
74493         * tests/test-dirent-safer.c (main): Likewise.
74494         * tests/test-dirname.c (main): Likewise.
74495         * tests/test-dup2.c (main): Likewise.
74496         * tests/test-fchdir.c (main): Likewise.
74497         * tests/test-fcntl-h.c (main): Likewise.
74498         * tests/test-fcntl-safer.c (main): Likewise.
74499         * tests/test-fdopendir.c (main): Likewise.
74500         * tests/test-fdutimensat.c (main): Likewise.
74501         * tests/test-fflush.c (main): Likewise.
74502         * tests/test-filenamecat.c (main): Likewise.
74503         * tests/test-filevercmp.c (main): Likewise.
74504         * tests/test-fopen-safer.c (main): Likewise.
74505         * tests/test-fopen.c (main): Likewise.
74506         * tests/test-fpending.c (main): Likewise.
74507         * tests/test-fpurge.c (main): Likewise.
74508         * tests/test-freading.c (main): Likewise.
74509         * tests/test-fstatat.c (main): Likewise.
74510         * tests/test-fsync.c (main): Likewise.
74511         * tests/test-futimens.c (main): Likewise.
74512         * tests/test-getndelim2.c (main): Likewise.
74513         * tests/test-gettimeofday.c (main): Likewise.
74514         * tests/test-getopt.c (main): Likewise.
74515         * tests/test-i-ring.c (main): Likewise.
74516         * tests/test-inttypes.c (main): Likewise.
74517         * tests/test-link.c (main): Likewise.
74518         * tests/test-lstat.c (main): Likewise.
74519         * tests/test-math.c (main): Likewise.
74520         * tests/test-md5.c (main): Likewise.
74521         * tests/test-memchr2.c (main): Likewise.
74522         * tests/test-memrchr.c (main): Likewise.
74523         * tests/test-mkdir.c (main): Likewise.
74524         * tests/test-mkdirat.c (main): Likewise.
74525         * tests/test-mkfifoat.c (main): Likewise.
74526         * tests/test-open.c (main): Likewise.
74527         * tests/test-openat-safer.c (main): Likewise.
74528         * tests/test-openat.c (main): Likewise.
74529         * tests/test-quotearg.c (main): Likewise.
74530         * tests/test-rawmemchr.c (main): Likewise.
74531         * tests/test-readlink.c (main): Likewise.
74532         * tests/test-remove.c (main): Likewise.
74533         * tests/test-rename.c (main): Likewise.
74534         * tests/test-renameat.c (main): Likewise.
74535         * tests/test-rmdir.c (main): Likewise.
74536         * tests/test-sha1.c (main): Likewise.
74537         * tests/test-signal.c (main): Likewise.
74538         * tests/test-sigaction.c (main): Likewise.
74539         * tests/test-stat.c (main): Likewise.
74540         * tests/test-stat-time.c (main): Likewise.
74541         * tests/test-stddef.c (main): Likewise.
74542         * tests/test-stdint.c (main): Likewise.
74543         * tests/test-stdio.c (main): Likewise.
74544         * tests/test-stdlib.c (main): Likewise.
74545         * tests/test-strchrnul.c (main): Likewise.
74546         * tests/test-strerror.c (main): Likewise.
74547         * tests/test-string.c (main): Likewise.
74548         * tests/test-strtod.c (main): Likewise.
74549         * tests/test-strverscmp.c (main): Likewise.
74550         * tests/test-symlink.c (main): Likewise.
74551         * tests/test-symlinkat.c (main): Likewise.
74552         * tests/test-sys_stat.c (main): Likewise.
74553         * tests/test-sys_time.c (main): Likewise.
74554         * tests/test-time.c (main): Likewise.
74555         * tests/test-unistd.c (main): Likewise.
74556         * tests/test-unlink.c (main): Likewise.
74557         * tests/test-unlinkat.c (main): Likewise.
74558         * tests/test-utimens.c (main): Likewise.
74559         * tests/test-utimensat.c (main): Likewise.
74560         * tests/test-version-etc.c (main): Likewise.
74561         * tests/test-wchar.c (main): Likewise.
74562         * tests/test-wctype.c (main): Likewise.
74563         * tests/test-xprintf-posix.c (main): Likewise.
74564         * tests/test-posixtm.c (main): Likewise.
74565         (STREQ): Delete unused macro.
74566         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74567         shadowed variables.
74568         * tests/test-memchr.c (main): Likewise.
74570 2009-10-21  Eric Blake  <ebb9@byu.net>
74572         areadlinkat: avoid failure on older glibc
74573         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74574         rather than mis-comparing 0 against FUNC_RESULT of char*.
74576 2009-10-21  Bruno Haible  <bruno@clisp.org>
74578         * modules/stpncpy (License): Relicense under LGPLv2+.
74579         Reported by David Lutterkort <lutter@redhat.com>.
74581 2009-10-20  Eric Blake  <ebb9@byu.net>
74583         utimensat: work around Solaris 9 bug
74584         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74585         has trailing slash bugs.
74586         * tests/test-lutimens.h (test_lutimens): Enhance test.
74587         * tests/test-utimens.h (test_utimens): Likewise.
74588         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74589         * doc/posix-functions/utimes.texi (utimes): Likewise.
74590         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74591         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74592         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74593         * doc/posix-functions/futimens.texi (futimens): Likewise.
74595         fdutimensat: new module
74596         * modules/fdutimensat: New file.
74597         * lib/fdutimensat.c (fdutimensat): Likewise.
74598         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74599         * MODULES.html.sh (File system functions): Mention module.
74600         * modules/fdutimensat-tests: New test.
74601         * tests/test-fdutimensat.c: Likewise.
74603         doc: regenerate INSTALL
74604         * doc/INSTALL: Reflect recent autoconf update.
74605         * doc/INSTALL.ISO: Likewise.
74606         * doc/INSTALL.UTF-8: Likewise.
74608 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74610         acl: warn if ACL support is not detected
74611         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74613 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74615         * lib/nproc.h: Add extern "C" block for C++.
74617 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74618             Bruno Haible  <bruno@clisp.org>
74620         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74621         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74622         * doc/posix-functions/isalpha.texi: Likewise.
74623         * doc/posix-functions/isblank.texi: Likewise.
74624         * doc/posix-functions/iscntrl.texi: Likewise.
74625         * doc/posix-functions/isdigit.texi: Likewise.
74626         * doc/posix-functions/isgraph.texi: Likewise.
74627         * doc/posix-functions/islower.texi: Likewise.
74628         * doc/posix-functions/isprint.texi: Likewise.
74629         * doc/posix-functions/ispunct.texi: Likewise.
74630         * doc/posix-functions/isspace.texi: Likewise.
74631         * doc/posix-functions/isupper.texi: Likewise.
74632         * doc/posix-functions/isxdigit.texi: Likewise.
74634 2009-10-18  Bruno Haible  <bruno@clisp.org>
74636         Tests for module 'isblank'.
74637         * modules/isblank-tests: New file.
74638         * tests/test-isblank.c: New file.
74640         New module 'isblank'.
74641         * lib/isblank.c: New file.
74642         * m4/isblank.m4: New file.
74643         * modules/isblank: New file.
74644         * doc/posix-functions/isblank.texi: Mention the new module.
74646 2009-10-18  Bruno Haible  <bruno@clisp.org>
74648         New module 'ctype'.
74649         * lib/ctype.in.h: New file.
74650         * m4/ctype.m4: New file.
74651         * modules/ctype: New file.
74652         * doc/posix-headers/ctype.texi: Mention the new module.
74654 2009-10-18  Jim Meyering  <meyering@redhat.com>
74656         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74657         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74658         right after its initialization, rather than farther down.
74659         Keeping these in close proximity makes it easier to ensure
74660         that each such variable is initialized.  E.g.,
74662             LIB_CLOCK_GETTIME=
74663             AC_SUBST([LIB_CLOCK_GETTIME])
74665         This change also increments these serial numbers.
74666         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74667         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74670 2009-10-18  Bruno Haible  <bruno@clisp.org>
74672         Don't let environment variables perturb build.
74673         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74674         (gl_PREREQ_GETHRXTIME): ... not here.
74676 2009-10-18  Bruno Haible  <bruno@clisp.org>
74678         Avoid symlink attack in localcharset module.
74679         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74680         (O_NOFOLLOW): Define fallback.
74681         (get_charset_aliases): Don't open the file if it is a symbolic link.
74682         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74683         gl_FCNTL_H.
74684         (gl_FCNTL_H): Require it.
74685         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74686         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74687         Reported by Fergal Glynn <fglynn@veracode.com>.
74689 2009-10-18  Bruno Haible  <bruno@clisp.org>
74691         Implement nproc for mingw.
74692         * lib/nproc.c: Include <windows.h>
74693         (num_processors): On native Windows platforms, try GetSystemInfo.
74695 2009-10-18  Bruno Haible  <bruno@clisp.org>
74697         Implement nproc for IRIX.
74698         * lib/nproc.c: Include <sys/sysmp.h>.
74699         (num_processors): On IRIX systems, try sysmp.
74700         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74702 2009-10-18  Bruno Haible  <bruno@clisp.org>
74704         Implement nproc for HP-UX.
74705         * lib/nproc.c: Include <sys/pstat.h>
74706         (num_processors): On HP-UX systems, try pstat_getdynamic.
74707         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74708         pstat_getdynamic.
74710 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74711             Bruno Haible  <bruno@clisp.org>
74713         Implement nproc for NetBSD, OpenBSD.
74714         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74715         (ARRAY_SIZE): New macro.
74716         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74717         * m4/nproc.m4: New file.
74718         * modules/nproc (Files): Add m4/nproc.m4.
74719         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
74720         (Makefile.am): Instead, augment lib_SOURCES.
74722 2009-10-18  Bruno Haible  <bruno@clisp.org>
74724         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
74725         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
74726         sys/param.h.
74728 2009-10-16  Eric Blake  <ebb9@byu.net>
74730         utimensat: new module
74731         * modules/utimensat: New file.
74732         * lib/utimensat.c (utimensat): Likewise.
74733         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74734         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
74735         so we can work around Linux bugs.
74736         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74737         * modules/sys_stat (Makefile.am): Substitute them.
74738         * lib/sys_stat.in.h (utimensat): Declare it.
74739         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74740         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74741         * modules/utimensat-tests: New test.
74742         * tests/test-utimensat.c: Likewise.
74744         utimens: let lutimens work on non-symlinks
74745         * lib/utimens.c (lutimens): Fall back to utimens rather than
74746         failing with ENOSYS, when file is not a symlink.
74747         (utimens): Reduce redirection.
74748         * tests/test-lutimens.h (test_lutimens): Update test to cover
74749         non-symlinks.
74750         * tests/test-utimens.h (test_utimens): Update test to cover
74751         symlinks.
74752         * tests/test-utimens.c (main): Update caller.
74754         utimens: cache whether utimensat syscall works
74755         * lib/utimens.c (utimensat_works_really): New cache variable.
74756         (fdutimens, lutimens): Use it to avoid failing syscall.
74758         test-stat-time, test-utimens: improve portability
74759         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
74760         ext4 on alpha, and for cygwin.
74761         * tests/test-utimens-common.h: New file.
74762         (nap): Factor delays into single function.
74763         * tests/test-lutimens.h (test_lutimens): Use new header.
74764         * tests/test-futimens.h (test_futimens): Likewise.
74765         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
74766         timestamps to occur from same machine, as was done previously for
74767         test_utimens.
74768         * modules/utimens-tests (Files): Ship new file.
74769         * modules/futimens-tests (Files): Likewise.
74770         Reported in part by Jim Meyering.
74772         sys_stat: sort replacement declarations
74773         * lib/sys_stat.in.h: Sort declarations.
74774         * lib/futimens.c (futimens): Fix typo.
74776 2009-10-15  Jim Meyering  <meyering@redhat.com>
74778         don't let environment settings perturb build
74779         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
74780         could cause a configure-time and/or build-time malfunction.
74781         Typically, a configure-time function-in-library test is performed
74782         via code like this:
74784           LIB_VAR=
74785           AC_SUBST([LIB_VAR])
74786           prefix_saved_LIBS=$LIBS
74787             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
74788                        [test "$ac_cv_search_FUNC" = "none required" ||
74789                         LIB_VAR=$ac_cv_search_FUNC])
74790           LIBS=$prefix_saved_LIBS
74792         However, in each of the files affected by this change, the LIB_VAR=
74793         initialization was omitted.  Thus, when set in the environment, its
74794         value would propagate into generated Makefiles when FUNC is not found
74795         in LIB_NAME.
74796         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
74797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74800 2009-10-14  Eric Blake  <ebb9@byu.net>
74802         fchdir: avoid infinite recursion in mingw
74803         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
74804         recursing.
74806         test-stat-time: port to mingw
74807         * tests/test-stat-time.c (force_unlink): Return a value.
74808         (test_ctime) [W32]: Fix compilation error.
74809         (nap): Don't call usleep with too large an argument.  Use
74810         force_unlink.
74811         * doc/pastposix-functions/usleep.texi (usleep): Document the
74812         portability issue.
74814 2009-10-13  Jim Meyering  <meyering@redhat.com>
74816         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
74817         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
74818         * modules/pipe-filter-ii: Likewise.
74819         * modules/sys_socket-tests: Likewise.
74820         * modules/tsearch-tests: Likewise.
74821         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
74822         (check): Depend on it.
74824 2009-10-12  Eric Blake  <ebb9@byu.net>
74826         utimens-tests: port to NFS file systems
74827         * tests/test-utimens.h (test_utimens): Refactor utimecmp
74828         comparisons to avoid spurious failures from timestamp drift
74829         between NFS machines.
74831 2009-10-12  Eric Blake  <ebb9@byu.net>
74833         stat-time-tests: minor cleanups
74834         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
74835         * tests/test-stat-time.c (nap): Separate assignment from call.
74836         Suggested by Paolo Bonzini and Bruno Haible.
74838         sys_stat: guarantee struct timespec
74839         * lib/sys_stat.in.h (includes): Always include <time.h>
74840         * modules/sys_stat (Depends-on): Add time.
74841         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
74842         mode_t permission values.
74843         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
74844         get at subsecond timestamps.
74846 2009-10-10  Eric Blake  <ebb9@byu.net>
74848         futimens: new module
74849         * modules/futimens: New file.
74850         * lib/futimens.c (futimens): Likewise.
74851         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
74852         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
74853         we can work around Linux bugs.
74854         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74855         * modules/sys_stat (Makefile.am): Substitute them.
74856         * lib/sys_stat.in.h (futimens): Declare it.
74857         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74858         * doc/posix-functions/futimens.texi (futimens): Likewise.
74859         * modules/futimens-tests: New test.
74860         * tests/test-futimens.c: Likewise.
74862         utimens: introduce fdutimens
74863         * lib/utimens.h (fdutimens): New prototype.
74864         * lib/utimens.c (gl_futimens): Move guts...
74865         (fdutimens): ...to new interface.
74866         * tests/test-utimens.c (do_fdutimens): Use it.
74868         utimens: add UTIME_NOW and UTIME_OMIT support
74869         * lib/utimens.c (validate_timespec, update_timespec): New helper
74870         functions.
74871         (gl_futimens, lutimens): Use them.
74872         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
74873         stdbool, sys_stat.
74874         (Link): Mention resulting library dependency.
74875         * modules/utimecmp (Link): Likewise.
74876         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
74877         (Makefile.am): Pick up library dependency.
74878         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
74879         definition.
74880         * tests/test-sys_stat.c: Test the definitions.
74881         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
74882         * NEWS: Document library dependency.
74884         utimecmp: support symlink timestamps
74885         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
74886         hashing when possible.  Use pathconf when available.
74887         (SYSCALL_RESOLUTION): Recognize tighter resolution.
74888         * modules/utimecmp (Depends-on): Add lstat.
74890         utimens: add lutimens interface
74891         * lib/utimens.c (lutimens): New function.
74892         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
74893         * lib/utimens.h (lutimens): Declare new interface.
74894         * tests/test-utimens.c (main): Enhance test.
74895         * tests/test-lutimens.h (test_lutimens): New file.
74896         * modules/utimens-tests (Files): Distribute it.
74897         (Depends-on): Add symlink.
74898         (configure.ac): Check for usleep.
74900         utimens: validate futimens usage
74901         * lib/utimens.c (gl_futimens): Require valid fd up front, using
74902         fewer syscalls on failure later on.  Avoid compiler warning on
74903         mingw.
74904         * modules/utimens (Depends-on): Add dup2.
74906         utimens: add test
74907         * modules/utimens-tests: New test.
74908         * tests/test-utimens.h: New file.
74909         * tests/test-futimens.h: Likewise.
74910         * tests/test-utimens.c: Likewise.
74912         doc: mention timestamp portability issues
74913         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
74914         instead.
74915         * doc/posix-functions/utime.texi (utime): Likewise.
74916         * doc/posix-functions/utimes.texi (utimes): Likewise.
74917         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
74918         instead.
74919         * doc/posix-functions/futimens.texi (futimens): Mention utimens
74920         module.
74921         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74922         Mention weakness with symlink timestamps.
74923         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
74924         to utimensat/futimens instead.
74925         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
74927         test-dup2: enhance test
74928         * tests/test-dup2.c (main): Also check AT_FDCWD.
74930         test-stat-time: avoid more spurious failures
74931         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
74932         xfs; and avoid race if the two timestamps cross quantization edge.
74934         relocatable: prefer 'file system' over 'filesystem'
74935         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
74936         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
74937         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
74938         * doc/relocatable.texi (Enabling Relocatability): Likewise.
74939         * lib/relocatable.c (compute_curr_prefix): Likewise.
74941 2009-10-10  Jim Meyering  <meyering@redhat.com>
74943         stat-time-tests: check for the usleep function
74944         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
74946 2009-10-10  Bruno Haible  <bruno@clisp.org>
74948         * modules/xnanosleep: Put the Link section after the Include section.
74950 2009-10-09  Eric Blake  <ebb9@byu.net>
74952         dup2: work around FreeBSD 6.1 bug
74953         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
74954         * doc/posix-functions/dup2.texi (dup2): Document it.
74955         Reported by Nelson H. F. Beebe and Jim Meyering.
74957         test-stat-time: port to buggy NFS clients
74958         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
74959         (test_ctime): Also skip test if mtime and ctime are skewed.
74961         maint: prefer 'file system' over 'filesystem'
74962         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
74963         * doc/posix-functions/lstat.texi (lstat): Likewise.
74964         * lib/file-has-acl.c (file_has_acl): Likewise.
74965         * lib/fwriteerror.c [TEST]: Likewise.
74966         * tests/test-areadlink.h (test_areadlink): Likewise.
74967         * tests/test-areadlinkat-with-size.c (main): Likewise.
74968         * tests/test-areadlinkat.c (main): Likewise.
74969         * tests/test-canonicalize-lgpl.c (main): Likewise.
74970         * tests/test-canonicalize.c (main): Likewise.
74971         * tests/test-fstatat.c (main): Likewise.
74972         * tests/test-linkat.c (main): Likewise.
74973         * tests/test-lstat.h (test_lstat_func): Likewise.
74974         * tests/test-mkdir.h (test_mkdir): Likewise.
74975         * tests/test-readlink.h (test_readlink): Likewise.
74976         * tests/test-remove.c (main): Likewise.
74977         * tests/test-rename.h (test_rename): Likewise.
74978         * tests/test-renameat.c (main): Likewise.
74979         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74980         * tests/test-symlink.h (test_symlink): Likewise.
74981         * tests/test-symlinkat.c (main): Likewise.
74982         * tests/test-unlink.h (test_unlink_func): Likewise.
74983         * tests/test-unlinkat.c (main): Likewise.
74985         maint: make realtime library usage explicit
74986         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
74987         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
74988         * modules/settime (Link): Likewise.
74989         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
74991         test-stat-time: speed up execution
74992         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
74993         warning on mingw.
74994         (nap): New helper function.
74995         (prepare_test): Use it to reduce sleep time.
74996         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
74997         execution.
74998         * modules/stat-time-tests (configure.ac): Check for usleep.
75000 2009-10-09  Jim Meyering  <meyering@redhat.com>
75002         selinux-h: always use getfilecon wrappers
75003         * lib/getfilecon.c: New file.
75004         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75005         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75006         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75007         (fgetfilecon): Provide a stub.
75008         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75009         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75010         file unconditionally.
75011         When <selinux/selinux.h> is found, arrange to use wrappers.
75012         * modules/selinux-h (Files): Add getfilecon.c.
75013         (Makefile.am): Substitute include-next-related bits
75014         into the now-always-generated selinux/selinux.h file.
75015         * doc/glibc-functions/lgetfilecon.texi: New file.
75016         * doc/glibc-functions/fgetfilecon.texi: New file.
75017         * doc/glibc-functions/getfilecon.texi: New file.
75018         * doc/glibc-functions/getfilecon-desc.texi: New file.
75019         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75020         which to pull in the new files.
75021         * MODULES.html.sh (Misc): Add selinux-h.
75023 2009-10-08  Jim Meyering  <meyering@redhat.com>
75025         unistd: fix comment typo
75026         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75028 2009-10-08  Eric Blake  <ebb9@byu.net>
75030         areadlink: use SIZE_MAX consistently
75031         * modules/areadlink (Depends-on): Add stdint.
75032         * modules/areadlink-with-size (Depends-on): Likewise.
75033         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75034         gives NULL; drop sys/types, since unistd gives size_t; and add
75035         stdint for SIZE_MAX.
75036         (SIZE_MAX): Rely on headers.
75037         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75038         and add stdint.
75039         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75040         (SIZE_MAX): Likewise.
75041         (INITIAL_BUF_SIZE): Turn into enum.
75042         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75044 2009-10-08  Jim Meyering  <meyering@redhat.com>
75046         areadlinkat: avoid compilation failure
75047         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75048         Fix typo in comment.
75050 2009-10-07  Eric Blake  <ebb9@byu.net>
75052         areadlinkat-with-size: new module
75053         * modules/areadlinkat-with-size: New module.
75054         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75055         * lib/areadlink.h (areadlinkat): Declare it.
75056         * MODULES.html.sh (File system functions): Mention it.
75057         * modules/areadlinkat-with-size-tests: New test.
75058         * tests/test-areadlinkat-with-size.c: New file.
75060         xreadlinkat: new module
75061         * modules/xreadlinkat: New module.
75062         * lib/xreadlinkat.c (xreadlinkat): New file.
75063         * lib/xreadlink.h (xreadlinkat): Declare it.
75064         * MODULES.html.sh (File system functions): Mention it.
75066         areadlinkat: new module
75067         * lib/at-func.c (FUNC_FAIL): New define.
75068         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75069         * modules/areadlinkat: New module.
75070         * lib/linkat.c (areadlinkat): Move...
75071         * lib/areadlinkat.c (areadlinkat): ...to new file.
75072         * lib/areadlink.h (areadlinkat): Declare it.
75073         * modules/linkat (Depends-on): Add areadlinkat.
75074         * MODULES.html.sh (File system functions): Mention it.
75075         * modules/areadlinkat-tests: New test.
75076         * tests/test-areadlinkat.c: New file.
75078         areadlink, areadlink-with-size: add tests
75079         * modules/areadlink-tests: New test.
75080         * modules/areadlink-with-size-tests: Likewise.
75081         * tests/test-areadlink.h: New file.
75082         * tests/test-areadlink.c: Likewise.
75083         * tests/test-areadlink-with-size.c: Likewise.
75085         maint: minor cleanups
75086         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75087         _UNUSED_PARAMETER_ instead.
75088         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75089         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75090         * modules/linkat-tests (Files): Distribute test-link.h.
75092         openat, utimens: whitespace cleanup
75093         * lib/openat.c: Prefer space throughout, rather than mix of 8
75094         spaces vs. tabs.
75095         * lib/at-func.c: Likewise.
75096         * lib/utimens.c: Likewise.
75098         openat: avoid using wrong fd
75099         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75100         working directory chooses same fd.
75101         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75103         mkdir, mkdirat: fix cygwin 1.5.x bug
75104         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75105         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75106         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75107         bug.
75108         (gl_PREREQ_MKDIR): Delete unused macro.
75109         * modules/mkdir (Files): Track file rename.
75110         (configure.ac): Update macro name.
75111         * modules/openat (Depends-on): Add mkdir.
75112         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75114         mkdir, mkdirat: add tests
75115         * modules/mkdir-tests: New test.
75116         * tests/test-mkdir.h: New file.
75117         * tests/test-mkdir.c: Likewise.
75118         * tests/test-mkdirat.c: Likewise.
75119         * modules/openat-tests (Files): Add new files.
75120         (Makefile.am): Run new test.
75122 2009-10-06  Eric Blake  <ebb9@byu.net>
75124         doc: tweak *at function documentation
75125         * doc/posix-functions/faccessat.texi (faccessat): Mention
75126         known issue with replacement.
75127         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75128         * doc/posix-functions/linkat.texi (linkat): Likewise.
75129         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75130         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75131         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75132         * doc/posix-functions/renameat.texi (renameat): Likewise.
75133         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75135         openat: fix GNU/Hurd bug in unlinkat
75136         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75137         broken.
75138         * doc/posix-functions/unlink.texi (unlink): Document this.
75139         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75141         fdopendir: fix GNU/Hurd bug
75142         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75143         allowing non-directory fds.
75144         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75145         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75146         * modules/dirent (Makefile.am): Substitute it.
75147         * lib/dirent.in.h (fdopendir): Declare replacement.
75148         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75149         * tests/test-fdopendir.c (main): Test something other than
75150         /dev/null, since on Hurd that behaves like a directory.
75152         test-symlink: port to GNU/Hurd
75153         * tests/test-symlink.h (test_symlink): Relax expected errno.
75155         doc: tweak more cygwin information
75156         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75157         now compatible with glibc.
75158         * doc/posix-functions/getopt.texi (getopt): Likewise.
75160         getopt-gnu: add another test
75161         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75162         guarantee behavior relied on by m4.
75163         * tests/test-getopt.c (main): Use it.
75164         * modules/getopt-posix-tests (Depends-on): Add setenv.
75165         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75167         getopt: fix compilation on darwin
75168         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75169         include.
75170         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75171         Reported by Ludovic Courtès.
75173 2009-10-06  Bruno Haible  <bruno@clisp.org>
75175         * modules/size_max (Description): Discourage its use.
75176         Reported by Simon Josefsson.
75178 2009-10-06  Jim Meyering  <meyering@redhat.com>
75180         linkat: avoid compilation failure
75181         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75183 2009-10-05  Eric Blake  <ebb9@byu.net>
75185         linkat: support Linux 2.6.17
75186         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75187         linkat on Linux, but allow cache variable override.
75188         * lib/linkat.c (rpl_linkat): Define override.
75189         * modules/linkat (Depends-on): Add symlinkat.
75190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75191         * modules/unistd (Makefile.am): Substitute it.
75192         * lib/unistd.in.h (linkat): Declare replacement.
75193         Reported by Pádraig Brady.
75195         quotearg: port test to systems with C.UTF-8 locale
75196         * tests/test-quotearg.c (struct result_strings): Add another
75197         member, differentiating between C.ASCII and C.UTF-8 handling.
75198         (compare_strings): Add parameter.
75199         (main): Adjust all callers.
75201         getopt: avoid clash with FreeBSD _getopt_internal
75202         * lib/getopt.in.h (_getopt_internal): Override the name.
75203         * lib/getopt_int.h (includes): Pick up any overrides.
75204         Reported by Reuben Thomas.
75206         hash: allow C89 compilation
75207         * lib/hash.c (check_tuning): Move declaration before statement.
75208         Reported by Reuben Thomas.
75210 2009-10-05  Karl Berry  <karl@gnu.org>
75212         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75214 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75215             Bruno Haible  <bruno@clisp.org>
75217         * lib/uname.c (uname): Use a table-driven algorithm to compute
75218         Windows NT versions.
75220 2009-10-04  Bruno Haible  <bruno@clisp.org>
75222         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75223         program_invocation_short_name.
75224         * modules/progname (configure.ac): Test for presence of
75225         program_invocation_short_name.
75226         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75228 2009-10-04  Bruno Haible  <bruno@clisp.org>
75230         * lib/progname.c (set_program_name): Fix comment.
75231         Reported by Jim Meyering.
75233 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75234             Bruno Haible  <bruno@clisp.org>
75236         * lib/uname.c: Include <string.h>.
75237         (uname): Do only one call to GetVersionEx in the common case.
75239 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75240             Bruno Haible  <bruno@clisp.org>
75242         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75243         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75244         (uname): Add support for Windows CE and various non-x86 CPU types.
75246 2009-10-03  Bruno Haible  <bruno@clisp.org>
75248         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75249         invocation to tests/configure.ac.
75250         Reported by Ian Beckwith <ianb@erislabs.net>.
75252 2009-10-02  Eric Blake  <ebb9@byu.net>
75254         fchdir: avoid compiler warning
75255         * lib/fchdir.c (canonicalize_file_name)
75256         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75258         test-open: support mingw errno values
75259         * tests/test-open.h (test_open): Relax test.
75260         * tests/test-fopen.h (test_fopen): Likewise.
75261         * tests/test-openat-safer.c (main): Likewise.
75263         open: fix opening directory on mingw
75264         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75266         test-open: on GNU/Hurd, /dev/null is a directory
75267         * tests/test-fopen.h (main): Rename...
75268         (test_fopen): ...to this.  Use a guaranteed non-directory when
75269         confirming open behavior on trailing slash.
75270         * tests/test-openat-safer.c (main): Likewise.
75271         * tests/test-open.h (main): Likewise....
75272         (test_open): ...to this.
75273         * tests/test-fopen.c (main): Adjust caller.
75274         * tests/test-fopen-safer.c (main): Likewise.
75275         * tests/test-open.c (main): Likewise.
75276         * tests/test-fcntl-safer.c (main): Likewise.
75277         Reported by Samuel Thibault.
75279         rename, fchdir: don't ignore chdir failure
75280         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75281         * lib/rename.c (rpl_rename) [W32]: Likewise.
75282         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75283         an empty destination directory if source cannot be renamed,
75284         although there is still possibility for failure.
75285         * doc/posix-functions/rename.texi (rename): Document the race.
75286         Reported by Jim Meyering.
75288         maint: cleanup whitespace in recent commits
75289         * lib/rename.c (rpl_rename): Remove tabs.
75290         * tests/test-link.h (test_link): Likewise.
75291         * lib/fchdir.c (get_name): Likewise.
75292         Reported by Jim Meyering.
75294 2009-10-02  Ben Pfaff  <blp@gnu.org>
75296         relocatable-prog-wrapper: Add missing dependency on
75297         double-slash-root.
75298         * modules/relocatable-prog-wrapper: Add dependency.
75299         Reported by Ian Beckwith <ianb@erislabs.net>.
75301 2009-10-02  Eric Blake  <ebb9@byu.net>
75303         renameat: fix Solaris bugs
75304         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75305         needed fixing.
75306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75307         * modules/stdio (Makefile.am): Substitute it.
75308         * lib/stdio.in.h (renameat): Declare replacement.
75309         * lib/renameat.c (rpl_renameat): Implement fix.
75311         renameat: new module
75312         * modules/renameat: New file.
75313         * lib/renameat.c (renameat): Likewise.
75314         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75316         * modules/stdio (Makefile.am): Substitute them.
75317         * lib/stdio.in.h (renameat): Declare it.
75318         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75319         * doc/posix-functions/renameat.texi (renameat): Likewise.
75320         * modules/renameat-tests: New test.
75321         * tests/test-renameat.c: Likewise.
75323         rename: fix mingw bugs
75324         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75325         directory overwrite bugs.
75327         rename: fix another cygwin 1.5 bug
75328         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75329         checks.
75330         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75331         unnecessary cygwin workarounds.  Also work around bug with moving
75332         full directory onto an empty one.
75333         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75335         rename-dest-slash: merge into rename module
75336         * modules/rename-dest-slash (Status): Mark obsolete.
75337         (Depends-on): Add rename.
75338         (Files): Let rename do it all.
75339         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75340         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75341         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75342         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75343         * lib/rename.c (rpl_rename): Update comments.
75345         rename: fix cygwin 1.5.x bugs
75346         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75347         * lib/rename.c (rpl_rename): Work around them.
75348         * modules/rename (Depends-on): Add same-inode.
75350         rename: fix Solaris 10 bug
75351         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75352         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75353         was the only bug.
75355         rename: fix Solaris 9 bug
75356         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75357         on non-directory.  Avoid calling exit.
75358         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75359         strdup.
75360         * modules/rename-tests (Depends-on): Drop lstat.
75361         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75362         (gl_PREREQ_RENAME): Delete unused macro.
75364         rename-dest-slash: fix NetBSD bug
75365         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75366         links.
75367         * modules/rename-dest-slash (Depends-on): Add same-inode.
75369         rename-tests: new test, exposes several platform bugs
75370         * modules/rename-tests: New file.
75371         * tests/test-rename.h: Likewise.
75372         * tests/test-rename.c: Likewise.
75373         * doc/posix-functions/rename.texi (rename): Improve documentation,
75374         including bugs that will eventually be fixed in gnulib.
75376 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75378         * lib/uname.c: Include <stdlib.h>
75379         (uname): Assume version info is available.
75381 2009-10-02  Jim Meyering  <meyering@redhat.com>
75383         gnu-web-doc-update: correct --help output
75384         * build-aux/gnu-web-doc-update: Make --help output relevant.
75386         gnu-web-doc-update: add standard options
75387         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75389         gnu-web-doc-update: New module.
75390         Use this script to automatically update the on-line web documentation
75391         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75392         * modules/gnu-web-doc-update: New file, from coreutils.
75393         * build-aux/gnu-web-doc-update: New script.
75395 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75397         link: LoadLibrary is not needed.
75398         * lib/link.c: Use GetModuleHandle.
75400 2009-10-01  Eric Blake  <ebb9@byu.net>
75402         getopt: bump serial number
75403         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75404         change.
75406         tests: tighten link, rmdir, and remove tests
75407         * tests/test-link.h (includes): No need to use <config.h> here.
75408         Clean up if directory hard link was created, otherwise test for
75409         trailing '.'.
75410         * tests/test-linkat.c (main): Simplify.
75411         * tests/test-remove.c (main): Enhance test for trailing '.'.
75412         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75414 2009-10-01  Jim Meyering  <meyering@redhat.com>
75416         maint.mk: requiring "make major" was annoying, for a "minor" release.
75417         What is intended is "stable", to contrast with alpha and beta,
75418         so require "make stable", not "make major".
75419         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75420         (get_tool_versions): Likewise.
75421         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75423 2009-09-30  Ben Pfaff  <blp@gnu.org>
75425         Fix broken build of replacement for Windows tmpfile().
75426         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75427         flags argument added along with the 'mkostemp' module.
75429 2009-09-28  Bruno Haible  <bruno@clisp.org>
75431         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75432         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75433         to 'remove_elt'.
75434         (gl_list_remove): Update.
75435         * lib/gl_list.c (gl_list_remove): Update.
75436         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75437         to 'remove_elt'.
75438         (gl_oset_remove): Update.
75439         * lib/gl_list.c (gl_oset_remove): Update.
75440         Reported by Eric Blake.
75442 2009-09-28  Eric Blake  <ebb9@byu.net>
75444         doc: mention yet more cygwin 1.7 status
75445         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75446         cygwin.
75447         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75448         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75450         argp: fix test failure
75451         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75452         that are not upper-case.  Pass correct range to tolower.
75454 2009-09-27  Jim Meyering  <meyering@redhat.com>
75456         test-yesno: work around sparc-dash here-document infelicity
75457         Without this change, the literal \177 byte in a here document
75458         would make dash 0.5.5.1-3 access uninitialized memory.
75459         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75460         Instead, use a marker, "@", and filter through tr to create the desired
75461         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75463 2009-09-27  Bruno Haible  <bruno@clisp.org>
75465         Disable untested support for new flavours of ACLs on AIX.
75466         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75467         progress.
75468         * lib/set-mode-acl.c (qset_acl): Likewise.
75470 2008-12-07  Bruno Haible  <bruno@clisp.org>
75472         Add support for new flavours of ACLs on AIX. (Untested.)
75473         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75474         (file_has_acl): Add support for newer AIX.
75475         * lib/set-mode-acl.c (qset_acl): Likewise.
75476         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75477         Rainer Tammer <tammer@tammer.net>.
75479 2009-09-26  Eric Blake  <ebb9@byu.net>
75481         argp: fix compilation of getopt
75482         * lib/getopt.in.h (includes): Use different guard than glibc.
75483         Reported by Sergey Poznyakoff.
75485         doc: mention more cygwin 1.7 status
75486         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75487         bug.
75488         * doc/posix-functions/execl.texi (execl): Likewise.
75489         * doc/posix-functions/execle.texi (execle): Likewise.
75490         * doc/posix-functions/execlp.texi (execlp): Likewise.
75491         * doc/posix-functions/execv.texi (execv): Likewise.
75492         * doc/posix-functions/execve.texi (execve): Likewise.
75493         * doc/posix-functions/execvp.texi (execvp): Likewise.
75494         * doc/glibc-functions/canonicalize_file_name.texi
75495         (canonicalize_file_name): Cygwin 1.7 now provides this.
75496         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75497         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75498         on AT_SYMLINK_NOFOLLOW.
75500 2009-09-24  Eric Blake  <ebb9@byu.net>
75502         test-linkat: make test more robust
75503         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75505         getopt: fix inclusion guards for cygwin
75506         * modules/getopt-posix (Depends-on): Add include-next.
75507         (Makefile.am): Substitute more items in replacement header.
75508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75509         <getopt.h>.
75510         * lib/getopt.in.h (includes): Use split inclusion guard, and
75511         prefer <getopt.h> over include <unistd.h> when one is present.
75512         (option): Also override name of 'struct option'.
75514         same-inode: revert prior change; it is not yet ready
75515         * NEWS: Undo mention of this change.
75516         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75517         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75518         * lib/cycle-check.c (cycle_check): Likewise.
75519         * lib/same.c (same_name): Likewise.
75520         * lib/at-func2.c (at_func2): Likewise.
75522 2009-09-23  Eric Blake  <ebb9@byu.net>
75524         linkat: new module
75525         * modules/linkat: New file.
75526         * lib/at-func2.c (at_func2): Likewise.
75527         * lib/linkat.c (linkat): Likewise.
75528         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75529         * lib/openat-priv.h (at_func2): Add declaration.
75530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75531         * modules/unistd (Makefile.am): Substitute them.
75532         * lib/unistd.in.h (linkat): Declare it.
75533         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75534         * doc/posix-functions/linkat.texi (linkat): Likewise.
75535         * doc/posix-functions/link.texi (link): Tweak wording.
75536         * tests/test-link.c (main): Move guts...
75537         * tests/test-link.h (test_link): ...into new file.
75538         * modules/linkat-tests: New test.
75539         * tests/test-linkat.c: Likewise.
75540         * modules/link-tests (Files): Ship new file.
75541         (Depends-on): Add stdbool.
75543         dirname: add library-safe mdir_name
75544         * lib/dirname.h (mdir_name): New prototype.
75545         * lib/dirname.c (dir_name): Move guts...
75546         (mdir_name): ...to new function that avoids xalloc_die.
75548         fchdir: another mingw fix
75549         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75550         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75551         on mingw (where it has not yet been ported), and make it optional
75552         elsewhere.
75553         (_gl_register_fd): Use it.
75555         same-inode: make SAME_INODE tri-state, to port to mingw
75556         * NEWS: Mention this change.
75557         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75558         st_ino always being 0.
75559         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75560         * lib/cycle-check.c (cycle_check): Likewise.
75561         * lib/same.c (same_name): Likewise.
75563         lstat: avoid mingw compilation error
75564         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75565         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75566         lstat ourselves.
75567         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75568         was adequate.
75569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75570         the checks for lstat.
75571         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75573         link: fix test failure on Solaris 9
75574         * lib/link.c (rpl_link): Don't assume link will catch bogus
75575         trailing slash on source.
75577         test-symlinkat: enhance test
75578         * tests/test-readlink.c (main): Move guts...
75579         * tests/test-readlink.h (test_readlink): ...into new file.
75580         * tests/test-symlink.c (main): Move guts...
75581         * tests/test-symlink.h (test_symlink): ...into new file.
75582         * tests/test-symlinkat.c (main): Use new files for further
75583         coverage.
75584         (do_symlink, do_readlink): New helper functions.
75585         * modules/symlink-tests (Files): Ship new file.
75586         (Depends-on): Add stdbool.
75587         * modules/readlink-tests (Files): Ship new file.
75588         (Depends-on): Add stdbool.
75589         * modules/symlinkat-tests (Files): Use new files.
75591 2009-09-23  Eric Blake  <ebb9@byu.net>
75593         readlink: document portability issue with symlink length
75594         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75595         systems have bogus st_size on symlinks, and mention the
75596         areadlink-with-size module.
75597         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75598         * doc/posix-functions/readlink.texi (readlink): Mention the
75599         areadlink module, and ERANGE failure.
75600         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75601         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75603         readlink: fix Solaris 9 bug with trailing slash
75604         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75605         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75606         * doc/posix-functions/readlink.texi (readlink): Document this.
75607         * modules/readlink-tests: New test.
75608         * tests/test-readlink.c: Likewise.
75610         readlink: fix cygwin 1.5.x bug with return type
75611         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75612         * lib/unistd.in.h (readlink): Use ssize_t.
75613         * lib/readlink.c (readlink): Likewise.
75614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75615         * modules/unistd (Makefile.am): Substitute it.
75616         * lib/unistd.in.h (readlink): Declare replacement.
75617         * doc/posix-functions/readlink.texi (readlink): Document this.
75619         symlink: use throughout gnulib
75620         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75621         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75622         symlink is not used.
75623         * modules/symlinkat (Depends-on): Add symlink.
75624         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75625         * modules/canonicalize-tests (Depends-on): Likewise.
75626         * modules/lstat-tests (Depends-on): Likewise.
75627         * modules/openat-tests (Depends-on): Likewise.
75628         * modules/remove-tests (Depends-on): Likewise.
75629         * modules/rmdir-tests (Depends-on): Likewise.
75630         * modules/unlink-tests (Depends-on): Likewise.
75631         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75632         * tests/test-canonicalize.c (symlink): Likewise.
75633         * tests/test-fstatat.c (symlink): Likewise.
75634         * tests/test-lstat.c (symlink): Likewise.
75635         * tests/test-remove.c (symlink): Likewise.
75636         * tests/test-rmdir.c (symlink): Likewise.
75637         * tests/test-unlink.c (symlink): Likewise.
75638         * tests/test-unlinkat.c (symlink): Likewise.
75640         symlink: new module, for Solaris 9 bug
75641         * modules/symlink: New file.
75642         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75643         * lib/symlink.c: Likewise.
75644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75645         * modules/unistd (Makefile.am): Substitute them.
75646         * lib/unistd.in.h (symlink): Declare replacement.
75647         * MODULES.html.sh (File system functions): Mention it.
75648         * doc/posix-functions/symlink.texi (symlink): Likewise.
75649         * modules/symlink-tests: New test.
75650         * tests/test-symlink.c: Likewise.
75652 2009-09-23  Bruno Haible  <bruno@clisp.org>
75654         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75655         when needed.
75656         Test case: gnulib-tool --import --with-tests atexit inttypes.
75657         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75659 2009-09-23  Bruno Haible  <bruno@clisp.org>
75661         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75662         subcommand, not in a subshell.
75664 2009-09-22  Eric Blake  <ebb9@byu.net>
75666         unistd: sort replacement declarations
75667         * lib/unistd.in.h: Sort declarations.
75669         open, openat: minor optimization
75670         * lib/open.c (open): If open succeeded, len is non-zero.
75671         * lib/openat.c (rpl_openat): Likewise.
75673         link-follow: ensure correct result
75674         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75675         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75676         distinguish between possible failures.
75678 2009-09-21  Eric Blake  <ebb9@byu.net>
75680         fts: avoid compiler warning
75681         * lib/fts.c (dirent_inode_sort_may_be_useful)
75682         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75684 2009-09-19  Bruno Haible  <bruno@clisp.org>
75686         * lib/progreloc.c (canonicalize_file_name): New declaration.
75688 2009-09-19  Eric Blake  <ebb9@byu.net>
75690         link: fix quoting
75691         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75693         openat: fix openat bugs on Solaris 9
75694         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75695         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75696         * modules/openat (Depends-on): Add open.
75697         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75698         * modules/fcntl-h (Makefile.am): Substitute it.
75699         * lib/fcntl.in.h (openat): Declare replacement.
75700         * doc/posix-functions/openat.texi (openat): Document this.
75702         openat: move fstatat and unlinkat into correct files
75703         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75704         compiled.
75705         * lib/openat.c (fstatat, unlinkat): Move...
75706         * lib/fstatat.c (fstatat): ...into correct files.
75707         * lib/unlinkat.c (unlinkat): Likewise.
75709         openat: fix unlinkat bugs on Solaris 9
75710         * lib/unlinkat.c (unlinkat): New file.
75711         * modules/openat (Depends-on): Add unlink.
75712         (Files): Distribute it.
75713         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75714         trailing slash behavior is broken.
75715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75716         * modules/unistd (Makefile.am): Substitute it.
75717         * lib/unistd.in.h (unlinkat): Declare replacement.
75718         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
75720         openat: fix fstatat bugs on Solaris 9
75721         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
75722         stat.
75723         * doc/posix-functions/fstatat.texi (fstatat): Document this.
75725         test-unlinkat: enhance test, to expose Solaris 9 bug
75726         * tests/test-unlink.c (main): Factor guts...
75727         * tests/test-unlink.h (test_rmdir_func): ...into new file.
75728         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
75729         * tests/test-rmdir.c (main): Adjust caller.
75730         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
75731         (unlinker): New helper function.
75732         (rmdirat): Enhance check.
75733         * modules/rmdir-tests (Depends-on): Add stdbool.
75734         * modules/unlink-tests (Depends-on): Likewise.
75735         (Files): Add test-unlink.h.
75736         * modules/openat-tests (Files): Likewise.
75737         (Depends-on): Add unlinkdir.
75739         test-fstatat: new test, to expose Solaris 9 bugs
75740         * tests/test-stat.c (main): Factor guts...
75741         * tests/test-stat.h (test_stat_func): ...into new file.
75742         * tests/test-lstat.c (main): Factor guts...
75743         * tests/test-lstat.h (test_lstat_func): ...into new file.
75744         * tests/test-fstatat.c: New file.
75745         * modules/stat-tests (Files): Add test-stat.h.
75746         * modules/lstat-tests (Files): Add test-lstat.h.
75747         (Depends-on): Add stdbool.
75748         * modules/openat-tests (Depends-on): Add pathmax.
75749         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
75750         (Makefile.am): Run new test.
75752         remove: new module, for mingw and Solaris 9 bugs
75753         * modules/remove: New file.
75754         * lib/remove.c: Likewise.
75755         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
75756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75757         * modules/stdio (Makefile.am): Use them.
75758         * lib/stdio.in.h (remove): Declare replacement.
75759         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75760         * doc/posix-functions/remove.texi (remove): Likewise.
75761         * modules/remove-tests: New test.
75762         * tests/test-remove.c: Likewise.
75764         unlink: new module, for Solaris 9 bug
75765         * modules/unlink: New file.
75766         * lib/unlink.c: Likewise.
75767         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
75768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75769         * modules/unistd (Makefile.am): Use them.
75770         * lib/unistd.in.h (stat): Declare replacement.
75771         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75772         * doc/posix-functions/unlink.texi (unlink): Likewise.
75773         * modules/unlink-tests: New test.
75774         * tests/test-unlink.c: Likewise.
75776         lstat: fix Solaris 9 bug
75777         * lib/lstat.c (lstat): Also check for trailing slash on
75778         non-symlink, non-directories.  Use stat module to simplify logic.
75779         * doc/posix-functions/lstat.texi (lstat): Document it.
75780         * modules/lstat-tests (Depends-on): Add errno, same-inode.
75781         (configure.ac): Check for symlink.
75782         * tests/test-lstat.c (main): Add more tests.
75784         stat: add as dependency to other modules
75785         * modules/chown (Depends-on): Add stat.
75786         * modules/euidaccess (Depends-on): Likewise.
75787         * modules/fchdir (Depends-on): Likewise.
75788         * modules/isdir (Depends-on): Likewise.
75789         * modules/link (Depends-on): Likewise.
75790         * modules/lstat (Depends-on): Likewise.
75791         * modules/mkdir-p (Depends-on): Likewise.
75792         * modules/modechange (Depends-on): Likewise.
75793         * modules/open (Depends-on): Likewise.
75794         * modules/readlink (Depends-on): Likewise.
75795         * modules/same (Depends-on): Likewise.
75797         stat: fix Solaris 9 bug
75798         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
75799         slash.
75800         * lib/stat.c (rpl_stat): Work around it.
75801         * doc/posix-functions/stat.texi (stat): Update documentation.
75803         stat: new module, for mingw bug
75804         * modules/stat: New file.
75805         * lib/stat.c: Likewise.
75806         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75808         * modules/sys_stat (Makefile.am): Use them.
75809         * lib/sys_stat.in.h (stat): Declare replacement.
75810         * lib/openat.c (fstatat): Deal with lstat and stat being function
75811         macros.
75812         * modules/openat (Depends-on): Add inline.
75813         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75814         * doc/posix-functions/stat.texi (stat): Likewise.
75815         * modules/stat-tests: New test.
75816         * tests/test-stat.c: Likewise.
75818 2009-09-19  Jim Meyering  <meyering@redhat.com>
75820         syntax-check: detect unnecessary inclusion of canonicalize.h
75821         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
75823 2009-09-19  Eric Blake  <ebb9@byu.net>
75825         canonicalize-lgpl: adjust clients to use correct header
75826         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75827         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
75828         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
75829         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
75830         * lib/progreloc.c (includes): Likewise.
75832 2009-09-19  Jim Meyering  <meyering@redhat.com>
75834         test-posixtm.c: correct a comment
75835         * tests/test-posixtm.c: Correct first-line comment.
75836         Spotted by Eric Blake.
75838 2009-09-16  Jim Meyering  <meyering@redhat.com>
75840         posixtm-tests: make T const-correct; add a test case
75841         * tests/test-posixtm.c (T): Declare const.
75842         Add a test for -(2^31+1).
75843         Remove useless can-succeed-only-in-2002 test.
75845         posixtm-tests: adjust the sole failing test
75846         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
75847         expected output matches what mktime now produces.  Cross-checked via
75848         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
75850         posixtm: move #ifdef'd tests into a new module
75851         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
75852         * tests/test-posixtm.c: ... this new file.
75853         * modules/posixtm-tests: New module.
75855 2009-09-19  Eric Blake  <ebb9@byu.net>
75857         openat: simplify use of at-func.c
75858         * lib/at-func.c (includes): Include prerequisites here, to
75859         simplify requirements on client files.
75860         * lib/openat-priv.h: Add double-inclusion guard.
75861         * lib/faccessat.c (includes): Simplify.
75862         * lib/fchmodat.c (includes): Likewise.
75863         * lib/fchownat.c (includes): Likewise.
75864         * lib/mkdirat.c (includes): Likewise.
75865         * lib/mkfifoat.c (includes): Likewise.
75866         * lib/symlinkat.c (includes): Likewise.
75868         openat: allow return of fd 0
75869         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
75870         * modules/save-cwd (Depends-on): Replace fcntl-safer with
75871         unistd-safer.
75872         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
75873         <fcntl.h>; this module does not leak fds.
75874         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
75875         must be allowed to return 0, leaving openat_safer to add the
75876         safety.
75877         (openat_permissive): Avoid writing to just-opened fd 2 if
75878         restoring the current directory fails.
75879         * lib/openat-die.c (openat_restore_fail): Add comment.
75880         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
75881         (save_cwd): Guarantee safe fd, but without use of open_safer.
75882         * tests/test-openat.c: New test.
75883         * modules/openat-tests (Files, Makefile.am): Distribute and build
75884         new file.
75886         relocatable-prog-wrapper: fix build
75887         * modules/relocatable-prog-wrapper (Files): Update name of
75888         canonicalize m4 file, broken on 2009-09-17.
75889         Reported by emad hajjar <aleppos@hotmail.com>.
75891 2009-09-19  Bruno Haible  <bruno@clisp.org>
75893         * lib/safe-alloc.h: Use the standard header with GPL copyright.
75894         * lib/safe-alloc.c: Likewise.
75895         Reported by Ian Beckwith <ianb@erislabs.net>.
75897 2009-09-18  Bruno Haible  <bruno@clisp.org>
75899         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
75900         Reported by <erobles@sensacd.com.mx>.
75902 2009-09-17  Eric Blake  <ebb9@byu.net>
75904         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
75905         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
75906         slashes when checking if last component is missing.
75907         * tests/test-canonicalize.c (main): Test this.
75909         canonicalize, canonicalize-lgpl: honor // if distinct from /
75910         * modules/canonicalize (Files): Add double-slash-root.m4.
75911         * modules/canonicalize-lgpl (Files): Likewise.
75912         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75913         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
75914         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
75915         fallback definition.
75916         (canonicalize_filename_mode): Use it to protect //.
75917         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
75918         (__realpath): Likewise.
75919         * tests/test-canonicalize.c (main): Test this.
75920         * tests/test-canonicalize-lgpl.c (main): Likewise.
75921         * modules/canonicalize-tests (Depends-on): Add same-inode.
75922         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75924         canonicalize-lgpl: fix glibc bug with trailing slash
75925         * m4/canonicalize-lgpl.m4: Move contents...
75926         * m4/canonicalize.m4: ...here.
75927         (gl_CANONICALIZE_LGPL): Factor realpath check...
75928         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
75929         glibc 2.3.5 bug, fixed 2005-04-27.
75930         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
75931         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
75932         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
75933         * modules/canonicalize-lgpl (Files): Manage file rename.
75934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
75935         * modules/stdlib (Makefile.am): Substitute witness.
75936         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
75937         is needed.
75938         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
75939         replacement is required.
75940         * lib/canonicalize.c (canonicalize_file_name): Likewise.
75941         * doc/glibc-functions/canonicalize_file_name.texi
75942         (canonicalize_file_name): Document this.
75943         * doc/posix-functions/realpath.texi (realpath): Likewise.
75945         canonicalize-lgpl: reject non-directory with trailing slash
75946         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
75947         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
75948         catches failures in glibc 2.3.5.
75949         * tests/test-canonicalize.c (main): Likewise.
75951         canonicalize-lgpl: use native realpath if it works
75952         * lib/canonicalize-lgpl.c (realpath): Guard with
75953         FUNC_REALPATH_WORKS.
75954         * lib/stdlib.in.h (realpath): Make declaration optional based on
75955         HAVE_REALPATH.
75956         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
75957         native realpath works.
75958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
75959         * modules/stdlib (Makefile.am): Substitute witness.
75961         canonicalize, canonicalize-lgpl: use <stdlib.h>
75962         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
75963         (Include): Mention <stdlib.h>.
75964         (configure.ac): Mention functions we provide.
75965         * modules/canonicalize (configure.ac): Likewise.
75966         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
75967         realpath if canonicalize_file_name is missing.
75968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
75969         * modules/stdlib (Makefile.am): Substitute witnesses.
75970         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
75971         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
75972         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
75973         * NEWS: Document this.
75974         * doc/glibc-functions/canonicalize_file_name.texi
75975         (canonicalize_file_name): Likewise.
75976         * doc/posix-functions/realpath.texi (realpath): Likewise.
75977         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
75979         test-canonicalize: consolidate into single C program
75980         * tests/test-canonicalize.sh: Delete; move setup into...
75981         * tests/test-canonicalize.c (main): ...the program, making it
75982         easier to run in debugger.  Add some tests.
75983         * modules/canonicalize-tests (Files): Remove unused file.
75984         (Depends-on): Add progname.
75985         (configure.ac, Makefile.am): Simplify.
75987         test-canonicalize-lgpl: consolidate into single C program
75988         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
75989         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
75990         easier to run in debugger.  Add some tests.
75991         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
75992         (configure.ac, Makefile.am): Simplify.
75994         canonicalize: avoid resolvepath
75995         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
75996         unnecessary checks.
75997         * lib/canonicalize.c (includes): Simplify.
75998         (canonicalize_file_name): Drop resolvepath implementation.
75999         * modules/canonicalize (Depends-on): Drop filenamecat.
76001         canonicalize: don't lose errno
76002         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76003         over calls to free.
76005         canonicalize: simplify errno handling
76006         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76007         assignment.
76009         canonicalize, canonicalize-lgpl: update module dependencies
76010         * modules/canonicalize (Depends-on): Add extensions, lstat,
76011         pathmax, stdlib.
76012         (Files): Drop pathmax.h.
76013         (configure.ac): Adjust macro name.
76014         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76015         lstat, stdlib, sys_stat.
76016         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76017         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76018         extensions.
76019         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76020         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76021         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76022         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76023         declaration, if available.
76024         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76025         we can rely on the readlink module.
76026         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76027         (includes): Use <unistd.h> unconditionally.
76029 2009-09-17  Eric Blake  <ebb9@byu.net>
76031         maint: make Include sections of modules consistent
76032         * modules/alloca: Use only header name; no need to list #include.
76033         * modules/alloca-opt: Likewise.
76034         * modules/arpa_inet: Likewise.
76035         * modules/canon-host: Likewise.
76036         * modules/configmake: Likewise.
76037         * modules/dirent: Likewise.
76038         * modules/eealloc: Likewise.
76039         * modules/environ: Likewise.
76040         * modules/fchdir: Likewise.
76041         * modules/fcntl: Likewise.
76042         * modules/fcntl-h: Likewise.
76043         * modules/gethrxtime: Likewise.
76044         * modules/gettime: Likewise.
76045         * modules/ignore-value: Likewise.
76046         * modules/inet_ntop: Likewise.
76047         * modules/inet_pton: Likewise.
76048         * modules/inttypes: Likewise.
76049         * modules/isnand-nolibm: Likewise.
76050         * modules/isnanf-nolibm: Likewise.
76051         * modules/mbchar: Likewise.
76052         * modules/mbfile: Likewise.
76053         * modules/mbiter: Likewise.
76054         * modules/mbuiter: Likewise.
76055         * modules/netdb: Likewise.
76056         * modules/netinet_in: Likewise.
76057         * modules/nproc: Likewise.
76058         * modules/pagealign_alloc: Likewise.
76059         * modules/poll: Likewise.
76060         * modules/printf-frexp: Likewise.
76061         * modules/pthread: Likewise.
76062         * modules/putenv: Likewise.
76063         * modules/random_r: Likewise.
76064         * modules/relocatable-prog: Likewise.
76065         * modules/search: Likewise.
76066         * modules/select: Likewise.
76067         * modules/selinux-h: Likewise.
76068         * modules/settime: Likewise.
76069         * modules/signal: Likewise.
76070         * modules/size_max: Likewise.
76071         * modules/socklen: Likewise.
76072         * modules/ssize_t: Likewise.
76073         * modules/stdarg: Likewise.
76074         * modules/stdbool: Likewise.
76075         * modules/stddef: Likewise.
76076         * modules/stdint: Likewise.
76077         * modules/stdio: Likewise.
76078         * modules/stdlib: Likewise.
76079         * modules/string: Likewise.
76080         * modules/strings: Likewise.
76081         * modules/sys_file: Likewise.
76082         * modules/sys_ioctl: Likewise.
76083         * modules/sys_select: Likewise.
76084         * modules/sys_socket: Likewise.
76085         * modules/sys_stat: Likewise.
76086         * modules/sys_time: Likewise.
76087         * modules/sys_times: Likewise.
76088         * modules/sys_utsname: Likewise.
76089         * modules/sys_wait: Likewise.
76090         * modules/sysexits: Likewise.
76091         * modules/time: Likewise.
76092         * modules/times: Likewise.
76093         * modules/tmpfile: Likewise.
76094         * modules/trim: Likewise.
76095         * modules/unistd: Likewise.
76096         * modules/wchar: Likewise.
76097         * modules/wctype: Likewise.
76099 2009-09-17  Bruno Haible  <bruno@clisp.org>
76101         Make getdate.y compile on QNX and NetBSD 5 / i386.
76102         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76103         TIME_T_FITS_IN_LONG_INT.
76104         * lib/getdate.y (long_time_t): New type.
76105         (relative_time): Change type of 'seconds' field to long_time_t.
76106         (get_date): Update types of local variables. Check against overflow
76107         during conversion from long_time_t to time_t.
76108         Reported by Matt Kraai <kraai@ftbfs.org>
76109         and Hasso Tepper <hasso@netbsd.org>.
76111 2009-09-17  Bruno Haible  <bruno@clisp.org>
76113         * modules/COPYING: Update copyright years.
76114         * modules/README: Likeiwse.
76115         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76116         Reported by Ian Beckwith <ianb@erislabs.net>.
76118 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76120         * users.txt: Update references for gnuit package.
76122 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76124         * m4/getdelim.m4: Fix typo in copyright line.
76126 2009-09-17  Bruno Haible  <bruno@clisp.org>
76128         * lib/atoll.c: Use the standard header with GPL copyright.
76129         * lib/argz.in.h: Likewise.
76130         * lib/glob.c: Likewise.
76131         * lib/glob-libc.h: Likewise.
76132         * lib/random_r.c: Likewise.
76133         * lib/siglist.h: Likewise.
76134         * lib/strsignal.c: Likewise.
76135         Reported by Ian Beckwith <ianb@erislabs.net>.
76137 2009-09-17  Eric Blake  <ebb9@byu.net>
76139         rmdir: ensure correct dependency order
76140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76142 2009-09-17  Bruno Haible  <bruno@clisp.org>
76144         Disable assertion that fails on NetBSD 5 / i386.
76145         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76146         Reported by Sam Steingold <sds@gnu.org>
76147         and Hasso Tepper <hasso@netbsd.org>.
76149 2009-09-16  Eric Blake  <ebb9@byu.net>
76151         unlinkdir: port to mingw
76152         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76153         on which no one can unlink a directory.
76155         stdlib: sort witness names
76156         * modules/stdlib (Makefile.am): Sort replacements.
76157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76158         * lib/stdlib.in.h: Likewise.
76160         parse-duration-tests: avoid link failure
76161         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76162         LIBINTL.
76163         Reported by Tom G. Christensen.
76165         openat-tests: ensure unlinkat behaves like rmdir
76166         * tests/test-rmdir.c (main): Factor guts...
76167         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76168         * modules/rmdir-tests (Files): Ship new file.
76169         * modules/openat-tests: New test.
76170         * tests/test-unlinkat.c: Likewise.
76172         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76173         * modules/rmdir-errno (Status, Notice): Now obsolete.
76175         rmdir: work around cygwin 1.5.x and mingw bugs
76176         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76177         * lib/rmdir.c (rmdir): Work around it.
76178         * modules/rmdir (Status, Notice): No longer obsolete.
76179         (Files): Add dos.m4.
76180         (Depends-on): Add unistd.
76181         (configure.ac): Set witnesses.
76182         (License): Relax to LGPLv2+.
76183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76184         * modules/unistd (Makefile.am): Substitute witnesses.
76185         * lib/unistd.in.h (rmdir): Declare replacement.
76186         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76187         * modules/rmdir-tests: New tests.
76188         * tests/test-rmdir.c: Likewise.
76190 2009-09-15  Eric Blake  <ebb9@byu.net>
76192         fchdir: improve use of replacement functions
76193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76195         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76196         REPLACE_CLOSEDIR.
76197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76198         * modules/sys_stat (Makefile.am): Substitute correct witness.
76199         * modules/dirent (Makefile.am): Likewise.
76200         * modules/unistd (Makefile.am): Likewise.
76201         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76202         * lib/unistd.in.h (dup): Likewise.
76203         * lib/sys_stat.in.h (fstat): Likewise.
76205         maint: ignore gnulib-tool temp files
76206         * .gitignore: Ignore files created during gnulib-tool --test.
76208 2009-09-13  Jim Meyering  <meyering@redhat.com>
76210         posixtm: don't reject a time that specify "60" as the number of seconds
76211         * lib/posixtm.c (posixtime): The code to reject invalid dates
76212         would also reject a time specified with the .60 suffix.
76213         But POSIX allows that, in order to accommodate leap seconds.
76214         So don't reject it.
76215         (main): Adjust tests accordingly.
76216         * modules/posixtm (Depends-on): Add stpcpy.
76218 2009-09-11  Jim Meyering  <meyering@redhat.com>
76220         announce-gen: include [$release_type] in emitted Subject:
76221         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76222         e.g., [stable] in the emitted Subject: line.
76224 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76226         Remove obsolete macros from several modules.
76227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76228         obsolete Autoconf macros with their modern counterparts.
76229         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76230         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76232         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76234         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76236         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76237         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76238         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76239         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76240         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76241         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76242         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76243         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76244         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76245         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76246         * m4/time_r.m4 (gl_TIME_R): Likewise.
76247         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76248         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76249         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76251         Fix copyright header in build-aux scripts.
76252         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76253         recommendation.
76254         * build-aux/ncftpput-ftp: Likewise.
76255         * build-aux/update-copyright: Likewise.
76257 2009-09-09  Eric Blake  <ebb9@byu.net>
76259         test-link: allow Linux choice of errno
76260         * tests/test-link.c (main): Relax test for alternate error.
76262         strndup: fix improper m4 caching
76263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76264         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76265         (gl_PREREQ_STRNDUP): Delete.
76266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76267         * modules/string (Makefile.am): Substitute it.
76268         * lib/string.in.h (strndup): Modernize prototype.
76270         getcwd: port to mingw
76271         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76272         different from the POSIX assumptions made throughout the getcwd
76273         module; fortunately, the mingw getcwd does not need replacement.
76274         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76275         * modules/getcwd-tests: New test.
76276         * tests/test-getcwd.c: Likewise.
76278         link: fix platform bugs
76279         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76280         * lib/link.c (link): Work around them.  Fix related mingw bug.
76281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76282         * modules/unistd (Makefile.am): Substitute it.
76283         * lib/unistd.in.h (link): Declare replacement.
76284         * doc/posix-functions/link.texi (link): Document this.
76285         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76287         test-link: consolidate into single C program, test more cases
76288         * tests/test-link.sh: Delete.
76289         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76290         at least Cygwin and Solaris.
76291         * modules/link-tests (Files): Remove unused file.
76292         (Depends-on): Add errno, sys_stat.
76293         (Makefile.am): Simplify.
76295 2009-09-08  Bruno Haible  <bruno@clisp.org>
76297         Work around towlower, towupper bug on mingw.
76298         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76299         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76300         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76301         * doc/posix-functions/towupper.texi: Likewise.
76302         Reported by Eric Blake.
76304 2009-09-08  Jim Meyering  <meyering@redhat.com>
76306         build: don't try to run autoheader if we don't use it
76307         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76308         is not used in configure.ac.
76310 2009-09-08  Eric Blake  <ebb9@byu.net>
76312         euidaccess: fix compilation error
76313         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76315         rawmemchr: relax license
76316         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76317         okay.
76318         Reported by Jim Meyering.
76320         mkfifoat: new module
76321         * modules/mkfifoat: New file.
76322         * lib/mkfifoat.c: Likewise.
76323         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76325         * modules/sys_stat (Makefile.am): Use them.
76326         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76327         * MODULES.html.sh (File system functions): Mention module.
76328         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76329         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76330         * modules/mkfifoat-tests: New test.
76331         * tests/test-mkfifoat.c: Likewise.
76333         strchrnul: relax license
76334         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76335         okay.
76336         Reported by Jim Meyering.
76338 2009-09-08  Eric Blake  <ebb9@byu.net>
76340         fstatat: fix compilation on Solaris
76341         * lib/fstatat.c (includes): Add fcntl.h.
76342         Reported by Pádraig Brady.
76344 2009-09-07  Eric Blake  <ebb9@byu.net>
76346         rename: modernize replacement
76347         * modules/rename (Depends-on): Add stdio.
76348         (configure.ac): Declare witness.
76349         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76350         stdio take care of replacement.
76351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76352         * modules/stdio (Makefile.am): Substitute them.
76353         * lib/stdio.in.h (rename): Declare replacement.
76354         * lib/rename.c (includes): Allow cross-compilation to non-windows
76355         machines.
76356         * doc/posix-functions/rename.texi (rename): Improve
76357         documentation.
76359         stdio: sort witness names
76360         * modules/stdio (Makefile.am): Sort replacements.
76361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76362         * lib/stdio.in.h: Likewise.
76364         getcwd: minor cleanups
76365         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76366         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76368         openat: provide more convenience names
76369         * modules/faccessat (configure.ac): Add C witness.
76370         * lib/unistd.in.h (readlinkat): Fix typo.
76371         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76372         convenience wrappers.
76373         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76374         wrappers in syntax checks.
76376 2009-09-06  Eric Blake  <ebb9@byu.net>
76378         doc: fix comments in recent patches
76379         * lib/faccessat.c: Mention correct function.
76380         * lib/fchmodat.c: Likewise.
76381         * lib/fchownat.c: Likewise.
76382         * lib/symlinkat.c: Likewise.
76383         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76384         constants.
76386         faccessat, symlinkat: continue cleanup of previous patch
76387         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76388         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76389         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76391         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76392         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76393         set.
76395 2009-09-06  Bruno Haible  <bruno@clisp.org>
76397         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76398         (fstatat): Declare if GNULIB_FSTATAT is set.
76399         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76400         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76401         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76402         * modules/fcntl-h (Files): Remove m4/openat.m4.
76403         * modules/sys_stat (Files): Remove m4/openat.m4.
76404         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76405         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76406         * modules/unistd (Files): Remove m4/openat.m4.
76407         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76408         GNULIB_OPENAT.
76409         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76410         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76411         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76412         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76413         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76414         gl_OPENAT_DEFAULTS.
76415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76416         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76417         Don't require gl_OPENAT_DEFAULTS.
76418         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76419         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76420         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76421         (gl_OPENAT_DEFAULTS): Remove macro.
76423 2009-09-06  Bruno Haible  <bruno@clisp.org>
76425         * modules/openat (configure.ac): Remove unneeded witness.
76427 2009-09-06  Bruno Haible  <bruno@clisp.org>
76429         Set errno to ENOSYS when a function is entirely unsupported.
76430         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76431         EOPNOTSUPP.
76432         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76433         * modules/chown (Depends-on): Remove errno.
76435 2009-09-06  Bruno Haible  <bruno@clisp.org>
76437         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76439 2009-09-06  Bruno Haible  <bruno@clisp.org>
76441         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76443 2009-09-06  Ben Pfaff  <blp@gnu.org>
76444             Bruno Haible  <bruno@clisp.org>
76446         Work around a glibc bug in strtok_r.
76447         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76448         Undefine if UNDEFINE_STRTOK_R is set.
76449         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76451         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76452         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76453         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76454         UNDEFINE_STRTOK_R.
76455         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76457 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76459         exclude: minor fix
76460         * lib/exclude.c: Include wctype.h
76462 2009-09-06  Akim Demaille  <demaille@gostai.com>
76464         bootstrap: improve error message
76465         * build-aux/bootstrap (find_tool): Upon failure, report the list
76466         of candidates.
76467         Honor the initial value of the envvar.
76469 2009-09-05  Eric Blake  <ebb9@byu.net>
76471         symlinkat: new module
76472         * modules/symlinkat: New file.
76473         * lib/symlinkat.c: Likewise.
76474         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76476         * modules/unistd (Makefile.am): Use them.
76477         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76478         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76479         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76480         * MODULES.html.sh (File system functions): Mention module.
76481         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76482         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76483         * modules/symlinkat-tests: New test.
76484         * tests/test-symlinkat.c: Likewise.
76486         test-openat-safer: add more checks
76487         * tests/test-openat-safer.c (main): Check more code paths.
76489 2009-09-05  Jim Meyering  <meyering@redhat.com>
76491         syntax-check: detect unnecessary inclusion of openat.h
76492         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76494 2009-09-05  Bruno Haible  <bruno@clisp.org>
76496         Support towlower, towupper.
76497         * doc/posix-functions/towlower.texi: Mention module wctype.
76498         * doc/posix-functions/towupper.texi: Likewise.
76499         * lib/wctype.in.h (towlower, towupper): New functions.
76500         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76501         (ASSERT): New macro.
76502         (e): New variable.
76503         (main): Test also towlower, towupper. Test WEOF argument.
76504         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76506 2009-09-05  Bruno Haible  <bruno@clisp.org>
76508         Fix conversion behaviour when the input is invalid.
76509         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76510         mark occurring in first pass of indirect conversion.
76511         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76512         input.
76513         Found by clang's static analyzer.
76515 2009-09-05  Bruno Haible  <bruno@clisp.org>
76517         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76518         where direct conversion is possible.
76520 2009-09-04  Eric Blake  <ebb9@byu.net>
76522         openat: fail with ENOENT on empty name
76523         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76524         buffer.
76526         link-follow: fix logic bug in prior patch
76527         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76528         reversed sense of yes and no in prior patch.  Avoid confusing
76529         compilation failure with desired semantics.
76531         link-follow: accommodate mingw and cross-compilation
76532         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76533         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76534         cross-compilation results to -1, to make linkat easier to
76535         implement when cross-compiling.  Trivially support mingw.
76536         * modules/link-follow (configure.ac): Call new name.
76537         * NEWS: Mention this.
76539 2009-09-03  Eric Blake  <ebb9@byu.net>
76541         faccessat: compile replacement
76542         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76543         needed.
76545         fts: fix compilation error
76546         * lib/fts.c (includes): Re-add "openat.h", for
76547         openat_needs_fchdir.
76549         faccessat: new module
76550         * modules/faccessat: New file.
76551         * lib/faccessat.c: Likewise.
76552         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76554         * modules/unistd (Makefile.am): Use it.
76555         * lib/unistd.in.h (faccessat): Declare it.
76556         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76557         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76558         * MODULES.html.sh (File system functions): Mention it.
76559         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76560         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76562         euidaccess: prefer POSIX over non-standard implementation
76563         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76564         * lib/euidaccess.c (euidaccess): Use it if available.
76566         openat: make template easier to use
76567         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76568         AT_FUNC_F2 to be undefined.
76569         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76570         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76571         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76572         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76573         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76574         Likewise.
76575         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76576         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76577         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76578         Likewise.
76580         openat: declare in POSIX headers
76581         * NEWS: Mention this.
76582         * modules/openat (configure.ac): Declare witnesses.
76583         (Depends-on): Add fcntl-h, sys_stat, unistd.
76584         (Include): Mention correct headers.
76585         * modules/fcntl-h (Depends-on): Add link-warning.
76586         (Files): Add openat.m4.
76587         (Makefile.am): Substitute witnesses.
76588         * modules/sys_stat (Files, Makefile.am): Likewise.
76589         * modules/unistd (Files, Makefile.am): Likewise.
76590         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76591         (gl_OPENAT_DEFAULTS): New macro.
76592         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76594         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76595         (SYS_STAT_H): Remove unused variable.
76596         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76597         * lib/fcntl--.h (includes): Remove unneeded header.
76598         * lib/openat-safer.c (includes): Likewise.
76599         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76600         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76601         appropriate headers.
76602         (__OPENAT_PREFIX): Delete.
76603         * lib/fcntl.in.h (openat): Provide declaration.
76604         (AT_FDCWD): Fix Solaris bug.
76605         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76606         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76607         * lib/fchmodat.c (includes):  Adjust to find declaration.
76608         * lib/fchownat.c (includes): Likewise.
76609         * lib/mkdirat.c (includes): Likewise.
76610         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76611         still visible.
76613 2009-09-02  Eric Blake  <ebb9@byu.net>
76615         errno: use consistently
76616         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76617         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76618         * lib/canonicalize.c (ELOOP): Likewise.
76619         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76620         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76621         * lib/lchown.c (EOPNOTSUPP): Likewise.
76622         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76623         * lib/savewd.c (ESTALE): Likewise.
76624         * lib/settime.c (ENOSYS): Likewise.
76625         * lib/utimens.c (ENOSYS): Likewise.
76626         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76627         * lib/chdir-safer.c (ELOOP): Likewise.
76628         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76629         * modules/c-stack (Depends-on): Add errno.
76630         * modules/canonicalize (Depends-on): Likewise.
76631         * modules/chdir-safer (Depends-on): Likewise.
76632         * modules/fdopendir (Depends-on): Likewise.
76633         * modules/inet_ntop (Depends-on): Likewise.
76634         * modules/inet_pton (Depends-on): Likewise.
76635         * modules/lchown (Depends-on): Likewise.
76636         * modules/openat (Depends-on): Likewise.
76637         * modules/savewd (Depends-on): Likewise.
76638         * modules/settime (Depends-on): Likewise.
76639         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76641         fts: avoid leaking fds
76642         * modules/fts (Depends-on): Add cloexec.
76643         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76644         flag.
76646         fts: make directory fds more robust
76647         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76648         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76650         backupfile, chdir-long, fts, savedir: make safer
76651         * lib/backupfile.c (includes): Use "dirent--.h", since
76652         numbered_backup can write to stderr during readdir.
76653         * lib/savedir.c (includes): Likewise.
76654         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76655         emulation can write to stderr on failure.
76656         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76657         * lib/getcwd.c: Document why opendir_safer is unused.
76658         * lib/glob.c: Likewise.
76659         * lib/scandir.c: Likewise.
76660         * lib/openat-proc.c: Likewise, for open_safer.
76661         * modules/backupfile (Depends-on): Add dirent-safer.
76662         * modules/savedir (Depends-on): Likewise.
76663         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76664         * modules/chdir-long (Depends-on): Add openat-safer.
76666         openat-safer: new module
76667         * modules/openat-safer: New file.
76668         * lib/openat-safer.c: Likewise.
76669         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76670         * lib/fcntl-safer.h (openat_safer): Declare.
76671         * lib/fcntl--.h (openat): Override.
76672         * MODULES.html.sh (File descriptor based I/O): Mention it.
76673         * lib/openat.h: Add double-inclusion guards.
76674         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76675         "fcntl--.h", so we can implement openat.
76676         * modules/openat-safer-tests: New test.
76677         * tests/test-openat-safer.c: New file.
76679         dirent-safer: new module
76680         * modules/dirent-safer: New file.
76681         * lib/dirent--.h: Likewise.
76682         * lib/dirent-safer.h: Likewise.
76683         * lib/opendir-safer.c: Likewise.
76684         * m4/dirent-safer.m4: Likewise.
76685         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76686         * modules/dirent-safer-tests: New test.
76687         * tests/test-dirent-safer.c: New file.
76688         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76690         fdopendir: optimize on mingw
76691         * lib/unistd.in.h (_gl_directory_name): New prototype.
76692         * lib/fchdir.c (_gl_directory_name): Implement it.
76693         (fchdir): Use it to simplify implementation.
76694         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76695         fchdir, when available, to avoid calling [f]chdir().
76697         fdopendir: split into its own module
76698         * lib/openat.c (fdopendir): Move...
76699         * lib/fdopendir.c: ...into new file.
76700         * modules/fdopendir: New module.
76701         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76702         * modules/openat (Depends-on): Add fdopendir.
76703         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76704         fdopendir here.
76705         * modules/savedir (Depends-on): Only need fdopendir, not full
76706         openat.
76707         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76708         * lib/openat.h (fdopendir): Drop prototype.
76709         * lib/dirent.in.h (fdopendir): Provide prototype.
76710         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76711         * modules/dirent (Makefile.am): Substitute them.
76712         * MODULES.html.sh (File system functions): Mention it.
76713         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76714         * modules/fdopendir-tests: New file.
76715         * tests/test-fdopendir.c: Likewise.
76717         fchdir: use more consistent macro convention
76718         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76719         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
76720         REPLACE_FCHDIR, rather than relying on config.h macros.
76721         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
76722         inside a single make-time REPLACE_FCHDIR block, rather than using
76723         the config.h FCHDIR_REPLACEMENT.
76724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
76725         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
76726         Manage fstat replacement.
76727         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
76728         REPLACE_FCHDIR.
76729         * modules/sys_stat (Files): Add m4/unistd_h.m4.
76730         (Makefile.am): Substitute REPLACE_FCHDIR.
76731         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
76732         FCHDIR_REPLACEMENT.
76733         * lib/dup-safer.c (dup_safer): Likewise.
76734         * lib/dup2.c (rpl_dup2): Likewise.
76735         * lib/dup3.c (rpl_dup3): Likewise.
76736         * lib/open.c (rpl_open): Likewise.
76738         fchdir: simplify error handling, and support dup3
76739         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
76740         stdbool, malloc-posix, realloc-posix.
76741         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
76742         (ensure_dirs_slot): Return false on allocation failure.
76743         (rpl_dup2): Delete.
76744         (_gl_register_dup): New function.
76745         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
76746         (_gl_register_fd): Close fd on allocation failure.
76747         * lib/fcntl.in.h (_gl_register_fd): Update signature.
76748         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
76749         prototype.
76750         (rpl_dup2_fchdir): Delete prototype.
76751         * lib/open.c (open): Update caller.
76752         * lib/dup2.c (dup2): Track fchdir metadata.
76753         * lib/dup3.c (dup3): Likewise.
76754         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
76755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
76757 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76759         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
76760         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
76761         don't pass arguments to AC_OUTPUT.
76763 2009-09-02  Bruno Haible  <bruno@clisp.org>
76765         * modules/mkdtemp (License): Relicense under LGPLv2+.
76766         Reported by Paolo Bonzini.
76768 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76770         Replace uses of obsolete autoconf macros in Jim's modules.
76771         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
76772         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
76773         can evoke a warning from autoconf when run with -Wobsolete
76774         enabled.  They were declared obsolete for good reasons (see
76775         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
76776         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
76777         should not continue using the deprecated macros.
76778         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
76779         obsolete Autoconf macros with modern counterparts.
76780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76781         * m4/dos.m4 (gl_AC_DOS): Likewise.
76782         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
76783         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
76784         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
76785         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
76786         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
76787         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
76788         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
76789         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
76790         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76791         Likewise.
76792         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
76793         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76794         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
76795         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
76796         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
76797         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76799 2009-09-01  Eric Blake  <ebb9@byu.net>
76801         fchdir: fix off-by-one bug in previous patch
76802         * lib/fchdir.c (rpl_fstat): Use correct bounds.
76803         (_gl_unregister_fd): Delete useless if.
76805 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
76807         maint.mk: sort the list of syntax-check rules
76808         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
76809         easier to get a sense of progress when the rules are run sequentially
76810         and take a long time.
76812 2009-09-01  Simon Josefsson  <simon@josefsson.org>
76814         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
76815         * modules/netinet_in: Likewise.
76816         * modules/sys_file: Likewise.
76817         * modules/sys_ioctl: Likewise.
76818         * modules/sys_select: Likewise.
76819         * modules/sys_socket: Likewise.
76820         * modules/sys_stat: Likewise.
76821         * modules/sys_time: Likewise.
76822         * modules/sys_times: Likewise.
76823         * modules/sys_utsname: Likewise.
76824         * modules/sys_wait: Likewise.
76826 2009-09-01  Jim Meyering  <meyering@redhat.com>
76828         fts: help ensure that return values are not ignored
76829         * lib/fts_.h (__GNUC_PREREQ): Define.
76830         (__attribute_warn_unused_result__): Define.
76831         (fts_children, fts_close, fts_open, fts_read): Declare with
76832         __attribute_warn_unused_result__.
76834         fts: fts_close now fails also when closing a dir file descriptor fails
76835         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
76836         and propagate to caller, along with errno.
76838         announce-gen: correct formatting in --help output
76839         * build-aux/announce-gen (usage): Move the one-line description in
76840         --help output "up", to where it belongs, just after Usage:.
76842 2009-08-31  Eric Blake  <ebb9@byu.net>
76844         fchdir: port to mingw
76845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
76846         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
76847         opened, then use a substitute.
76848         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
76849         replacement.
76850         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
76851         (_gl_register_fd): No need to check stat if open already filters
76852         all directories.
76853         (fchdir): Fix error condition to match POSIX.
76854         * modules/fchdir (Depends-on): Add sys_stat.
76855         * doc/posix-functions/open.texi (open): Document the limitation.
76856         * modules/fchdir-tests: New file.
76857         * tests/test-fchdir.c: Likewise.
76859         canonicalize: allow cross-testing from cygwin to mingw
76860         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
76861         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
76862         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
76863         Likewise.
76864         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
76865         target does not support symlinks.
76866         * tests/test-canonicalize-lgpl.sh: Likewise.
76868         chown: avoid compilation warning on mingw
76869         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
76870         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
76871         mingw.
76872         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76873         * modules/chown (Depends-on): Add errno.
76875 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
76877         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
76878         command.
76880 2009-08-31  Jim Meyering  <meyering@redhat.com>
76882         canonicalize: remove useless initialization
76883         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
76884         initialization of local, "end".
76886 2009-08-30  Bruno Haible  <bruno@clisp.org>
76888         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
76889         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
76890         ENOSYS.
76892 2009-08-30  Bruno Haible  <bruno@clisp.org>
76894         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
76895         /usr/xpg4/bin/tr when it exists.
76896         * tests/test-pipe-filter-gi1.sh: Likewise.
76898 2009-08-30  Bruno Haible  <bruno@clisp.org>
76900         Work around deficient /usr/bin/id program on Solaris.
76901         * tests/test-file-has-acl.sh (ID): New variable.
76902         * tests/test-set-mode-acl.sh (ID): Likewise.
76903         * tests/test-copy-acl.sh (ID): Likewise.
76904         * tests/test-copy-file.sh (ID): Likewise.
76906 2009-08-30  Bruno Haible  <bruno@clisp.org>
76908         New module 'xstriconveh'.
76909         * lib/xstriconveh.h: New file.
76910         * lib/xstriconveh.c: New file.
76911         * modules/xstriconveh: New file.
76913 2009-08-30  Bruno Haible  <bruno@clisp.org>
76915         Make it easier to use mem_cd_iconveh.
76916         * lib/striconveh.h (iconveh_t): New type.
76917         (iconveh_open, iconveh_close): New declarations.
76918         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
76919         with a single 'const iconveh_t *' argument.
76920         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
76921         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
76922         with a single 'const iconveh_t *' argument.
76923         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
76924         * tests/test-striconveh.c (main): Update.
76925         * NEWS: Mention the change.
76927 2009-08-30  Bruno Haible  <bruno@clisp.org>
76929         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
76930         problem.
76932 2009-08-30  Bruno Haible  <bruno@clisp.org>
76934         Work around iconv_open problem on Solaris.
76935         * lib/iconv_open-solaris.gperf: New file.
76936         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
76937         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
76938         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
76939         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
76940         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
76941         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
76943 2009-08-29  Jim Meyering  <meyering@redhat.com>
76945         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
76946         * top/maint.mk (cvs-check): Remove target; it was just an alias
76947         to the better-named vc-diff-check.
76948         (maintainer-distcheck): Remove rule.  It was used only from
76949         the (alpha/beta/major) target, and all of its commands but one
76950         were coreutils-specific.
76951         (vc-dist): Remove rule.
76952         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
76953         Run vc-diff-check, not vc-dist.
76954         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
76956 2009-08-27  Bruno Haible  <bruno@clisp.org>
76958         * tests/test-bitrotate.c (main): Remove test that uses a shift count
76959         of 0.
76961 2009-08-27  Bruno Haible  <bruno@clisp.org>
76963         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
76964         compilers.
76965         * doc/func.texi: Document the SunPRO C bug.
76967 2009-08-27  Bruno Haible  <bruno@clisp.org>
76969         Fix link error on Solaris.
76970         * tests/test-parse-duration.c (xstrdup): Remove function.
76972 2009-08-26  Pádraig Brady  <P@draigbrady.com>
76974         ignore-value: handle pointer types, too
76975         * lib/ignore-value.h (__attribute__): Remove definition.
76976         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
76977         of a more concise and more-often effective "(void) i" statement.
76978         (ignore_ptr): New function to suppress warnings from functions that
76979         return pointers, and to make it explicit that one function doesn't
76980         handle all cases.
76982 2009-08-25  Bruno Haible  <bruno@clisp.org>
76984         dup2: work around a Linux bug.
76985         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
76986         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
76987         * doc/posix-functions/dup2.texi: Mention the Linux bug.
76988         Reported by Simon Josefsson.
76990 2009-08-25  Jim Meyering  <meyering@redhat.com>
76992         libguestfs uses gnulib
76993         * users.txt: Add libguestfs.
76995 2009-08-24  Eric Blake  <ebb9@byu.net>
76997         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
76998         * lib/pipe2.c (includes): Add binary-io.h.
76999         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77001 2009-08-24  Bruno Haible  <bruno@clisp.org>
77003         Tolerate declared but missing accept4 syscall.
77004         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77005         available.
77006         * lib/sys_socket.in.h (accept4): If the function is already present,
77007         override it.
77008         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77009         * modules/accept4 (Makefile.am): Compile accept4.c always.
77010         Reported by Paolo Bonzini and Eric Blake.
77012 2009-08-23  Bruno Haible  <bruno@clisp.org>
77014         New module 'accept4'.
77015         * lib/sys_socket.in.h (accept4): New declaration.
77016         * lib/accept4.c: New file.
77017         * m4/accept4.m4: New file.
77018         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77019         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77020         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77021         HAVE_ACCEPT4.
77022         * modules/accept4: New file.
77023         * doc/glibc-functions/accept4.texi: Mention the new module.
77025 2009-08-24  Jim Meyering  <meyering@redhat.com>
77027         progname: also set global program_invocation_name, when possible
77028         Before this change, a libtool-enabled program that calls glibc's
77029         error function would report the program name as
77030         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77031         * modules/progname (configure.ac): Check for a declaration of
77032         program_invocation_name.
77033         * lib/progname.c:  Include <errno.h>.
77034         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77035         Set program_invocation_name.
77037 2009-08-23  Bruno Haible  <bruno@clisp.org>
77039         * lib/dup3.c: Include <string.h>.
77041 2009-08-23  Bruno Haible  <bruno@clisp.org>
77043         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77044         * lib/pipe2.c (pipe2): Likewise.
77045         Suggested by Eric Blake.
77047 2009-08-23  Bruno Haible  <bruno@clisp.org>
77049         Tolerate declared but missing dup3 syscall.
77050         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77051         * lib/unistd.in.h (dup3): If the function is already present,
77052         override it.
77053         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77054         * modules/dup3 (Makefile.am): Compile dup3.c always.
77055         Reported by Paolo Bonzini.
77057 2009-08-23  Bruno Haible  <bruno@clisp.org>
77059         Tolerate declared but missing pipe2 syscall.
77060         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77061         available.
77062         * lib/unistd.in.h (pipe2): If the function is already present,
77063         override it.
77064         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77065         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77066         Reported by Paolo Bonzini.
77068 2009-08-23  Bruno Haible  <bruno@clisp.org>
77070         * lib/pipe2.c (pipe2): Move #ifs inside function.
77072 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77074         quotearg: document limitations of quote_these_too
77075         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77076         those limitations are created.
77077         * lib/quotearg.h (set_char_quoting): Document that digits and
77078         letters that are special after backslash are not permitted.
77079         (quotearg_char): Cross-reference set_char_quoting documentation.
77081 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77083         quotearg: implement custom_quoting_style
77084         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77085         right_quote fields.
77086         (set_custom_quoting): New public function.
77087         (quotearg_buffer_restyled): Add left_quote and right_quote
77088         arguments, handle them very much like locale quoting, and update
77089         all uses.
77090         (quotearg_n_custom): New public function.
77091         (quotearg_n_custom_mem): New public function.
77092         (quotearg_custom): New public function.
77093         (quotearg_custom_mem): New public function.
77094         * lib/quotearg.h: Prototype and document new public functions.
77095         (enum quoting_style): For escape_quoting_style and
77096         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77097         ignored even though they're otherwise like c_quoting_style.
77098         Add custom_quoting_style member and document with comparison to
77099         clocale_quoting_style.
77100         * tests/test-quotearg.c (custom_quotes): New array.
77101         (custom_results): New array.
77102         (main): Extend to test custom quoting.
77104 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77106         quotearg: fix right quote escaping when it's in quote_these_too
77107         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77108         quote, be sure to prepend only one backslash.
77109         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77110         (main): Test it.
77112 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77114         quotearg-tests: test escaping of embedded locale quotes
77115         * tests/test-quotearg.c (struct result_strings): Add member for
77116         new input.
77117         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77118         (inputs): Add new input.
77119         (results_g): Add expected results.
77120         (flag_results): Likewise.
77121         (locale_results): Likewise.
77122         (compare_strings): Check those.
77124 2009-08-23  Bruno Haible  <bruno@clisp.org>
77126         Tests for module 'dup3'.
77127         * modules/dup3-tests: New file.
77128         * tests/test-dup3.c: New file.
77130         New module 'dup3'.
77131         * lib/unistd.in.h (dup3): New declaration.
77132         * lib/dup3.c: New file.
77133         * m4/dup3.m4: New file.
77134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77135         HAVE_DUP3.
77136         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77137         * modules/dup3: New file.
77138         * doc/glibc-functions/dup3.texi: Mention the new module.
77140 2009-08-23  Bruno Haible  <bruno@clisp.org>
77142         Tweak the dup2 test.
77143         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77144         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77145         the test file is still empty. Fix argument order of lseek.
77147 2009-08-23  Bruno Haible  <bruno@clisp.org>
77149         Avoid test link errors when the modules getopt-gnu, gettext are used.
77150         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77153 2009-08-23  Bruno Haible  <bruno@clisp.org>
77155         Fix getdtablesize() on mingw.
77156         * lib/getdtablesize.c (getdtablesize): Implement differently.
77157         * lib/unistd.in.h (getdtablesize): Improve comment.
77159 2009-08-23  Bruno Haible  <bruno@clisp.org>
77161         New module 'mkostemp'.
77162         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77163         * lib/stdlib.in.h (mksotemp): New declaration.
77164         * lib/mkostemp.c: New file, from glibc with modifications.
77165         * lib/tempname.h (GT_FILE): Remove outdated comment.
77166         (gen_tempname): Add flags argument.
77167         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77168         (__GT_FILE): Map to 1.
77169         (small_open, large_open): Remove macros.
77170         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77171         * lib/mkstemp.c (mkstemp): Update.
77172         * lib/mkdtemp.c (mkdtemp): Likewise.
77173         * m4/mkostemp.m4: New file.
77174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77175         HAVE_MKOSTEMP.
77176         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77177         HAVE_MKOSTEMP.
77178         * modules/mkostemp: New file, based on modules/mkstemp.
77179         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77180         * NEWS: Mention the change.
77182 2009-08-23  Bruno Haible  <bruno@clisp.org>
77184         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77185         Reported by Eric Blake.
77187 2009-08-23  Bruno Haible  <bruno@clisp.org>
77189         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77190         Reported by Eric Blake.
77192 2009-08-23  Bruno Haible  <bruno@clisp.org>
77194         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77195         * modules/pipe2 (Depends-on): Likewise.
77197 2009-08-23  Eric Blake  <ebb9@byu.net>
77199         fcntl-h: add O_TTY_INIT support
77200         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77201         * tests/test-fcntl-h.c (o): Test it.
77202         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77204         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77205         * modules/fcntl: Move <fcntl.h> header replacement...
77206         * modules/fcntl-h: ...to new name, so as not to collide with
77207         like-named function.
77208         * tests/test-fcntl.c: Rename...
77209         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77210         * modules/fcntl-tests: Rename...
77211         * modules/fcntl-h-tests: ...to this.  Update test file name.
77212         * modules/chdir-long (Depends-on): Update clients.
77213         * modules/chdir-safer (Depends-on): Likewise.
77214         * modules/fcntl-safer (Depends-on): Likewise.
77215         * modules/fts (Depends-on): Likewise.
77216         * modules/mkancesdirs (Depends-on): Likewise.
77217         * modules/mkdir-p (Depends-on): Likewise.
77218         * modules/open (Depends-on): Likewise.
77219         * modules/savewd (Depends-on): Likewise.
77220         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77221         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77223 2009-08-22  Bruno Haible  <bruno@clisp.org>
77225         * modules/binary-io (License): Relicense under LGPL.
77226         * modules/pipe2 (License): Likewise.
77228 2009-08-22  Bruno Haible  <bruno@clisp.org>
77230         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77231         return value.
77232         * lib/pipe-filter-gi.c (filter_init): Likewise.
77233         Reported by Eric Blake.
77235 2009-08-22  Bruno Haible  <bruno@clisp.org>
77237         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77238         * modules/pipe (Depends-on): Add pipe2.
77240 2009-08-22  Bruno Haible  <bruno@clisp.org>
77242         Tests for module 'pipe2'.
77243         * modules/pipe2-tests: New file.
77244         * tests/test-pipe2.c: New file.
77246         New module 'pipe2'.
77247         * lib/unistd.in.h (pipe2): New declaration.
77248         * lib/pipe2.c: New file.
77249         * m4/pipe2.m4: New file.
77250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77251         HAVE_PIPE2.
77252         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77253         * modules/pipe2: New file.
77254         * doc/glibc-functions/pipe2.texi: Mention the new module.
77256 2009-08-22  Bruno Haible  <bruno@clisp.org>
77258         Reference some new glibc functions.
77259         * doc/glibc-functions/accept4.texi: New file.
77260         * doc/glibc-functions/dup3.texi: New file.
77261         * doc/glibc-functions/mkostemp.texi: New file.
77262         * doc/glibc-functions/pipe2.texi: New file.
77263         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77264         (Glibc sys/socket.h): Refer to accept4.
77265         (Glibc unistd.h): Refer to dup3, pipe2.
77266         Reported by Eric Blake.
77268 2009-08-22  Jim Meyering  <meyering@redhat.com>
77269             Bruno Haible  <bruno@clisp.org>
77271         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77272         This makes it so packages using automake-1.11's silent-rules option
77273         can print e.g., a single "GEN    configmake.h" line, rather than
77274         the 30+ statements that perform the job.  If you want to see the
77275         actual commands, you can still run "make V=1".
77276         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77277         so that make output is abbreviated when those variables are defined
77278         appropriately.
77279         * modules/argz: Likewise.
77280         * modules/arpa_inet: Likewise.
77281         * modules/byteswap: Likewise.
77282         * modules/configmake: Likewise.
77283         * modules/dirent: Likewise.
77284         * modules/errno: Likewise.
77285         * modules/fcntl: Likewise.
77286         * modules/float: Likewise.
77287         * modules/fnmatch: Likewise.
77288         * modules/getopt-posix: Likewise.
77289         * modules/glob: Likewise.
77290         * modules/iconv_open: Likewise.
77291         * modules/inttypes: Likewise.
77292         * modules/localcharset: Likewise.
77293         * modules/locale: Likewise.
77294         * modules/math: Likewise.
77295         * modules/netdb: Likewise.
77296         * modules/netinet_in: Likewise.
77297         * modules/poll: Likewise.
77298         * modules/posix_spawnp-tests: Likewise.
77299         * modules/sched: Likewise.
77300         * modules/search: Likewise.
77301         * modules/selinux-h: Likewise.
77302         * modules/signal: Likewise.
77303         * modules/spawn: Likewise.
77304         * modules/stdarg: Likewise.
77305         * modules/stdbool: Likewise.
77306         * modules/stddef: Likewise.
77307         * modules/stdint: Likewise.
77308         * modules/stdio: Likewise.
77309         * modules/stdlib: Likewise.
77310         * modules/string: Likewise.
77311         * modules/strings: Likewise.
77312         * modules/sys_file: Likewise.
77313         * modules/sys_ioctl: Likewise.
77314         * modules/sys_select: Likewise.
77315         * modules/sys_socket: Likewise.
77316         * modules/sys_stat: Likewise.
77317         * modules/sys_time: Likewise.
77318         * modules/sys_times: Likewise.
77319         * modules/sys_utsname: Likewise.
77320         * modules/sys_wait: Likewise.
77321         * modules/sysexits: Likewise.
77322         * modules/time: Likewise.
77323         * modules/unistd: Likewise.
77324         * modules/wchar: Likewise.
77325         * modules/wctype: Likewise.
77327 2009-08-22  Jim Meyering  <meyering@redhat.com>
77329         announce-gen: detect write failure
77330         * build-aux/announce-gen: Add Coda at end.
77331         Remove equivalent-but-more-verbose block at top.
77333 2009-08-19  Akim Demaille  <demaille@gostai.com>
77335         bootstrap: --help to stdout.
77336         * bootstrap (usage): Don't send --help to stderr.
77337         Use a here doc instead of a long string.
77339 2009-08-21  Eric Blake  <ebb9@byu.net>
77341         test-popen-safer: split from test-popen
77342         * tests/test-popen.c (main): Move...
77343         * tests/test-popen.h: ...into new file.
77344         * tests/test-popen-safer2.c: New file.
77345         * modules/popen-tests (Files): Add test-popen.h.
77346         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77347         Suggested by Bruno Haible.
77349         test-fcntl-safer: split from test-open
77350         * tests/test-open.c (main): Move...
77351         * tests/test-open.h: ...into new file.
77352         * tests/test-fcntl-safer.c: New file.
77353         * modules/open-tests (Files): Add test-open.h.
77354         * modules/fcntl-safer-tests: New file.
77355         Suggested by Bruno Haible.
77357         test-fopen-safer: split from test-fopen
77358         * tests/test-fopen.c (main): Move...
77359         * tests/test-fopen.h: ...into new file.
77360         * tests/test-fopen-safer.c: New file.
77361         * modules/fopen-tests (Files): Add test-fopen.h.
77362         * modules/fopen-safer-tests: New file.
77363         Suggested by Bruno Haible.
77365 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77367         popen-safer: test O_CLOEXEC at run-time.
77368         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77370 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77372         fcntl: move more flags to the header
77373         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77374         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77375         * lib/fcntl.in.h: Do both things here.
77377 2009-08-21  Jim Meyering  <meyering@redhat.com>
77379         consistently remove $@-t before redirecting to it
77380         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77381         * modules/alloca-opt: Likewise.
77382         * modules/byteswap: Likewise.
77383         * modules/fnmatch: Likewise.
77384         * modules/getopt-posix: Likewise.
77385         * modules/glob: Likewise.
77386         * modules/poll: Likewise.
77387         * modules/posix_spawnp-tests: Likewise.
77388         * modules/sys_socket: Likewise.
77389         * modules/sysexits: Likewise.
77391 2009-08-21  Eric Blake  <ebb9@byu.net>
77393         popen: simplify access to original popen
77394         * lib/popen.c (rpl_popen): No need to worry about popen being a
77395         macro.
77396         Reported by Bruno Haible.
77398 2009-08-20  Eric Blake  <ebb9@byu.net>
77400         build: avoid some compiler warnings
77401         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77402         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77403         type.
77404         (new_exclude_segment, excluded_file_pattern_p)
77405         (excluded_file_name_p): Reduce scope.
77406         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77407         old-style declaration.
77409 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77411         * tests/test-exclude1.sh: Handle Windows EOL.
77412         * tests/test-exclude2.sh: Likewise.
77413         * tests/test-exclude3.sh: Likewise.
77414         * tests/test-exclude4.sh: Likewise.
77415         * tests/test-exclude5.sh: Likewise.
77416         * tests/test-exclude6.sh: Likewise.
77417         * tests/test-exclude7.sh: Likewise.
77419 2009-08-19  Akim Demaille  <demaille@gostai.com>
77421         bootstrap: find sha1sum when named gsha1sum.
77422         * bootstrap (find_tool): New.
77423         ($SHA1SUM): New.
77424         Use it.
77426 2009-08-20  Jim Meyering  <meyering@redhat.com>
77428         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77429         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77430         expression that converts "." in a file name to "\." in the resulting
77431         regexp.  Start with a dummy statement, so that prior shell variable
77432         definitions are expanded portably.  Reported by Simon Josefsson.
77434 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77436         Fix polling for writeability of a screen buffer.
77437         * lib/poll.c: Distinguish input and screen buffers for the
77438         Win32 implementation.
77439         * lib/select.c: Likewise.
77441 2009-08-19  Eric Blake  <ebb9@byu.net>
77443         popen-safer: prevent popen from clobbering std descriptors
77444         * modules/popen-safer: New file.
77445         * lib/popen-safer.c: Likewise.
77446         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77447         * lib/stdio--.h (popen): Provide override.
77448         * lib/stdio-safer.h (popen_safer): Provide declaration.
77449         * tests/test-popen.c (includes): Partially test this.
77450         * modules/popen-safer-tests: New file, for more tests.
77451         * tests/test-popen-safer.c: Likewise.
77452         * MODULES.html.sh (file stream based Input/Output): Mention it.
77454         tests: test some of the *-safer modules
77455         * modules/fopen-safer (Depends-on): Add fopen.
77456         * modules/fcntl-safer (Depends-on): Add fcntl.
77457         * modules/stdlib-safer (Depends-on): Add stdlib.
77458         (configure.ac): Set indicator.
77459         * modules/unistd-safer (configure.ac): Likewise.
77460         * modules/tmpfile-safer (configure.ac): Likewise.
77461         (Depends-on): Add tmpfile.
77462         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77463         active.
77464         * tests/test-fopen.c (includes): Test safer versions when they are
77465         in use.
77466         * tests/test-open.c (includes): Likewise.
77468         popen: fix cygwin 1.5 bug when stdin closed
77469         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77470         * modules/popen: New file.
77471         * modules/popen-tests: Likewise.
77472         * tests/test-popen.c: Likewise.
77473         * m4/popen.m4: Likewise.
77474         * lib/popen.c: Likewise.
77475         * lib/stdio.in.h (popen): New declaration.
77476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77477         * modules/stdio (Makefile.am): Likewise.
77478         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77480 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77482         maint.mk: give full control over update-copyright exclusions
77483         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77484         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77485         (update-copyright): Don't force inclusion of top-level
77486         ChangeLog.  Don't force exclusion of all COPYING files, but make
77487         them the default exclusion instead.
77489 2009-08-16  Bruno Haible  <bruno@clisp.org>
77491         Fix test failures on Solaris 10.
77492         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77493         tests when Solaris iconv() is used.
77494         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77495         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77496         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77497         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77498         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77500 2009-08-16  Bruno Haible  <bruno@clisp.org>
77502         Fix test failures on Solaris 10.
77503         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77504         'tr' program and pass it as first argument.
77505         * tests/test-pipe-filter-gi1.sh: Likewise.
77506         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77507         program as first argument.
77508         * tests/test-pipe-filter-gi1.c (main): Likewise.
77510 2009-08-16  Eric Blake  <ebb9@byu.net>
77512         fpurge: fix previous commits
77513         * modules/fpurge (Makefile.am): Make replacement conditional,
77514         partially reverting 2007-04-29 change; missed in previous
77515         attempt.
77516         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77517         is missing.
77519 2009-08-16  Bruno Haible  <bruno@clisp.org>
77521         Clarify fpurge's effect on the file position.
77522         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77523         * tests/test-fpurge.c (main): Make a second pass for checking the file
77524         position.
77526 2009-08-16  Bruno Haible  <bruno@clisp.org>
77528         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77529         declaration of fpurge is missing.
77530         * tests/test-fpurge.c (main): Check that the file has not more contents
77531         than expected. Close the file before removing it.
77533 2009-08-15  Eric Blake  <ebb9@byu.net>
77535         fpurge: don't wrap working cygwin implementation
77536         * lib/fpurge.c (fpurge): Fix comment typo.
77537         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77538         1.7 to avoid replacement.
77539         * tests/test-fpurge.c (main): Enhance test.
77541 2009-08-15  Eric Blake  <ebb9@byu.net>
77542         and Jim Meyering  <meyering@redhat.com>
77544         test-update-copyright: skip if perl is insufficient
77545         * tests/test-update-copyright.sh: Failure to run maintainer tool
77546         should not cause testsuite failure on cygwin 1.5.
77548 2009-08-14  Eric Blake  <ebb9@byu.net>
77550         doc: mention more functions added in cygwin 1.7.0
77551         * doc/posix-headers/limits.texi (limits.h): Update for recent
77552         cygwin additions.
77553         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77554         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77555         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77556         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77557         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77559 2009-08-14  Eric Blake  <ebb9@byu.net>
77561         maint.mk: simplify update-copyright rule
77562         * top/maint.mk (update-copyright-local): Delete, and document how
77563         to do it in cfg.mk instead.
77564         (update-copyright-exclude-regexp): Delete, and document how to do
77565         it in .x-update-copyright instead.
77566         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77567         exclude ChangeLog.
77569 2009-08-14  Bruno Haible  <bruno@clisp.org>
77571         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77573 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77575         maint.mk: support update-copyright-env
77576         * top/maint.mk (update-copyright-env): Define place-holder.
77577         (update-copyright): Expand $(update-copyright-env) before
77578         invoking update-copyright.
77580 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77582         update-copyright: implement forced reformatting
77583         * build-aux/update-copyright: Implement and document
77584         UPDATE_COPYRIGHT_FORCE.
77585         * tests/test-update-copyright.sh: Test it.
77587 2009-08-14  Eric Blake  <ebb9@byu.net>
77588         and Bruno Haible  <bruno@clisp.org>
77590         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77591         * tests/test-locale.c: Revert previous patch related to NULL.
77592         * tests/test-stdio.c: Likewise.
77593         * tests/test-stdlib.c: Likewise.
77594         * tests/test-string.c: Likewise.
77595         * tests/test-unistd.c: Likewise.
77596         * modules/time-tests (Depends-on): Add verify.
77597         * modules/wchar-tests (Depends-on): Likewise.
77598         * tests/test-time.c: Test for NULL compliance.
77599         * tests/test-wchar.c: Likewise.
77600         * modules/locale (Depends-on): Add stddef.
77601         * modules/stdio (Depends-on): Likewise.
77602         * modules/stdlib (Depends-on): Likewise.
77603         * modules/string (Depends-on): Likewise.
77604         * modules/time (Depends-on): Likewise.
77605         * modules/unistd (Depends-on): Likewise.
77606         * modules/wchar (Depends-on): Likewise.
77607         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77608         * lib/stdlib.in.h (includes): Likewise.
77609         * lib/string.in.h (includes): Likewise.
77610         * lib/time.in.h (includes): Likewise.
77611         * lib/unistd.in.h (includes): Likewise.
77612         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77613         replaced.
77614         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77615         * m4/stddef_h.m4: New file.
77616         * modules/stddef: Likewise.
77617         * lib/stddef.in.h: Likewise.
77618         * modules/stddef-tests: Likewise.
77619         * tests/test-stddef.c: Likewise.
77620         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77621         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77622         * doc/posix-headers/locale.texi (locale.h): Likewise.
77623         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77624         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77625         * doc/posix-headers/string.texi (string.h): Likewise.
77626         * doc/posix-headers/time.texi (time.h): Likewise.
77627         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77628         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77630 2009-08-14  Eric Blake  <ebb9@byu.net>
77632         doc: improve git diff of texinfo files
77633         * .gitattributes: Add rule for *.texi files, with hint on how to
77634         use it.
77635         Copied from m4, and based on a report by Bruno Haible.
77637 2009-08-14  Bruno Haible  <bruno@clisp.org>
77639         Disable multithread support by default on Cygwin 1.5.x for real.
77640         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77642 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77644         update-copyright: much ado about intervals
77645         * build-aux/update-copyright: Implement and document
77646         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77647         of copyright year intervals.
77648         Also, document UPDATE_COPYRIGHT_YEAR.
77649         * tests/test-update-copyright.sh: Test it.
77651         update-copyright: convert 2-digit to 4-digit years
77652         * build-aux/update-copyright: Implement and document.
77653         * tests/test-update-copyright.sh: Update.
77655 2009-08-14  Jim Meyering  <meyering@redhat.com>
77657         test-exclude: avoid coreutils "make check" failure
77658         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77659         just as in test-argmatch.c.
77661 2009-08-13  Eric Blake  <ebb9@byu.net>
77663         test-dup2: fix bad assumption
77664         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77665         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77667         test-version-etc: fix CRLF portability issue
77668         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77669         recognize \r.
77670         * tests/test-argp-version-etc-1.sh: Likewise.
77672         getopt: update client modules
77673         * modules/argp (Depends-on): Use getopt-gnu.
77674         * modules/git-merge-changelog (Depends-on): Likewise.
77675         * modules/long-options (Depends-on): Likewise.
77676         * modules/xstrtol (Depends-on): Likewise.
77678 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77680         * tests/test-version-etc.sh: Don't fail on different
77681         project/version.  Don't fail on CRLF differences.  Rewrite to use
77682         multiple -e instead of multiple sed forks, suggested by Eric Blake
77683         <ebb9@byu.net>.
77684         * tests/test-argp-version-etc-1.sh: Likewise.
77686 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77688         * tests/test-version-etc.sh: Don't fail on different
77689         project/version.
77691 2009-08-12  Bruno Haible  <bruno@clisp.org>
77693         Tests for modules 'getopt-posix', 'getopt-gnu'.
77694         * modules/getopt-posix-tests: New file.
77695         * tests/test-getopt.c: New file.
77696         * tests/test-getopt.h: New file.
77697         * tests/test-getopt_long.h: New file.
77699         New modules 'getopt-posix', 'getopt-gnu'.
77700         * modules/getopt-gnu: New file, renamed from modules/getopt.
77701         * modules/getopt-posix: New file.
77702         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77703         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77704         (gl_GETOPT): Remove macro.
77705         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77706         Disable the test against BSD systems that declare optreset. Test
77707         against mingw bug. Test against lack of support of optional arguments
77708         on many platforms.
77709         * doc/glibc-headers/getopt.texi: Update module name and list of
77710         relevant platforms.
77711         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77712         'getopt-gnu' and more portability problems.
77713         * NEWS: Mention the changes.
77715 2009-08-12  Bruno Haible  <bruno@clisp.org>
77717         Ensure that optarg etc. get declared by <unistd.h>.
77718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77719         AC_USE_SYSTEM_EXTENSIONS.
77720         * modules/getopt (Depends-on): Add 'extensions'.
77722 2009-08-12  Bruno Haible  <bruno@clisp.org>
77724         Avoid test link errors.
77725         * modules/pipe-filter-ii-tests (Makefile.am): Define
77726         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
77727         * modules/pipe-filter-gi-tests (Makefile.am): Define
77728         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
77729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77731 2009-08-12  Bruno Haible  <bruno@clisp.org>
77733         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
77734         gl_GETOPT_SUBSTITUTE before.
77735         (gl_GETOPT): Use it.
77736         * m4/argp.m4 (gl_ARGP): Update.
77737         Reported by Sergey Poznyakoff.
77739         * m4/getopt.m4: Reorder macros.
77740         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
77741         (gl_GETOPT_SUBSTITUTE): Remove macro.
77743 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77745         Minor improvement in gitlog-to-changelog
77747         * build-aux/gitlog-to-changelog: New option `--format' makes
77748         output format string configurable.
77750 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77752         Optimize exclude: use hash tables for non-wildcard patterns.
77754         * lib/exclude.c: Include hash.h and mbuiter.h
77755         (struct exclude_pattern, exclude_segment): New data types.
77756         (struct exclude): Rewrite.
77757         (fnmatch_pattern_has_wildcards): New function.
77758         (new_exclude_segment, free_exclude_segment): New functions.
77759         (excluded_file_pattern_p, excluded_file_name_p): New functions.
77760         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
77761         * lib/exclude.h (is_fnmatch_pattern): New prototype.
77762         * modules/exclude: Depend on hash and mbuiter.
77764         * modules/exclude-tests: New file.
77765         * tests/test-exclude.c: New file.
77766         * tests/test-exclude1.sh: New file.
77767         * tests/test-exclude2.sh: New file.
77768         * tests/test-exclude3.sh: New file.
77769         * tests/test-exclude4.sh: New file.
77770         * tests/test-exclude5.sh: New file.
77771         * tests/test-exclude6.sh: New file.
77772         * tests/test-exclude7.sh: New file.
77774 2009-08-12  Bruno Haible  <bruno@clisp.org>
77776         Ensure that getopt() gets declared by <unistd.h>.
77777         * lib/unistd.in.h: Conditionally include getopt.h.
77778         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
77779         Set GNULIB_UNISTD_H_GETOPT.
77780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77781         GNULIB_UNISTD_H_GETOPT.
77782         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
77784 2009-08-12  Bruno Haible  <bruno@clisp.org>
77786         Clarify logic.
77787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
77788         gl_replace_getopt instead of GETOPT_H.
77790 2009-08-12  Bruno Haible  <bruno@clisp.org>
77792         * m4/getopt.m4: Add comments.
77794 2009-08-12  Bruno Haible  <bruno@clisp.org>
77796         Disable multithread support by default on Cygwin 1.5.x.
77797         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
77798         set gl_use_threads=no if not specified otherwise.
77800 2009-08-11  Bruno Haible  <bruno@clisp.org>
77802         Avoid compilation error on NetBSD 5.0.
77803         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
77804         * tests/test-stdio.c: Likewise.
77805         * tests/test-stdlib.c: Likewise.
77806         * tests/test-string.c: Likewise.
77807         * tests/test-unistd.c: Likewise.
77808         Reported by Greg Troxel <gdt@ir.bbn.com>
77809         at <https://savannah.gnu.org/support/?106973>.
77811 2009-08-11  Bruno Haible  <bruno@clisp.org>
77813         * modules/dup2-tests (Depends-on): Remove close.
77815         Undo 2009-07-19 commit.
77816         * modules/acl-tests (Depends-on): Remove close.
77817         * modules/binary-io-tests (Depends-on): Likewise.
77818         * modules/closein-tests (Depends-on): Likewise.
77819         * modules/flock-tests (Depends-on): Likewise.
77820         * modules/fsync-tests (Depends-on): Likewise.
77821         * modules/lseek-tests (Depends-on): Likewise.
77822         * modules/pipe-tests (Depends-on): Likewise.
77823         * modules/posix_spawn-tests (Depends-on): Likewise.
77824         * modules/posix_spawnp-tests (Depends-on): Likewise.
77825         * modules/stat-time-tests (Depends-on): Likewise.
77826         * modules/yesno-tests (Depends-on): Likewise.
77828 2009-08-10  Bruno Haible  <bruno@clisp.org>
77830         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
77832 2009-08-10  Bruno Haible  <bruno@clisp.org>
77834         Fix a gcc warning.
77835         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
77837 2009-08-10  Bruno Haible  <bruno@clisp.org>
77839         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
77840         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
77841         not only the first time.
77842         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
77843         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
77844         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
77845         is 1, not only the first time.
77847 2009-08-10  Bruno Haible  <bruno@clisp.org>
77849         Make it possible to use module 'gethostname' without module 'close'.
77850         * lib/unistd.in.h (close): Evoke a link error only if
77851         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77853         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77854         * modules/unistd (Makefile.am): Substitute
77855         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77856         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
77857         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77858         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
77859         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77860         * modules/sys_ioctl (Makefile.am): Substitute
77861         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77862         * modules/socket (configure.ac): On native Windows, set
77863         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
77864         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77865         Reported by Sam Steingold <sds@gnu.org>.
77867 2009-08-10  Bruno Haible  <bruno@clisp.org>
77869         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
77870         * modules/ioctl (configure.ac): Likewise.
77872 2009-08-10  Bruno Haible  <bruno@clisp.org>
77874         Avoid collision between gnulib wrapper and libintl wrapper.
77875         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
77876         already defined in intl/printf.c.
77877         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
77878         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
77880 2009-08-09  Bruno Haible  <bruno@clisp.org>
77882         Make <sys/select.h> really self-contained, also on Solaris 10.
77883         * lib/sys_select.in.h: Include <string.h>.
77884         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
77885         Solaris 10 problem.
77886         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
77887         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
77888         Reported by Jim Meyering.
77890 2009-08-09  Bruno Haible  <bruno@clisp.org>
77892         Avoid warnings from 'aclocal' that are due to a use of macro name
77893         AM_XGETTEXT_OPTION that is not defined in automake.
77894         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
77895         automake.
77896         * modules/error (configure.ac): Likewise.
77897         * modules/propername (configure.ac): Likewise.
77898         * modules/vasprintf (configure.ac): Likewise.
77899         * modules/verror (configure.ac): Likewise.
77900         * modules/xprintf (configure.ac): Likewise.
77901         * modules/xvasprintf (configure.ac): Likewise.
77903 2009-08-08  Bruno Haible  <bruno@clisp.org>
77905         Avoid compilation error in C++ mode.
77906         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
77907         Reported by Sam Steingold <sds@gnu.org>.
77909 2009-08-08  Bruno Haible  <bruno@clisp.org>
77911         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
77912         for the various Unix platforms.
77913         * doc/posix-headers/limits.texi: Update platforms list regarding
77914         HOST_NAME_MAX.
77915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77917 2009-08-07  Jim Meyering  <meyering@redhat.com>
77919         selinux-at: fix typo in a comment
77920         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
77921         Spotted by Paolo Bonzini.
77923         selinux-at: remove redundant m4 code, add documentation
77924         * modules/selinux-at (configure.ac): Remove redundant code.
77925         LIB_SELINUX is already set via the dependent module, selinux-h.
77926         (Include): Add quotes around selinux-at.h.
77927         * lib/selinux-at.h: Add documentation.
77928         Reported by Bruno Haible in
77929         http://marc.info/?l=gnulib-bug&m=124958988300749
77931 2009-08-07  Bruno Haible  <bruno@clisp.org>
77933         Avoid link error on MacOS X 10.3 and 10.4.
77934         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
77935         on non-ELF systems.
77936         * lib/argp-pv.c (argp_program_version): Likewise.
77937         Reported by Simon Josefsson.
77939 2009-08-07  Simon Josefsson  <simon@josefsson.org>
77941         * tests/test-version-etc.sh: Use $EXEEXT.
77943 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
77945         update-copyright: update documentation to point to maint.mk
77946         * build-aux/update-copyright: Here.
77948 2009-08-06  Jim Meyering  <meyering@redhat.com>
77950         maint.mk: support update-copyright-local
77951         * top/maint.mk (update-copyright-local): Define place-holder.
77952         (update-copyright): Depend on $(update-copyright-local).
77954 2009-08-06  Jim Meyering  <meyering@redhat.com>
77956         selinux-at: new module
77957         Initially written for coreutils, this module will soon be
77958         used by findutils, too.
77959         * MODULES.html.sh [Misc]: Add selinux-at.
77960         * lib/selinux-at.h: New file, from coreutils.
77961         * lib/selinux-at.c: Likewise.
77962         * modules/selinux-at: Likewise.
77963         (License): Change from LGPL to GPL, since it depends
77964         on the GPL'd openat module.
77966         doc: update README
77967         * README: Remove references to cogito.
77968         Remove cvs-repo-updating instructions from 2007.
77969         Don't imply that CVS is better if you have limited disk space.
77971 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77973         update-copyright: support C-style comments
77974         * build-aux/update-copyright: Implement and document.
77975         * tests/test-update-copyright.sh: Test.
77977 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77979         update-copyright: support omitted "(C)"
77980         * build-aux/update-copyright: Implement and document.  Also,
77981         allow variable whitespace before "(C)".
77982         * tests/test-update-copyright.sh: Test.
77984 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77986         update-copyright: don't trip on non-FSF copyright statements
77987         * build-aux/update-copyright: Fix so that the first correctly
77988         formatted FSF copyright statement is recognized no matter what
77989         appears before it.  Update documentation.
77990         * tests/test-update-copyright.sh: Test that.
77992 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
77994         update-copyright: clean up code a little
77995         * build-aux/update-copyright: Append "_re" to the name of any
77996         variable holding a regular expression.
77997         Replace "old" and "new" with "stmt" in variable names.
77998         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
77999         handled correctly.
78000         Format code more consistently.
78002 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78004         update-copyright-tests: improve portability
78005         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78006         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78008 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78010         update-copyright: support @copyright{} and &copy;
78011         * build-aux/update-copyright: Implement and document.
78012         * tests/test-update-copyright.sh: Test.
78014 2009-08-04  Jim Meyering  <meyering@redhat.com>
78016         update-copyright-tests: correctly test EOL=\r\n handling
78017         * tests/test-update-copyright.sh: Put \r at the end of some lines
78018         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78020         maint.mk: make update-copyright exclusion list more configurable
78021         * top/maint.mk (update-copyright): Default to excluding COPYING,
78022         but allow an override, in case someone does want to update that file.
78024         maint.mk: don't update copyright date in COPYING
78025         * top/maint.mk (update-copyright): Exclude COPYING.
78027         maint.mk: add a copyright-updating rule
78028         * top/maint.mk (update-copyright): New rule.
78029         Derived from coreutils/Makefile.am.
78031         update-copyright: rename some variables
78032         * build-aux/update-copyright: Rename a few variables for clarity.
78033         Tweak syntax.  List Joel E. Denny as coauthor.
78035 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78037         update-copyright: fix bug for 2-digit last year and add tests
78038         * build-aux/update-copyright: Fix bug.
78039         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78040         specified.
78041         * modules/update-copyright-tests: New
78042         * tests/test-update-copyright.sh: New.
78044 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78046         update-copyright: handle leading tabs in line prefix
78047         * build-aux/update-copyright: Count leading tabs as 8 spaces
78048         when computing margin.  This helps with the formatting of
78049         ChangeLogs, for example.
78050         Fix documentation a little.
78052 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78054         update-copyright: support EOL=\r\n
78055         * build-aux/update-copyright: Implement that.
78057 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78059         update-copyright: automatically format copyright statements
78060         * build-aux/update-copyright: Implement that.
78061         Also, be a little more predictable and safer by always failing
78062         when the full copyright format is not perfectly recognized as an
78063         unbroken whole.  Discussed at
78064         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78065         Rewrite documentation.
78067 2009-08-03  Bruno Haible  <bruno@clisp.org>
78069         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78071 2009-08-02  Bruno Haible  <bruno@clisp.org>
78073         Tests for module 'uname'.
78074         * modules/uname-tests: New file.
78075         * tests/test-uname.c: New file.
78077         New module 'uname'.
78078         * lib/uname.c: New file.
78079         * m4/uname.m4: New file.
78080         * modules/uname: New file.
78081         * doc/posix-functions/uname.texi: Mention the new module.
78083 2009-08-02  Bruno Haible  <bruno@clisp.org>
78085         Tests for module 'sys_utsname'.
78086         * modules/sys_utsname-tests: New file.
78087         * tests/test-sys_utsname.c: New file.
78089         New module 'sys_utsname'.
78090         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78091         * m4/sys_utsname_h.m4: New file.
78092         * modules/sys_utsname: New file.
78093         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78095 2009-08-02  Bruno Haible  <bruno@clisp.org>
78097         Implicitly initialize the sockets library.
78098         * lib/gethostname.c: Include sockets.h.
78099         (rpl_gethostname): Invoke gl_sockets_startup.
78100         * lib/socket.c: Include sockets.h.
78101         (rpl_socket): Invoke gl_sockets_startup.
78102         * modules/gethostname (Depends-on): Add sockets.
78103         * modules/socket (Depends-on): Likewise.
78104         * tests/test-poll.c: Don't include sockets.h.
78105         (main): Don't invoke gl_sockets_startup.
78106         * tests/test-select.c: Don't include sockets.h.
78107         (main): Don't invoke gl_sockets_startup.
78109 2009-08-02  Bruno Haible  <bruno@clisp.org>
78111         Allow multiple calls to gl_sockets_startup.
78112         * lib/sockets.c (initialized_sockets_version): New variable.
78113         (gl_sockets_startup): Do nothing if already called for this or a higher
78114         version.
78115         (gl_sockets_cleanup): Reset initialized_sockets_version.
78117 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78119         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78120         different project/version.
78122 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78123             Bruno Haible  <bruno@clisp.org>
78125         Tests for module 'pipe-filter-gi'.
78126         * modules/pipe-filter-gi-tests: New file.
78127         * tests/test-pipe-filter-gi1.sh: New file.
78128         * tests/test-pipe-filter-gi1.c: New file.
78129         * tests/test-pipe-filter-gi2.sh: New file.
78130         * tests/test-pipe-filter-gi2-main.c: New file.
78131         * tests/test-pipe-filter-gi2-child.c: New file.
78133         New module 'pipe-filter-gi'.
78134         * lib/pipe-filter-gi.c: New file.
78135         * modules/pipe-filter-gi: New file.
78137 2009-08-02  Bruno Haible  <bruno@clisp.org>
78138             Paolo Bonzini  <bonzini@gnu.org>
78140         Tests for module 'pipe-filter-ii'.
78141         * modules/pipe-filter-ii-tests: New file.
78142         * tests/test-pipe-filter-ii1.sh: New file.
78143         * tests/test-pipe-filter-ii1.c: New file.
78144         * tests/test-pipe-filter-ii2.sh: New file.
78145         * tests/test-pipe-filter-ii2-main.c: New file.
78146         * tests/test-pipe-filter-ii2-child.c: New file.
78148         New module 'pipe-filter-ii'.
78149         * lib/pipe-filter.h: New file.
78150         * lib/pipe-filter-ii.c: New file.
78151         * lib/pipe-filter-aux.h: New file.
78152         * modules/pipe-filter-ii: New file.
78154 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78156         * lib/gc-libgcrypt.c: Change copyright to FSF.
78157         * lib/gc-gnulib.c: Likewise.
78159 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78161         * lib/gethostname.c: Include limits.h.
78163 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78164             Bruno Haible  <bruno@clisp.org>
78166         Ensure HOST_NAME_MAX as part of the gethostname module.
78167         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78168         define also HOST_NAME_MAX.
78169         * tests/test-gethostname.c: Include <limits.h>.
78170         (main): Check also HOST_NAME_MAX.
78171         * doc/posix-headers/limits.texi: Document the mingw problem.
78173 2009-08-02  Bruno Haible  <bruno@clisp.org>
78175         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78176         Add comments.
78178 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78180         * lib/gethostname.c: Add Windows wrapper.
78181         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78182         * modules/gethostname: Depend on sys_socket & errno, for also
78183         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78184         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78186 2009-07-31  Jim Meyering  <meyering@redhat.com>
78188         getloadavg: fix symbol name in comment
78189         * lib/getloadavg.c: Correct a typo I introduced when adding
78190         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78191         Matt Kraai spotted the problem.
78193 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78195         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78196         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78197         code also if ! defined N_NAME_POINTER.
78198         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78199         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78200         but the n_name member is a 12-byte array.
78202 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78204         update-copyright: generalize comment handling
78205         * build-aux/update-copyright: Handle copyright statements
78206         within more comment styles.
78207         Document usage.
78208         Report any file with an external copyright holder or parse failure.
78210 2009-07-29  Jim Meyering  <meyering@redhat.com>
78212         mktime: correct setting of REPLACE_MKTIME
78213         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78215         update-copyright: new module
78216         * modules/update-copyright: New file.
78217         * build-aux/update-copyright: New file.
78218         * MODULES.html.sh (maint+release support): Add update-copyright.
78220 2009-07-27  Bruno Haible  <bruno@clisp.org>
78222         Fix compilation error when <ctime> is used and mktime is replaced.
78223         * lib/time.in.h (mktime): New declaration.
78224         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78225         REPLACE_MKTIME instead of defining mktime in config.h.
78226         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78227         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78228         Reported by Ross McFarland <rwmcfa1@neces.com>.
78230 2009-07-27  Bruno Haible  <bruno@clisp.org>
78232         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78233         Reported by Matt Kraai <mkraai@beckman.com>.
78235 2009-07-25  Jim Meyering  <meyering@redhat.com>
78237         maint.mk: avoid warnings about missing files
78238         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78239         diagnostic when .prev-version does not exist.
78240         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78241         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78242         nonexistent cfg.mk.
78243         Suggestions from Simon Josefsson.
78245 2009-07-25  Bruno Haible  <bruno@clisp.org>
78247         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78248         defined as macros. Needed on QNX 6.4.1.
78249         Reported by Matt Kraai <mkraai@beckman.com>.
78251 2009-07-23  Jim Meyering  <meyering@redhat.com>
78253         maint.mk: invoke "make dist" with a working value of XZ_OPT
78254         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78256 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78258         Make fseeko.c compile on QNX.
78259         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78261 2009-07-22  Peter Simons  <simons@cryp.to>
78263         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78264         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78265         * lib/md4.h: Likewise.
78266         * lib/md5.h: Likewise.
78267         * lib/sha1.h: Likewise.
78268         * lib/sha256.h: Likewise.
78269         * lib/sha512.h: Likewise.
78271         tests-sha1: don't assign literal string to 'char *' variable
78272         * tests/test-sha1.c (main): Declare locals with "const" to match
78273         attributes of the right hand side.
78275 2009-07-21  Eric Blake  <ebb9@byu.net>
78277         dup2: fix more mingw problems
78278         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78279         fd to itself.
78280         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78281         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78282         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78283         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78284         care of mingw bugs.
78286 2009-07-21  Jim Meyering  <meyering@redhat.com>
78288         vc-list-files: avoid failure when /bin/sh is dash
78289         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78290         On some Debian based systems, /bin/sh is a symlink to dash, and running
78291         this command would omit the "/" following each 'tests' prefix:
78292           dash -x build-aux/vc-list-files -C . tests
78293         That is because bash and dash work differently:
78294           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78295           bash ok
78296           dash odd
78298 2009-07-21  Eric Blake  <ebb9@byu.net>
78300         dup2-tests: test previous patch
78301         * modules/dup2-tests: New file.
78302         * tests/test-dup2.c: Likewise.
78303         * tests/test-open.c (main): Avoid unspecified behavior.
78304         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78305         test.
78307         dup2: work around mingw and cygwin 1.5 bug
78308         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78310         * modules/unistd (Makefile.am): Substitute it.
78311         * lib/unistd.in.h (dup2): Declare the replacement.
78312         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78313         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78314         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78315         * modules/execute (Depends-on): Add dup2.
78316         * modules/fseterr (Depends-on): Likewise.
78317         * modules/pipe (Depends-on): Likewise.
78318         * modules/posix_spawn-internal (Depends-on): Likewise.
78320 2009-07-21  Bruno Haible  <bruno@clisp.org>
78322         * modules/.gitattributes: New file.
78324 2009-07-20  Bruno Haible  <bruno@clisp.org>
78326         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78327         (main): Use it.
78329 2009-07-20  Eric Blake  <ebb9@byu.net>
78331         test-pipe: make a bit more robust.
78332         * tests/test-pipe.c (myerr): Allow error messages regardless of
78333         what we do to stderr.
78334         (test_pipe): Rearrange to avoid deadlock.
78335         (child_main): Try a larger read, to ensure we avoided deadlock.
78336         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78337         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78338         if misused.
78340 2009-07-19  Jim Meyering  <meyering@redhat.com>
78342         fts: avoid false-positive cycle-detection
78343         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78344         for each new command line argument.
78346 2009-07-19  Bruno Haible  <bruno@clisp.org>
78348         Fix build error on mingw with the modules sys_select and unistd.
78349         * modules/acl-tests (Depends-on): Add close.
78350         * modules/binary-io-tests (Depends-on): Likewise.
78351         * modules/closein-tests (Depends-on): Likewise.
78352         * modules/flock-tests (Depends-on): Likewise.
78353         * modules/fsync-tests (Depends-on): Likewise.
78354         * modules/lseek-tests (Depends-on): Likewise.
78355         * modules/pipe-tests (Depends-on): Likewise.
78356         * modules/posix_spawn-tests (Depends-on): Likewise.
78357         * modules/posix_spawnp-tests (Depends-on): Likewise.
78358         * modules/stat-time-tests (Depends-on): Likewise.
78359         * modules/yesno-tests (Depends-on): Likewise.
78361 2009-07-19  Bruno Haible  <bruno@clisp.org>
78363         Unify conditionals.
78364         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78365         macros, not at the compiler macros.
78366         * lib/pipe.c: Likewise.
78367         * lib/execute.c: Likewise.
78368         * lib/spawni.c: Likewise.
78370 2009-07-19  Bruno Haible  <bruno@clisp.org>
78372         Fix handling of closed stdin/stdout/stderr on mingw.
78373         * lib/w32spawn.h: Include unistd.h.
78374         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78375         file descriptor with O_NOINHERIT flag.
78376         (fd_safer_noinherit): New function, based on fd-safer.c.
78377         (dup_safer_noinherit): New function, based on dup-safer.c.
78378         (undup_safer_noinherit): New function.
78379         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78380         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78381         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78382         instead of fd_safer.
78383         * tests/test-pipe.c: Include <windows.h>.
78384         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78385         result.
78387         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78388         from main.
78389         (test_pipe): Pass an extra argument for disambiguation.
78390         (main): Invoke parent_main or child_main.
78392         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78393         consistently.
78395 2009-07-18  Eric Blake  <ebb9@byu.net>
78397         test-pipe: fix mingw build
78398         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78400 2009-07-18  Bruno Haible  <bruno@clisp.org>
78402         * modules/pipe-tests (Makefile.am): Fix typo.
78404 2009-07-18  Eric Blake  <ebb9@byu.net>
78406         error: fix mingw build
78407         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78408         Reported by Bruno Haible.
78410         error: avoid undefined use of stdout
78411         * lib/error.c (error, error_at_line): Check that fd 1 is open
78412         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78413         is handling faults and the close_stdout module wants to report the
78414         detection of closed stdout as an error.
78416 2009-07-17  Eric Blake  <ebb9@byu.net>
78418         pipe: be robust in face of closed fds
78419         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78420         should cause child to misbehave.
78421         * modules/pipe-tests: New module.
78422         * tests/test-pipe.c: New file.
78423         * tests/test-pipe.sh: New file.
78424         Reported by Akim Demaille.
78426 2009-07-14  Bruno Haible  <bruno@clisp.org>
78428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78429         Reported by anonymous kc.
78431 2009-07-07  Jim Meyering  <meyering@redhat.com>
78433         maint.mk: don't look for translatable strings in *.m4 or *.mk
78434         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78435         when searching for translatable strings.
78437 2009-07-05  Jim Meyering  <meyering@redhat.com>
78439         remove superfluous parentheses in STREQ definition
78440         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78441         * lib/getugroups.c (STREQ): Likewise.
78442         * lib/fnmatch.c (STREQ): Likewise.
78443         Spotted by Bruno Haible.
78445 2009-07-04  Jim Meyering  <meyering@redhat.com>
78447         argv-iter: new module
78448         * MODULES.html.sh: Add argv-iter.
78449         * lib/argv-iter.c, lib/argv-iter.h: New files.
78450         * modules/argv-iter: New file.
78451         * modules/argv-iter-tests: New file.
78452         * tests/test-argv-iter.c: Test it.
78454 2009-07-04  Bruno Haible  <bruno@clisp.org>
78456         Fix assertion.
78457         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78458         contains more exact copies of a given entry than file2, leave the extra
78459         copies unpaired rather than aborting.
78460         Reported by Eric Blake.
78462 2009-07-02  Bruno Haible  <bruno@clisp.org>
78464         Speedup git-merge-changelog for git cherry-pick.
78465         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78466         (entries_mapping_get): New function, extracted from compute_mapping.
78467         (entries_mapping_reverse_get): New function.
78468         (compute_mapping): Add a 'full' argument. Return the result in a
78469         'struct entries_mapping'.
78470         (main): Update. Access the mappings through entries_mapping_get.
78471         Reported by Eric Blake.
78473 2009-07-02  Bruno Haible  <bruno@clisp.org>
78475         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78476         best_i.
78478 2009-07-02  Bruno Haible  <bruno@clisp.org>
78480         Speed up approximate search for matching ChangeLog entries.
78481         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78482         argument. Call fstrcmp_bounded instead of fstrcmp.
78483         (compute_mapping, try_split_merged_entry, main): Update callers.
78485 2009-07-02  Bruno Haible  <bruno@clisp.org>
78487         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78489 2009-06-30  Bruno Haible  <bruno@clisp.org>
78491         Reduce the number of uc_is_cased calls.
78492         * lib/unicase.h (casing_suffix_context_t): Add
78493         'first_char_except_ignorable' field.
78494         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78495         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78496         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78497         Update initializer.
78498         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78499         case-ignorable characters.
78500         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78501         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78502         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78503         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78504         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78506 2009-06-30  Bruno Haible  <bruno@clisp.org>
78508         Tests for module 'unicase/ignorable'.
78509         * modules/unicase/ignorable-tests: New file.
78510         * tests/unicase/test-ignorable.c: New file, generated by
78511         gen-uni-tables.
78513         Tests for module 'unicase/cased'.
78514         * modules/unicase/cased-tests: New file.
78515         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78516         * tests/unicase/test-predicate-part1.h: New file, derived from
78517         tests/unictype/test-predicate-part1.h.
78518         * tests/unicase/test-predicate-part2.h: New file, same as
78519         tests/unictype/test-predicate-part2.h.
78521         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78522         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78523         (output_casing_properties): New function.
78524         (main): Call it.
78525         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78526         * lib/unicase/cased.c: Include unictype/bitmap.h.
78527         (uc_is_cased): Define through a bitmap lookup.
78528         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78529         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78530         (uc_is_case_ignorable): Define through a bitmap lookup.
78531         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78532         lib/unictype/bitmap.h.
78533         (Depends-on): Add inline. Clean up.
78534         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78535         lib/unictype/bitmap.h.
78536         (Depends-on): Add inline. Clean up.
78537         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78538         recognition.
78539         * tests/unicase/test-u16-tolower.c (main): Likewise.
78540         * tests/unicase/test-u32-tolower.c (main): Likewise.
78542 2009-06-30  Bruno Haible  <bruno@clisp.org>
78544         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78545         * lib/unicase/u16-casemap.c: Likewise.
78546         * lib/unicase/u32-casemap.c: Likewise.
78548 2009-06-29  Bruno Haible  <bruno@clisp.org>
78550         Define u32_casefold as a wrapper around u32_ct_casefold.
78551         * lib/unicase/u32-casefold.c: Update.
78552         * modules/unicase/u32-casefold (Depends-on): Add
78553         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78554         unicase/empty-suffix-context. Clean up.
78556         Define u16_casefold as a wrapper around u16_ct_casefold.
78557         * lib/unicase/u16-casefold.c: Update.
78558         * modules/unicase/u16-casefold (Depends-on): Add
78559         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78560         unicase/empty-suffix-context. Clean up.
78562         Define u8_casefold as a wrapper around u8_ct_casefold.
78563         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78564         * lib/unicase/u8-casefold.c: Update.
78565         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78566         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78568         Define u32_totitle as a wrapper around u32_ct_totitle.
78569         * lib/unicase/u32-totitle.c: Update.
78570         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78571         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78573         Define u16_totitle as a wrapper around u16_ct_totitle.
78574         * lib/unicase/u16-totitle.c: Update.
78575         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78576         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78578         Define u8_totitle as a wrapper around u8_ct_totitle.
78579         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78580         functions.
78581         (FUNC): Delegate to U_CT_TOTITLE.
78582         * lib/unicase/u8-totitle.c: Update.
78583         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78584         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78586         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78587         invocation.
78588         * modules/unicase/u32-tolower (Depends-on): Add
78589         unicase/empty-prefix-context, unicase/empty-suffix-context.
78591         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78592         invocation.
78593         * modules/unicase/u16-tolower (Depends-on): Add
78594         unicase/empty-prefix-context, unicase/empty-suffix-context.
78596         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78597         * modules/unicase/u8-tolower (Depends-on): Add
78598         unicase/empty-prefix-context, unicase/empty-suffix-context.
78600         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78601         invocation.
78602         * modules/unicase/u32-toupper (Depends-on): Add
78603         unicase/empty-prefix-context, unicase/empty-suffix-context.
78605         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78606         invocation.
78607         * modules/unicase/u16-toupper (Depends-on): Add
78608         unicase/empty-prefix-context, unicase/empty-suffix-context.
78610         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78611         * modules/unicase/u8-toupper (Depends-on): Add
78612         unicase/empty-prefix-context, unicase/empty-suffix-context.
78614         New module 'unicase/u32-ct-casefold'.
78615         * lib/unicase/u32-ct-casefold.c: New file.
78616         * modules/unicase/u32-ct-casefold: New file.
78618         New module 'unicase/u16-ct-casefold'.
78619         * lib/unicase/u16-ct-casefold.c: New file.
78620         * modules/unicase/u16-ct-casefold: New file.
78622         New module 'unicase/u8-ct-casefold'.
78623         * lib/unicase/u8-ct-casefold.c: New file.
78624         * lib/unicase/u-ct-casefold.h: New file, derived from
78625         lib/unicase/u-casefold.h.
78626         * modules/unicase/u8-ct-casefold: New file.
78628         New module 'unicase/u32-ct-totitle'.
78629         * lib/unicase/u32-ct-totitle.c: New file.
78630         * modules/unicase/u32-ct-totitle: New file.
78632         New module 'unicase/u16-ct-totitle'.
78633         * lib/unicase/u16-ct-totitle.c: New file.
78634         * modules/unicase/u16-ct-totitle: New file.
78636         New module 'unicase/u8-ct-totitle'.
78637         * lib/unicase/u8-ct-totitle.c: New file.
78638         * lib/unicase/u-ct-totitle.h: New file, derived from
78639         lib/unicase/u-totitle.h.
78640         * modules/unicase/u8-ct-totitle: New file.
78642         New module 'unicase/u32-ct-tolower'.
78643         * lib/unicase/u32-ct-tolower.c: New file.
78644         * modules/unicase/u32-ct-tolower: New file.
78646         New module 'unicase/u16-ct-tolower'.
78647         * lib/unicase/u16-ct-tolower.c: New file.
78648         * modules/unicase/u16-ct-tolower: New file.
78650         New module 'unicase/u8-ct-tolower'.
78651         * lib/unicase/u8-ct-tolower.c: New file.
78652         * modules/unicase/u8-ct-tolower: New file.
78654         New module 'unicase/u32-ct-toupper'.
78655         * lib/unicase/u32-ct-toupper.c: New file.
78656         * modules/unicase/u32-ct-toupper: New file.
78658         New module 'unicase/u16-ct-toupper'.
78659         * lib/unicase/u16-ct-toupper.c: New file.
78660         * modules/unicase/u16-ct-toupper: New file.
78662         New module 'unicase/u8-ct-toupper'.
78663         * lib/unicase/u8-ct-toupper.c: New file.
78664         * modules/unicase/u8-ct-toupper: New file.
78666         Add context arguments to u*_casemap functions.
78667         * lib/unicase/unicasemap.h: Include unicase.h.
78668         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78669         suffix_context arguments.
78670         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78671         functions.
78672         (FUNC): Add prefix_context and suffix_context arguments. Use
78673         uc_is_cased and uc_is_case_ignorable.
78674         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78675         * lib/unicase/u16-casemap.c: Likewise.
78676         * lib/unicase/u32-casemap.c: Likewise.
78677         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78678         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78679         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78680         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78681         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78682         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78684         New module 'unicase/u32-suffix-context'.
78685         * lib/unicase/u32-suffix-context.c: New file.
78686         * modules/unicase/u32-suffix-context: New file.
78688         New module 'unicase/u16-suffix-context'.
78689         * lib/unicase/u16-suffix-context.c: New file.
78690         * modules/unicase/u16-suffix-context: New file.
78692         New module 'unicase/u8-suffix-context'.
78693         * lib/unicase/u8-suffix-context.c: New file.
78694         * lib/unicase/u-suffix-context.h: New file.
78695         * modules/unicase/u8-suffix-context: New file.
78697         New module 'unicase/empty-suffix-context'.
78698         * lib/unicase/empty-suffix-context.c: New file.
78699         * modules/unicase/empty-suffix-context: New file.
78701         New module 'unicase/u32-prefix-context'.
78702         * lib/unicase/u32-prefix-context.c: New file.
78703         * modules/unicase/u32-prefix-context: New file.
78705         New module 'unicase/u16-prefix-context'.
78706         * lib/unicase/u16-prefix-context.c: New file.
78707         * modules/unicase/u16-prefix-context: New file.
78709         New module 'unicase/u8-prefix-context'.
78710         * lib/unicase/u8-prefix-context.c: New file.
78711         * lib/unicase/u-prefix-context.h: New file.
78712         * lib/unicase/context.h: New file.
78713         * modules/unicase/u8-prefix-context: New file.
78715         New module 'unicase/empty-prefix-context'.
78716         * lib/unicase/empty-prefix-context.c: New file.
78717         * modules/unicase/empty-prefix-context: New file.
78719         New module 'unicase/ignorable'.
78720         * lib/unicase/ignorable.c: New file.
78721         * modules/unicase/ignorable: New file.
78723         New module 'unicase/cased'.
78724         * lib/unicase/caseprop.h: New file.
78725         * lib/unicase/cased.c: New file.
78726         * modules/unicase/cased: New file.
78728         New functions for case mapping of substrings.
78729         * lib/unicase.h (casing_prefix_context_t): New type.
78730         (unicase_empty_prefix_context): New variable.
78731         (u8_casing_prefix_context, u16_casing_prefix_context,
78732         u32_casing_prefix_context, u8_casing_prefixes_context,
78733         u16_casing_prefixes_context, u32_casing_prefixes_context): New
78734         declarations.
78735         (casing_suffix_context_t): New type.
78736         (unicase_empty_suffix_context): New variable.
78737         (u8_casing_suffix_context, u16_casing_suffix_context,
78738         u32_casing_suffix_context, u8_casing_suffixes_context,
78739         u16_casing_suffixes_context, u32_casing_suffixes_context,
78740         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
78741         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
78742         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
78743         declarations.
78745 2009-06-28  Jim Meyering  <meyering@redhat.com>
78747         boostrap: indent only with spaces
78748         * build-aux/bootstrap: Indent only with spaces, never TABs.
78750         bootstrap: split long lines
78751         * build-aux/bootstrap: Keep line length < 80.
78753         bootstrap: sync from coreutils
78754         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
78755         just as autoreconf does.  Verify a list of prerequisite
78756         package-name,version-number pairs if defined in bootstrap.conf.
78757         Refer to README-prereq, if prerequisites are not satisfied.
78759 2009-06-27  Eric Blake  <ebb9@byu.net>
78761         tests: add test for bogus NULL definition
78762         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
78763         * tests/test-stdlib.c: Likewise.
78764         * tests/test-string.c: Likewise.
78765         * tests/test-locale.c: Likewise.
78766         * tests/test-unistd.c: Likewise.
78767         * modules/stdio-tests (Depends-on): Add verify.
78768         * modules/stdlib-tests (Depends-on): Likewise.
78769         * modules/string-tests (Depends-on): Likewise.
78770         * modules/locale-tests (Depends-on): Likewise.
78771         * modules/unistd-tests (Depends-on): Likewise.
78773 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
78775         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
78776         self-explaining comment.
78777         * m4/selinux-selinux-h: Update serial.
78778         (gl_LIBSELINUX): New macro, adding a warning for missing development
78779         packages to code extracted from...
78780         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
78781         Add warning for missing development packages here, too.
78783 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
78785         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
78787 2009-06-25  Eric Blake  <ebb9@byu.net>
78789         version-etc: fix regression
78790         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
78791         gcc.
78792         (version_etc): Use it, to catch bugs with trailing NULL.
78793         * lib/version-etc.c (version_etc_arn): Delete unused argument.
78794         (version_etc_va): Fix logic bug.
78795         * modules/version-etc-tests: Add test.
78796         * tests/test-version-etc.c: New file.
78797         * tests/test-version-etc.sh: Likewise.
78799 2009-06-25  Sam Steingold  <sds@gnu.org>
78801         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
78802         mbtowc declaration.
78804 2009-06-25  Eric Blake  <ebb9@byu.net>
78806         fpurge: migrate into <stdio.h>
78807         * lib/fpurge.h: Delete...
78808         * lib/stdio.in.h (fpurge): ...and declare here, instead.
78809         * lib/fpurge.c (fpurge): Change declaring header.
78810         * modules/fpurge (Files): Drop deleted file.
78811         (Depends-on): Add stdio.
78812         (configure.ac): Set witness.
78813         * modules/stdio (Makefile.am): Support fpurge macros.
78814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78815         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
78816         * lib/fflush.c: Update client.
78817         * tests/test-fpurge.c: Likewise.
78818         * NEWS: Mention the change.
78820 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78822         * lib/argp-version-etc.c (program_authors): Add const
78823         qualifier.
78824         * lib/version-etc.c: Fix typos in the comments.
78825         * modules/argp-version-etc: Depends on version-etc.
78827 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78829         argp-version-etc: new module.
78831         * lib/argp-version-etc.c: New file.
78832         * lib/argp-version-etc.h: New file.
78833         * modules/argp-version-etc: New file.
78834         * modules/argp-version-etc-tests: New file.
78835         * tests/test-argp-version-etc.c: New test.
78836         * tests/test-argp-version-etc-1.sh: New test.
78838 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78840         Provide additional interfaces and documentation for version-etc
78841         module.
78843         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
78844         interfaces.
78845         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
78846         prototypes.
78848 2009-06-24  Bruno Haible  <bruno@clisp.org>
78850         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
78851         HAVE_LIB${NAME} macro.
78852         Reported by Sam Steingold <sds@gnu.org>.
78854 2009-06-23  Simon Josefsson  <simon@josefsson.org>
78856         * modules/hash-tests (test_hash_LDADD): Link to libintl when
78857         needed.
78859 2009-06-21  Bruno Haible  <bruno@clisp.org>
78861         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
78862         work.
78863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
78864         together with LIB${NAME}, LTLIB${NAME}.
78865         Reported by Sam Steingold <sds@gnu.org>.
78867 2009-06-20  Jim Meyering  <meyering@redhat.com>
78869         tests: make sc_require_test_exit_idiom more generic
78870         * top/maint.mk (Exit_witness_file): New overridable variable.
78871         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
78872         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
78874 2009-06-19  Jim Meyering  <meyering@redhat.com>
78876         hash: reverse order of src/dst parameters in an internal interface
78877         * lib/hash.c (transfer_entries): Reverse order of parameters to
78878         put DST before SRC.  Adjust callers.
78880         tests: test-hash: avoid wholesale duplication
78881         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
78882         Instead, use a loop and add a single conditional.
78884         tests: test-hash: allow seed selection via a command line argument
78885         * tests/test-hash.c (get_seed): New function.
78886         (main): Use it.
78888 2009-06-19  Eric Blake  <ebb9@byu.net>
78890         hash: avoid memory leak on allocation failure
78891         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
78892         failure.  Factor repeated algorithm...
78893         (transfer_entries): ...into new helper routine.
78894         (hash_delete): React to hash_rehash return value.
78896         hash: reduce memory pressure in hash_rehash no-op case
78897         * lib/hash.c (next_prime): Avoid overflow.
78898         (hash_initialize): Factor bucket size computation...
78899         (compute_bucket_size): ...into new helper function.
78900         (hash_rehash): Use new function and open coding to reduce memory
78901         pressure, and avoid a memory leak in USE_OBSTACK code.
78902         Reported by Jim Meyering.
78904 2009-06-18  Eric Blake  <ebb9@byu.net>
78906         hash: make rotation more obvious
78907         * modules/hash (Depends-on): Add bitrotate and stdint.
78908         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
78909         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
78910         (SIZE_MAX): Rely on headers for definition.
78911         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
78912         (raw_hasher): Use rotr_sz.
78913         Suggested by Jim Meyering.
78915         hash: fix memory leak in last patch
78916         * lib/hash.c (hash_rehash): Avoid memory leak.
78918         hash: avoid no-op rehashing
78919         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
78921         hash: provide default callback functions
78922         * lib/hash.c (raw_hasher, raw_comparator): New functions.
78923         (hash_initialize): Use them as defaults.
78924         * tests/test-hash.c (main): Test this.
78926         hash: minor optimization
78927         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
78928         when possible.
78929         (hash_initialize): Document this promise.
78930         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
78931         * tests/test-hash.c (hash_compare_strings): Test this.
78933 2009-06-18  Bruno Haible  <bruno@clisp.org>
78935         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
78936         going to be replaced anyway.
78938 2009-06-18  Bruno Haible  <bruno@clisp.org>
78940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
78941         in one place.
78942         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
78943         be replaced anyway.
78945 2009-06-18  Eric Blake  <ebb9@byu.net>
78947         hash: check for resize before insertion
78948         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
78949         threshold before insertion, so that a pathological hash_rehash
78950         that fills every bucket can still trigger another rehash.
78952 2009-06-18  Jim Meyering  <meyering@redhat.com>
78954         hash-tests: add a loop around the small tests
78955         * tests/test-hash.c (main): Repeat small tests with selected
78956         small initial table sizes.
78958 2009-06-17  Eric Blake  <ebb9@byu.net>
78960         hash: minor cleanups
78961         * lib/hash.h (hash_entry): Make opaque, by moving...
78962         * lib/hash.c (hash_entry): ...here.
78963         (hash_insert): Clarify restrictions on what can be inserted.
78964         (hash_get_next): Clarify when it is safe to remove an element
78965         during traversal.
78966         (check_tuning): Skip verification when tuning is known safe.
78967         (hash_initialize): Clarify restrictions on tuning.
78969 2009-06-17  Jim Meyering  <jim@meyering.net>
78970         and Eric Blake  <ebb9@byu.net>
78972         hash-tests: new module
78973         * modules/hash-tests: New file.
78974         * tests/test-hash.c: New file.
78976 2009-06-17  Eric Blake  <ebb9@byu.net>
78978         strstr-simple: document new module
78979         * MODULES.html.sh: Document new module.
78981         strstr, strcasestr: replace on platforms with broken memchr
78982         * modules/strstr: Split into...
78983         * modules/strstr-simple: ...new module that does not care about
78984         performance, but does care about glibc bug.
78985         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
78986         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
78987         if platform memchr is broken, per Debian bug 521737.
78988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
78989         memchr.
78990         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
78991         * doc/posix-functions/strstr.texi (strstr): Document the fix.
78992         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78993         * modules/mountlist (Depends-on): Add strstr-simple.
78994         * modules/gen-uni-tables (Depends-on): Likewise.
78995         * modules/argz (Depends-on): Add strstr.
78997 2009-06-17  Bruno Haible  <bruno@clisp.org>
78999         * modules/posix_spawn-internal (Depends-on): Add errno.
79001 2009-06-17  Bruno Haible  <bruno@clisp.org>
79003         Define missing ESTALE on Interix 3.5.
79004         * lib/errno.in.h (ESTALE): Assign a value if missing.
79005         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79006         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79007         missing.
79008         * doc/posix-headers/errno.texi: Mention the Interix bug.
79009         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79011 2009-06-15  Eric Blake  <ebb9@byu.net>
79013         memchr, memchr2: add valgrind exception
79014         * lib/memchr.valgrind: New file.
79015         * lib/memchr2.valgrind: New file.
79016         * modules/memchr (Files): Distribute valgrind file.
79017         * modules/memchr2 (Files): Likewise.
79019         docs: memchr is no longer obsolete
79020         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79021         * lib/string.in.h (memchr): Simplify logic.
79023 2009-06-14  Jim Meyering  <meyering@redhat.com>
79025         link-follow: fix the "checking..." message to not mention trailing slash
79026         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79027         never considered trailing slashes.
79029 2009-06-14  Bruno Haible  <bruno@clisp.org>
79031         * m4/memchr.m4: Mention also the bug on IA-64.
79032         * doc/posix-functions/memchr.texi: Likewise.
79034 2009-06-12  Eric Blake  <ebb9@byu.net>
79036         memchr: detect broken x86_64 and alpha implementations
79037         * modules/memchr-tests (Depends-on): Move mmap detection...
79038         * modules/memchr (Depends-on): ...here.
79039         (configure.ac): Set indicator.
79040         * lib/string.in.h (memchr): Declare replacement.
79041         * modules/string (Makefile.am): Trigger replacement.
79042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79043         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79044         bugs.
79045         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79046         * modules/getpagesize (License): Relax license.
79048 2009-06-11  Bruno Haible  <bruno@clisp.org>
79050         * lib/idpriv.h: Add more references.
79052 2009-06-08  Bruno Haible  <bruno@clisp.org>
79054         Tests for module 'idpriv-droptemp'.
79055         * modules/idpriv-droptemp-tests: New file.
79056         * tests/test-idpriv-droptemp.sh: New file.
79057         * tests/test-idpriv-droptemp.su.sh: New file.
79058         * tests/test-idpriv-droptemp.c: New file.
79060         New module 'idpriv-droptemp'.
79061         * lib/idpriv-droptemp.c: New file.
79062         * modules/idpriv-droptemp: New file.
79064 2009-06-08  Bruno Haible  <bruno@clisp.org>
79066         Tests for module 'idpriv-drop'.
79067         * modules/idpriv-drop-tests: New file.
79068         * tests/test-idpriv-drop.sh: New file.
79069         * tests/test-idpriv-drop.su.sh: New file.
79070         * tests/test-idpriv-drop.c: New file.
79072         New module 'idpriv-drop'.
79073         * lib/idpriv.h: New file.
79074         * lib-idpriv-drop.c: New file.
79075         * m4/idpriv.m4: New file.
79076         * modules/idpriv-drop: New file.
79078 2009-06-08  Bruno Haible  <bruno@clisp.org>
79080         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79081         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79082         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79083         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79084         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79085         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79086         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79088 2009-06-08  Eric Blake  <ebb9@byu.net>
79090         test-strstr: use memory fence, when possible
79091         * tests/test-strstr.c (main): Use memory fence, in order to be
79092         more likely to trigger Debian bug 521737.
79093         * modules/strstr-tests (Files): Pull in additional files.
79095         memchr: no longer obsolete, for wider field testing
79096         * modules/memchr (Status, Notice): Delete, this module is no
79097         longer obsolete.
79098         * modules/vasnprintf (Depends-on): Add memchr.
79100 2009-06-07  Jim Meyering  <meyering@redhat.com>
79102         hash: declare some functions with the warn_unused_result attribute
79103         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79105 2009-06-07  Bruno Haible  <bruno@clisp.org>
79107         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79108         Reported by Eric Blake.
79110 2009-06-06  Eric Blake  <ebb9@byu.net>
79112         test-alignof: fix typo with long double
79113         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79114         compiler error.
79116 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79118         Escape non-texinfo { and }s.
79119         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79120         markup error.
79122 2009-06-04  Jim Meyering  <meyering@redhat.com>
79124         gitlog-to-changelog: don't infloop on an empty commit log
79125         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79126         Reported by Boris Petersen <transacid@centerim.org>.
79128 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79130         version-etc: extend for packagers
79131         Add three new configure options, intended for packagers:
79132           --with-packager="packager name"
79133           --with-packager-version="packager-specific version"
79134           --with-packager-bug-reports="packager bug reporting"
79135         An example with coreutils:
79136           $ ./configure \
79137             --with-packager=Gentoo \
79138             --with-packager-bug-report=http://bugs.gentoo.org/ \
79139             --with-packager-version="patchset 1.6"
79140           $ ./src/ls --version | head -n2
79141           ls (GNU coreutils) 7.1-dirty
79142           Packaged by Gentoo (patchset 1.6)
79143         Note that the bug reporting info via --help doesn't show up because
79144         coreutils uses its own custom emit_bug_reporting_address() implementation
79145         in src/system.h.  If it didn't, it'd look like:
79146           $ ./src/ls --help | tail -n4
79147           Report bugs to <bug-coreutils@gnu.org>.
79148           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79149           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79150           General help using GNU software: <http://www.gnu.org/gethelp/>.
79151         * lib/version-etc.c: Print new information, if provided.
79152         * m4/version-etc.m4: New file.
79153         * modules/version-etc (Files): Add m4/version-etc.m4.
79154         (configure.ac): Add gl_VERSION_ETC.
79156 2009-05-31  Bruno Haible  <bruno@clisp.org>
79158         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79159         and 'int64_t'.
79160         * modules/alignof-tests (Dependencies): Add stdint.
79161         Reported by Eric Blake.
79163 2009-05-31  Bruno Haible  <bruno@clisp.org>
79165         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79166         restriction due to compiler bugs.
79167         Reported by Eric Blake.
79169 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79170             Bruno Haible  <bruno@clisp.org>
79172         Fix test-alignof failure.
79173         * lib/alignof.h (alignof_slot): New macro.
79174         (alignof_type): New macro, with the same semantics as the previous
79175         'alignof'.
79176         (alignof): Alias to alignof_slot.
79177         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79178         check that the results are usable as constant expressions.
79180 2009-05-31  Bruno Haible  <bruno@clisp.org>
79182         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79183         * tests/test-memchr.c (main): Check that memchr does not read past the
79184         first occurrence of the byte.
79185         * tests/test-strstr.c (main): Update comment.
79186         Suggested by Eric Blake.
79188 2009-05-30  Bruno Haible  <bruno@clisp.org>
79190         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79191         detail how to use dumpbin.
79192         Reported by David Byron <dbyron@dbyron.com>.
79194 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79196         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79198 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79200         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79202 2009-05-28  Bruno Haible  <bruno@clisp.org>
79204         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79205         build-aux/ files.
79207 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79209         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79211 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79213         * gnulib-tool (sed_transform_main_lib_file)
79214         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79215         regexps.
79217 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79219         * tests/test-strstr.c: Add another self-test.
79220         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79221         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79223 2009-05-23  Bruno Haible  <bruno@clisp.org>
79225         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79226         change.
79228 2009-05-21  Bruno Haible  <bruno@clisp.org>
79230         Simplify use of mode_t varargs.
79231         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79232         uses 'mode_t' or 'int'.
79233         * lib/openat.c (openat): Likewise.
79234         * lib/open-safer.c (open_safer): Likewise.
79235         * m4/mode_t.m4: New file.
79236         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79237         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79238         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79239         * modules/open (Files): Add m4/mode_t.m4.
79240         * modules/openat (Files): Likewise.
79241         * modules/fcntl-safer (Files): Likewise.
79242         Suggested by Eric Blake.
79244 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79246         * doc/glibc-functions/fallocate.texi: New file.
79247         * doc/gnulib.texi: Include it.
79249 2009-05-21  Eric Blake  <ebb9@byu.net>
79250             Bruno Haible  <bruno@clisp.org>
79252         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79253         invocations.
79254         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79256 2009-05-21  Eric Blake  <ebb9@byu.net>
79257             Bruno Haible  <bruno@clisp.org>
79259         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79260         include_next. Fix of 2008-11-20 commit.
79261         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79262         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79263         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79264         NEXT_MATH_H.
79265         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79266         instead of NEXT_MATH_H.
79268 2009-05-21  Bruno Haible  <bruno@clisp.org>
79270         Avoid redefinition warnings for SIZE_MAX.
79271         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79272         Reported by Simon Josefsson.
79274 2009-05-21  Bruno Haible  <bruno@clisp.org>
79276         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79277         AC_CACHE_VAL.
79279 2009-05-20  Bruno Haible  <bruno@clisp.org>
79281         Make zeroptr.h work on mingw.
79282         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79283         mprotect.
79284         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79285         * modules/memchr2-tests (configure.ac): Likewise.
79286         * modules/memcmp-tests (configure.ac): Likewise.
79287         * modules/memmem-tests (configure.ac): Likewise.
79288         * modules/memrchr-tests (configure.ac): Likewise.
79289         Reported by Simon Josefsson.
79291 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79293         * tests/test-glob.c: Include string.h for strcmp prototype.
79295 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79297         * modules/getdelim (Depends-on): Add explicit stdint, although it
79298         was implicitly already pulled in via realloc-posix.
79299         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79301 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79303         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79304         G. Christensen" <tgc@jupiterrise.com>.
79305         * m4/sys_socket_h.m4: Check for sa_family_t.
79306         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79307         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79308         * tests/test-sys_socket.c: Check that sa_family_t works.
79310 2009-05-18  Eric Blake  <ebb9@byu.net>
79312         maint.mk: allow gnulib_dir in VPATH build
79313         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79315 2009-05-15  Jim Meyering  <meyering@redhat.com>
79317         maint.mk: Give gnulib_dir a default definition.
79318         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79319         Thus, most packages no longer need to specify this variable in cfg.mk
79321 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79323         rename.m4: fix typos that would make non-mingw cross-configure fail
79324         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79326 2009-05-13  Eric Blake  <ebb9@byu.net>
79328         mmap-anon: avoid out-of-order autoconf expansion
79329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79330         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79331         * modules/memchr-tests (Depends-on): Add extensions.
79332         * modules/memchr2-tests (Depends-on): Add extensions.
79333         * modules/memcmp-tests (Depends-on): Add extensions.
79334         * modules/memmem-tests (Depends-on): Add extensions.
79335         * modules/memrchr-tests (Depends-on): Add extensions.
79337 2009-05-13  Bruno Haible  <bruno@clisp.org>
79339         Make some tests ISO C 99 compliant.
79340         * tests/zerosize-ptr.h: New file.
79341         * tests/test-memchr.c: Include zerosize-ptr.h.
79342         (main): Use a zero-size object pointer instead of NULL.
79343         * tests/test-memchr2.c: Include zerosize-ptr.h.
79344         (main): Use a zero-size object pointer instead of NULL.
79345         * tests/test-memcmp.c: Include zerosize-ptr.h.
79346         (main): Use a zero-size object pointer instead of NULL.
79347         * tests/test-memmem.c: Include zerosize-ptr.h.
79348         (main): Use a zero-size object pointer instead of NULL.
79349         * tests/test-memrchr.c: Include zerosize-ptr.h.
79350         (main): Use a zero-size object pointer instead of NULL.
79351         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
79352         m4/mmap-anon.m4.
79353         (Depends-on): Add getpagesize.
79354         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79355         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
79356         m4/mmap-anon.m4.
79357         (Depends-on): Add getpagesize.
79358         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79359         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79360         m4/mmap-anon.m4.
79361         (Depends-on): Add getpagesize.
79362         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79363         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79364         m4/mmap-anon.m4.
79365         (Depends-on): Add getpagesize.
79366         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79367         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79368         m4/mmap-anon.m4.
79369         (Depends-on): Add getpagesize.
79370         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79372 2009-05-12  Bruno Haible  <bruno@clisp.org>
79374         Tests for module 'alignof'.
79375         * modules/alignof-tests: New file.
79376         * tests/test-alignof.c: New file.
79378 2009-05-12  Bruno Haible  <bruno@clisp.org>
79380         Fix alignof macro.
79381         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79382         vendor compilers that are always correct.
79384 2009-05-12  Bruno Haible  <bruno@clisp.org>
79386         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79387         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79388         not whether its fully works.
79390 2009-05-12  Bruno Haible  <bruno@clisp.org>
79392         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79394 2009-05-12  Jim Meyering  <meyering@redhat.com>
79396         * top/maint.mk: Adjust backslash alignment.
79398 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79400         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79402 2009-05-11  Eric Blake  <ebb9@byu.net>
79404         argp: avoid undefined behavior
79405         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79406         macros.
79408 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79410         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79411         user.name to prevent git commit from complaining.
79413 2009-05-10  Bruno Haible  <bruno@clisp.org>
79415         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79416         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79417         it rewrites every file name only once.
79418         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79420 2009-05-08  Bruno Haible  <bruno@clisp.org>
79422         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79423         instead of 'max'.
79425 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79427         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79428         sockaddr_storage test.
79430 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79432         * modules/sys_socket (Makefile.am): Substitute
79433         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79434         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79435         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79436         * tests/test-sys_socket.c: Check sockaddr_storage.
79438 2009-05-08  Bruno Haible  <bruno@clisp.org>
79440         New module 'alignof'.
79441         * lib/alignof.h: New file.
79442         * modules/alignof: New file.
79444 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79445             Bruno Haible  <bruno@clisp.org>
79447         Fix test-file-has-acl on FreeBSD.
79448         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79449         mask is implicitly added.
79450         * tests/test-file-has-acl.c: Include <signal.h>.
79451         (main): Terminate the test after 5 seconds.
79452         * modules/acl-tests (configure.ac): Check for alarm function.
79454 2009-05-04  Bruno Haible  <bruno@clisp.org>
79456         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79458         * modules/errno (configure.ac): Drop AC_REQUIRE.
79459         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79460         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79462 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79464         * modules/glob-tests: New module.
79465         * tests/test-glob.c: Add.
79467 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79469         * modules/fnmatch-tests: New module.
79470         * tests/test-fnmatch.c: Add.
79472 2009-05-04  Eric Blake  <ebb9@byu.net>
79474         maint: make the new no-submodule-changes rule VPATH-safe
79475         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79477 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79478             Bruno Haible  <bruno@clisp.org>
79480         acl: Fix infinite loop on FreeBSD.
79481         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79482         of return value from acl_get_entry.
79483         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79484         Likewise.
79486 2009-05-03  Bruno Haible  <bruno@clisp.org>
79488         * lib/acl-internal.h (acl_entries): Clarify return value.
79489         * lib/acl_entries.c (acl_entries): Likewise.
79491 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79493         Bug fix in acl module.
79494         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79496 2009-05-03  Bruno Haible  <bruno@clisp.org>
79498         Create gperf-generated file in the source dir, not in the build dir.
79499         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79500         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79501         * modules/unicase/locale-language (unicase/locale-languages.h):
79502         Likewise.
79503         * modules/unicase/special-casing (unicase/special-casing-table.h):
79504         Likewise.
79505         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79506         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79507         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79508         Reported by Ralf Wildenhues.
79510 2009-05-03  Bruno Haible  <bruno@clisp.org>
79512         * modules/fnmatch (Description, configure.ac): Taken from
79513         fnmatch-posix.
79514         * modules/fnmatch-posix: Turn into a symbolic reference to the
79515         'fnmatch' module, and deprecate.
79516         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79518 2009-05-03  Bruno Haible  <bruno@clisp.org>
79520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79521         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79522         Reported by Ralf Wildenhues.
79524 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79526         * m4/fnmatch.m4: Fix fnmatch re-define.
79528 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79530         priv-set: new module and tests; adapt write-any-file
79531         * lib/priv-set.c: New file.
79532         * lib/priv-set.h: New file.
79533         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79534         * lib/write-any-file.c: Simplify by using priv-set module.
79535         * m4/priv-set.m4: New file.
79536         * modules/priv-set: New file.
79537         * modules/unlinkdir: Add dependency on priv-set module.
79538         * modules/write-any-file: Likewise.
79540         Tests for module 'priv-set'.
79541         * modules/priv-set-tests: New file.
79542         * tests/test-priv-set.c: New file.
79544 2009-05-03  Jim Meyering  <meyering@redhat.com>
79545             Bruno Haible  <bruno@clisp.org>
79547         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79548         use the converted UTF-8 variant of the name instead.
79550 2009-05-03  Jim Meyering  <meyering@redhat.com>
79552         tests: tighten some getdate tests
79553         * tests/test-getdate.c (main): Tighten tests: require equality,
79554         not just greater than.  Set TZ envvar to UTC0.
79556 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79558         getdate: correctly interpret "next monday" when run on a Monday
79559         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79560         that e.g., "next tues" (when run on a tuesday) results in a date
79561         that is one week in the future, and not today's date.
79562         I.e., add a week when the wday is the same as the current one.
79563         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79564         and earlier by Martin Bernreuther and Jan Minář.
79565         * tests/test-getdate.c (main): Check that "next DAY" is always in
79566         the future and that "last DAY" is always in the past.
79568 2009-05-02  Jim Meyering  <meyering@redhat.com>
79570         build: ensure that a release build fails when a submodule is unclean
79571         * top/maint.mk (no-submodule-changes): New rule.
79572         (alpha beta major): Depend on it.
79574 2009-05-02  Bruno Haible  <bruno@clisp.org>
79576         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79577         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79578         shell variable gl_fnmatch_required to detect which variant is
79579         requested.
79580         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79581         gl_FUNC_FNMATCH_POSIX.
79582         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79583         exclude fnmatch-posix.
79585 2009-05-02  Bruno Haible  <bruno@clisp.org>
79587         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79588         * modules/mbsrtowcs (License): Change to LGPLv2+.
79589         * modules/strnlen1 (License): Likewise.
79590         Reported by Simon Josefsson.
79592 2009-05-02  Bruno Haible  <bruno@clisp.org>
79594         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79595         "cross".
79596         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79597         gnulib-tool was called with option --source-base=lib.
79599 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79601         Use automake *-local hooks without commands, for extensibility.
79602         * modules/localcharset (Makefile.am): Rename install-exec-local
79603         rule to install-exec-localcharset, and make it a prerequisite of
79604         install-exec-local.  Likewise, rename the uninstall-local rule to
79605         uninstall-localcharset, and make it a prerequisite of the former.
79607 2009-05-01  Bruno Haible  <bruno@clisp.org>
79609         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79610         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79611         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79612         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79613         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79614         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79615         m4/locale-zh.m4, m4/codeset.m4.
79617         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79618         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79619         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79620         m4/locale-zh.m4.
79622         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79623         REPLACE_WCRTOMB if mbstate_t must be replaced.
79624         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79625         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79627 2009-05-01  Bruno Haible  <bruno@clisp.org>
79629         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79630         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79631         dngettext, dcngettext, textdomain, bindtextdomain,
79632         bind_textdomain_codeset): Undefine before redefining.
79634 2009-04-30  Bruno Haible  <bruno@clisp.org>
79636         Fix bug introduced on 2009-04-25.
79637         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79638         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79639         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79640         is defined.
79641         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79642         is defined.
79643         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79644         is defined.
79645         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79647 2009-04-28  Bruno Haible  <bruno@clisp.org>
79649         Comment tweaks.
79650         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79651         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79652         * lib/unicase.h (u*_casexfrm): Likewise.
79653         Reported by Paolo Bonzini.
79655 2009-04-28  Bruno Haible  <bruno@clisp.org>
79657         Fix a compilation error.
79658         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79659         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79660         Reported by Jim Meyering.
79662 2009-04-27  Bruno Haible  <bruno@clisp.org>
79664         New module 'libunistring'.
79665         * modules/libunistring: New file.
79666         * m4/libunistring.m4: New file.
79667         * MODULES.html.sh (Unicode string functions): Add it.
79669 2009-04-27  Eric Blake  <ebb9@byu.net>
79671         maint.mk: allow package-specific header to provide <config.h>
79672         * top/maint.mk (sc_require_config_h): New variable.
79673         (sc_require_config_h, sc_require_config_h_first): Use it.
79675 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79677         * top/maint.mk (sc_avoid_if_before_free): Except
79678         useless-if-before-free script.
79680 2009-04-27  Eric Blake  <ebb9@byu.net>
79682         maintainer-makefile: depend on all required helper scripts
79683         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79684         useless-if-before-free.
79685         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79686         version, rather than assuming gnulib checkout is available.
79687         Reported by Simen Josefsson.
79689 2009-04-26  Bruno Haible  <bruno@clisp.org>
79691         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79692         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79693         "../" or "..".
79695 2009-04-26  Bruno Haible  <bruno@clisp.org>
79697         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79698         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79699         AC_LIB_HAVE_LINKFLAGS.
79701 2009-04-26  Bruno Haible  <bruno@clisp.org>
79703         Simplify calling convention of u*_conv_from_encoding.
79704         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79705         u32_conv_from_encoding): Expect a resultbuf argument and return the
79706         result directly as a pointer.
79707         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79708         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79709         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79710         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79711         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79712         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79713         Update.
79714         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79715         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79716         * lib/vasnprintf.c (VASNPRINTF): Update.
79717         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79718         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79719         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
79720         * NEWS: Mention the change.
79722 2009-04-26  Bruno Haible  <bruno@clisp.org>
79724         Simplify calling convention of u*_conv_to_encoding.
79725         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79726         u32_conv_to_encoding): Expect a resultbuf argument and return the
79727         result directly as a pointer.
79728         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79729         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
79730         freeing scaled_offsets if mem_iconveha failed.
79731         * lib/unicase/u-casexfrm.h (FUNC): Update.
79732         * lib/uninorm/u-normxfrm.h (FUNC): Update.
79733         * lib/vasnprintf.c (VASNPRINTF): Update.
79734         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
79735         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
79736         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
79737         * NEWS: Mention the change.
79739 2009-04-26  Bruno Haible  <bruno@clisp.org>
79741         Avoid test failures on AIX and OSF/1.
79742         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
79743         malloc(0).
79744         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79745         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79746         Likewise.
79747         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
79748         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
79749         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
79750         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
79751         * doc/posix-functions/malloc.texi: Document the portability problem
79752         related to malloc(0).
79754 2009-04-26  Bruno Haible  <bruno@clisp.org>
79756         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
79757         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
79758         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
79760 2009-04-25  Bruno Haible  <bruno@clisp.org>
79762         Avoid link error when creating a namespace clean library.
79763         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
79764         as macro with arguments if already defined as an alias.
79765         * lib/signbitf.c (gl_signbitf): Don't undefine.
79766         * lib/signbitd.c (gl_signbitd): Don't undefine.
79767         * lib/signbitl.c (gl_signbitl): Don't undefine.
79769 2009-04-25  Jim Meyering  <meyering@redhat.com>
79771         vc-list-files: fix another quoting bug
79772         * build-aux/vc-list-files: Avoid sed backslash expansion
79773         of pathological directory names.
79775 2009-04-25  Eric Blake  <ebb9@byu.net>
79777         vc-list-files: fix shell quoting error
79778         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
79779         timestamp.
79781 2009-04-25  Jim Meyering  <meyering@redhat.com>
79783         vc-list-files: restore lost functionality with subdir argument
79784         * build-aux/vc-list-files: When given a non-"." sub-directory
79785         argument, substitute the $dir/ prefix back onto each resulting name.
79786         Otherwise, coreutils' root_tests check would fail.
79788 2009-04-24  Eric Blake  <ebb9@byu.net>
79790         vc-list-files: ignore git symlinks
79791         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
79792         than ls-files, to ignore git symlinks.
79794         maint.mk: import improvements from m4
79795         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
79796         (move_if_change): Delete unused macro.
79797         (news-date-check, vc-diff-check): Support VPATH builds.
79798         (announcement): Likewise.  Split --bootstrap-tools list...
79799         (boostrap-tools): ...into separate list, which can be overridden
79800         in cfg.mk.
79801         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
79802         requiring dependency on useless-if-before-free module.
79803         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
79804         Support VPATH builds.
79806 2009-04-24  Jim Meyering  <meyering@redhat.com>
79808         maint.mk: remove coreutils-specific rules and variables
79809         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
79810         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
79811         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
79813         maint.mk: remove obsolete rule
79814         * top/maint.mk (rel-check): Remove rule.
79815         (WGET, WGETFLAGS): Remove now-unused variables.
79817 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79819         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
79820         consistency.
79822         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
79823         '$(PATH_SEPARATOR)' instead of ':'.
79825 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79827         * lib/getopt1.c (main): Use 'const' for static array.
79829 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79831         * top/maint.mk: Sync with coreutils.
79832         * NEWS: Explain incompatibilities.
79834 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79835             Bruno Haible  <bruno@clisp.org>
79837         Fix cross-compilation results.
79838         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
79839         statement, as third argument of AC_TRY_RUN.
79840         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
79841         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
79842         Likewise.
79843         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
79844         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
79845         Likewise.
79846         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
79847         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
79848         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
79850 2009-04-20  Bruno Haible  <bruno@clisp.org>
79852         Avoid test failure on mingw.
79853         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
79855 2009-04-20  Bruno Haible  <bruno@clisp.org>
79857         Avoid compilation error on mingw.
79858         * modules/localename-tests (Depends-on): Add locale.
79860 2009-04-19  Bruno Haible  <bruno@clisp.org>
79862         Support for building a shared library on Windows platforms.
79863         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
79864         (main): Test the presence of UNINORM_NFC here.
79865         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
79866         (main): Test the presence of UNINORM_NFD here.
79867         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
79868         (main): Test the presence of UNINORM_NFKC here.
79869         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
79870         (main): Test the presence of UNINORM_NFKD here.
79872 2009-04-19  Bruno Haible  <bruno@clisp.org>
79874         Avoid a compiler warning.
79875         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
79876         Change type of variable 'sequence'.
79878 2009-04-19  Bruno Haible  <bruno@clisp.org>
79880         * modules/configmake (Makefile.am): When the contents of configmake.h
79881         does not change, arrange to preserve its modification time.
79883 2009-04-17  Simon Josefsson  <simon@josefsson.org>
79885         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
79886         gettext domain.
79888 2009-04-16  Jim Meyering  <meyering@redhat.com>
79890         useless-if-before-free: improve conversion code
79891         * build-aux/useless-if-before-free: Adjust code-in-comment to match
79892         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
79894 2009-04-14  Bruno Haible  <bruno@clisp.org>
79896         * modules/fcntl (Depends-on): Add extensions.
79897         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
79899 2009-04-12  Ben Pfaff  <blp@gnu.org>
79901         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
79902         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
79904 2009-03-20  Ben Pfaff  <blp@gnu.org>
79906         Make rename replace existing destinations on Windows.
79907         * m4/rename.m4: Add test for Mingw.
79908         * lib/rename.c: Add rename replacement that uses MoveFileEx with
79909         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
79910         * doc/posix-functions/rename.texi: Document.
79912 2009-04-10  Bruno Haible  <bruno@clisp.org>
79914         New include file "iconveh.h".
79915         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
79916         * lib/striconveh.h: Include it.
79917         (enum iconv_ilseq_handler): Remove definition.
79918         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
79919         striconveh.h.
79920         * lib/striconveha.c: Include striconveh.h.
79921         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
79922         * modules/striconveh (Files): Add lib/iconveh.h.
79923         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
79924         lib/striconveh.h.
79926 2009-04-10  Bruno Haible  <bruno@clisp.org>
79928         * lib/uniconv.h: Update comment.
79930 2009-04-10  Bruno Haible  <bruno@clisp.org>
79932         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
79933         always.
79934         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
79935         * lib/unistr/u16-mbtouc-aux.c: Likewise.
79936         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
79937         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
79938         "unistring-notinline.h", so that the function gets defined always.
79939         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
79940         * lib/unistr/u8-uctomb.c: Likewise.
79941         * lib/unistr/u16-mbtouc.c: Likewise.
79942         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
79943         * lib/unistr/u16-uctomb.c: Likewise.
79944         * lib/unistr/u32-mbtouc.c: Likewise.
79945         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
79946         * lib/unistr/u32-uctomb.c: Likewise.
79948 2009-04-10  Bruno Haible  <bruno@clisp.org>
79950         Mark 'utime' obsolete.
79951         * modules/utime (Status, Notice): New sections.
79952         Suggested by Jim Meyering.
79954         Fix cross-compile guess for utime test.
79955         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
79956         autoconf.
79957         * doc/posix-functions/utime.texi: Give more precisions.
79958         Reported by Jan <ipif@ymail.com>.
79960 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
79962         filevercmp: correct today's change
79963         * lib/filevercmp.c: Also handle coreutils' test inputs.
79964         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
79966         Fix regression in 'filevercmp' module. Thanks Sven Joachim
79967         for reporting it.
79968         * lib/filevercmp.c: Special handle for "", "." and "..".
79969         * tests/test-filevercmp.c: Enlarge the set suite.
79971 2009-04-07  Jim Meyering  <meyering@redhat.com>
79973         useless-if-before-free: show how to remove braced useless free, too
79974         * build-aux/useless-if-before-free: still only in a comment, though.
79976 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
79978         maint.mk: import changes to syntax-check macros from coreutils
79979         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
79980         Use them in the relevant macros.
79982 2009-04-06  Bruno Haible  <bruno@clisp.org>
79984         Fix unportable use of bit-fields.
79985         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
79986         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
79987         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
79989 2009-04-06  Bruno Haible  <bruno@clisp.org>
79991         Avoid test failures on AIX and OSF/1.
79992         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
79993         that malloc(0) = NULL.
79994         * tests/unicase/test-u8-tolower.c (check): Likewise.
79995         * tests/unicase/test-u8-totitle.c (check): Likewise.
79996         * tests/unicase/test-u8-toupper.c (check): Likewise.
79997         * tests/unicase/test-u16-casefold.c (check): Likewise.
79998         * tests/unicase/test-u16-tolower.c (check): Likewise.
79999         * tests/unicase/test-u16-totitle.c (check): Likewise.
80000         * tests/unicase/test-u16-toupper.c (check): Likewise.
80001         * tests/unicase/test-u32-casefold.c (check): Likewise.
80002         * tests/unicase/test-u32-tolower.c (check): Likewise.
80003         * tests/unicase/test-u32-totitle.c (check): Likewise.
80004         * tests/unicase/test-u32-toupper.c (check): Likewise.
80005         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80006         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80007         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80008         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80009         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80010         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80011         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80012         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80013         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80014         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80015         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80016         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80018 2009-04-05  Bruno Haible  <bruno@clisp.org>
80020         Work around an autoconf limitation.
80021         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80022         comment line if it would be longer than 3 KB.
80024 2009-04-05  Bruno Haible  <bruno@clisp.org>
80026         Avoid test failure with libiconv-1.13.
80027         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80028         of the expected test results.
80030 2009-04-05  Bruno Haible  <bruno@clisp.org>
80032         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80033         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80034         that it should be installed.
80036 2009-04-05  Bruno Haible  <bruno@clisp.org>
80038         * gnulib-tool: New option --copy-file.
80039         (func_usage): Document it.
80040         (func_dest_tmpfilename): Moved out of func_import.
80041         (func_add_file, func_update_file): New functions, extracted from
80042         func_import.
80043         (func_import): Update.
80045 2009-04-05  Karl Berry  <karl@gnu.org>
80047         * README: prominently mention gnulib-tool.
80048         Rearrange sections so getting the code is near the top.
80050 2009-04-05  Bruno Haible  <bruno@clisp.org>
80052         * lib/unicase.h: Mention u*_cmp2.
80053         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80054         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80055         * lib/unicase/ulc-casecmp.c: Likewise.
80056         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80057         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80058         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80059         unistr/u8-cmp.
80060         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80061         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80062         unistr/u16-cmp.
80063         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80064         unistr/u32-cmp.
80066         * lib/uninorm.h: Mention u*_cmp2.
80067         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80068         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80069         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80070         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80071         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80072         unistr/u8-cmp.
80073         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80074         unistr/u16-cmp.
80075         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80076         unistr/u32-cmp.
80078         New module 'unistr/u32-cmp2'.
80079         * lib/unistr/u32-cmp2.c: New file.
80080         * modules/unistr/u32-cmp2: New file.
80082         New module 'unistr/u16-cmp2'.
80083         * lib/unistr/u16-cmp2.c: New file.
80084         * modules/unistr/u16-cmp2: New file.
80086         New module 'unistr/u8-cmp2'.
80087         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80088         * lib/unistr/u8-cmp2.c: New file.
80089         * lib/unistr/u-cmp2.h: New file.
80090         * modules/unistr/u8-cmp2: New file.
80092 2009-04-05  Bruno Haible  <bruno@clisp.org>
80094         * lib/unictype.h (uc_property_is_valid): New macro.
80095         * tests/unictype/test-pr_byname.c (main): Use it.
80097         * lib/unistr.h: Doc fixes.
80098         * lib/uniconv.h: Doc fixes.
80099         * lib/unictype.h: Doc fixes.
80101 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80103         Port coreutils 7.2 to Solaris 8.
80105         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80106         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80107         for Solaris 8.  This is a bit of a hack, as it means it's the
80108         caller's responsibility to add -lnsl if needed, but most likely it
80109         won't be needed since only getaddrinfo uses this and getaddrinfo
80110         isn't needed on Solaris 8.
80112         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80113         problem to Solaris 8 encountered with coreutils 7.2, which
80114         resulted in a message "fnmatch.c:292: warning: passing argument 4
80115         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80116         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80118 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80120         * m4/ld-version-script.m4: Add FIXME comment.
80122 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80124         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80125         SOVERSION variable.
80127 2009-04-02  Bruno Haible  <bruno@clisp.org>
80129         * Makefile (info, html, dvi, pdf): Combine the rules.
80130         Suggested by Jim Meyering.
80132 2009-04-01  Bruno Haible  <bruno@clisp.org>
80134         * Makefile (info, html, dvi, pdf): New targets.
80135         Reported by Reuben Thomas <rrt@sc3d.org>.
80137 2009-04-01  Bruno Haible  <bruno@clisp.org>
80139         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80140         can be put into PATH.
80141         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80143 2009-04-01  Bruno Haible  <bruno@clisp.org>
80145         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80147 2009-04-01  Bruno Haible  <bruno@clisp.org>
80149         Rename module 'visibility'.
80150         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80151         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80152         * doc/gnulib.texi: Update.
80153         * MODULES.html.sh (Misc): Update.
80154         * NEWS: Mention the change.
80156 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80158         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80159         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80160         Eric Blake <ebb9@byu.net> for review.
80161         * MODULES.html.sh: Add lib-msvc-compat.
80162         * doc/gnulib.texi: Link to new section.
80163         * m4/ld-output-def.m4: New file.
80164         * doc/ld-output-def.texi: New file.
80166 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80168         Rename ld-version-script to lib-symbol-versions.  Suggested by
80169         Bruno Haible <bruno@clisp.org>.
80170         * modules/ld-version-script: Renamed to lib-symbol-versions.
80171         * doc/ld-version-script.texi: Fix module name.
80172         * MODULES.html.sh: Add lib-symbol-versions.
80174 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80176         * modules/u64-tests: New file.
80177         * tests/test-u64.c: New file.
80179 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80181         * MODULES.html.sh: Mention u64.
80182         * modules/u64: New module.
80183         * modules/crypto/sha512: Depend on u64 module instead of providing
80184         u64.h.
80186 2009-03-27  Eric Blake  <ebb9@byu.net>
80188         test-strerror: make debugging EAI_SYSTEM easier
80189         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80190         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80191         failure was EAI_SYSTEM.
80193 2009-03-25  Bruno Haible  <bruno@clisp.org>
80195         Fix a problem with --enable-relocatable on Solaris 7.
80196         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80197         since 2008-02-24.
80199 2009-03-25  Eric Blake  <ebb9@byu.net>
80201         test-sockets: avoid gcc warning
80202         * tests/test-sockets.c (main): Silence compiler warning.
80204 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80206         New modules nproc, pthread, contributed by Glen Lenker.
80208         * MODULES.html.sh: Add pthread, nproc.
80209         * lib/nproc.c: New file.
80210         * lib/nproc.h: New file.
80211         * lib/pthread.in.h: New file.
80212         * m4/pthread.m4: New file.
80213         * modules/nproc: New file.
80214         * modules/pthread: New file.
80216 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80218         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80219         New variable.
80221 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80223         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80224         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80225         * tests/test-filevercmp.c: Add tests for backup suffixes.
80227 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80229         * modules/stdlib (Depends-on): Add stdint, needed when defining
80230         struct random_data on, for example, HP-UX 10.20.  Reported by
80231         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80233 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80235         * lib/readline.c (readline): Call fflush on stdout after printing
80236         prompt.
80238 2009-03-20  Bruno Haible  <bruno@clisp.org>
80240         Remove dependency from 'close' module to -lws2_32 on native Windows.
80241         * lib/close-hook.h: New file.
80242         * lib/close-hook.c: New file.
80243         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80244         w32sock.h.
80245         (_gl_close_fd_maybe_socket): Remove function.
80246         (rpl_close): Invoke execute_all_close_hooks instead of
80247         _gl_close_fd_maybe_socket.
80248         * lib/sockets.c: Include close-hook.h, w32sock.h.
80249         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80250         (close_sockets_hook): New variable.
80251         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80252         (gl_sockets_cleanup): Unregister it.
80253         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80254         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80255         * modules/close-hook: New file.
80256         * modules/close (Files): Remove lib/w32sock.h.
80257         (Depends-on): Add close-hook.
80258         (Link): Remove section.
80259         * modules/sockets (Files): Add lib/w32sock.h.
80260         (Depends-on): Add close-hook.
80261         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80262         invocation.
80263         * NEWS: Mention that LIB_CLOSE is gone.
80265 2009-03-23  Eric Blake  <ebb9@byu.net>
80267         signal-tests: test previous patch
80268         * tests/test-signal.c: New file.
80269         * modules/signal-tests: Likewise.
80271         signal.h: always support 'volatile sig_atomic_t'
80272         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80273         (gl_SIGNAL_H_DEFAULTS): Add a default.
80274         * modules/signal (Makefile.am): Substitute if needed.
80275         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80276         users can blindly add volatile.
80277         * doc/posix-headers/signal.texi (signal.h): Document it.
80278         Reported by Matthew Woehlke.
80280 2009-03-23  Jim Meyering  <meyering@redhat.com>
80282         pathmax: PATH_MAX: use pathconf only when available
80283         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80284         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80285         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80286         This avoids a link failure in a PSP cross-compilation environment
80287         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80289         * lib/vasnprintf.c (divide): Fix typo in comment.
80291 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80293         * gnulib-tool (func_filter_filelist): Fix comment.
80295 2009-03-20  Bruno Haible  <bruno@clisp.org>
80297         Make sockets.h self-contained.
80298         * lib/sockets.c: Include sockets.h first.
80299         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80301 2009-03-19  Eric Blake  <ebb9@byu.net>
80303         doc: mention more functions added in cygwin 1.7.0
80304         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80305         addition.
80306         * doc/posix-functions/log2f.texi: Likewise.
80308 2009-03-19  Jim Meyering  <meyering@redhat.com>
80310         fsusage: avoid syntax error due to statement-before-declaration
80311         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80312         after all declarations.  Reported by Matthew Woehlke in
80313         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80315 2009-03-18  Eric Blake  <ebb9@byu.net>
80317         build-aux/compile: sync from automake
80318         * build-aux/compile: New file, from automake.
80319         * config/srclist.txt: Mention build-aux/compile.
80321 2009-03-17  Bruno Haible  <bruno@clisp.org>
80323         * lib/git-merge-changelog.c: Fix typo in comment.
80324         Reported by Reuben Thomas <rrt@sc3d.org>.
80326 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80328         * m4/regex.m4: update and improve help for
80329         --without-included-regex.
80331 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80333         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80334         failure on missing include files.
80336 2009-03-17  Eric Blake  <ebb9@byu.net>
80338         doc: mention more functions added in cygwin 1.7.0
80339         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80340         addition.
80341         * doc/posix-functions/fwscanf.texi: Likewise.
80342         * doc/posix-functions/swprintf.texi: Likewise.
80343         * doc/posix-functions/swscanf.texi: Likewise.
80344         * doc/posix-functions/vfwprintf.texi: Likewise.
80345         * doc/posix-functions/vfwscanf.texi: Likewise.
80346         * doc/posix-functions/vswprintf.texi: Likewise.
80347         * doc/posix-functions/vswscanf.texi: Likewise.
80348         * doc/posix-functions/vwprintf.texi: Likewise.
80349         * doc/posix-functions/vwscanf.texi: Likewise.
80350         * doc/posix-functions/wcscasecmp.texi: Likewise.
80351         * doc/posix-functions/wcsdup.texi: Likewise.
80352         * doc/posix-functions/wcsftime.texi: Likewise.
80353         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80354         * doc/posix-functions/wprintf.texi: Likewise.
80355         * doc/posix-functions/wscanf.texi: Likewise.
80356         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80358 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80360         maint.mk: really add $(AM_MAKEFLAGS)
80361         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80362         was inadvertently omitted in the last commit.
80363         Spotted by Bruno Haible.
80365         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80366         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80367         $(AM_MAKEFLAGS)' rather than plain `make'.
80369         gnulib-tool: execute $MAKE not make
80370         * gnulib-tool: Default $MAKE to 'make'.
80371         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80372         than make.  Initialize $MAKE in the do-autobuild script.
80374         gnulib-tool: use $MAKE not make in generated files
80375         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80376         make, in generated files.  Initialize $MAKE in the do-autobuild
80377         script.
80379         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80381         GNUmakefile: disable parallelism only for multiple, recursive targets
80382         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80383         additions in the Makefile.
80384         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80385         by Automake.
80386         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80387         are listed on the command line and at least one of them is
80388         listed in $(ALL_RECURSIVE_TARGETS).
80390 2009-03-14  Bruno Haible  <bruno@clisp.org>
80392         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80393         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80394         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80395         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80396         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80397         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80398         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80399         unistr/u8-uctomb.
80400         * modules/unistr/u8-strchr (Depends-on): Likewise.
80401         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80402         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80403         unistr/u16-uctomb.
80404         * modules/unistr/u16-strchr (Depends-on): Likewise.
80405         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80407 2009-03-12  Bruno Haible  <bruno@clisp.org>
80409         Work around select() bug on Interix 3.5.
80410         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80411         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80412         * m4/select.m4: New file.
80413         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80414         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80415         * modules/select (Files): Add m4/select.m4.
80416         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80417         * modules/nanosleep (Depends-on): Add select.
80418         * modules/poll (Depends-on): Likewise.
80419         * doc/posix-functions/select.texi: Mention the Interix bug.
80420         Reported by Markus Duft <mduft@gentoo.org>.
80422         * lib/select.c: Renamed from lib/winsock-select.c.
80423         * modules/select (Files): Add lib/select.c, remove
80424         lib/winsock-select.c.
80425         (configure.ac): Update.
80427 2009-03-12  Jim Meyering  <meyering@redhat.com>
80429         avoid gcc warnings about unused macro definitions
80430         * lib/readtokens.c (STREQ): Remove unused definition.
80431         * lib/xmalloc.c (SIZE_MAX): Likewise.
80432         * lib/openat-die.c (N_): Likewise.
80433         * lib/mountlist.c (SIZE_MAX): Remove definition.
80434         Instead, include <stdint.h>.
80435         * lib/readutmp.c: Likewise.
80436         * modules/readutmp (Depends-on): Add stdint.
80437         * modules/mountlist (Depends-on): Add stdint.
80438         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80440 2009-03-10  Bruno Haible  <bruno@clisp.org>
80442         Tests for module 'mbmemcasecoll'.
80443         * modules/mbmemcasecoll-tests: New file.
80444         * tests/test-mbmemcasecoll1.sh: New file.
80445         * tests/test-mbmemcasecoll2.sh: New file.
80446         * tests/test-mbmemcasecoll3.sh: New file.
80447         * tests/test-mbmemcasecoll.c: New file.
80449         New module 'mbmemcasecoll'.
80450         * lib/mbmemcasecoll.h: New file.
80451         * lib/mbmemcasecoll.c: New file.
80452         * modules/mbmemcasecoll: New file.
80454         * tests/test-mbmemcasecmp.h: New file, extracted from
80455         tests/test-mbmemcasecmp.c.
80456         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80457         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80458         (main): Update.
80459         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80461 2009-03-09  Bruno Haible  <bruno@clisp.org>
80463         Tests for module 'mbmemcasecmp'.
80464         * modules/mbmemcasecmp-tests: New file.
80465         * tests/test-mbmemcasecmp1.sh: New file.
80466         * tests/test-mbmemcasecmp2.sh: New file.
80467         * tests/test-mbmemcasecmp3.sh: New file.
80468         * tests/test-mbmemcasecmp.c: New file.
80470         New module 'mbmemcasecmp'.
80471         * lib/mbmemcasecmp.h: New file.
80472         * lib/mbmemcasecmp.c: New file.
80473         * modules/mbmemcasecmp: New file.
80475 2009-03-09  Bruno Haible  <bruno@clisp.org>
80477         Tests for module 'unicase/ulc-casecoll'.
80478         * modules/unicase/ulc-casecoll-tests: New file.
80479         * tests/unicase/test-ulc-casecoll1.sh: New file.
80480         * tests/unicase/test-ulc-casecoll2.sh: New file.
80481         * tests/unicase/test-ulc-casecoll.c: New file.
80483         New module 'unicase/ulc-casecoll'.
80484         * lib/unicase.h (ulc_casecoll): New declaration.
80485         * lib/unicase/ulc-casecoll.c: New file.
80486         * modules/unicase/ulc-casecoll: New file.
80488         New module 'unicase/ulc-casexfrm'.
80489         * lib/unicase.h (ulc_casexfrm): New declaration.
80490         * lib/unicase/ulc-casexfrm.c: New file.
80491         * modules/unicase/ulc-casexfrm: New file.
80493 2009-03-09  Bruno Haible  <bruno@clisp.org>
80495         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80496         invocations.
80498         * m4/mbscasecmp.m4: Remove file.
80499         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80500         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80502         * m4/mbscasestr.m4: Remove file.
80503         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80504         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80506         * m4/mbschr.m4: Remove file.
80507         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80508         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80510         * m4/mbscspn.m4: Remove file.
80511         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80512         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80514         * m4/mbslen.m4: Remove file.
80515         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80516         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80518         * m4/mbsncasecmp.m4: Remove file.
80519         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80520         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80522         * m4/mbsnlen.m4: Remove file.
80523         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80524         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80526         * m4/mbspbrk.m4: Remove file.
80527         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80528         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80530         * m4/mbspcasecmp.m4: Remove file.
80531         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80532         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80534         * m4/mbsrchr.m4: Remove file.
80535         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80536         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80538         * m4/mbssep.m4: Remove file.
80539         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80540         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80542         * m4/mbsspn.m4: Remove file.
80543         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80544         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80546         * m4/mbsstr.m4: Remove file.
80547         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80548         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80550         * m4/mbstok_r.m4: Remove file.
80551         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80552         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80554         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80556         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80557         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80559         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80561 2009-03-08  Bruno Haible  <bruno@clisp.org>
80563         Tests for module 'unicase/ulc-casecmp'.
80564         * modules/unicase/ulc-casecmp-tests: New file.
80565         * tests/unicase/test-ulc-casecmp1.sh: New file.
80566         * tests/unicase/test-ulc-casecmp2.sh: New file.
80567         * tests/unicase/test-ulc-casecmp.c: New file.
80569         New module 'unicase/ulc-casecmp'.
80570         * lib/unicase.h (ulc_casecmp): New declaration.
80571         * lib/unicase/ulc-casecmp.c: New file.
80572         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80573         'const SRC_UNIT *'.
80574         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80575         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80576         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80577         * modules/unicase/ulc-casecmp: New file.
80579         Tests for module 'unicase/u32-is-cased'.
80580         * modules/unicase/u32-is-cased-tests: New file.
80581         * tests/unicase/test-u32-is-cased.c: New file.
80583         Tests for module 'unicase/u16-is-cased'.
80584         * modules/unicase/u16-is-cased-tests: New file.
80585         * tests/unicase/test-u16-is-cased.c: New file.
80587         Tests for module 'unicase/u8-is-cased'.
80588         * modules/unicase/u8-is-cased-tests: New file.
80589         * tests/unicase/test-u8-is-cased.c: New file.
80590         * tests/unicase/test-is-cased.h: New file.
80592         New module 'unicase/u32-is-cased'.
80593         * lib/unicase/u32-is-cased.c: New file.
80594         * modules/unicase/u32-is-cased: New file.
80596         New module 'unicase/u16-is-cased'.
80597         * lib/unicase/u16-is-cased.c: New file.
80598         * modules/unicase/u16-is-cased: New file.
80600         New module 'unicase/u8-is-cased'.
80601         * lib/unicase/u8-is-cased.c: New file.
80602         * lib/unicase/u-is-cased.h: New file.
80603         * modules/unicase/u8-is-cased: New file.
80605         Tests for module 'unicase/u32-is-casefolded'.
80606         * modules/unicase/u32-is-casefolded-tests: New file.
80607         * tests/unicase/test-u32-is-casefolded.c: New file.
80609         Tests for module 'unicase/u16-is-casefolded'.
80610         * modules/unicase/u16-is-casefolded-tests: New file.
80611         * tests/unicase/test-u16-is-casefolded.c: New file.
80613         Tests for module 'unicase/u8-is-casefolded'.
80614         * modules/unicase/u8-is-casefolded-tests: New file.
80615         * tests/unicase/test-u8-is-casefolded.c: New file.
80616         * tests/unicase/test-is-casefolded.h: New file.
80618         New module 'unicase/u32-is-casefolded'.
80619         * lib/unicase/u32-is-casefolded.c: New file.
80620         * modules/unicase/u32-is-casefolded: New file.
80622         New module 'unicase/u16-is-casefolded'.
80623         * lib/unicase/u16-is-casefolded.c: New file.
80624         * modules/unicase/u16-is-casefolded: New file.
80626         New module 'unicase/u8-is-casefolded'.
80627         * lib/unicase/u8-is-casefolded.c: New file.
80628         * modules/unicase/u8-is-casefolded: New file.
80630         Tests for module 'unicase/u32-is-titlecase'.
80631         * modules/unicase/u32-is-titlecase-tests: New file.
80632         * tests/unicase/test-u32-is-titlecase.c: New file.
80634         Tests for module 'unicase/u16-is-titlecase'.
80635         * modules/unicase/u16-is-titlecase-tests: New file.
80636         * tests/unicase/test-u16-is-titlecase.c: New file.
80638         Tests for module 'unicase/u8-is-titlecase'.
80639         * modules/unicase/u8-is-titlecase-tests: New file.
80640         * tests/unicase/test-u8-is-titlecase.c: New file.
80641         * tests/unicase/test-is-titlecase.h: New file.
80643         New module 'unicase/u32-is-titlecase'.
80644         * lib/unicase/u32-is-titlecase.c: New file.
80645         * modules/unicase/u32-is-titlecase: New file.
80647         New module 'unicase/u16-is-titlecase'.
80648         * lib/unicase/u16-is-titlecase.c: New file.
80649         * modules/unicase/u16-is-titlecase: New file.
80651         New module 'unicase/u8-is-titlecase'.
80652         * lib/unicase/u8-is-titlecase.c: New file.
80653         * modules/unicase/u8-is-titlecase: New file.
80655         Tests for module 'unicase/u32-is-lowercase'.
80656         * modules/unicase/u32-is-lowercase-tests: New file.
80657         * tests/unicase/test-u32-is-lowercase.c: New file.
80659         Tests for module 'unicase/u16-is-lowercase'.
80660         * modules/unicase/u16-is-lowercase-tests: New file.
80661         * tests/unicase/test-u16-is-lowercase.c: New file.
80663         Tests for module 'unicase/u8-is-lowercase'.
80664         * modules/unicase/u8-is-lowercase-tests: New file.
80665         * tests/unicase/test-u8-is-lowercase.c: New file.
80666         * tests/unicase/test-is-lowercase.h: New file.
80668         New module 'unicase/u32-is-lowercase'.
80669         * lib/unicase/u32-is-lowercase.c: New file.
80670         * modules/unicase/u32-is-lowercase: New file.
80672         New module 'unicase/u16-is-lowercase'.
80673         * lib/unicase/u16-is-lowercase.c: New file.
80674         * modules/unicase/u16-is-lowercase: New file.
80676         New module 'unicase/u8-is-lowercase'.
80677         * lib/unicase/u8-is-lowercase.c: New file.
80678         * modules/unicase/u8-is-lowercase: New file.
80680         Tests for module 'unicase/u32-is-uppercase'.
80681         * modules/unicase/u32-is-uppercase-tests: New file.
80682         * tests/unicase/test-u32-is-uppercase.c: New file.
80684         Tests for module 'unicase/u16-is-uppercase'.
80685         * modules/unicase/u16-is-uppercase-tests: New file.
80686         * tests/unicase/test-u16-is-uppercase.c: New file.
80688         Tests for module 'unicase/u8-is-uppercase'.
80689         * modules/unicase/u8-is-uppercase-tests: New file.
80690         * tests/unicase/test-u8-is-uppercase.c: New file.
80691         * tests/unicase/test-is-uppercase.h: New file.
80693         New module 'unicase/u32-is-uppercase'.
80694         * lib/unicase/u32-is-uppercase.c: New file.
80695         * modules/unicase/u32-is-uppercase: New file.
80697         New module 'unicase/u16-is-uppercase'.
80698         * lib/unicase/u16-is-uppercase.c: New file.
80699         * modules/unicase/u16-is-uppercase: New file.
80701         New module 'unicase/u8-is-uppercase'.
80702         * lib/unicase/u8-is-uppercase.c: New file.
80703         * modules/unicase/u8-is-uppercase: New file.
80705         New module 'unicase/u32-is-invariant'.
80706         * lib/unicase/u32-is-invariant.c: New file.
80707         * modules/unicase/u32-is-invariant: New file.
80709         New module 'unicase/u16-is-invariant'.
80710         * lib/unicase/u16-is-invariant.c: New file.
80711         * modules/unicase/u16-is-invariant: New file.
80713         New module 'unicase/u8-is-invariant'.
80714         * lib/unicase/u8-is-invariant.c: New file.
80715         * lib/unicase/invariant.h: New file.
80716         * lib/unicase/u-is-invariant.h: New file.
80717         * modules/unicase/u8-is-invariant: New file.
80719         Tests for module 'unicase/u32-casecoll'.
80720         * modules/unicase/u32-casecoll-tests: New file.
80721         * tests/unicase/test-u32-casecoll.c: New file.
80723         Tests for module 'unicase/u16-casecoll'.
80724         * modules/unicase/u16-casecoll-tests: New file.
80725         * tests/unicase/test-u16-casecoll.c: New file.
80727         Tests for module 'unicase/u8-casecoll'.
80728         * modules/unicase/u8-casecoll-tests: New file.
80729         * tests/unicase/test-u8-casecoll.c: New file.
80731         New module 'unicase/u32-casecoll'.
80732         * lib/unicase/u32-casecoll.c: New file.
80733         * modules/unicase/u32-casecoll: New file.
80735         New module 'unicase/u16-casecoll'.
80736         * lib/unicase/u16-casecoll.c: New file.
80737         * modules/unicase/u16-casecoll: New file.
80739         New module 'unicase/u8-casecoll'.
80740         * lib/unicase/u8-casecoll.c: New file.
80741         * lib/unicase/u-casecoll.h: New file.
80742         * modules/unicase/u8-casecoll: New file.
80744         New module 'unicase/u32-casexfrm'.
80745         * lib/unicase/u32-casexfrm.c: New file.
80746         * modules/unicase/u32-casexfrm: New file.
80748         New module 'unicase/u16-casexfrm'.
80749         * lib/unicase/u16-casexfrm.c: New file.
80750         * modules/unicase/u16-casexfrm: New file.
80752         New module 'unicase/u8-casexfrm'.
80753         * lib/unicase/u8-casexfrm.c: New file.
80754         * lib/unicase/u-casexfrm.h: New file.
80755         * modules/unicase/u8-casexfrm: New file.
80757         Tests for module 'unicase/u32-casecmp'.
80758         * modules/unicase/u32-casecmp-tests: New file.
80759         * tests/unicase/test-u32-casecmp.c: New file.
80761         Tests for module 'unicase/u16-casecmp'.
80762         * modules/unicase/u16-casecmp-tests: New file.
80763         * tests/unicase/test-u16-casecmp.c: New file.
80765         Tests for module 'unicase/u8-casecmp'.
80766         * modules/unicase/u8-casecmp-tests: New file.
80767         * tests/unicase/test-u8-casecmp.c: New file.
80768         * tests/unicase/test-casecmp.h: New file.
80770         New module 'unicase/u32-casecmp'.
80771         * lib/unicase/u32-casecmp.c: New file.
80772         * modules/unicase/u32-casecmp: New file.
80774         New module 'unicase/u16-casecmp'.
80775         * lib/unicase/u16-casecmp.c: New file.
80776         * modules/unicase/u16-casecmp: New file.
80778         New module 'unicase/u8-casecmp'.
80779         * lib/unicase/u8-casecmp.c: New file.
80780         * lib/unicase/u-casecmp.h: New file.
80781         * modules/unicase/u8-casecmp: New file.
80783         Tests for module 'unicase/u32-casefold'.
80784         * modules/unicase/u32-casefold-tests: New file.
80785         * tests/unicase/test-u32-casefold.c: New file.
80787         Tests for module 'unicase/u16-casefold'.
80788         * modules/unicase/u16-casefold-tests: New file.
80789         * tests/unicase/test-u16-casefold.c: New file.
80791         Tests for module 'unicase/u8-casefold'.
80792         * modules/unicase/u8-casefold-tests: New file.
80793         * tests/unicase/test-u8-casefold.c: New file.
80795         New module 'unicase/u32-casefold'.
80796         * lib/unicase/u32-casefold.c: New file.
80797         * modules/unicase/u32-casefold: New file.
80799         New module 'unicase/u16-casefold'.
80800         * lib/unicase/u16-casefold.c: New file.
80801         * modules/unicase/u16-casefold: New file.
80803         New module 'unicase/u8-casefold'.
80804         * lib/unicase/u8-casefold.c: New file.
80805         * lib/unicase/u-casefold.h: New file.
80806         * modules/unicase/u8-casefold: New file.
80808         New module 'unicase/tocasefold'.
80809         * lib/unicase/casefold.h: New file.
80810         * lib/unicase/tocasefold.c: New file.
80811         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
80812         * modules/unicase/tocasefold: New file.
80814         Tests for module 'unicase/u32-totitle'.
80815         * modules/unicase/u32-totitle-tests: New file.
80816         * tests/unicase/test-u32-totitle.c: New file.
80818         Tests for module 'unicase/u16-totitle'.
80819         * modules/unicase/u16-totitle-tests: New file.
80820         * tests/unicase/test-u16-totitle.c: New file.
80822         Tests for module 'unicase/u8-totitle'.
80823         * modules/unicase/u8-totitle-tests: New file.
80824         * tests/unicase/test-u8-totitle.c: New file.
80826         New module 'unicase/u32-totitle'.
80827         * lib/unicase/u32-totitle.c: New file.
80828         * modules/unicase/u32-totitle: New file.
80830         New module 'unicase/u16-totitle'.
80831         * lib/unicase/u16-totitle.c: New file.
80832         * modules/unicase/u16-totitle: New file.
80834         New module 'unicase/u8-totitle'.
80835         * lib/unicase/u8-totitle.c: New file.
80836         * lib/unicase/u-totitle.h: New file.
80837         * modules/unicase/u8-totitle: New file.
80839         Tests for module 'unicase/u32-tolower'.
80840         * modules/unicase/u32-tolower-tests: New file.
80841         * tests/unicase/test-u32-tolower.c: New file.
80843         Tests for module 'unicase/u16-tolower'.
80844         * modules/unicase/u16-tolower-tests: New file.
80845         * tests/unicase/test-u16-tolower.c: New file.
80847         Tests for module 'unicase/u8-tolower'.
80848         * modules/unicase/u8-tolower-tests: New file.
80849         * tests/unicase/test-u8-tolower.c: New file.
80851         New module 'unicase/u32-tolower'.
80852         * lib/unicase/u32-tolower.c: New file.
80853         * modules/unicase/u32-tolower: New file.
80855         New module 'unicase/u16-tolower'.
80856         * lib/unicase/u16-tolower.c: New file.
80857         * modules/unicase/u16-tolower: New file.
80859         New module 'unicase/u8-tolower'.
80860         * lib/unicase/u8-tolower.c: New file.
80861         * modules/unicase/u8-tolower: New file.
80863         Tests for module 'unicase/u32-toupper'.
80864         * modules/unicase/u32-toupper-tests: New file.
80865         * tests/unicase/test-u32-toupper.c: New file.
80867         Tests for module 'unicase/u16-toupper'.
80868         * modules/unicase/u16-toupper-tests: New file.
80869         * tests/unicase/test-u16-toupper.c: New file.
80871         Tests for module 'unicase/u8-toupper'.
80872         * modules/unicase/u8-toupper-tests: New file.
80873         * tests/unicase/test-u8-toupper.c: New file.
80875         New module 'unicase/u32-toupper'.
80876         * lib/unicase/u32-toupper.c: New file.
80877         * modules/unicase/u32-toupper: New file.
80879         New module 'unicase/u16-toupper'.
80880         * lib/unicase/u16-toupper.c: New file.
80881         * modules/unicase/u16-toupper: New file.
80883         New module 'unicase/u8-toupper'.
80884         * lib/unicase/u8-toupper.c: New file.
80885         * modules/unicase/u8-toupper: New file.
80887         New module 'unicase/u32-casemap'.
80888         * lib/unicase/u32-casemap.c: New file.
80889         * modules/unicase/u32-casemap: New file.
80891         New module 'unicase/u16-casemap'.
80892         * lib/unicase/u16-casemap.c: New file.
80893         * modules/unicase/u16-casemap: New file.
80895         New module 'unicase/u8-casemap'.
80896         * lib/unicase/unicasemap.h: New file.
80897         * lib/unicase/u8-casemap.c: New file.
80898         * lib/unicase/u-casemap.h: New file.
80899         * modules/unicase/u8-casemap: New file.
80901         New module 'unicase/special-casing'.
80902         * lib/unicase/special-casing.h: New file.
80903         * lib/unicase/special-casing.c: New file.
80904         * lib/unicase/special-casing-table.gperf: New file, generated by
80905         gen-uni-tables.c.
80906         * modules/unicase/special-casing: New file.
80908         Tests for module 'unicase/locale-language'.
80909         * modules/unicase/locale-language-tests: New file.
80910         * tests/unicase/test-locale-language.sh: New file.
80911         * tests/unicase/test-locale-language.c: New file.
80913         New module 'unicase/locale-language'.
80914         * lib/unicase/locale-language.c: New file.
80915         * lib/unicase/locale-languages.gperf: New file.
80916         * modules/unicase/locale-language: New file.
80918         Generate more tables for case conversion and case folding.
80919         * lib/gen-uni-tables.c (SCC_*): New enum items.
80920         (struct special_casing_rule): New type.
80921         (casing_rules, num_casing_rules, allocated_casing_rules): New
80922         variables.
80923         (add_casing_rule, fill_casing_rules): New functions.
80924         (struct casefold_rule): New type.
80925         (casefolding_rules, num_casefolding_rules,
80926         allocated_casefolding_rules): New variables.
80927         (fill_casefolding_rules): New function.
80928         (unicode_casefold): New variable.
80929         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
80930         sort_casing_rules, output_casing_rules): New functions.
80931         (main): Accept to more arguments: SpecialCasing.txt and
80932         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
80933         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
80934         Output mapping for casefolding.
80936         * lib/unicase.h: Include stdbool.h, uninorm.h.
80937         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
80938         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
80939         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
80940         arguments.
80941         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
80942         resultp arguments.
80943         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
80944         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
80945         resultp arguments.
80946         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
80947         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
80948         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
80949         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
80950         declarations.
80951         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
80953 2009-03-08  Bruno Haible  <bruno@clisp.org>
80955         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
80956         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
80957         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
80958         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
80960 2009-03-07  Bruno Haible  <bruno@clisp.org>
80962         Adjust u*_normcmp, u*_normcoll API.
80963         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
80964         u16_normcoll, u32_normcoll): Change failure conventions.
80965         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
80966         errno and return -1.
80967         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
80969 2009-03-07  Bruno Haible  <bruno@clisp.org>
80971         Tests for module 'uninorm/u32-normcoll'.
80972         * modules/uninorm/u32-normcoll-tests: New file.
80973         * tests/uninorm/test-u32-normcoll.c: New file.
80975         Tests for module 'uninorm/u16-normcoll'.
80976         * modules/uninorm/u16-normcoll-tests: New file.
80977         * tests/uninorm/test-u16-normcoll.c: New file.
80979         Tests for module 'uninorm/u8-normcoll'.
80980         * modules/uninorm/u8-normcoll-tests: New file.
80981         * tests/uninorm/test-u8-normcoll.c: New file.
80983 2009-03-07  Bruno Haible  <bruno@clisp.org>
80985         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
80986         tests/uninorm/test-u32-normcmp.c.
80987         * tests/uninorm/test-u32-normcmp.c: Include it.
80988         (test_nonascii): New function, extracted from main. Add some more
80989         tests.
80990         (main): Invoke test_ascii and test_nonascii.
80991         * modules/uninorm/u32-normcmp-tests (Files): Add
80992         tests/uninorm/test-u32-normcmp.h.
80993         (Depends-on): Remove uninorm/u32-normcmp.
80995         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
80996         tests/uninorm/test-u16-normcmp.c.
80997         * tests/uninorm/test-u16-normcmp.c: Include it.
80998         (test_nonascii): New function, extracted from main. Add some more
80999         tests.
81000         (main): Invoke test_ascii and test_nonascii.
81001         * modules/uninorm/u16-normcmp-tests (Files): Add
81002         tests/uninorm/test-u16-normcmp.h.
81003         (Depends-on): Remove uninorm/u16-normcmp.
81005         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81006         tests/uninorm/test-u8-normcmp.c.
81007         * tests/uninorm/test-u8-normcmp.c: Include it.
81008         (test_nonascii): New function, extracted from main. Add some more
81009         tests.
81010         (main): Invoke test_ascii and test_nonascii.
81011         * modules/uninorm/u8-normcmp-tests (Files): Add
81012         tests/uninorm/test-u8-normcmp.h.
81013         (Depends-on): Remove uninorm/u8-normcmp.
81015 2009-03-07  Bruno Haible  <bruno@clisp.org>
81017         New module 'uninorm/u32-normcoll'.
81018         * lib/uninorm/u32-normcoll.c: New file.
81019         * modules/uninorm/u32-normcoll: New file.
81021         New module 'uninorm/u16-normcoll'.
81022         * lib/uninorm/u16-normcoll.c: New file.
81023         * modules/uninorm/u16-normcoll: New file.
81025         New module 'uninorm/u8-normcoll'.
81026         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81027         declarations.
81028         * lib/uninorm/u8-normcoll.c: New file.
81029         * lib/uninorm/u-normcoll.h: New file.
81030         * modules/uninorm/u8-normcoll: New file.
81032         New module 'uninorm/u32-normxfrm'.
81033         * lib/uninorm/u32-normxfrm.c: New file.
81034         * modules/uninorm/u32-normxfrm: New file.
81036         New module 'uninorm/u16-normxfrm'.
81037         * lib/uninorm/u16-normxfrm.c: New file.
81038         * modules/uninorm/u16-normxfrm: New file.
81040         New module 'uninorm/u8-normxfrm'.
81041         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81042         declarations.
81043         * lib/uninorm/u8-normxfrm.c: New file.
81044         * lib/uninorm/u-normxfrm.h: New file.
81045         * modules/uninorm/u8-normxfrm: New file.
81047 2009-03-07  Bruno Haible  <bruno@clisp.org>
81049         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81050         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81051         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81053 2009-03-07  Bruno Haible  <bruno@clisp.org>
81055         New module 'memxfrm'.
81056         * lib/memxfrm.h: New file.
81057         * lib/memxfrm.c: New file.
81058         * modules/memxfrm: New file.
81060 2009-03-07  Bruno Haible  <bruno@clisp.org>
81062         New module 'memcmp2'.
81063         * lib/memcmp2.h: New file.
81064         * lib/memcmp2.c: New file.
81065         * modules/memcmp2: New file.
81067 2009-03-07  Bruno Haible  <bruno@clisp.org>
81069         Tests for module 'uninorm/decomposing-form'.
81070         * modules/uninorm/decomposing-form-tests: New file.
81071         * tests/uninorm/test-decomposing-form.c: New file.
81073         New module 'uninorm/decomposing-form'.
81074         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81075         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81076         Add 'decomposing_variant' field.
81077         * lib/uninorm/decomposing-form.c: New file.
81078         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81079         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81080         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81081         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81082         * modules/uninorm/decomposing-form: New file.
81083         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81084         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81086 2009-03-07  Bruno Haible  <bruno@clisp.org>
81088         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81089         strings.
81091 2009-03-06  Bruno Haible  <bruno@clisp.org>
81093         Tests for module 'uninorm/u32-normcmp'.
81094         * tests/uninorm/test-u32-normcmp.c: New file.
81095         * modules/uninorm/u32-normcmp-tests: New file.
81097         Tests for module 'uninorm/u16-normcmp'.
81098         * tests/uninorm/test-u16-normcmp.c: New file.
81099         * modules/uninorm/u16-normcmp-tests: New file.
81101         Tests for module 'uninorm/u8-normcmp'.
81102         * tests/uninorm/test-u8-normcmp.c: New file.
81103         * modules/uninorm/u8-normcmp-tests: New file.
81105         New module 'uninorm/u32-normcmp'.
81106         * lib/uninorm/u32-normcmp.c: New file.
81107         * modules/uninorm/u32-normcmp: New file.
81109         New module 'uninorm/u16-normcmp'.
81110         * lib/uninorm/u16-normcmp.c: New file.
81111         * modules/uninorm/u16-normcmp: New file.
81113         New module 'uninorm/u8-normcmp'.
81114         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81115         declarations.
81116         * lib/uninorm/u8-normcmp.c: New file.
81117         * lib/uninorm/u-normcmp.h: New file.
81118         * modules/uninorm/u8-normcmp: New file.
81120 2009-03-06  Bruno Haible  <bruno@clisp.org>
81122         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81123         Reported by Eric Blake.
81125 2009-03-06  Eric Blake  <ebb9@byu.net>
81126             Bruno Haible  <bruno@clisp.org>
81128         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81129         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81130         condition.
81131         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81132         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81133         condition.
81134         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81136 2009-03-06  Eric Blake  <ebb9@byu.net>
81138         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81139         to avoid compiler warnings.
81140         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81142 2009-03-05  Bruno Haible  <bruno@clisp.org>
81144         * tests/test-ftell.c (main): Disable test beyond end of file on
81145         FreeMiNT.
81146         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81148 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81150         * lib/filevercmp.c: Move hidden files up in ordering.
81151         * tests/test-filevercmp.c: Add tests for hidden files.
81153 2009-03-04  Bruno Haible  <bruno@clisp.org>
81155         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81156         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81157         AM_CFLAGS.
81158         Reported by Simon Josefsson.
81160 2009-03-03  Bruno Haible  <bruno@clisp.org>
81162         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81163         Reported by Simon Josefsson.
81165         * doc/ld-version-script.texi: Update node reference.
81167 2009-03-03  Bruno Haible  <bruno@clisp.org>
81169         * modules/visibility (License): Change to 'unlimited'.
81170         Suggested by Simon Josefsson.
81172 2009-03-03  Jim Meyering  <meyering@redhat.com>
81174         unlinkdir: cannot_unlink_dir may modify process state
81175         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81176         it's neither thread-safe nor appropriate for use in a library.
81178 2009-03-03  Eric Blake  <ebb9@byu.net>
81180         test-closein: silence test under Darwin
81181         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81182         care if it dies from EPIPE or EBADF.
81184 2009-03-03  Bruno Haible  <bruno@clisp.org>
81186         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81187         earlier.
81188         * doc/visibility.texi: Fix @node and @section.
81190 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81192         * doc/gnulib.texi: Link to sections for ld version script and
81193         visibility.
81194         * doc/visibility.texi: Add @node and @section.
81195         * modules/ld-version-script: New module.
81196         * m4/ld-version-script.m4: New file.
81197         * doc/ld-version-script.texi: New file.
81199 2009-03-02  David Lutterkort  <lutter@redhat.com>
81201         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81204 2009-03-02  Bruno Haible  <bruno@clisp.org>
81206         * doc/visibility.texi: Mention libtool's -export-symbols option.
81208 2009-03-02  Jim Meyering  <meyering@redhat.com>
81210         announce-gen: new option: --no-print-checksums
81211         * build-aux/announce-gen (usage): Describe it.
81212         (print_checksums): Print a newline here, not in the [*] footnote.
81213         (main): Honor it.
81215 2009-03-01  Bruno Haible  <bruno@clisp.org>
81217         Use socklen_t in the native Windows replacements prototypes.
81218         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81219         instead of 'int'.
81220         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81221         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81222         * modules/getsockopt (Depends-on): Add socklen.
81223         * modules/setsockopt (Depends-on): Add socklen.
81225 2009-03-01  Bruno Haible  <bruno@clisp.org>
81227         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81228         least 4.2.
81230 2009-03-01  Eric Blake  <ebb9@byu.net>
81231             Bruno Haible  <bruno@clisp.org>
81233         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81234         error messages.
81235         * lib/wait-process.c (wait_subprocess): Omit error message about
81236         deadly signal sent to the child of termsigp != NULL.
81238 2009-03-01  Eric Blake  <ebb9@byu.net>
81240         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81242 2009-03-01  Bruno Haible  <bruno@clisp.org>
81244         Avoid a gcc warning.
81245         * tests/test-sched.c (b): Make global.
81246         Reported by Eric Blake.
81248 2009-01-19  Martin Lambers  <marlam@marlam.de>
81250         Provide POSIX semantics for socket timeout options on W32.
81251         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81252         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81253         * modules/setsockopt: Depend on sys_time module for struct timeval.
81254         * modules/getsockopt: Depend on sys_time module for struct timeval.
81256 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81258         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81259         __USE_GNU, for consistency with netdb.in.h.
81260         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81262 2009-03-01  Bruno Haible  <bruno@clisp.org>
81264         More support for FreeMiNT.
81265         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81266         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81268 2009-03-01  Bruno Haible  <bruno@clisp.org>
81270         More support for FreeMiNT.
81271         * lib/fpurge.c (fpurge): Correct last commit.
81272         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81274 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81276         Fix unportable awk script in vc-list-files.
81277         * build-aux/vc-list-files: In the replacement awk script, use
81278         substr with a second argument of 1, not zero.
81279         Report by Simon Josefsson.
81281 2009-02-28  Bruno Haible  <bruno@clisp.org>
81283         More support for FreeMiNT.
81284         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81285         to FreeMiNT today.
81286         * lib/fwriting.c (fwriting): Likewise.
81287         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81289 2009-02-28  Bruno Haible  <bruno@clisp.org>
81291         * tests/test-freadseek.c (main): Disable test beyond end of file on
81292         FreeMiNT.
81293         * tests/test-ftello.c (main): Likewise.
81294         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81296 2009-02-28  Bruno Haible  <bruno@clisp.org>
81298         Add tentative support for FreeMiNT.
81299         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81300         * lib/fpurge.c (fpurge): Likewise.
81301         * lib/freadable.c (freadable): Likewise.
81302         * lib/freading.c (freading): Likewise.
81303         * lib/freadptr.c (freadptr): Likewise.
81304         * lib/freadseek.c (freadptrinc): Likewise.
81305         * lib/fseeko.c (rpl_fseeko): Likewise.
81306         * lib/fseterr.c (fseterr): Likewise.
81307         * lib/fwritable.c (fwritable): Likewise.
81308         * lib/fwriting.c (fwriting): Likewise.
81309         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81310         Hourihane.
81311         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81313 2009-02-28  Bruno Haible  <bruno@clisp.org>
81315         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81316         SIGCHLD.
81317         Reported by Jim Meyering.
81319 2009-02-28  Bruno Haible  <bruno@clisp.org>
81321         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81322         Mention the results of these tests on various platforms.
81323         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81324         order.
81325         * doc/posix-functions/printf.texi: Likewise.
81326         * doc/posix-functions/snprintf.texi: Likewise.
81327         * doc/posix-functions/sprintf.texi: Likewise.
81328         * doc/posix-functions/vfprintf.texi: Likewise.
81329         * doc/posix-functions/vprintf.texi: Likewise.
81330         * doc/posix-functions/vsnprintf.texi: Likewise.
81331         * doc/posix-functions/vsprintf.texi: Likewise.
81332         * doc/glibc-functions/obstack_printf.texi: Likewise.
81333         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81335 2009-02-28  Bruno Haible  <bruno@clisp.org>
81337         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81338         Reported by Loïc Minier <lool@dooz.org>.
81340 2009-02-27  Bruno Haible  <bruno@clisp.org>
81342         * gnulib-tool (func_import): Make the sed expression used to create the
81343         sed script for updating the .gitignore file POSIX compliant.
81344         Reported by Eric Blake.
81346 2009-02-27  Bruno Haible  <bruno@clisp.org>
81348         * gnulib-tool (sed): Don't alias as "sed --posix".
81349         Reported by Eric Blake.
81351 2009-02-27  Bruno Haible  <bruno@clisp.org>
81353         Avoid test link errors.
81354         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81355         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81356         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81357         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81360 2009-02-27  Bruno Haible  <bruno@clisp.org>
81362         Avoid spurious "(cached)" in configure output.
81363         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81364         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81365         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81366         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81367         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81368         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81369         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81370         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81371         Reported by Eric Blake.
81373 2009-02-27  Eric Blake  <ebb9@byu.net>
81375         printf: fix regression in previous patch
81376         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81378 2009-02-27  Bruno Haible  <bruno@clisp.org>
81380         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81381         value.
81382         * lib/stdint.in.h: Likewise.
81383         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81385 2009-02-27  Eric Blake  <ebb9@byu.net>
81387         doc: mention more functions added in cygwin 1.7.0
81388         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81389         addition.
81390         * doc/posix-functions/open_wmemstream.texi: Likewise.
81391         * doc/posix-functions/wcsnlen.texi: Likewise.
81392         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81393         * doc/posix-functions/wcstod.texi: Likewise.
81394         * doc/posix-functions/wcstof.texi: Likewise.
81395         * doc/posix-functions/wcstoimax.texi: Likewise.
81396         * doc/posix-functions/wcstok.texi: Likewise.
81397         * doc/posix-functions/wcstoumax.texi: Likewise.
81399         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81401         * doc/posix-functions/fprintf.texi: Update.
81402         * doc/posix-functions/printf.texi: Update.
81403         * doc/posix-functions/snprintf.texi: Update.
81404         * doc/posix-functions/sprintf.texi: Update.
81405         * doc/posix-functions/vfprintf.texi: Update.
81406         * doc/posix-functions/vprintf.texi: Update.
81407         * doc/posix-functions/vsnprintf.texi: Update.
81408         * doc/posix-functions/vsprintf.texi: Update.
81409         * doc/glibc-functions/obstack_printf.texi: Update.
81410         * doc/glibc-functions/obstack_vprintf.texi: Update.
81412 2009-02-26  Eric Blake  <ebb9@byu.net>
81414         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81415         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81416         compilation bug by using runtime conversion.
81417         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81418         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81419         * modules/ceill-tests (Files): Use nan.h.
81420         * modules/floorl-tests (Files): Likewise.
81421         * modules/frexpl-tests (Files): Likewise.
81422         * modules/isnanl-tests (Files): Likewise.
81423         * modules/ldexpl-tests (Files): Likewise.
81424         * modules/roundl-tests (Files): Likewise.
81425         * modules/truncl-tests (Files): Likewise.
81426         * tests/test-ceill.c (main): Use a working NaN.
81427         * tests/test-floorl.c (main): Likewise.
81428         * tests/test-frexpl.c (main): Likewise.
81429         * tests/test-isnan.c (test_long_double): Likewise.
81430         * tests/test-isnanl.h (main): Likewise.
81431         * tests/test-ldexpl.h (main): Likewise.
81432         * tests/test-roundl.h (main): Likewise.
81433         * tests/test-truncl.h (main): Likewise.
81434         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81436 2009-02-26  Eric Blake  <ebb9@byu.net>
81437             Bruno Haible  <bruno@clisp.org>
81439         Work around a *printf bug with %ls on Solaris.
81440         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81441         precision is specified, sprintf stops converting the wide string
81442         argument when the number of bytes that have been produced by this
81443         conversion equals or exceeds the precision.
81444         * doc/posix-functions/fprintf.texi: Update.
81445         * doc/posix-functions/printf.texi: Update.
81446         * doc/posix-functions/snprintf.texi: Update.
81447         * doc/posix-functions/sprintf.texi: Update.
81448         * doc/posix-functions/vfprintf.texi: Update.
81449         * doc/posix-functions/vprintf.texi: Update.
81450         * doc/posix-functions/vsnprintf.texi: Update.
81451         * doc/posix-functions/vsprintf.texi: Update.
81452         * doc/glibc-functions/obstack_printf.texi: Update.
81453         * doc/glibc-functions/obstack_vprintf.texi: Update.
81455 2009-02-26  Eric Blake  <ebb9@byu.net>
81457         stdlib: favor compiler check of random.h
81458         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81459         to avoid an ObjC random.h installed by Swarm.
81461 2009-02-26  Bruno Haible  <bruno@clisp.org>
81463         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81464         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81465         Reported by Gary V. Vaughan <gary@gnu.org>.
81467 2009-02-26  Bruno Haible  <bruno@clisp.org>
81469         Fix *printf behaviour regarding the %ls directive.
81470         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81471         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81472         NEED_PRINTF_DIRECTIVE_LS.
81473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81474         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81475         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81476         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81477         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81478         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81479         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81481         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81484         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81488         * doc/posix-functions/fprintf.texi: Update.
81489         * doc/posix-functions/printf.texi: Update.
81490         * doc/posix-functions/snprintf.texi: Update.
81491         * doc/posix-functions/sprintf.texi: Update.
81492         * doc/posix-functions/vfprintf.texi: Update.
81493         * doc/posix-functions/vprintf.texi: Update.
81494         * doc/posix-functions/vsnprintf.texi: Update.
81495         * doc/posix-functions/vsprintf.texi: Update.
81496         * doc/glibc-functions/obstack_printf.texi: Update.
81497         * doc/glibc-functions/obstack_vprintf.texi: Update.
81498         Reported by Eric Blake.
81500 2009-02-25  Bruno Haible  <bruno@clisp.org>
81502         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81503         with known value.
81504         Reported by Gary V. Vaughan <gary@gnu.org>.
81506 2009-02-25  Bruno Haible  <bruno@clisp.org>
81508         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81509         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81510         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81511         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81512         Reported by Gary V. Vaughan <gary@gnu.org>.
81514 2009-02-25  Bruno Haible  <bruno@clisp.org>
81516         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81517         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81518         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81519         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81520         Reported by Gary V. Vaughan <gary@gnu.org>.
81522 2009-02-25  Eric Blake  <ebb9@byu.net>
81524         tests: skip fseek/ftell tests if ungetc is broken
81525         * m4/ungetc.m4: New file.
81526         * modules/fseek-tests: Split test, so ungetc dependency is
81527         separate from rest of test.
81528         * modules/fseeko-tests: Likewise.
81529         * modules/ftell-tests: Likewise.
81530         * modules/ftello-tests: Likewise.
81531         * tests/test-fseek.c (main): Isolate ungetc dependency.
81532         * tests/test-fseeko.c (main): Likewise.
81533         * tests/test-ftell.c (main): Likewise.
81534         * tests/test-ftello.c (main): Likewise.
81535         * tests/test-fseek2.sh: New file.
81536         * tests/test-fseeko2.sh: Likewise.
81537         * tests/test-ftell2.sh: Likewise.
81538         * tests/test-ftello2.sh: Likewise.
81540 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81542         test-getaddrinfo: fix usage of skip return code 77
81543         * tests/test-gettaddrinfo.c: Return skip code 77 only
81544         for first occurrence of skip (4x77 is not 77)
81546 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81548         strtod: avoid C99 decl-after-statement
81549         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81551 2009-02-24  Eric Blake  <ebb9@byu.net>
81553         strtod: detect HP-UX 11.31 bug
81554         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81555         Reported by Gary V. Vaughan.
81557 2009-02-23  Bruno Haible  <bruno@clisp.org>
81559         Fix invalid read past end of memory block.
81560         * lib/vasnprintf.c (DCHAR_SET): Define.
81561         (local_wcslen): Define only when needed.
81562         (local_strnlen, local_wcsnlen): New functions.
81563         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81564         directives that involve a conversion ourselves.
81565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81566         wcsnlen, mbrtowc, wcrtomb.
81567         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81568         * tests/test-vasprintf-posix.c (test_function): Likewise.
81569         * tests/test-snprintf-posix.h (test_function): Likewise.
81570         * tests/test-sprintf-posix.h (test_function): Likewise.
81571         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81573 2009-02-22  Bruno Haible  <bruno@clisp.org>
81575         Implement new clarified decomposition of Hangul syllables.
81576         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81577         of type LTV, return only a pairwise decomposition.
81578         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81579         Likewise.
81580         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81581         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81582         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81584 2009-02-22  Bruno Haible  <bruno@clisp.org>
81586         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81587         zero-length results and shrink excess allocated memory.
81588         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81589         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81590         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81591         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81592         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81593         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81594         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81595         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81596         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81597         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81598         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81599         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81601 2009-02-21  Bruno Haible  <bruno@clisp.org>
81603         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81604         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81605         spaces after a period. Put a space between a macro name and its
81606         argument list. Trivial rewordings.
81607         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81608         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81609         (main): Return 0 explicitly.
81611 2009-02-21  Bruno Haible  <bruno@clisp.org>
81613         Tests for module 'uninorm/filter'.
81614         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81615         * modules/uninorm/filter-tests: New file.
81617         New module 'uninorm/filter'.
81618         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81619         uninorm_filter_flush, uninorm_filter_free): New declarations.
81620         * lib/uninorm/uninorm-filter.c: New file.
81621         * modules/uninorm/filter: New file.
81623 2009-02-21  Bruno Haible  <bruno@clisp.org>
81625         Tests for module 'uninorm/nfkc'.
81626         * tests/uninorm/test-nfkc.c: New file.
81627         * tests/uninorm/test-u8-nfkc.c: New file.
81628         * tests/uninorm/test-u16-nfkc.c: New file.
81629         * tests/uninorm/test-u32-nfkc.c: New file.
81630         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81631         * tests/uninorm/test-u32-nfkc-big.c: New file.
81632         * modules/uninorm/nfkc-tests: New file.
81634         New module 'uninorm/nfkc'.
81635         * lib/uninorm/nfkc.c: New file.
81636         * modules/uninorm/nfkc: New file.
81638         Tests for module 'uninorm/nfkd'.
81639         * tests/uninorm/test-nfkd.c: New file.
81640         * tests/uninorm/test-u8-nfkd.c: New file.
81641         * tests/uninorm/test-u16-nfkd.c: New file.
81642         * tests/uninorm/test-u32-nfkd.c: New file.
81643         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81644         * tests/uninorm/test-u32-nfkd-big.c: New file.
81645         * modules/uninorm/nfkd-tests: New file.
81647         New module 'uninorm/nfkd'.
81648         * lib/uninorm/nfkd.c: New file.
81649         * modules/uninorm/nfkd: New file.
81651         Tests for module 'uninorm/nfc'.
81652         * tests/uninorm/test-nfc.c: New file.
81653         * tests/uninorm/test-u8-nfc.c: New file.
81654         * tests/uninorm/test-u16-nfc.c: New file.
81655         * tests/uninorm/test-u32-nfc.c: New file.
81656         * tests/uninorm/test-u32-nfc-big.sh: New file.
81657         * tests/uninorm/test-u32-nfc-big.c: New file.
81658         * modules/uninorm/nfc-tests: New file.
81660         New module 'uninorm/nfc'.
81661         * lib/uninorm/nfc.c: New file.
81662         * modules/uninorm/nfc: New file.
81664         Tests for module 'uninorm/nfd'.
81665         * tests/uninorm/test-nfd.c: New file.
81666         * tests/uninorm/test-u8-nfd.c: New file.
81667         * tests/uninorm/test-u16-nfd.c: New file.
81668         * tests/uninorm/test-u32-nfd.c: New file.
81669         * tests/uninorm/test-u32-nfd-big.sh: New file.
81670         * tests/uninorm/test-u32-nfd-big.c: New file.
81671         * tests/uninorm/test-u32-normalize-big.h: New file.
81672         * tests/uninorm/test-u32-normalize-big.c: New file.
81673         * tests/uninorm/NormalizationTest.txt: New file, created from
81674         Unicode 5.1.0 NormalizationTest.txt.
81675         * modules/uninorm/nfd-tests: New file.
81677         New module 'uninorm/nfd'.
81678         * lib/uninorm/nfd.c: New file.
81679         * modules/uninorm/nfd: New file.
81681         New module 'uninorm/u32-normalize'.
81682         * lib/uninorm/u32-normalize.c: New file.
81683         * modules/uninorm/u32-normalize: New file.
81685         New module 'uninorm/u16-normalize'.
81686         * lib/uninorm/u16-normalize.c: New file.
81687         * modules/uninorm/u16-normalize: New file.
81689         New module 'uninorm/u8-normalize'.
81690         * lib/uninorm/u8-normalize.c: New file.
81691         * lib/uninorm/normalize-internal.h: New file.
81692         * lib/uninorm/u-normalize-internal.h: New file.
81693         * modules/uninorm/u8-normalize: New file.
81695         New module 'uninorm/decompose-internal'.
81696         * lib/uninorm/decompose-internal.c: New file.
81697         * modules/uninorm/decompose-internal: New file.
81699         Tests for module 'uninorm/composition'.
81700         * tests/uninorm/test-composition.c: New file.
81701         * modules/uninorm/composition-tests: New file.
81703         New module 'uninorm/composition'.
81704         * lib/uninorm/composition.c: New file.
81705         * lib/uninorm/composition-table.gperf: New file, generated by
81706         gen-uni-tables.
81707         * modules/uninorm/composition: New file.
81709         Tests for module 'uninorm/compat-decomposition'.
81710         * tests/uninorm/test-compat-decomposition.c: New file.
81711         * modules/uninorm/compat-decomposition-tests: New file.
81713         New module 'uninorm/compat-decomposition'.
81714         * lib/uninorm/decompose-internal.h: New file.
81715         * lib/uninorm/compat-decomposition.c: New file.
81716         * modules/uninorm/compat-decomposition: New file.
81718         Tests for module 'uninorm/canonical-decomposition'.
81719         * tests/uninorm/test-canonical-decomposition.c: New file.
81720         * modules/uninorm/canonical-decomposition-tests: New file.
81722         New module 'uninorm/canonical-decomposition'.
81723         * lib/uninorm/canonical-decomposition.c: New file.
81724         * modules/uninorm/canonical-decomposition: New file.
81726         Tests for module 'uninorm/decomposition'.
81727         * tests/uninorm/test-decomposition.c: New file.
81728         * modules/uninorm/decomposition-tests: New file.
81730         New module 'uninorm/decomposition'.
81731         * lib/uninorm/decomposition.c: New file.
81732         * modules/uninorm/decomposition: New file.
81734         New module 'uninorm/decomposition-table'.
81735         * lib/uninorm/decomposition-table.h: New file.
81736         * lib/uninorm/decomposition-table.c: New file.
81737         * lib/uninorm/decomposition-table1.h: New file, generated by
81738         gen-uni-tables.
81739         * lib/uninorm/decomposition-table2.h: New file, generated by
81740         gen-uni-tables.
81741         * modules/uninorm/decomposition-table: New file.
81743         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
81744         (UC_DECOMP_*): New enumeration items.
81745         (get_decomposition): New function.
81746         (struct decomp_table): New type.
81747         (output_decomposition, output_decomposition_tables): New functions.
81748         (unicode_composition_exclusions): New variable.
81749         (fill_composition_exclusions, debug_output_composition_tables): New
81750         functions.
81751         (main): Accept one more argument. Invoke fill_composition_exclusions.
81752         Output decomposition and composition tables.
81754         New module 'uninorm/base'.
81755         * lib/uninorm.h: New file.
81756         * lib/unictype.h: Update comment.
81757         * modules/uninorm/base: New file.
81759 2009-02-21  David Lutterkort  <lutter@redhat.com>
81761         Tests for module 'safe-alloc'.
81762         * tests/test-safe-alloc.c: New file.
81763         * modules/safe-alloc-tests: New file.
81765         New module 'safe-alloc'.
81766         * lib/safe-alloc.h: New file.
81767         * lib/safe-alloc.c: New file.
81768         * m4/safe-alloc.m4: New file.
81769         * modules/safe-alloc: New file.
81770         * doc/safe-alloc.texi: New file.
81771         * doc/gnulib.texi: Include it.
81772         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
81773         safe-alloc.
81775 2009-02-18  Bruno Haible  <bruno@clisp.org>
81777         Fix link error on non-glibc systems.
81778         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
81779         variable.
81780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81782 2009-02-18  Jim Meyering  <meyering@redhat.com>
81784         fts: avoid used-uninitialized error due to recent change
81785         * lib/fts.c (fts_read): Guard uses of the new member,
81786         parent->fts_n_dirs_remaining, since it's not relevant for
81787         the parent of a directory specified on the command-line.
81789 2009-02-17  James Youngman  <jay@gnu.org>
81790             Bruno Haible  <bruno@clisp.org>
81792         * m4/include_next.m4: Reformulate comment.
81794 2009-02-16  Jim Meyering  <meyering@redhat.com>
81796         fts: add #if guards so that the fts_lgpl module still builds
81797         * lib/fts.c: Guard just-added hash-table-using parts with
81798         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
81799         Reported by Simon Josefsson.
81801 2009-02-15  Bruno Haible  <bruno@clisp.org>
81803         * modules/array-mergesort-tests: New file.
81804         * tests/test-array-mergesort.c: New file.
81806         New module 'array-mergesort'.
81807         * modules/array-mergesort: New file.
81808         * lib/array-mergesort.h: New file.
81810 2009-02-15  Bruno Haible  <bruno@clisp.org>
81812         Fix 2009-02-07 commit.
81813         * lib/gen-uni-tables.c (output_predicate, output_category,
81814         output_combclass, output_bidi_category, output_decimal_digit,
81815         output_digit, output_numeric, output_mirror, output_scripts,
81816         output_ident_category, output_simple_mapping): Fix format directives.
81817         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
81819 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
81821         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
81822         fixes are available from IBM.
81824 2009-02-13  Jim Meyering  <meyering@redhat.com>
81826         fts: arrange not to stat non-directories in more cases
81827         This makes GNU find (when it doesn't need to stat each file)
81828         *much* more efficient at traversing reiserfs file systems.
81829         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
81830         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
81831         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
81832         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
81833         (leaf_optimization_applies): New function.
81834         (LCO_hash, LCO_compare): New helper functions.
81835         (link_count_optimize_ok): New function.
81836         (fts_stat): Initialize new member (if dir).
81837         (fts_read): Decrement parent's fts_n_dirs_remaining count if
81838         we've just stat'ed a directory.  Skip the stat call when possible.
81839         ---
81840         Note this AFS-related exchange:
81841         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
81842         and note find's pioctl call in find/fstype.c.
81843         But that is necessary only if you want to enable the
81844         optimization for AFS, and for now, I don't.
81846         fts: move a function definition "up" (no semantic change)
81847         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
81848         "up" to precede upcoming use of a related function.
81850 2009-02-11  Jim Meyering  <meyering@redhat.com>
81852         fts: correct internal computation of nlinks (optimization-related)
81853         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
81854         whether the current entry is a directory, so don't test it.
81856 2009-02-10  Bruno Haible  <bruno@clisp.org>
81858         Tests for module 'uniwbrk/ulc-wordbreaks'.
81859         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
81860         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
81861         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
81863         Tests for module 'uniwbrk/u32-wordbreaks'.
81864         * modules/uniwbrk/u32-wordbreaks-tests: New file.
81865         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
81867         Tests for module 'uniwbrk/u16-wordbreaks'.
81868         * modules/uniwbrk/u16-wordbreaks-tests: New file.
81869         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
81871         Tests for module 'uniwbrk/u8-wordbreaks'.
81872         * modules/uniwbrk/u8-wordbreaks-tests: New file.
81873         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
81875 2009-02-10  Bruno Haible  <bruno@clisp.org>
81877         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
81878         property.
81879         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
81880         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
81881         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
81883 2009-02-10  Simon Josefsson  <simon@josefsson.org>
81885         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
81886         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
81888 2009-02-10  Bruno Haible  <bruno@clisp.org>
81890         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
81891         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
81892         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
81893         * lib/unilbrk/u8-possible-linebreaks.c: Update.
81894         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
81895         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
81897 2009-02-09  Simon Josefsson  <simon@josefsson.org>
81899         * lib/sockets.h (gl_fd_to_handle): New function.
81901         * tests/test-sockets.c: Call gl_fd_to_handle.
81903 2009-02-09  Bruno Haible  <bruno@clisp.org>
81905         * doc/havelib.texi: Document the conventions on bi-arch systems.
81907 2009-02-08  Bruno Haible  <bruno@clisp.org>
81909         Document the AC_LIB_LINKFLAGS macro.
81910         * doc/havelib.texi: New file, mostly written on 2005-05-24.
81911         * doc/gnulib.texi: Include it.
81913 2009-02-08  Bruno Haible  <bruno@clisp.org>
81915         Fix wrong order of sections, compared to TOC.
81916         * doc/gnulib.texi: Include relocatable-maint.texi after the
81917         "Regular expressions" node, not before.
81919 2009-02-08  Bruno Haible  <bruno@clisp.org>
81921         Tests for module 'unicase/totitle'.
81922         * modules/unicase/totitle-tests: New file.
81924         Tests for module 'unicase/tolower'.
81925         * modules/unicase/tolower-tests: New file.
81927         Tests for module 'unicase/toupper'.
81928         * modules/unicase/toupper-tests: New file.
81929         * tests/unicase/test-mapping-part1.h: New file.
81930         * tests/unicase/test-mapping-part2.h: New file.
81932         New module 'unicase/totitle'.
81933         * modules/unicase/totitle: New file.
81934         * lib/unicase/totitle.c: New file.
81936         New module 'unicase/tolower'.
81937         * modules/unicase/tolower: New file.
81938         * lib/unicase/tolower.c: New file.
81940         New module 'unicase/toupper'.
81941         * modules/unicase/toupper: New file.
81942         * lib/unicase/toupper.c: New file.
81943         * lib/unicase/simple-mapping.h: New file.
81945         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
81946         (mapping_table): New structure.
81947         (output_simple_mapping): New function.
81948         (main): Invoke output_simple_mapping_test and output_simple_mapping.
81949         * modules/gen-uni-tables (Description): Update.
81950         * lib/unicase/toupper.h: New file, automatically generated by
81951         gen-uni-tables.
81952         * lib/unicase/tolower.h: New file, automatically generated by
81953         gen-uni-tables.
81954         * lib/unicase/totitle.h: New file, automatically generated by
81955         gen-uni-tables.
81956         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
81957         gen-uni-tables.
81958         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
81959         gen-uni-tables.
81960         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
81961         gen-uni-tables.
81963         New module 'unicase/base'.
81964         * modules/unicase/base: New file.
81965         * lib/unicase.h: New file.
81967 2009-02-08  Bruno Haible  <bruno@clisp.org>
81969         New module 'uniwbrk/ulc-wordbreaks'.
81970         * modules/uniwbrk/ulc-wordbreaks: New file.
81971         * lib/uniwbrk/ulc-wordbreaks.c: New file.
81973         New module 'uniwbrk/u32-wordbreaks'.
81974         * modules/uniwbrk/u32-wordbreaks: New file.
81975         * lib/uniwbrk/u32-wordbreaks.c: New file.
81977         New module 'uniwbrk/u16-wordbreaks'.
81978         * modules/uniwbrk/u16-wordbreaks: New file.
81979         * lib/uniwbrk/u16-wordbreaks.c: New file.
81981         New module 'uniwbrk/u8-wordbreaks'.
81982         * modules/uniwbrk/u8-wordbreaks: New file.
81983         * lib/uniwbrk/u8-wordbreaks.c: New file.
81984         * lib/uniwbrk/u-wordbreaks.h: New file.
81986         New module 'uniwbrk/table'.
81987         * modules/uniwbrk/table: New file.
81988         * lib/uniwbrk/wbrktable.h: New file.
81989         * lib/uniwbrk/wbrktable.c: New file.
81991         New module 'uniwbrk/wordbreak-property'.
81992         * modules/uniwbrk/wordbreak-property: New file.
81993         * lib/uniwbrk/wordbreak-property.c: New file.
81995         * lib/gen-uni-tables.c (WBP_*): New enum items.
81996         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
81997         (unicode_org_wbp): New variable.
81998         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
81999         New functions.
82000         (wbp_table): New structure.
82001         (output_wbp, output_wbrk_tables): New functions.
82002         (main): Accept additional argument. Invoke fill_org_wbp,
82003         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82004         output_wbrk_tables.
82005         * modules/gen-uni-tables (Description): Update.
82006         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82007         gen-uni-tables.
82009         New module 'uniwbrk/base'.
82010         * modules/uniwbrk/base: New file.
82011         * lib/uniwbrk.h: New file.
82013 2009-02-08  Bruno Haible  <bruno@clisp.org>
82015         Update to Unicode 5.1.0.
82016         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82017         U+2185..U+2188.
82018         (is_property_default_ignorable_code_point): Don't include characters
82019         of category Cc or Cs and not-a-characters.
82020         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82021         U+0D79, U+109E, U+109F, U+A60C.
82022         * lib/unictype/bidi_of.h: Regenerated.
82023         * lib/unictype/blocks.h: Regenerated.
82024         * lib/unictype/categ_C.h: Regenerated.
82025         * lib/unictype/categ_Cf.h: Regenerated.
82026         * lib/unictype/categ_Cn.h: Regenerated.
82027         * lib/unictype/categ_L.h: Regenerated.
82028         * lib/unictype/categ_Ll.h: Regenerated.
82029         * lib/unictype/categ_Lm.h: Regenerated.
82030         * lib/unictype/categ_Lo.h: Regenerated.
82031         * lib/unictype/categ_Lu.h: Regenerated.
82032         * lib/unictype/categ_M.h: Regenerated.
82033         * lib/unictype/categ_Mc.h: Regenerated.
82034         * lib/unictype/categ_Me.h: Regenerated.
82035         * lib/unictype/categ_Mn.h: Regenerated.
82036         * lib/unictype/categ_N.h: Regenerated.
82037         * lib/unictype/categ_Nd.h: Regenerated.
82038         * lib/unictype/categ_Nl.h: Regenerated.
82039         * lib/unictype/categ_No.h: Regenerated.
82040         * lib/unictype/categ_P.h: Regenerated.
82041         * lib/unictype/categ_Pd.h: Regenerated.
82042         * lib/unictype/categ_Pe.h: Regenerated.
82043         * lib/unictype/categ_Pf.h: Regenerated.
82044         * lib/unictype/categ_Pi.h: Regenerated.
82045         * lib/unictype/categ_Po.h: Regenerated.
82046         * lib/unictype/categ_Ps.h: Regenerated.
82047         * lib/unictype/categ_S.h: Regenerated.
82048         * lib/unictype/categ_Sk.h: Regenerated.
82049         * lib/unictype/categ_Sm.h: Regenerated.
82050         * lib/unictype/categ_So.h: Regenerated.
82051         * lib/unictype/categ_of.h: Regenerated.
82052         * lib/unictype/combining.h: Regenerated.
82053         * lib/unictype/ctype_alnum.h: Regenerated.
82054         * lib/unictype/ctype_alpha.h: Regenerated.
82055         * lib/unictype/ctype_graph.h: Regenerated.
82056         * lib/unictype/ctype_lower.h: Regenerated.
82057         * lib/unictype/ctype_print.h: Regenerated.
82058         * lib/unictype/ctype_punct.h: Regenerated.
82059         * lib/unictype/ctype_upper.h: Regenerated.
82060         * lib/unictype/decdigit.h: Regenerated.
82061         * lib/unictype/digit.h: Regenerated.
82062         * lib/unictype/mirror.h: Regenerated.
82063         * lib/unictype/numeric.h: Regenerated.
82064         * lib/unictype/pr_alphabetic.h: Regenerated.
82065         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82066         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82067         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82068         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82069         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82070         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82071         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82072         * lib/unictype/pr_combining.h: Regenerated.
82073         * lib/unictype/pr_dash.h: Regenerated.
82074         * lib/unictype/pr_decimal_digit.h: Regenerated.
82075         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82076         * lib/unictype/pr_deprecated.h: Regenerated.
82077         * lib/unictype/pr_diacritic.h: Regenerated.
82078         * lib/unictype/pr_extender.h: Regenerated.
82079         * lib/unictype/pr_format_control.h: Regenerated.
82080         * lib/unictype/pr_grapheme_base.h: Regenerated.
82081         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82082         * lib/unictype/pr_grapheme_link.h: Regenerated.
82083         * lib/unictype/pr_id_continue.h: Regenerated.
82084         * lib/unictype/pr_id_start.h: Regenerated.
82085         * lib/unictype/pr_ideographic.h: Regenerated.
82086         * lib/unictype/pr_ignorable_control.h: Regenerated.
82087         * lib/unictype/pr_lowercase.h: Regenerated.
82088         * lib/unictype/pr_math.h: Regenerated.
82089         * lib/unictype/pr_numeric.h: Regenerated.
82090         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82091         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82092         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82093         * lib/unictype/pr_other_id_continue.h: Regenerated.
82094         * lib/unictype/pr_other_lowercase.h: Regenerated.
82095         * lib/unictype/pr_other_math.h: Regenerated.
82096         * lib/unictype/pr_punctuation.h: Regenerated.
82097         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82098         * lib/unictype/pr_soft_dotted.h: Regenerated.
82099         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82100         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82101         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82102         * lib/unictype/pr_uppercase.h: Regenerated.
82103         * lib/unictype/pr_xid_continue.h: Regenerated.
82104         * lib/unictype/pr_xid_start.h: Regenerated.
82105         * lib/unictype/pr_zero_width.h: Regenerated.
82106         * lib/unictype/scripts.h: Regenerated.
82107         * lib/unictype/scripts_byname.gperf: Regenerated.
82108         * lib/unictype/sy_java_ident.h: Regenerated.
82109         * lib/unilbrk/lbrkprop1.h: Regenerated.
82110         * lib/unilbrk/lbrkprop2.h: Regenerated.
82111         * tests/unictype/test-categ_C.c: Regenerated.
82112         * tests/unictype/test-categ_Cf.c: Regenerated.
82113         * tests/unictype/test-categ_Cn.c: Regenerated.
82114         * tests/unictype/test-categ_L.c: Regenerated.
82115         * tests/unictype/test-categ_Ll.c: Regenerated.
82116         * tests/unictype/test-categ_Lm.c: Regenerated.
82117         * tests/unictype/test-categ_Lo.c: Regenerated.
82118         * tests/unictype/test-categ_Lu.c: Regenerated.
82119         * tests/unictype/test-categ_M.c: Regenerated.
82120         * tests/unictype/test-categ_Mc.c: Regenerated.
82121         * tests/unictype/test-categ_Me.c: Regenerated.
82122         * tests/unictype/test-categ_Mn.c: Regenerated.
82123         * tests/unictype/test-categ_N.c: Regenerated.
82124         * tests/unictype/test-categ_Nd.c: Regenerated.
82125         * tests/unictype/test-categ_Nl.c: Regenerated.
82126         * tests/unictype/test-categ_No.c: Regenerated.
82127         * tests/unictype/test-categ_P.c: Regenerated.
82128         * tests/unictype/test-categ_Pd.c: Regenerated.
82129         * tests/unictype/test-categ_Pe.c: Regenerated.
82130         * tests/unictype/test-categ_Pf.c: Regenerated.
82131         * tests/unictype/test-categ_Pi.c: Regenerated.
82132         * tests/unictype/test-categ_Po.c: Regenerated.
82133         * tests/unictype/test-categ_Ps.c: Regenerated.
82134         * tests/unictype/test-categ_S.c: Regenerated.
82135         * tests/unictype/test-categ_Sk.c: Regenerated.
82136         * tests/unictype/test-categ_Sm.c: Regenerated.
82137         * tests/unictype/test-categ_So.c: Regenerated.
82138         * tests/unictype/test-ctype_alnum.c: Regenerated.
82139         * tests/unictype/test-ctype_alpha.c: Regenerated.
82140         * tests/unictype/test-ctype_graph.c: Regenerated.
82141         * tests/unictype/test-ctype_lower.c: Regenerated.
82142         * tests/unictype/test-ctype_print.c: Regenerated.
82143         * tests/unictype/test-ctype_punct.c: Regenerated.
82144         * tests/unictype/test-ctype_upper.c: Regenerated.
82145         * tests/unictype/test-decdigit.h: Regenerated.
82146         * tests/unictype/test-digit.h: Regenerated.
82147         * tests/unictype/test-numeric.h: Regenerated.
82148         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82149         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82150         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82151         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82152         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82153         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82154         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82155         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82156         * tests/unictype/test-pr_combining.c: Regenerated.
82157         * tests/unictype/test-pr_dash.c: Regenerated.
82158         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82159         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82160         * tests/unictype/test-pr_deprecated.c: Regenerated.
82161         * tests/unictype/test-pr_diacritic.c: Regenerated.
82162         * tests/unictype/test-pr_extender.c: Regenerated.
82163         * tests/unictype/test-pr_format_control.c: Regenerated.
82164         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82165         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82166         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82167         * tests/unictype/test-pr_id_continue.c: Regenerated.
82168         * tests/unictype/test-pr_id_start.c: Regenerated.
82169         * tests/unictype/test-pr_ideographic.c: Regenerated.
82170         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82171         * tests/unictype/test-pr_lowercase.c: Regenerated.
82172         * tests/unictype/test-pr_math.c: Regenerated.
82173         * tests/unictype/test-pr_numeric.c: Regenerated.
82174         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82175         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82176         Regenerated.
82177         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82178         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82179         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82180         * tests/unictype/test-pr_other_math.c: Regenerated.
82181         * tests/unictype/test-pr_punctuation.c: Regenerated.
82182         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82183         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82184         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82185         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82186         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82187         * tests/unictype/test-pr_uppercase.c: Regenerated.
82188         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82189         * tests/unictype/test-pr_xid_start.c: Regenerated.
82190         * tests/unictype/test-pr_zero_width.c: Regenerated.
82192         Update to Unicode 5.1.0.
82193         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82194         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82195         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82196         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82197         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82198         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82199         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82200         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82201         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82202         (nonspacing_table_ind): Update.
82203         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82205         Update to Unicode 5.1.0.
82206         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82207         code transform.
82208         * lib/uniname/uniname.c (unicode_character_name,
82209         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82210         * lib/uniname/uninames.h: Regenerated.
82211         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82213 2009-02-07  Bruno Haible  <bruno@clisp.org>
82215         Merge gen-ctype and gen-lbrk into a single program.
82216         * lib/gen-uni-tables.c: New file, incorporating
82217         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82218         Add directory prefixes to the names of the generated files.
82219         * lib/unictype/gen-ctype.c: Remove file.
82220         * lib/unilbrk/gen-lbrk.c: Remove file.
82221         * modules/gen-uni-tables: New file.
82222         * modules/unictype/gen-ctype: Remove file.
82223         * modules/unilbrk/gen-lbrk: Remove file.
82225 2009-02-07  Bruno Haible  <bruno@clisp.org>
82227         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82229         New module 'unistr/u32-strcoll'.
82230         * modules/unistr/u32-strcoll: New file.
82231         * lib/unistr/u32-strcoll.c: New file.
82233         New module 'unistr/u16-strcoll'.
82234         * modules/unistr/u16-strcoll: New file.
82235         * lib/unistr/u16-strcoll.c: New file.
82237         New module 'unistr/u8-strcoll'.
82238         * modules/unistr/u8-strcoll: New file.
82239         * lib/unistr/u8-strcoll.c: New file.
82240         * lib/unistr/u-strcoll.h: New file.
82242 2009-02-07  Bruno Haible  <bruno@clisp.org>
82244         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82245         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82246         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82247         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82248         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82249         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82251 2009-02-07  Bruno Haible  <bruno@clisp.org>
82253         Make 64-bit clean.
82254         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82255         output_combclass, output_bidi_category, output_decimal_digit,
82256         output_digit, output_numeric, output_mirror, output_scripts,
82257         output_ident_category): Use proper width specifier in format strings.
82259 2009-02-07  Bruno Haible  <bruno@clisp.org>
82261         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82262         failure behaviour.
82264 2009-02-07  Jim Meyering  <meyering@redhat.com>
82266         regex: avoid compilation failure with upcoming gcc-4.4
82267         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82268         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82269         "... error: integer overflow in preprocessor expression".
82271 2009-02-05  Ben Pfaff  <blp@gnu.org>
82273         Fix link errors on Windows when close module is used.
82274         * modules/close: Add $(LIB_CLOSE) to Link section.
82275         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82276         $(LIB_CLOSE) on Windows.
82278 2009-02-05  Jim Meyering  <meyering@redhat.com>
82280         still avoid unused-parameter warnings, but do it cleanly
82281         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82282         (get_fs_usage): Cast to void instead.
82283         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82284         (dev_from_mount_options, read_file_system_list): Cast to void.
82285         Prompted by Bruno Haible.
82287 2009-02-04  Jim Meyering  <meyering@redhat.com>
82289         fsusage.c: correct copyright year
82290         * lib/fsusage.c: Reflect year in which the change is pushed into
82292         avoid misc. warnings
82293         * lib/fsusage.c (UNUSED_PARAM): Define.
82294         (get_fs_usage): Mark parameter "disk" as unused.
82295         * lib/getugroups.c (getgrent): Use "void" in prototype.
82296         * lib/mountlist.c: Mark unused parameters.
82297         (read_file_system_list): Declare a local with "const".
82298         * lib/nanosleep.c (getnow): Declare static.
82299         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82301         dirfd: set errno upon failure
82302         * lib/dirfd.c: Include <errno.h>.
82303         Set errno to ENOTSUP when returning -1.
82304         * modules/dirfd (Depends-on): Add errno.
82305         Suggested by John Kodis <kodis@comcast.net>.
82307 2009-02-01  Bruno Haible  <bruno@clisp.org>
82309         Don't assume sizeof (long) >= sizeof (void *).
82310         * lib/memcmp.c: Include stdint.h.
82311         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82312         srcp2 to 'const byte *'.
82313         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82314         types to uintptr_t.
82315         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82316         * modules/memcmp (Depends-on): Add stdint.
82317         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82319 2009-01-30  Eric Blake  <ebb9@byu.net>
82321         fix more require-before-expand issues
82322         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82323         expand, AC_PROG_AWK.
82324         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82326 2009-01-28  Eric Blake  <ebb9@byu.net>
82328         version-etc: use consistent URL formatting
82329         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82330         Improve formatting.  Use fputs for string without %.
82332 2009-01-28  Jim Meyering  <meyering@redhat.com>
82334         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82335         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82336         "underquoted definition of NAME" from autoconf-2.59.
82338 2009-01-28  Bruno Haible  <bruno@clisp.org>
82340         * doc/gnulib.texi: Add "Obsolete modules" to index.
82342 2009-01-28  Jim Meyering  <meyering@redhat.com>
82344         useless-if-before-free: recognize more variants
82345         * build-aux/useless-if-before-free: Also recognize e.g.,
82346         if (NULL != p) free (p);
82348 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82350         test-getaddrinfo: skip (don't fail) this test when there's no network
82351         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82352         on the presumption that it means you lack network access.
82354 2009-01-26  Jim Meyering  <meyering@redhat.com>
82356         fflush: avoid warnings on modern systems
82357         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82358         pos and result, into scopes where they're used.
82360 2009-01-26  Eric Blake  <ebb9@byu.net>
82362         Silence warning reintroduced by recent extensions patch.
82363         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82364         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82365         autoconf.
82367         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82368         * m4/00gnulib.m4: New file.
82369         * gnulib-tool (func_get_filelist): Always use it.
82370         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82371         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82373 2009-01-25  Bruno Haible  <bruno@clisp.org>
82375         Make test-quotearg work on MacOS X and AIX.
82376         * tests/test-quotearg.sh: New file.
82377         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82378         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82379         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82380         include <libintl.h>.
82381         (fake_locale): Remove variable.
82382         (gettext, dgettext, dcgettext): Remove functions.
82383         (main): Instead of setting a fake locale, set a real locale. Call
82384         textdomain and bindtextdomain.
82385         * modules/quotearg-tests (Files): Add the new files.
82386         (Depends-on): Add gettext, setenv, unsetenv.
82387         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82388         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82389         Augment TESTS_ENVIRONMENT.
82391 2009-01-25  Bruno Haible  <bruno@clisp.org>
82393         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82394         fr_FR.ISO8859-1 locale on MacOS X.
82395         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82396         ja_JP.eucJP locale on MacOS X.
82397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82398         zh_CN.GB18030 locale on MacOS X.
82400 2009-01-25  Bruno Haible  <bruno@clisp.org>
82402         Avoid link errors on MacOS X 10.3.
82403         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82404         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82406 2009-01-25  Bruno Haible  <bruno@clisp.org>
82408         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82409         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82410         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82411         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82412         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82413         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82414         posix_spawnattr_init, posix_spawnattr_setsigmask,
82415         posix_spawnattr_setflags, posix_spawnattr_destroy.
82417         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82418         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82419         * modules/execute (Files): Remove m4/posix_spawn.m4.
82420         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82421         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82422         posix_spawnattr_init, posix_spawnattr_setsigmask,
82423         posix_spawnattr_setflags, posix_spawnattr_destroy.
82425 2009-01-25  Bruno Haible  <bruno@clisp.org>
82427         * lib/glthread/threadlib.c: Include <stdlib.h>.
82429 2009-01-25  Bruno Haible  <bruno@clisp.org>
82431         * lib/glthread/threadlib.c (dummy): New declaration.
82433 2009-01-25  Bruno Haible  <bruno@clisp.org>
82435         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82436         multibyte characters also for the GB18030 encoding. Don't crash when
82437         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82439 2009-01-25  Bruno Haible  <bruno@clisp.org>
82441         Avoid redefining 'struct random_data' on OSF/1 5.1.
82442         * lib/stdlib.in.h: Include <random.h> if it exists.
82443         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82444         HAVE_RANDOM_H. Include <random.h> when testing whether
82445         'struct random_data' exists.
82446         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82448 2009-01-25  Bruno Haible  <bruno@clisp.org>
82450         Don't install charset.alias on MacOS X >= 10.3.
82451         * lib/localcharset.c (DARWIN7): New macro.
82452         (get_charset_aliases): Hardcode the result for Darwin7.
82453         * modules/localcharset (install-exec-local): Don't install
82454         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82456 2009-01-25  Bruno Haible  <bruno@clisp.org>
82458         Don't install charset.alias on mingw and Cygwin.
82459         * modules/localcharset (install-exec-local): Don't install
82460         charset.alias on mingw and Cygwin, if the file does not yet exist.
82461         The result for these platforms is hardcoded in localcharset.c.
82463 2009-01-25  Bruno Haible  <bruno@clisp.org>
82465         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82467         before requiring AC_USE_SYSTEM_EXTENSIONS.
82469 2009-01-25  Jim Meyering  <meyering@redhat.com>
82471         c-strtod: avoid warnings
82472         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82473         "assignment discards qualifiers from pointer target type" warnings.
82475 2009-01-24  Bruno Haible  <bruno@clisp.org>
82477         Add support for non-UTF-8 locales on MacOS X.
82478         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82479         canonical encodings. For Darwin 7 and newer, don't map traditional
82480         encodings to UTF-8.
82481         Reported by Vincent Lefevre <vincent@vinc17.org>
82482         at <http://savannah.gnu.org/bugs/?25235>.
82484 2009-01-24  Bruno Haible  <bruno@clisp.org>
82486         * doc/gnulib.texi (Obsolete modules): New section.
82487         Reported by Mike Frysinger <vapier@gentoo.org>.
82489 2009-01-24  Bruno Haible  <bruno@clisp.org>
82491         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82492         (%.dvi): New rule.
82494 2009-01-24  Bruno Haible  <bruno@clisp.org>
82496         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82497         Reported by Eric Blake.
82499 2009-01-24  Bruno Haible  <bruno@clisp.org>
82501         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82502         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82503         Reported by Gary V. Vaughan <gary@gnu.org>.
82505 2009-01-24  Bruno Haible  <bruno@clisp.org>
82507         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82509 2009-01-23  Bruno Haible  <bruno@clisp.org>
82511         Make c-strtod, c-strtold usable in libraries.
82512         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82513         (C_STRTOD): Call strdup instead of xstrdup.
82514         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82515         * modules/c-strtold (Depends-on): Likewise.
82516         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82517         * NEWS: Mention the change.
82518         Reported by Michael Gold <mgold@ncf.ca>.
82520 2009-01-23  Jim Meyering  <meyering@redhat.com>
82522         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82523         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82524         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82526 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82528         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82529         GNU CoreUtils.
82530         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82531         * modules/version-etc (Description): Update.
82533 2009-01-22  Bruno Haible  <bruno@clisp.org>
82535         Cache the C locale object.
82536         * lib/c-strtod.c (c_locale_cache): New variable.
82537         (c_locale): New function.
82538         (C_STRTOD): Use it, and don't call freelocale.
82539         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82540         Suggested by Paolo Bonzini.
82542 2009-01-21  Bruno Haible  <bruno@clisp.org>
82544         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82545         conditions other than overflow.
82547 2009-01-21  Bruno Haible  <bruno@clisp.org>
82549         * lib/c-strtod.c: Include errno.h.
82550         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82551         value from STRTOD_L and STRTOD.
82553 2009-01-21  Bruno Haible  <bruno@clisp.org>
82554         and Jim Meyering  <meyering@redhat.com>
82556         nanosleep: skip configure test (fail it) for apple universal builds
82557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82558         universal builds, assume that nanosleep does not work.
82559         * modules/nanosleep (Depends-on): Add multiarch.
82561         mktime: skip configure test (fail it) for apple universal builds
82562         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82563         universal builds, assume that mktime does not work.
82564         * modules/mktime (Depends-on): Add multiarch.
82566 2009-01-21  Eric Blake  <ebb9@byu.net>
82568         multiarch: avoid expand-before-require warning
82569         * modules/multiarch (configure.ac): Require, rather than expand,
82570         gl_MULTIARCH.
82571         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82572         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82573         enforce that all clients require it.  Partial reversion of
82574         2008-12-29 patch.
82576         error: avoid expand-before-require warning
82577         * modules/errno (configure.ac): Require, rather than expand,
82578         gl_HEADER_ERRNO_H.
82579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82580         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82581         enforce that all clients require it.
82583         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82584         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82585         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82586         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82588 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82590         Revert:
82591         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82593         regex: do not depend on obsolete modules.
82594         * modules/regex: Remove memcmp and memmove.
82596 2009-01-20  Bruno Haible  <bruno@clisp.org>
82598         Make the 'link' module link on Windows NT 4.
82599         * lib/link.c (_WIN32_WINNT): Don't define.
82600         (CreateHardLinkFuncType): New type.
82601         (CreateHardLinkFunc, initialized): New variables.
82602         (initialize): New function.
82603         (link): Invoke CreateHardLink indirectly through the function pointer.
82605 2009-01-20  Bruno Haible  <bruno@clisp.org>
82607         Fix compilation failure on mingw.
82608         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82610 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82612         * doc/c-strtod.texi: Mention a couple of restrictions.
82614 2009-01-20  Jim Meyering  <meyering@redhat.com>
82616         gettimeofday: move more declarations out of functions
82617         * lib/gettimeofday.c: Move extern declarations of tzset and
82618         gmtime out of containing functions.  Prompted by Bruno Haible.
82620 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82622         regex: do not depend on obsolete modules.
82623         * modules/regex: Remove memcmp and memmove.
82625 2009-01-19  Bruno Haible  <bruno@clisp.org>
82627         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82628         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82629         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82630         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82631         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82633 2009-01-19  Bruno Haible  <bruno@clisp.org>
82635         * tests/test-link.c: Include <errno.h>.
82636         (main): Exit with code 77 when a hard link cannot be created due to
82637         the file system.
82638         * tests/test-link.sh: Skip test when a hard link cannot be created due
82639         to the file system.
82640         Suggested by Eric Blake.
82642 2009-01-19  Martin Lambers  <marlam@marlam.de>
82644         * modules/link-tests: New file.
82645         * tests/test-link.sh: New file.
82646         * tests/test-link.c: New file.
82648 2009-01-19  Eric Blake  <ebb9@byu.net>
82650         doc: mention another function added in cygwin 1.7.0
82651         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82652         Another new function in cygwin 1.7.
82654 2009-01-19  Bruno Haible  <bruno@clisp.org>
82656         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82657         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82658         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82659         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82660         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82661         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82662         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82663         * m4/md4.m4 (gl_MD4): Likewise.
82664         * m4/md5.m4 (gl_MD5): Likewise.
82665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82666         * m4/sha1.m4 (gl_SHA1): Likewise.
82667         * m4/sha256.m4 (gl_SHA256): Likewise.
82668         * m4/sha512.m4 (gl_SHA512): Likewise.
82670 2009-01-19  Bruno Haible  <bruno@clisp.org>
82672         * modules/uniname/uniname-tests (Depends-on): Add progname.
82673         * tests/uniname/test-uninames.c: Include progname.h.
82674         (main): Call set_program_name.
82676         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82677         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82678         (main): Call set_program_name.
82680         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82681         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82682         (main): Call set_program_name.
82684         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82685         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82686         (main): Call set_program_name.
82688         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82689         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82690         (main): Call set_program_name.
82692         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82693         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82694         (main): Call set_program_name.
82696         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82697         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82698         (main): Call set_program_name.
82700         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82701         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82702         (main): Call set_program_name.
82704         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82705         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82706         (main): Call set_program_name.
82708 2009-01-19  Eric Blake  <ebb9@byu.net>
82710         test-unistd: test previous patch
82711         * tests/test-unistd.c: Test *_FILENO macros.
82713         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82714         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82715         Guarantee a definition.
82716         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82717         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82718         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82719         * lib/dup-safer.c (STDERR_FILENO): Likewise.
82720         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82721         Likewise.
82722         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
82723         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
82724         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82725         Likewise.
82726         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
82727         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
82728         (STDERR_FILENO): Likewise.
82729         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
82730         (STDERR_FILENO): Likewise.
82731         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
82732         (STDERR_FILENO): Likewise.
82733         Reported by Elbert Pol.
82735 2009-01-19  Eric Blake  <ebb9@byu.net>
82737         doc: mention more functions added in cygwin 1.7.0
82738         * doc/posix-functions/abort.texi (abort): Update wording related
82739         to cygwin.
82740         * doc/posix-functions/daylight.texi (daylight): Likewise.
82741         * doc/posix-functions/optarg.texi (optarg): Likewise.
82742         * doc/posix-functions/optarg.texi (opterr): Likewise.
82743         * doc/posix-functions/optarg.texi (optind): Likewise.
82744         * doc/posix-functions/optarg.texi (optopt): Likewise.
82745         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
82746         worked in 1.5.x, and was withdrawn in 1.7.
82747         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
82748         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
82749         cygwin versions.
82750         * doc/posix-functions/perror.texi (perror): Likewise.
82751         * doc/posix-functions/printf.texi (printf): Likewise.
82752         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
82753         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
82754         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
82755         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
82756         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82757         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
82758         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82759         Likewise.
82760         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82761         Likewise.
82762         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
82763         this function.
82764         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
82765         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
82766         Likewise.
82767         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
82768         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
82769         * doc/posix-functions/confstr.texi (confstr): Likewise.
82770         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
82771         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
82772         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
82773         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
82774         * doc/posix-functions/fputws.texi (fputws): Likewise.
82775         * doc/posix-functions/fwide.texi (fwide): Likewise.
82776         * doc/posix-functions/getwc.texi (getwc): Likewise.
82777         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
82778         * doc/posix-functions/putwc.texi (putwc): Likewise.
82779         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
82780         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
82781         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
82782         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
82783         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
82784         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
82785         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
82786         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
82787         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
82788         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
82789         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
82791 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82793         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
82794         * lib/ioctl.c: Include <sys/ioctl.h>.
82796 2009-01-19  Simon Josefsson  <simon@josefsson.org>
82798         * modules/getdate-tests (Depends-on): Add progname.
82799         * tests/test-getdate.c: Use progname module, to avoid link errors
82800         on non-glibc systems.
82802 2009-01-18  Simon Josefsson  <simon@josefsson.org>
82804         * modules/filenamecat-tests (Depends-on): Add progname.
82805         * modules/fstrcmp-tests (Depends-on): Likewise.
82807         * tests/test-filenamecat.c: Use progname module, to avoid link
82808         errors on non-glibc systems.
82809         * tests/test-fstrcmp.c: Likewise.
82811 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82813         gettimeofday: avoid warning: nested extern declaration of 'localtime'
82814         * lib/gettimeofday.c: Move extern declaration out of function.
82816 2009-01-18  Bruno Haible  <bruno@clisp.org>
82818         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
82819         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
82820         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
82822 2009-01-18  Bruno Haible  <bruno@clisp.org>
82824         * lib/strftime.c (MEMPCPY): Remove unused macro.
82825         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
82827 2009-01-18  Martin Lambers  <marlam@marlam.de>
82829         New module 'link'.
82830         * lib/unistd.in.h (link): New declaration.
82831         * lib/link.c: New file.
82832         * m4/link.m4: New file.
82833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
82834         HAVE_LINK.
82835         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
82836         * modules/link: New file.
82837         * doc/posix-functions/link.texi: Mention the new module.
82839 2009-01-18  Bruno Haible  <bruno@clisp.org>
82841         * tests/test-avltree_list.c (main): Call set_program_name.
82842         * tests/test-avltree_oset.c (main): Likewise.
82843         * tests/test-obstack-printf.c: Include progname.h.
82844         (main): Call set_program_name.
82845         * tests/test-quotearg.c: Include progname.h.
82846         (main): Call set_program_name.
82847         * tests/test-xmemdup0.c: Include progname.h.
82848         (main): Call set_program_name.
82850 2009-01-18  Bruno Haible  <bruno@clisp.org>
82852         New module 'alphasort'.
82853         * lib/dirent.in.h (alphasort): New declaration.
82854         * lib/alphasort.c: New file, from glibc with modifications.
82855         * m4/alphasort.m4: New file.
82856         * modules/alphasort: New file.
82857         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
82858         HAVE_ALPHASORT.
82859         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
82860         HAVE_ALPHASORT.
82861         * doc/posix-functions/alphasort.texi: Mention the new module and the
82862         portability problems.
82864 2009-01-18  Bruno Haible  <bruno@clisp.org>
82866         New module 'scandir'.
82867         * lib/dirent.in.h (scandir): New declaration.
82868         * lib/scandir.c: New file, from glibc with modifications.
82869         * m4/scandir.m4: New file.
82870         * modules/scandir: New file.
82871         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
82872         HAVE_SCANDIR.
82873         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
82874         HAVE_SCANDIR.
82875         * doc/posix-functions/scandir.texi: Mention the new module and the
82876         portability problems.
82878 2009-01-17  Bruno Haible  <bruno@clisp.org>
82880         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
82881         Update documentation.
82882         (func_remove_suffix): Escape all dots in the suffix. Update
82883         documentation.
82884         (func_filter_filelist): Update documentation.
82885         Reported by Ralf Wildenhues.
82887 2009-01-17  Bruno Haible  <bruno@clisp.org>
82889         * modules/dprintf-posix-tests: New file.
82890         * tests/test-dprintf-posix.sh: New file.
82891         * tests/test-dprintf-posix.c: New file.
82893         New modules 'dprintf', 'dprintf-posix'.
82894         * lib/stdio.in.h (dprintf): New declaration.
82895         * lib/dprintf.c: New file.
82896         * m4/dprintf.m4: New file.
82897         * m4/dprintf-posix.m4: New file.
82898         * modules/dprintf: New file.
82899         * modules/dprintf-posix: New file.
82900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
82901         HAVE_DPRINTF, REPLACE_DPRINTF.
82902         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
82903         HAVE_DPRINTF, REPLACE_DPRINTF.
82904         * doc/posix-functions/dprintf.texi: Mention the new modules.
82906 2009-01-17  Bruno Haible  <bruno@clisp.org>
82908         * modules/vdprintf-posix-tests: New file.
82909         * tests/test-vdprintf-posix.sh: New file.
82910         * tests/test-vdprintf-posix.c: New file.
82912         New modules 'vdprintf', 'vdprintf-posix'.
82913         * lib/stdio.in.h (vdprintf): New declaration.
82914         * lib/vdprintf.c: New file.
82915         * m4/vdprintf.m4: New file.
82916         * m4/vdprintf-posix.m4: New file.
82917         * modules/vdprintf: New file.
82918         * modules/vdprintf-posix: New file.
82919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
82920         HAVE_VDPRINTF, REPLACE_VDPRINTF.
82921         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
82922         HAVE_VDPRINTF, REPLACE_VDPRINTF.
82923         * doc/posix-functions/vdprintf.texi: Mention the new modules.
82925 2009-01-17  Bruno Haible  <bruno@clisp.org>
82927         Fix replacement of fopen on mingw.
82928         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
82929         mingw.
82931 2009-01-17  Bruno Haible  <bruno@clisp.org>
82933         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
82934         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
82936 2009-01-17  Bruno Haible  <bruno@clisp.org>
82938         Avoid test-fflush2.sh failure on mingw.
82939         * tests/test-fflush2.c: Include binary-io.h.
82940         (main): Put standard input into binary mode.
82941         * modules/fflush-tests (Depends-on): Add binary-io.
82943 2009-01-17  Bruno Haible  <bruno@clisp.org>
82945         * lib/wchar.in.h: In another particular situation, include only the
82946         system's <wchar.h> file.
82947         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
82948         Reported by Albert Chin-A-Young <china@thewrittenword.com>
82949         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
82951 2009-01-17  Bruno Haible  <bruno@clisp.org>
82953         Support for stripping executables in --enable-relocatable.
82954         * build-aux/install-reloc: Expect one more argument, or an environment
82955         variable RELOC_STRIP_PROG. If set, strip the destination program and
82956         its wrapper.
82957         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
82958         RELOC_STRIP_PROG.
82959         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
82960         to set RELOCATABLE_STRIP.
82961         * NEWS: Mention the new Makefile requirement.
82963 2009-01-17  Bruno Haible  <bruno@clisp.org>
82965         * build-aux/install-reloc: Remove debugging information left over by
82966         C compiler on MacOS X.
82968 2009-01-17  Bruno Haible  <bruno@clisp.org>
82970         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
82971         * lib/progreloc.c (find_executable): Fix type of pointer passed to
82972         _NSGetExecutablePath.
82974 2009-01-16  Jim Meyering  <meyering@redhat.com>
82976         strerror: avoid warnings about discarding "const"
82977         * lib/strerror.c (rpl_strerror): Instead of returning a const
82978         string from each and every "case", use a variable, and add a single
82979         cast after the switch.
82981 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
82983         * lib/arpa_inet.in.h: Add extern "C" block for C++.
82985 2009-01-16  Bruno Haible  <bruno@clisp.org>
82987         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
82988         array initializer syntax that also works in C++ mode.
82989         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82991 2009-01-16  Jim Meyering  <meyering@redhat.com>
82993         poll: suppress a warning
82994         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
82995         to ignore "...unsigned expression < 0 is always false" warnings.
82997 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
82999         poll: remove declarations of unused variables
83000         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83001         sockbuf and optlen.
83003 2009-01-15  Bruno Haible  <bruno@clisp.org>
83005         Make fflush-after-ungetc POSIX compliant on BSD systems.
83006         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83007         (clear_ungetc_buffer): Implement also for other systems.
83008         (rpl_fflush): On glibc systems, invoke
83009         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83010         clear_ungetc_buffer after fetching the stream's position, not before.
83012 2009-01-15  Bruno Haible  <bruno@clisp.org>
83014         Make fflush-after-ungetc POSIX compliant on glibc systems.
83015         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83016         after ungetc.
83017         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83018         (rpl_fflush): On glibc systems, simply call the system's fflush
83019         function after clearing the ungetc buffer.
83020         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83021         Instead, lseek only to the end of file, then use the system's fseeko
83022         for the rest. On glibc systems, reset the EOF indicator bit.
83024 2009-01-15  Jim Meyering  <meyering@redhat.com>
83026         openmp.m4: revert quote-adding change, for portability to older autoconf
83027         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83028         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83029         Simon Josefsson noticed the problem when using autoconf-2.61.
83031 2009-01-15  Bruno Haible  <bruno@clisp.org>
83033         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83034         * tests/test-fflush2.c (ASSERT): Always fail.
83035         (main): Add two tests for fflush() after ungetc(), taking into account
83036         the Austin Group's clarification.
83037         Suggested by Eric Blake.
83039 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83041         mktime.m4: remove K&R-style function prototypes
83042         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83043         for the Sun C++ compiler.
83045 2009-01-14  Bruno Haible  <bruno@clisp.org>
83047         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83048         while including <wchar.h>.
83049         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83050         the system's <wchar.h> file.
83051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83053 2009-01-14  Bruno Haible  <bruno@clisp.org>
83055         * m4/csharp.m4: Don't mention gettext on the serial number line.
83056         * m4/csharpexec.m4: Likewise.
83057         * m4/eaccess.m4: Likewise.
83058         * m4/javaexec.m4: Likewise.
83059         * m4/sig_atomic_t.m4: Likewise.
83060         * m4/tmpdir.m4: Likewise.
83061         * m4/intldir.m4: Bump gettext version.
83062         * m4/lib-ld.m4: Likewise.
83064 2009-01-14  Bruno Haible  <bruno@clisp.org>
83066         * lib/progname.c (set_program_name): Add more comments.
83067         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83069 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83071         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83072         were sys/stat.h does not define it.
83074 2009-01-14  Jim Meyering  <meyering@redhat.com>
83076         many *.m4 files: improve m4 quoting
83077         99% of this change was performed by running the following commands:
83078         git ls-files | grep '\.m4$' | xargs perl -pi \
83079           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83080           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83081           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83082           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83083         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83084         The remainder were to add Copyright dates, increment serial numbers,
83085         undo some changes in comments, exclude m4/intl.m4, and add quotes
83086         around the "1" in ",1" where the unusual spacing prohibited the
83087         above regexps from doing the job.  For more details, see
83088         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83089         * m4/acl.m4: Modified.
83090         * m4/afs.m4: Likewise.
83091         * m4/alloca.m4: Likewise.
83092         * m4/argp.m4: Likewise.
83093         * m4/argz.m4: Likewise.
83094         * m4/atexit.m4: Likewise.
83095         * m4/bison-i18n.m4: Likewise.
83096         * m4/bison.m4: Likewise.
83097         * m4/byteswap.m4: Likewise.
83098         * m4/c-stack.m4: Likewise.
83099         * m4/c-strtod.m4: Likewise.
83100         * m4/calloc.m4: Likewise.
83101         * m4/canonicalize-lgpl.m4: Likewise.
83102         * m4/chown.m4: Likewise.
83103         * m4/clock_time.m4: Likewise.
83104         * m4/codeset.m4: Likewise.
83105         * m4/copy-file.m4: Likewise.
83106         * m4/csharp.m4: Likewise.
83107         * m4/csharpcomp.m4: Likewise.
83108         * m4/csharpexec.m4: Likewise.
83109         * m4/d-ino.m4: Likewise.
83110         * m4/d-type.m4: Likewise.
83111         * m4/dirfd.m4: Likewise.
83112         * m4/double-slash-root.m4: Likewise.
83113         * m4/eaccess.m4: Likewise.
83114         * m4/eealloc.m4: Likewise.
83115         * m4/environ.m4: Likewise.
83116         * m4/errno_h.m4: Likewise.
83117         * m4/euidaccess.m4: Likewise.
83118         * m4/execute.m4: Likewise.
83119         * m4/fatal-signal.m4: Likewise.
83120         * m4/fchdir.m4: Likewise.
83121         * m4/fcntl_h.m4: Likewise.
83122         * m4/fileblocks.m4: Likewise.
83123         * m4/filenamecat.m4: Likewise.
83124         * m4/findprog.m4: Likewise.
83125         * m4/flexmember.m4: Likewise.
83126         * m4/fnmatch.m4: Likewise.
83127         * m4/fopen.m4: Likewise.
83128         * m4/fpending.m4: Likewise.
83129         * m4/fprintf-posix.m4: Likewise.
83130         * m4/free.m4: Likewise.
83131         * m4/frexp.m4: Likewise.
83132         * m4/frexpl.m4: Likewise.
83133         * m4/fsusage.m4: Likewise.
83134         * m4/ftruncate.m4: Likewise.
83135         * m4/gc-camellia.m4: Likewise.
83136         * m4/gc-random.m4: Likewise.
83137         * m4/gc.m4: Likewise.
83138         * m4/getaddrinfo.m4: Likewise.
83139         * m4/getcwd-abort-bug.m4: Likewise.
83140         * m4/getcwd-path-max.m4: Likewise.
83141         * m4/getdate.m4: Likewise.
83142         * m4/getdomainname.m4: Likewise.
83143         * m4/getgroups.m4: Likewise.
83144         * m4/gethostname.m4: Likewise.
83145         * m4/gethrxtime.m4: Likewise.
83146         * m4/getline.m4: Likewise.
83147         * m4/getloadavg.m4: Likewise.
83148         * m4/getndelim2.m4: Likewise.
83149         * m4/getpass.m4: Likewise.
83150         * m4/gettext.m4: Likewise.
83151         * m4/gettime.m4: Likewise.
83152         * m4/gettimeofday.m4: Likewise.
83153         * m4/gnulib-common.m4: Likewise.
83154         * m4/group-member.m4: Likewise.
83155         * m4/host-os.m4: Likewise.
83156         * m4/iconv.m4: Likewise.
83157         * m4/iconv_open.m4: Likewise.
83158         * m4/inet_ntop.m4: Likewise.
83159         * m4/inet_pton.m4: Likewise.
83160         * m4/inline.m4: Likewise.
83161         * m4/intldir.m4: Likewise.
83162         * m4/intlmacosx.m4: Likewise.
83163         * m4/intmax.m4: Likewise.
83164         * m4/intmax_t.m4: Likewise.
83165         * m4/inttypes.m4: Likewise.
83166         * m4/inttypes_h.m4: Likewise.
83167         * m4/inttypes-pri.m4: Likewise.
83168         * m4/isapipe.m4: Likewise.
83169         * m4/isnand.m4: Likewise.
83170         * m4/isnanf.m4: Likewise.
83171         * m4/isnanl.m4: Likewise.
83172         * m4/javacomp.m4: Likewise.
83173         * m4/javaexec.m4: Likewise.
83174         * m4/jm-winsz1.m4: Likewise.
83175         * m4/jm-winsz2.m4: Likewise.
83176         * m4/lchown.m4: Likewise.
83177         * m4/lcmessage.m4: Likewise.
83178         * m4/ldexpl.m4: Likewise.
83179         * m4/lib-ld.m4: Likewise.
83180         * m4/lib-link.m4: Likewise.
83181         * m4/libsigsegv.m4: Likewise.
83182         * m4/link-follow.m4: Likewise.
83183         * m4/localcharset.m4: Likewise.
83184         * m4/locale-fr.m4: Likewise.
83185         * m4/locale-ja.m4: Likewise.
83186         * m4/locale-tr.m4: Likewise.
83187         * m4/locale-zh.m4: Likewise.
83188         * m4/lock.m4: Likewise.
83189         * m4/longlong.m4: Likewise.
83190         * m4/ls-mntd-fs.m4: Likewise.
83191         * m4/lstat.m4: Likewise.
83192         * m4/malloc.m4: Likewise.
83193         * m4/mathl.m4: Likewise.
83194         * m4/mbrtowc.m4: Likewise.
83195         * m4/mbstate_t.m4: Likewise.
83196         * m4/mbswidth.m4: Likewise.
83197         * m4/memchr.m4: Likewise.
83198         * m4/memcmp.m4: Likewise.
83199         * m4/memcpy.m4: Likewise.
83200         * m4/memmem.m4: Likewise.
83201         * m4/memmove.m4: Likewise.
83202         * m4/mempcpy.m4: Likewise.
83203         * m4/memrchr.m4: Likewise.
83204         * m4/memset.m4: Likewise.
83205         * m4/minmax.m4: Likewise.
83206         * m4/mkdir-slash.m4: Likewise.
83207         * m4/mkdtemp.m4: Likewise.
83208         * m4/mktime.m4: Likewise.
83209         * m4/mmap-anon.m4: Likewise.
83210         * m4/mountlist.m4: Likewise.
83211         * m4/nanosleep.m4: Likewise.
83212         * m4/nls.m4: Likewise.
83213         * m4/nocrash.m4: Likewise.
83214         * m4/open.m4: Likewise.
83215         * m4/openat.m4: Likewise.
83216         * m4/openmp.m4: Likewise.
83217         * m4/pathmax.m4: Likewise.
83218         * m4/perl.m4: Likewise.
83219         * m4/physmem.m4: Likewise.
83220         * m4/pipe.m4: Likewise.
83221         * m4/po.m4: Likewise.
83222         * m4/poll.m4: Likewise.
83223         * m4/posixtm.m4: Likewise.
83224         * m4/posixver.m4: Likewise.
83225         * m4/printf-frexp.m4: Likewise.
83226         * m4/printf-frexpl.m4: Likewise.
83227         * m4/printf-posix.m4: Likewise.
83228         * m4/printf-posix-rpl.m4: Likewise.
83229         * m4/printf.m4: Likewise.
83230         * m4/progtest.m4: Likewise.
83231         * m4/putenv.m4: Likewise.
83232         * m4/readline.m4: Likewise.
83233         * m4/readlink.m4: Likewise.
83234         * m4/readutmp.m4: Likewise.
83235         * m4/realloc.m4: Likewise.
83236         * m4/regex.m4: Likewise.
83237         * m4/relocatable.m4: Likewise.
83238         * m4/relocatable-lib.m4: Likewise.
83239         * m4/rename-dest-slash.m4: Likewise.
83240         * m4/rename.m4: Likewise.
83241         * m4/rmdir-errno.m4: Likewise.
83242         * m4/rmdir.m4: Likewise.
83243         * m4/roundf.m4: Likewise.
83244         * m4/roundl.m4: Likewise.
83245         * m4/rpmatch.m4: Likewise.
83246         * m4/save-cwd.m4: Likewise.
83247         * m4/selinux-selinux-h.m4: Likewise.
83248         * m4/setenv.m4: Likewise.
83249         * m4/settime.m4: Likewise.
83250         * m4/sig2str.m4: Likewise.
83251         * m4/sig_atomic_t.m4: Likewise.
83252         * m4/signalblocking.m4: Likewise.
83253         * m4/signbit.m4: Likewise.
83254         * m4/sigpipe.m4: Likewise.
83255         * m4/sockets.m4: Likewise.
83256         * m4/sockpfaf.m4: Likewise.
83257         * m4/st_dm_mode.m4: Likewise.
83258         * m4/stat-time.m4: Likewise.
83259         * m4/stdbool.m4: Likewise.
83260         * m4/stdint.m4: Likewise.
83261         * m4/stdint_h.m4: Likewise.
83262         * m4/stpcpy.m4: Likewise.
83263         * m4/stpncpy.m4: Likewise.
83264         * m4/strcase.m4: Likewise.
83265         * m4/strchrnul.m4: Likewise.
83266         * m4/strcspn.m4: Likewise.
83267         * m4/strdup.m4: Likewise.
83268         * m4/strftime.m4: Likewise.
83269         * m4/strndup.m4: Likewise.
83270         * m4/strnlen.m4: Likewise.
83271         * m4/strpbrk.m4: Likewise.
83272         * m4/strptime.m4: Likewise.
83273         * m4/strsep.m4: Likewise.
83274         * m4/strtod.m4: Likewise.
83275         * m4/strtoimax.m4: Likewise.
83276         * m4/strtok_r.m4: Likewise.
83277         * m4/strtol.m4: Likewise.
83278         * m4/strtoll.m4: Likewise.
83279         * m4/strtoul.m4: Likewise.
83280         * m4/strtoull.m4: Likewise.
83281         * m4/strtoumax.m4: Likewise.
83282         * m4/strverscmp.m4: Likewise.
83283         * m4/threadlib.m4: Likewise.
83284         * m4/timegm.m4: Likewise.
83285         * m4/tm_gmtoff.m4: Likewise.
83286         * m4/tmpdir.m4: Likewise.
83287         * m4/tmpfile.m4: Likewise.
83288         * m4/tzset.m4: Likewise.
83289         * m4/uintmax_t.m4: Likewise.
83290         * m4/unlinkdir.m4: Likewise.
83291         * m4/unlocked-io.m4: Likewise.
83292         * m4/uptime.m4: Likewise.
83293         * m4/userspec.m4: Likewise.
83294         * m4/utimbuf.m4: Likewise.
83295         * m4/utime.m4: Likewise.
83296         * m4/utimes-null.m4: Likewise.
83297         * m4/utimes.m4: Likewise.
83298         * m4/vararrays.m4: Likewise.
83299         * m4/vasnprintf.m4: Likewise.
83300         * m4/vfprintf-posix.m4: Likewise.
83301         * m4/vprintf-posix.m4: Likewise.
83302         * m4/wait-process.m4: Likewise.
83303         * m4/wchar_t.m4: Likewise.
83304         * m4/wint_t.m4: Likewise.
83305         * m4/write-any-file.m4: Likewise.
83306         * m4/yield.m4: Likewise.
83308 2009-01-13  Bruno Haible  <bruno@clisp.org>
83310         Avoid test-copy-file.sh failures when ACL support insufficient.
83311         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83312         TESTS_ENVIRONMENT.
83313         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83314         Reported by Jim Meyering.
83316 2009-01-13  Bruno Haible  <bruno@clisp.org>
83318         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83319         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83320         * modules/unistdio/u8-printf-parse (Files): Likewise.
83321         * modules/unistdio/u32-printf-parse (Files): Likewise.
83322         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83324 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83326         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83327         and m4/inttypes_h.m4 too.
83329 2009-01-12  Eric Blake  <ebb9@byu.net>
83331         tests: IRIX 6.2 cc can't compile -0.0 into .data
83332         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83333         rather than at compile-time.
83334         * tests/test-floorl.c (minus_zero): Likewise.
83335         * tests/test-frexpl.c (minus_zero): Likewise.
83336         * tests/test-isnan.c (minus_zerol): Likewise.
83337         * tests/test-isnanl.h (minus_zero): Likewise.
83338         * tests/test-ldexpl.c (minus_zero): Likewise.
83339         * tests/test-roundl.c (minus_zero): Likewise.
83340         * tests/test-signbit.c (minus_zerol): Likewise.
83341         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83342         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83343         * tests/test-truncl.c (minus_zero): Likewise.
83344         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83345         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83346         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83348 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83350         regex: fix glibc bug 9697
83351         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83352         handling.
83354 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83356         regex: fix glibc bug 697
83357         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83358         being NULL also if there are no backreferences.
83360 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83362         regex: merge glibc changes
83363         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83364         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83365         re_string_skip_chars, re_string_reconstruct): Likewise.
83366         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83368 2009-01-07  Jim Meyering  <meyering@redhat.com>
83370         poll: filter through cppi
83371         * lib/poll.c: Indent cpp directives to reflect nesting.
83373 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83375         poll: don't return uninitialized
83376         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83378 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83380         avoid compile failure on AIX 6.1
83381         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83382         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83384 2009-01-04  Jim Meyering  <meyering@redhat.com>
83386         remove duplicate inclusion of <stdio.h>
83387         * tests/test-fprintf-posix.c: Likewise.
83388         * tests/test-printf-posix.c: Likewise.
83389         * tests/test-snprintf-posix.c: Likewise.
83390         * tests/test-sprintf-posix.c: Likewise.
83391         * tests/test-vasprintf-posix.c: Likewise.
83392         * tests/test-vfprintf-posix.c: Likewise.
83393         * tests/test-vprintf-posix.c: Likewise.
83394         * tests/test-vsnprintf-posix.c: Likewise.
83395         * tests/test-vsprintf-posix.c: Likewise.
83397 2009-01-03  Jim Meyering  <meyering@redhat.com>
83399         gnulib-tool: fix sed-based filtering
83400         * gnulib-tool (func_filter_filelist): Remove extra backslash
83401         in sed_fff_filter definition.
83403 2009-01-02  Jim Meyering  <meyering@redhat.com>
83405         strftime: avoid compilation failure on Solaris 2.6
83406         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83407         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83408         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83409         be available.  Reported by Tom G. Christensen.  Details in
83410         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83412 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83413             Bruno Haible  <bruno@clisp.org>
83415         Speed up gnulib-tool by doing more string processing through shell
83416         built-ins.
83417         * gnulib-tool (fast_func_append): New variable.
83418         (func_remove_prefix, func_remove_suffix): New functions.
83419         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83420         (func_filter_filelist): New function.
83421         (func_get_dependencies): Use func_remove_suffix instead of sed.
83422         (func_get_automake_snippet): Use func_filter_filelist instead of a
83423         subshell and sed invocation.
83425 2009-01-01  Bruno Haible  <bruno@clisp.org>
83427         Fix a security bug.
83428         * gnulib-tool (func_import, import, update): Don't allow the characters
83429         '"', '$', '`', '\' in macro arguments that become part of commands that
83430         are evaluated.
83432 2009-01-01  Bruno Haible  <bruno@clisp.org>
83434         * gnulib-tool (func_reset_sigpipe): Add more comments.
83436 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83438         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83439         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83440         already know the answer.
83442 2009-01-01  Jim Meyering  <meyering@redhat.com>
83444         * lib/version-etc.c (version_etc_va): Update copyright year.
83446 2008-12-30  Bruno Haible  <bruno@clisp.org>
83448         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83449         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83450         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83452 2008-12-29  Eric Blake  <ebb9@byu.net>
83454         multiarch: avoid autoconf AC_REQUIRE bug
83455         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83456         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83457         2.63 and older.
83458         Reported by Bruno Haible, and analyzed in
83459         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83461 2008-12-29  Bruno Haible  <bruno@clisp.org>
83463         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83464         files in subdirectories correctly.
83465         Reported by Ralf Wildenhues.
83467 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83469         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83470         rather than 'join FILE -', for Solaris join.
83472 2008-12-29  Bruno Haible  <bruno@clisp.org>
83474         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83475         quoting.
83476         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83477         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83478         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83479         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83480         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83481         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83482         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83483         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83484         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83485         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83486         * m4/nls.m4 (AM_NLS): Likewise.
83487         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83488         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83489         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83490         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83491         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83492         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83493         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83494         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83495         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83496         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83497         * m4/xsize.m4 (gl_XSIZE): Likewise.
83498         Suggested by Jim Meyering.
83500 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83502         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83503         * lib/parse-duration.c: use a switch instead of cascading if's.
83505 2008-12-29  Eric Blake  <ebb9@byu.net>
83507         wchar.h: supply WEOF on Irix 5.3
83508         * lib/wchar.in.h (wint_t): Also supply WEOF.
83509         * lib/wctype.in.h (wint_t): Likewise.
83510         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83511         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83512         Reported by Tom G. Christensen.
83514 2008-12-26  Bruno Haible  <bruno@clisp.org>
83516         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83517         i486, i586, i686.
83519 2008-12-26  Bruno Haible  <bruno@clisp.org>
83521         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83523 2008-12-26  Bruno Haible  <bruno@clisp.org>
83525         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83526         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83527         not __STDC_CONSTANT_MACROS.
83528         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83530 2008-12-25  Bruno Haible  <bruno@clisp.org>
83532         Add support for universal builds to vasnprintf.
83533         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83534         universal builds, guess no.
83535         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83536         * modules/vasprintf-posix (Depends-on): Likewise.
83537         * modules/fprintf-posix (Depends-on): Likewise.
83538         * modules/vfprintf-posix (Depends-on): Likewise.
83539         * modules/snprintf-posix (Depends-on): Likewise.
83540         * modules/vsnprintf-posix (Depends-on): Likewise.
83541         * modules/sprintf-posix (Depends-on): Likewise.
83542         * modules/vsprintf-posix (Depends-on): Likewise.
83543         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83545         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83546         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83547         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83548         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83549         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83551         Add support for universal builds to <inttypes.h>.
83552         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83553         _SCNu64_PREFIX): In Apple
83554         universal builds, define directly, using _LP64.
83555         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83556         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83557         * modules/inttypes (Depends-on): Add multiarch.
83558         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83560         Add support for universal builds to <stdint.h>.
83561         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83562         universal builds, define directly, using _LP64.
83563         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83564         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83565         and size_t.
83566         * modules/stdint (Depends-on): Add multiarch.
83567         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83569         New module 'multiarch'.
83570         * modules/multiarch: New file.
83571         * m4/multiarch.m4: New file.
83573 2008-12-25  Bruno Haible  <bruno@clisp.org>
83575         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83577 2008-12-25  Bruno Haible  <bruno@clisp.org>
83579         * modules/btowc (License): Relicense under LGPLv2+.
83580         * modules/mbsinit (License): Likewise.
83581         * modules/mbrtowc (License): Likewise.
83582         * modules/wcrtomb (License): Likewise.
83583         * modules/streq (License): Likewise.
83584         Reported by David Lutterkort <lutter@redhat.com>.
83586 2008-12-23  Bruno Haible  <bruno@clisp.org>
83588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83590 2008-12-23  Bruno Haible  <bruno@clisp.org>
83592         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83594         GETADDRINFO_LIB, not in LIBS.
83595         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83596         * modules/canon-host (Link): Likewise.
83597         * NEWS: Mention the change.
83598         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83599         GETADDRINFO_LIB.
83601 2008-12-22  Bruno Haible  <bruno@clisp.org>
83603         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83604         * doc/posix-functions/iswalpha_l.texi: Likewise.
83605         * doc/posix-functions/iswblank_l.texi: Likewise.
83606         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83607         * doc/posix-functions/iswctype_l.texi: Likewise.
83608         * doc/posix-functions/iswdigit_l.texi: Likewise.
83609         * doc/posix-functions/iswgraph_l.texi: Likewise.
83610         * doc/posix-functions/iswlower_l.texi: Likewise.
83611         * doc/posix-functions/iswprint_l.texi: Likewise.
83612         * doc/posix-functions/iswpunct_l.texi: Likewise.
83613         * doc/posix-functions/iswspace_l.texi: Likewise.
83614         * doc/posix-functions/iswupper_l.texi: Likewise.
83615         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83616         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83617         * doc/posix-functions/open_wmemstream.texi: Likewise.
83618         * doc/posix-functions/swscanf.texi: Likewise.
83619         * doc/posix-functions/towctrans_l.texi: Likewise.
83620         * doc/posix-functions/towlower.texi: Likewise.
83621         * doc/posix-functions/towlower_l.texi: Likewise.
83622         * doc/posix-functions/towupper.texi: Likewise.
83623         * doc/posix-functions/towupper_l.texi: Likewise.
83624         * doc/posix-functions/vfwprintf.texi: Likewise.
83625         * doc/posix-functions/vfwscanf.texi: Likewise.
83626         * doc/posix-functions/vswscanf.texi: Likewise.
83627         * doc/posix-functions/vwprintf.texi: Likewise.
83628         * doc/posix-functions/vwscanf.texi: Likewise.
83629         * doc/posix-functions/wcpcpy.texi: Likewise.
83630         * doc/posix-functions/wcpncpy.texi: Likewise.
83631         * doc/posix-functions/wcscasecmp.texi: Likewise.
83632         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83633         * doc/posix-functions/wcscoll_l.texi: Likewise.
83634         * doc/posix-functions/wcsdup.texi: Likewise.
83635         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83636         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83637         * doc/posix-functions/wcsnlen.texi: Likewise.
83638         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83639         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83640         * doc/posix-functions/wctrans_l.texi: Likewise.
83641         * doc/posix-functions/wctype_l.texi: Likewise.
83642         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83643         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83644         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83645         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83646         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83647         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83648         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83649         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83650         * doc/glibc-functions/wcschrnul.texi: Likewise.
83651         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83652         * doc/glibc-functions/wcstod_l.texi: Likewise.
83653         * doc/glibc-functions/wcstof_l.texi: Likewise.
83654         * doc/glibc-functions/wcstol_l.texi: Likewise.
83655         * doc/glibc-functions/wcstold_l.texi: Likewise.
83656         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83657         * doc/glibc-functions/wcstoq.texi: Likewise.
83658         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83659         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83660         * doc/glibc-functions/wcstouq.texi: Likewise.
83661         * doc/glibc-functions/wmempcpy.texi: Likewise.
83663 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83664             Eric Blake  <ebb9@byu.net>
83665             Paolo Bonzini  <bonzini@gnu.org>
83666             Bruno Haible  <bruno@clisp.org>
83668         Make c-stack work on Haiku.
83669         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83670         (c_stack_action): Use SA_ONSTACK flag.
83672 2008-12-22  Bruno Haible  <bruno@clisp.org>
83674         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83676 2008-12-22  Bruno Haible  <bruno@clisp.org>
83678         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83679         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83680         being overridden.
83681         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83682         New macros.
83683         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83685         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83686         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83688 2008-12-22  Bruno Haible  <bruno@clisp.org>
83690         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83691         from test code.
83693 2008-12-22  Eric Blake  <ebb9@byu.net>
83695         Avoid gcc warnings on cygwin.
83696         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83697         Avoid unused variable.
83698         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83699         Likewise.
83701 2008-12-22  Bruno Haible  <bruno@clisp.org>
83703         Remove HAVE_MBRTOWC conditionals.
83704         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83705         (mbscasecmp): Assume mbrtowc function.
83706         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83707         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83708         * lib/mbschr.c: Include mbuiter.h unconditionally.
83709         (mbschr): Assume mbrtowc function.
83710         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83711         (mbscspn): Assume mbrtowc function.
83712         * lib/mbslen.c: Include mbuiter.h unconditionally.
83713         (mbslen): Assume mbrtowc function.
83714         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83715         (mbsncasecmp): Assume mbrtowc function.
83716         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83717         (mbsnlen): Assume mbrtowc function.
83718         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83719         (mbspbrk): Assume mbrtowc function.
83720         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
83721         (mbspcasecmp): Assume mbrtowc function.
83722         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
83723         (mbsrchr): Assume mbrtowc function.
83724         * lib/mbssep.c: Include mbuiter.h unconditionally.
83725         (mbssep): Assume mbrtowc function.
83726         * lib/mbsspn.c: Include mbuiter.h unconditionally.
83727         (mbsspn): Assume mbrtowc function.
83728         * lib/mbsstr.c: Include mbuiter.h unconditionally.
83729         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
83730         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
83731         (mbstok_r): Assume mbrtowc function.
83732         * lib/propername.c: Include mbuiter.h unconditionally.
83733         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
83734         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
83735         (trim2): Assume mbrtowc function.
83736         * lib/mbswidth.c (mbsinit): Remove fallback definition.
83737         (mbsnwidth): Assume mbrtowc function.
83738         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
83739         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
83740         fallback definitions.
83741         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
83743 2008-12-22  Bruno Haible  <bruno@clisp.org>
83745         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
83747 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
83749         * modules/regex: Request emulations for the mb*/wc* functions we need.
83750         * m4/regex.m4: Don't look for those functions here.
83751         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
83753 2008-12-22  Bruno Haible  <bruno@clisp.org>
83755         * modules/fnmatch (Depends-on): Remove duplicated dependency.
83757 2008-12-21  Bruno Haible  <bruno@clisp.org>
83759         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
83760         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
83761         (Include): Remove conditionalization.
83762         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
83763         (Include): Remove conditionalization.
83764         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
83765         (Include): Remove conditionalization.
83766         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
83767         * m4/mbfile.m4 (gl_MBFILE): Likewise.
83768         * NEWS: Mention the change.
83769         Reported by Alan Hourihane <alanh@fairlite.co.uk>
83770         via Sergey Poznyakoff <gray@gnu.org.ua>.
83772 2008-12-21  Bruno Haible  <bruno@clisp.org>
83774         * MODULES.html.sh (Extended multibyte and wide character utilities
83775         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
83776         wcrtomb, wcsrtombs.
83777         (Support for systems lacking POSIX:2008): Add accept, bind, close,
83778         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
83779         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
83780         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
83782 2008-12-21  Bruno Haible  <bruno@clisp.org>
83784         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
83786 2008-12-21  Bruno Haible  <bruno@clisp.org>
83788         * modules/wcsnrtombs-tests: New file.
83789         * tests/test-wcsnrtombs1.sh: New file.
83790         * tests/test-wcsnrtombs2.sh: New file.
83791         * tests/test-wcsnrtombs3.sh: New file.
83792         * tests/test-wcsnrtombs4.sh: New file.
83793         * tests/test-wcsnrtombs.c: New file.
83795         New module 'wcsnrtombs'.
83796         * lib/wchar.in.h (wcsnrtombs): New declaration.
83797         * lib/wcsnrtombs.c: New file.
83798         * lib/wcsrtombs-state.c: New file.
83799         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
83800         (internal_state): Remove variable.
83801         * m4/wcsnrtombs.m4: New file.
83802         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
83803         compilation units.
83804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
83805         HAVE_WCSNRTOMBS.
83806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
83807         HAVE_WCSNRTOMBS.
83808         * modules/wcsnrtombs: New file.
83809         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
83810         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
83812 2008-12-21  Bruno Haible  <bruno@clisp.org>
83814         * modules/wcsrtombs-tests: New file.
83815         * tests/test-wcsrtombs1.sh: New file.
83816         * tests/test-wcsrtombs2.sh: New file.
83817         * tests/test-wcsrtombs3.sh: New file.
83818         * tests/test-wcsrtombs4.sh: New file.
83819         * tests/test-wcsrtombs.c: New file.
83821         New module 'wcsrtombs'.
83822         * lib/wchar.in.h (wcsrtombs): New declaration.
83823         * lib/wcsrtombs.c: New file.
83824         * m4/wcsrtombs.m4: New file.
83825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
83826         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
83828         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83829         * modules/wcsrtombs: New file.
83830         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
83831         bugs.
83833 2008-12-21  Bruno Haible  <bruno@clisp.org>
83835         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
83836         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
83837         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
83838         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
83839         if not correct.
83840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
83841         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
83842         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83843         m4/locale-zh.m4, m4/codeset.m4.
83844         * doc/posix-functions/wcrtomb.texi: Document the bug.
83846 2008-12-21  Bruno Haible  <bruno@clisp.org>
83848         Work around a btowc() bug on IRIX 6.5.
83849         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
83850         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
83851         REPLACE_WTOBC if not.
83852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
83853         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
83854         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
83856 2008-12-21  Bruno Haible  <bruno@clisp.org>
83858         * modules/wcrtomb-tests: New file.
83859         * tests/test-wcrtomb.sh: New file.
83860         * tests/test-wcrtomb.c: New file.
83862         New module 'wcrtomb'.
83863         * lib/wchar.in.h (wcrtomb): New declaration.
83864         * lib/wcrtomb.c: New file.
83865         * m4/wcrtomb.m4: New file.
83866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
83867         HAVE_WCRTOMB.
83868         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
83869         HAVE_WCRTOMB.
83870         * modules/wcrtomb: New file.
83871         * doc/posix-functions/wcrtomb.texi: Mention the new module.
83873 2008-12-21  Bruno Haible  <bruno@clisp.org>
83875         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
83876         * modules/mbsrtowcs (Files): Likewise.
83877         * modules/wctob (Files): Likewise.
83878         * modules/c-strcase-tests (Files): Likewise.
83879         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
83880         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
83881         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
83882         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
83883         * modules/vasnprintf-posix-tests (Files): Likewise.
83885 2008-12-21  William Pursell  <bill.pursell@gmail.com>
83887         gitlog-to-changelog: pass all command-line arguments to git-log
83888         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
83889         it is sometimes convenient to filter the commits in various ways.
83890         gitlog-to-changelog only allows --since to specify a start date,
83891         but git-log itself supports many other filtering mechanisms.
83892         At the moment, I want to filter by branch name.  Rather than
83893         adding a --branch option to gitlog-to-changelog, it seems more
83894         flexible to simply pass all options directly to git-log and let
83895         git do the work.  Notice that this effectively makes --since a
83896         redundant option for gitlog-to-changelog, but removing it would
83897         require current usage to change since calls would then require
83898         an additional '--'.
83900 2008-12-21  Bruno Haible  <bruno@clisp.org>
83902         * modules/mbsnrtowcs-tests: New file.
83903         * tests/test-mbsnrtowcs1.sh: New file.
83904         * tests/test-mbsnrtowcs2.sh: New file.
83905         * tests/test-mbsnrtowcs3.sh: New file.
83906         * tests/test-mbsnrtowcs4.sh: New file.
83907         * tests/test-mbsnrtowcs.c: New file.
83909         New module 'mbsnrtowcs'.
83910         * lib/wchar.in.h (mbsnrtowcs): New declaration.
83911         * lib/mbsnrtowcs.c: New file.
83912         * lib/mbsrtowcs-state.c: New file.
83913         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
83914         (internal_state): Remove variable.
83915         * m4/mbsnrtowcs.m4: New file.
83916         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
83917         compilation units.
83918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
83919         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
83920         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
83921         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
83922         * modules/mbsnrtowcs: New file.
83923         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
83924         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
83925         portability problem.
83927 2008-12-21  Bruno Haible  <bruno@clisp.org>
83929         Work around mbsrtowcs bug.
83930         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
83931         (gl_FUNC_MBSRTOWCS): Invoke it.
83932         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83933         m4/locale-zh.m4.
83934         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
83936 2008-12-21  Bruno Haible  <bruno@clisp.org>
83938         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
83940 2008-12-21  Bruno Haible  <bruno@clisp.org>
83942         Update doc for AIX.
83943         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
83944         16-bit wchar_t type.
83945         * doc/posix-functions/btowc.texi: Likewise.
83946         * doc/posix-functions/fgetwc.texi: Likewise.
83947         * doc/posix-functions/fgetws.texi: Likewise.
83948         * doc/posix-functions/fputwc.texi: Likewise.
83949         * doc/posix-functions/fputws.texi: Likewise.
83950         * doc/posix-functions/fwide.texi: Likewise.
83951         * doc/posix-functions/fwprintf.texi: Likewise.
83952         * doc/posix-functions/fwscanf.texi: Likewise.
83953         * doc/posix-functions/getwchar.texi: Likewise.
83954         * doc/posix-functions/getwc.texi: Likewise.
83955         * doc/posix-functions/iswalnum.texi: Likewise.
83956         * doc/posix-functions/iswalpha.texi: Likewise.
83957         * doc/posix-functions/iswblank.texi: Likewise.
83958         * doc/posix-functions/iswcntrl.texi: Likewise.
83959         * doc/posix-functions/iswctype.texi: Likewise.
83960         * doc/posix-functions/iswdigit.texi: Likewise.
83961         * doc/posix-functions/iswgraph.texi: Likewise.
83962         * doc/posix-functions/iswlower.texi: Likewise.
83963         * doc/posix-functions/iswprint.texi: Likewise.
83964         * doc/posix-functions/iswpunct.texi: Likewise.
83965         * doc/posix-functions/iswspace.texi: Likewise.
83966         * doc/posix-functions/iswupper.texi: Likewise.
83967         * doc/posix-functions/iswxdigit.texi: Likewise.
83968         * doc/posix-functions/mbrtowc.texi: Likewise.
83969         * doc/posix-functions/mbsrtowcs.texi: Likewise.
83970         * doc/posix-functions/mbstowcs.texi: Likewise.
83971         * doc/posix-functions/mbtowc.texi: Likewise.
83972         * doc/posix-functions/putwchar.texi: Likewise.
83973         * doc/posix-functions/putwc.texi: Likewise.
83974         * doc/posix-functions/swprintf.texi: Likewise.
83975         * doc/posix-functions/tolower.texi: Likewise.
83976         * doc/posix-functions/toupper.texi: Likewise.
83977         * doc/posix-functions/towctrans.texi: Likewise.
83978         * doc/posix-functions/ungetwc.texi: Likewise.
83979         * doc/posix-functions/vswprintf.texi: Likewise.
83980         * doc/posix-functions/wcrtomb.texi: Likewise.
83981         * doc/posix-functions/wcscat.texi: Likewise.
83982         * doc/posix-functions/wcschr.texi: Likewise.
83983         * doc/posix-functions/wcscmp.texi: Likewise.
83984         * doc/posix-functions/wcscoll.texi: Likewise.
83985         * doc/posix-functions/wcscpy.texi: Likewise.
83986         * doc/posix-functions/wcscspn.texi: Likewise.
83987         * doc/posix-functions/wcsftime.texi: Likewise.
83988         * doc/posix-functions/wcslen.texi: Likewise.
83989         * doc/posix-functions/wcsncat.texi: Likewise.
83990         * doc/posix-functions/wcsncmp.texi: Likewise.
83991         * doc/posix-functions/wcsncpy.texi: Likewise.
83992         * doc/posix-functions/wcspbrk.texi: Likewise.
83993         * doc/posix-functions/wcsrchr.texi: Likewise.
83994         * doc/posix-functions/wcsrtombs.texi: Likewise.
83995         * doc/posix-functions/wcsspn.texi: Likewise.
83996         * doc/posix-functions/wcsstr.texi: Likewise.
83997         * doc/posix-functions/wcstod.texi: Likewise.
83998         * doc/posix-functions/wcstof.texi: Likewise.
83999         * doc/posix-functions/wcstoimax.texi: Likewise.
84000         * doc/posix-functions/wcstok.texi: Likewise.
84001         * doc/posix-functions/wcstold.texi: Likewise.
84002         * doc/posix-functions/wcstoll.texi: Likewise.
84003         * doc/posix-functions/wcstol.texi: Likewise.
84004         * doc/posix-functions/wcstombs.texi: Likewise.
84005         * doc/posix-functions/wcstoull.texi: Likewise.
84006         * doc/posix-functions/wcstoul.texi: Likewise.
84007         * doc/posix-functions/wcstoumax.texi: Likewise.
84008         * doc/posix-functions/wcswidth.texi: Likewise.
84009         * doc/posix-functions/wcsxfrm.texi: Likewise.
84010         * doc/posix-functions/wctob.texi: Likewise.
84011         * doc/posix-functions/wctomb.texi: Likewise.
84012         * doc/posix-functions/wctrans.texi: Likewise.
84013         * doc/posix-functions/wctype.texi: Likewise.
84014         * doc/posix-functions/wcwidth.texi: Likewise.
84015         * doc/posix-functions/wmemchr.texi: Likewise.
84016         * doc/posix-functions/wmemcmp.texi: Likewise.
84017         * doc/posix-functions/wmemcpy.texi: Likewise.
84018         * doc/posix-functions/wmemmove.texi: Likewise.
84019         * doc/posix-functions/wmemset.texi: Likewise.
84020         * doc/posix-functions/wprintf.texi: Likewise.
84021         * doc/posix-functions/wscanf.texi: Likewise.
84023 2008-12-21  Bruno Haible  <bruno@clisp.org>
84025         Update doc for HP-UX 11.11.
84026         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84027         in HP-UX version 11.00, not in all versions of HP-UX 11.
84028         * doc/posix-functions/fwide.texi: Likewise.
84029         * doc/posix-functions/fwprintf.texi: Likewise.
84030         * doc/posix-functions/fwscanf.texi: Likewise.
84031         * doc/posix-functions/inet_ntop.texi: Likewise.
84032         * doc/posix-functions/inet_pton.texi: Likewise.
84033         * doc/posix-functions/mbrlen.texi: Likewise.
84034         * doc/posix-functions/mbrtowc.texi: Likewise.
84035         * doc/posix-functions/mbsinit.texi: Likewise.
84036         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84037         * doc/posix-functions/swprintf.texi: Likewise.
84038         * doc/posix-functions/swscanf.texi: Likewise.
84039         * doc/posix-functions/towctrans.texi: Likewise.
84040         * doc/posix-functions/vfwprintf.texi: Likewise.
84041         * doc/posix-functions/vswprintf.texi: Likewise.
84042         * doc/posix-functions/vwprintf.texi: Likewise.
84043         * doc/posix-functions/wcrtomb.texi: Likewise.
84044         * doc/posix-functions/wcsrtombs.texi: Likewise.
84045         * doc/posix-functions/wcsstr.texi: Likewise.
84046         * doc/posix-functions/wctob.texi: Likewise.
84047         * doc/posix-functions/wctrans.texi: Likewise.
84048         * doc/posix-functions/wmemchr.texi: Likewise.
84049         * doc/posix-functions/wmemcmp.texi: Likewise.
84050         * doc/posix-functions/wmemcpy.texi: Likewise.
84051         * doc/posix-functions/wmemmove.texi: Likewise.
84052         * doc/posix-functions/wmemset.texi: Likewise.
84053         * doc/posix-functions/wprintf.texi: Likewise.
84054         * doc/posix-functions/wscanf.texi: Likewise.
84056 2008-12-21  Bruno Haible  <bruno@clisp.org>
84058         Work around a portability problem.
84059         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84060         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84062 2008-12-20  Bruno Haible  <bruno@clisp.org>
84064         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84065         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84066         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84067         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84068         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84070         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84071         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84072         set.
84073         (GNULIB_defined_mbstate_t): New macro.
84074         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84075         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84076         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84077         reuses the system's mbrtowc function but works around the bugs.
84078         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84079         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84080         macros.
84081         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84082         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84083         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84084         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84085         REPLACE_MBSINIT if mbsinit needs to be overridden.
84086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84087         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84088         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84089         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84090         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84091         m4/locale-zh.m4.
84092         (Depends): Add mbsinit.
84093         * modules/mbsinit (Depends): Add mbrtowc.
84094         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84096 2008-12-20  Bruno Haible  <bruno@clisp.org>
84098         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84099         so that there are no conversion errors on AIX.
84100         * tests/test-mbsrtowcs.c (main): LIkewise.
84102 2008-12-20  Bruno Haible  <bruno@clisp.org>
84104         Work around wctob bug on Solaris <= 9.
84105         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84106         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84108         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84109         * modules/wctob (Files): Add m4/locale-fr.m4.
84110         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84112 2008-12-20  Bruno Haible  <bruno@clisp.org>
84114         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84115         /dev/null.
84116         * tests/test-select-in.sh: Likewise.
84117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84119 2008-12-20  Bruno Haible  <bruno@clisp.org>
84121         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84122         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84123         Cygwin 1.5.x.
84125 2008-12-20  Bruno Haible  <bruno@clisp.org>
84127         Ensure mbstate_t is defined on HP-UX 11.11.
84128         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84129         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84130         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84131         AC_USE_SYSTEM_EXTENSIONS.
84132         * modules/fnmatch (Depends-on): Add extensions.
84133         * modules/mbrlen (Depends-on): Likewise.
84134         * modules/mbrtowc (Depends-on): Likewise.
84135         * modules/mbsinit (Depends-on): Likewise.
84136         * modules/mbsrtowcs (Depends-on): Likewise.
84137         * modules/mbswidth (Depends-on): Likewise.
84138         * modules/quotearg (Depends-on): Likewise.
84139         * modules/strftime (Depends-on): Likewise.
84141 2008-12-20  Bruno Haible  <bruno@clisp.org>
84143         Ensure wctob is declared on IRIX 6.5.
84144         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84145         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84146         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84148         of HAVE_WCTOB.
84149         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84150         HAVE_WCTOB.
84151         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84153 2008-12-19  Bruno Haible  <bruno@clisp.org>
84155         * modules/mbsrtowcs-tests: New file.
84156         * tests/test-mbsrtowcs1.sh: New file.
84157         * tests/test-mbsrtowcs2.sh: New file.
84158         * tests/test-mbsrtowcs3.sh: New file.
84159         * tests/test-mbsrtowcs4.sh: New file.
84160         * tests/test-mbsrtowcs.c: New file.
84162         New module 'mbsrtowcs'.
84163         * lib/wchar.in.h (mbsrtowcs): New declaration.
84164         * lib/mbsrtowcs.c: New file.
84165         * m4/mbsrtowcs.m4: New file.
84166         * modules/mbsrtowcs: New file.
84167         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84168         HAVE_MBSRTOWCS.
84169         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84170         HAVE_MBSRTOWCS.
84171         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84173 2008-12-19  Bruno Haible  <bruno@clisp.org>
84175         New module 'mbrlen'.
84176         * lib/wchar.in.h (mbrlen): New declaration.
84177         * lib/mbrlen.c: New file.
84178         * m4/mbrlen.m4: New file.
84179         * modules/mbrlen: New file.
84180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84181         HAVE_MBRLEN.
84182         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84183         HAVE_MBRLEN.
84184         * doc/posix-functions/mbrlen.texi: Document the new module.
84186 2008-12-19  Bruno Haible  <bruno@clisp.org>
84188         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84189         * modules/mbrtowc (Depends-on): Add verify.
84190         Suggested by Paul Eggert.
84192 2008-12-18  Bruno Haible  <bruno@clisp.org>
84194         * modules/mbsinit-tests: New file.
84195         * tests/test-mbsinit.sh: New file.
84196         * tests/test-mbsinit.c: New file.
84198 2008-12-18  Bruno Haible  <bruno@clisp.org>
84200         * modules/mbrtowc-tests: New file.
84201         * tests/test-mbrtowc1.sh: New file.
84202         * tests/test-mbrtowc2.sh: New file.
84203         * tests/test-mbrtowc3.sh: New file.
84204         * tests/test-mbrtowc4.sh: New file.
84205         * tests/test-mbrtowc.c: New file.
84207         New module 'mbrtowc'.
84208         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84209         mbsinit and mbrtowc.
84210         (mbrtowc): New declaration.
84211         * lib/mbrtowc.c: New file.
84212         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84213         * modules/mbrtowc: New file.
84214         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84215         HAVE_MBRTOWC.
84216         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84217         HAVE_MBRTOWC.
84218         * doc/posix-functions/mbrtowc.texi: Document the new module.
84220 2008-12-18  Bruno Haible  <bruno@clisp.org>
84222         New module 'wctob'.
84223         * lib/wchar.in.h (wctob): New declaration.
84224         * lib/wctob.c: New file.
84225         * m4/wctob.m4: New file.
84226         * modules/wctob: New file.
84227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84228         HAVE_WCTOB.
84229         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84230         * doc/posix-functions/wctob.texi: Document the new module.
84232 2008-12-18  Bruno Haible  <bruno@clisp.org>
84234         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84235         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84237 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84239         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84240         G. Christensen" <tgc@jupiterrise.com>.
84242         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84243         G. Christensen" <tgc@jupiterrise.com>.
84245         * lib/flock.c: Need to include string.h.  Reported by "Tom
84246         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84247         <ebb9@byu.net>.
84249 2008-12-18  Bruno Haible  <bruno@clisp.org>
84251         * m4/locale-ja.m4: New file, from GNU gettext.
84253 2008-12-17  Bruno Haible  <bruno@clisp.org>
84255         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84256         Suggested by Eric Blake.
84258 2008-12-17  Bruno Haible  <bruno@clisp.org>
84260         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84262 2008-12-17  Bruno Haible  <bruno@clisp.org>
84264         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84265         * modules/mbsinit (Depends-on): Add verify.
84266         Suggested by Paul Eggert.
84268 2008-12-17  Bruno Haible  <bruno@clisp.org>
84270         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84271         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84272         gl_FUNC_MBRTOWC.
84273         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84274         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84275         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84276         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84277         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84278         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84279         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84280         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84281         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84282         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84283         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84284         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84285         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84286         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84287         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84288         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84289         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84290         * modules/trim (configure.ac): Likewise.
84292 2008-12-17  Bruno Haible  <bruno@clisp.org>
84294         * modules/btowc-tests: New file.
84295         * tests/test-btowc1.sh: New file.
84296         * tests/test-btowc2.sh: New file.
84297         * tests/test-btowc.c: New file.
84299         New module 'btowc'.
84300         * lib/wchar.in.h (btowc): New declaration.
84301         * lib/btowc.c: New file.
84302         * m4/btowc.m4: New file.
84303         * modules/btowc: New file.
84304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84305         HAVE_BTOWC.
84306         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84307         * doc/posix-functions/btowc.texi: Document the new module.
84309 2008-12-17  Bruno Haible  <bruno@clisp.org>
84311         New module 'mbsinit'.
84312         * lib/wchar.in.h (mbsinit): New declaration.
84313         * lib/mbsinit.c: New file.
84314         * m4/mbsinit.m4: New file.
84315         * modules/mbsinit: New file.
84316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84317         HAVE_MBSINIT.
84318         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84319         HAVE_MBSINIT.
84320         * doc/posix-functions/mbsinit.texi: Document the new module.
84322 2008-12-16  Bruno Haible  <bruno@clisp.org>
84324         * lib/unistd.in.h: Add comment.
84325         * tests/test-environ.c: Don't include <stdlib.h>.
84327 2008-12-16  Bruno Haible  <bruno@clisp.org>
84329         * lib/parse-duration.h (parse_duration): Document return value
84330         convention.
84331         * lib/parse-duration.c: Include specification header first. Add
84332         comments.
84333         (_): Remove macro.
84334         (parse_year_month_day, parse_hour_minute_second): Move side effects
84335         outside of strchr call.
84336         (parse_non_iso8601): Move side effects outside of isspace call.
84337         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84338         call.
84340 2008-12-16  Bruno Haible  <bruno@clisp.org>
84342         * tests/test-parse-duration.sh: Produce no output when the test
84343         succeeds.
84345 2008-12-16  Bruno Haible  <bruno@clisp.org>
84347         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84348         expressions.
84350 2008-12-15  Bruno Haible  <bruno@clisp.org>
84352         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84353         * doc/glibc-functions/flistxattr.texi: Likewise.
84354         * doc/glibc-functions/fopencookie.texi: Likewise.
84355         * doc/glibc-functions/fremovexattr.texi: Likewise.
84356         * doc/glibc-functions/fsetxattr.texi: Likewise.
84357         * doc/glibc-functions/getxattr.texi: Likewise.
84358         * doc/glibc-functions/lgetxattr.texi: Likewise.
84359         * doc/glibc-functions/listxattr.texi: Likewise.
84360         * doc/glibc-functions/llistxattr.texi: Likewise.
84361         * doc/glibc-functions/lremovexattr.texi: Likewise.
84362         * doc/glibc-functions/lsetxattr.texi: Likewise.
84363         * doc/glibc-functions/removexattr.texi: Likewise.
84364         * doc/glibc-functions/setxattr.texi: Likewise.
84365         * doc/posix-functions/open_memstream.texi: Likewise.
84367 2008-12-15  Eric Blake  <ebb9@byu.net>
84369         Update doc for cygwin 1.7.
84370         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84371         functions.
84372         * doc/posix-functions/fchmodat.texi: Likewise.
84373         * doc/posix-functions/fchownat.texi: Likewise.
84374         * doc/posix-functions/fdopendir.texi: Likewise.
84375         * doc/posix-functions/fmemopen.texi: Likewise.
84376         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84377         * doc/posix-functions/fstatat.texi: Likewise.
84378         * doc/posix-functions/futimens.texi: Likewise.
84379         * doc/posix-functions/gai_strerror.texi: Likewise.
84380         * doc/posix-functions/getaddrinfo.texi: Likewise.
84381         * doc/posix-functions/getnameinfo.texi: Likewise.
84382         * doc/posix-functions/if_freenameindex.texi: Likewise.
84383         * doc/posix-functions/if_indextoname.texi: Likewise.
84384         * doc/posix-functions/if_nameindex.texi: Likewise.
84385         * doc/posix-functions/if_nametoindex.texi: Likewise.
84386         * doc/posix-functions/insque.texi: Likewise.
84387         * doc/posix-functions/linkat.texi: Likewise.
84388         * doc/posix-functions/llrint.texi: Likewise.
84389         * doc/posix-functions/llrintf.texi: Likewise.
84390         * doc/posix-functions/llrintl.texi: Likewise.
84391         * doc/posix-functions/lockf.texi: Likewise.
84392         * doc/posix-functions/lrintl.texi: Likewise.
84393         * doc/posix-functions/mkdirat.texi: Likewise.
84394         * doc/posix-functions/mkfifoat.texi: Likewise.
84395         * doc/posix-functions/mknodat.texi: Likewise.
84396         * doc/posix-functions/mq_close.texi: Likewise.
84397         * doc/posix-functions/mq_getattr.texi: Likewise.
84398         * doc/posix-functions/mq_notify.texi: Likewise.
84399         * doc/posix-functions/mq_open.texi: Likewise.
84400         * doc/posix-functions/mq_receive.texi: Likewise.
84401         * doc/posix-functions/mq_send.texi: Likewise.
84402         * doc/posix-functions/mq_setattr.texi: Likewise.
84403         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84404         * doc/posix-functions/mq_timedsend.texi: Likewise.
84405         * doc/posix-functions/mq_unlink.texi: Likewise.
84406         * doc/posix-functions/open_memstream.texi: Likewise.
84407         * doc/posix-functions/openat.texi: Likewise.
84408         * doc/posix-functions/posix_fadvise.texi: Likewise.
84409         * doc/posix-functions/posix_fallocate.texi: Likewise.
84410         * doc/posix-functions/posix_madvise.texi: Likewise.
84411         * doc/posix-functions/posix_memalign.texi: Likewise.
84412         * doc/posix-functions/posix_openpt.texi: Likewise.
84413         * doc/posix-functions/readlinkat.texi: Likewise.
84414         * doc/posix-functions/remque.texi: Likewise.
84415         * doc/posix-functions/renameat.texi: Likewise.
84416         * doc/posix-functions/rintl.texi: Likewise.
84417         * doc/posix-functions/sem_unlink.texi: Likewise.
84418         * doc/posix-functions/shm_open.texi: Likewise.
84419         * doc/posix-functions/shm_unlink.texi: Likewise.
84420         * doc/posix-functions/signgam.texi: Likewise.
84421         * doc/posix-functions/sigset.texi: Likewise.
84422         * doc/posix-functions/stpcpy.texi: Likewise.
84423         * doc/posix-functions/stpncpy.texi: Likewise.
84424         * doc/posix-functions/strerror.texi: Likewise.
84425         * doc/posix-functions/strtod.texi: Likewise.
84426         * doc/posix-functions/symlinkat.texi: Likewise.
84427         * doc/posix-functions/unlinkat.texi: Likewise.
84428         * doc/posix-functions/utimensat.texi: Likewise.
84429         * doc/glibc-functions/bindresvport.texi: Likewise.
84430         * doc/glibc-functions/dn_expand.texi: Likewise.
84431         * doc/glibc-functions/exp10.texi: Likewise.
84432         * doc/glibc-functions/exp10f.texi: Likewise.
84433         * doc/glibc-functions/fgetxattr.texi: Likewise.
84434         * doc/glibc-functions/flistxattr.texi: Likewise.
84435         * doc/glibc-functions/fopencookie.texi: Likewise.
84436         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84437         * doc/glibc-functions/fremovexattr.texi: Likewise.
84438         * doc/glibc-functions/fsetxattr.texi: Likewise.
84439         * doc/glibc-functions/getifaddrs.texi: Likewise.
84440         * doc/glibc-functions/getxattr.texi: Likewise.
84441         * doc/glibc-functions/lgetxattr.texi: Likewise.
84442         * doc/glibc-functions/listxattr.texi: Likewise.
84443         * doc/glibc-functions/llistxattr.texi: Likewise.
84444         * doc/glibc-functions/lremovexattr.texi: Likewise.
84445         * doc/glibc-functions/lsetxattr.texi: Likewise.
84446         * doc/glibc-functions/pow10.texi: Likewise.
84447         * doc/glibc-functions/pow10f.texi: Likewise.
84448         * doc/glibc-functions/rcmd_af.texi: Likewise.
84449         * doc/glibc-functions/removexattr.texi: Likewise.
84450         * doc/glibc-functions/res_init.texi: Likewise.
84451         * doc/glibc-functions/res_mkquery.texi: Likewise.
84452         * doc/glibc-functions/res_query.texi: Likewise.
84453         * doc/glibc-functions/res_querydomain.texi: Likewise.
84454         * doc/glibc-functions/res_send.texi: Likewise.
84455         * doc/glibc-functions/rresvport_af.texi: Likewise.
84456         * doc/glibc-functions/setxattr.texi: Likewise.
84457         * doc/glibc-functions/strcasestr.texi: Likewise.
84459 2008-12-15  Bruno Haible  <bruno@clisp.org>
84461         Fix compilation error on OSF/1 4.0.
84462         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84463         <sys/time.h>, simply delegate to the system header.
84464         Reported by Daniel Richard G. <oss@teragram.com>.
84466 2008-12-15  Bruno Haible  <bruno@clisp.org>
84468         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84469         * doc/posix-functions/fchmodat.texi: Likewise.
84470         * doc/posix-functions/fchownat.texi: Likewise.
84471         * doc/posix-functions/fdopendir.texi: Likewise.
84472         * doc/posix-functions/fstatat.texi: Likewise.
84473         * doc/posix-functions/mkdirat.texi: Likewise.
84474         * doc/posix-functions/unlinkat.texi: Likewise.
84476 2008-12-14  Bruno Haible  <bruno@clisp.org>
84478         Update doc for POSIX:2008.
84479         * doc/posix-functions/faccessat.texi: New file.
84480         * doc/posix-functions/fchmodat.texi: New file.
84481         * doc/posix-functions/fchownat.texi: New file.
84482         * doc/posix-functions/fdopendir.texi: New file.
84483         * doc/posix-functions/fstatat.texi: New file.
84484         * doc/posix-functions/futimens.texi: New file.
84485         * doc/posix-functions/linkat.texi: New file.
84486         * doc/posix-functions/mkdirat.texi: New file.
84487         * doc/posix-functions/mkfifoat.texi: New file.
84488         * doc/posix-functions/mknodat.texi: New file.
84489         * doc/posix-functions/open_wmemstream.texi: New file.
84490         * doc/posix-functions/openat.texi: New file.
84491         * doc/posix-functions/psiginfo.texi: New file.
84492         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84493         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84494         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84495         * doc/posix-functions/readlinkat.texi: New file.
84496         * doc/posix-functions/renameat.texi: New file.
84497         * doc/posix-functions/strerror_l.texi: New file.
84498         * doc/posix-functions/symlinkat.texi: New file.
84499         * doc/posix-functions/unlinkat.texi: New file.
84500         * doc/posix-functions/utimensat.texi: New file.
84501         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84503 2008-12-14  Bruno Haible  <bruno@clisp.org>
84505         Update doc for POSIX:2008.
84506         * doc/posix-functions/alphasort.texi: Renamed from
84507         doc/glibc-functions/alphasort.texi.
84508         * doc/posix-functions/dirfd.texi: Renamed from
84509         doc/glibc-functions/dirfd.texi.
84510         * doc/posix-functions/dprintf.texi: Renamed from
84511         doc/glibc-functions/dprintf.texi.
84512         * doc/posix-functions/duplocale.texi: Renamed from
84513         doc/glibc-functions/duplocale.texi.
84514         * doc/posix-functions/fexecve.texi: Renamed from
84515         doc/glibc-functions/fexecve.texi.
84516         * doc/posix-functions/fmemopen.texi: Renamed from
84517         doc/glibc-functions/fmemopen.texi.
84518         * doc/posix-functions/freelocale.texi: Renamed from
84519         doc/glibc-functions/freelocale.texi.
84520         * doc/posix-functions/getdate_err.texi: Renamed from
84521         doc/glibc-functions/getdate_err.texi.
84522         * doc/posix-functions/isalnum_l.texi: Renamed from
84523         doc/glibc-functions/isalnum_l.texi.
84524         * doc/posix-functions/isalpha_l.texi: Renamed from
84525         doc/glibc-functions/isalpha_l.texi.
84526         * doc/posix-functions/isblank_l.texi: Renamed from
84527         doc/glibc-functions/isblank_l.texi.
84528         * doc/posix-functions/iscntrl_l.texi: Renamed from
84529         doc/glibc-functions/iscntrl_l.texi.
84530         * doc/posix-functions/isdigit_l.texi: Renamed from
84531         doc/glibc-functions/isdigit_l.texi.
84532         * doc/posix-functions/isgraph_l.texi: Renamed from
84533         doc/glibc-functions/isgraph_l.texi.
84534         * doc/posix-functions/islower_l.texi: Renamed from
84535         doc/glibc-functions/islower_l.texi.
84536         * doc/posix-functions/isprint_l.texi: Renamed from
84537         doc/glibc-functions/isprint_l.texi.
84538         * doc/posix-functions/ispunct_l.texi: Renamed from
84539         doc/glibc-functions/ispunct_l.texi.
84540         * doc/posix-functions/isspace_l.texi: Renamed from
84541         doc/glibc-functions/isspace_l.texi.
84542         * doc/posix-functions/isupper_l.texi: Renamed from
84543         doc/glibc-functions/isupper_l.texi.
84544         * doc/posix-functions/iswalnum_l.texi: Renamed from
84545         doc/glibc-functions/iswalnum_l.texi.
84546         * doc/posix-functions/iswalpha_l.texi: Renamed from
84547         doc/glibc-functions/iswalpha_l.texi.
84548         * doc/posix-functions/iswblank_l.texi: Renamed from
84549         doc/glibc-functions/iswblank_l.texi.
84550         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84551         doc/glibc-functions/iswcntrl_l.texi.
84552         * doc/posix-functions/iswctype_l.texi: Renamed from
84553         doc/glibc-functions/iswctype_l.texi.
84554         * doc/posix-functions/iswdigit_l.texi: Renamed from
84555         doc/glibc-functions/iswdigit_l.texi.
84556         * doc/posix-functions/iswgraph_l.texi: Renamed from
84557         doc/glibc-functions/iswgraph_l.texi.
84558         * doc/posix-functions/iswlower_l.texi: Renamed from
84559         doc/glibc-functions/iswlower_l.texi.
84560         * doc/posix-functions/iswprint_l.texi: Renamed from
84561         doc/glibc-functions/iswprint_l.texi.
84562         * doc/posix-functions/iswpunct_l.texi: Renamed from
84563         doc/glibc-functions/iswpunct_l.texi.
84564         * doc/posix-functions/iswspace_l.texi: Renamed from
84565         doc/glibc-functions/iswspace_l.texi.
84566         * doc/posix-functions/iswupper_l.texi: Renamed from
84567         doc/glibc-functions/iswupper_l.texi.
84568         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84569         doc/glibc-functions/iswxdigit_l.texi.
84570         * doc/posix-functions/isxdigit_l.texi: Renamed from
84571         doc/glibc-functions/isxdigit_l.texi.
84572         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84573         doc/glibc-functions/mbsnrtowcs.texi.
84574         * doc/posix-functions/mkdtemp.texi: Renamed from
84575         doc/glibc-functions/mkdtemp.texi.
84576         * doc/posix-functions/newlocale.texi: Renamed from
84577         doc/glibc-functions/newlocale.texi.
84578         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84579         doc/glibc-functions/nl_langinfo_l.texi.
84580         * doc/posix-functions/open_memstream.texi: Renamed from
84581         doc/glibc-functions/open_memstream.texi.
84582         * doc/posix-functions/opterr.texi: Renamed from
84583         doc/glibc-functions/opterr.texi.
84584         * doc/posix-functions/optind.texi: Renamed from
84585         doc/glibc-functions/optind.texi.
84586         * doc/posix-functions/optopt.texi: Renamed from
84587         doc/glibc-functions/optopt.texi.
84588         * doc/posix-functions/psignal.texi: Renamed from
84589         doc/glibc-functions/psignal.texi.
84590         * doc/posix-functions/scandir.texi: Renamed from
84591         doc/glibc-functions/scandir.texi.
84592         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84593         doc/glibc-functions/sched_get_priority_min.texi.
84594         * doc/posix-functions/signgam.texi: Renamed from
84595         doc/glibc-functions/signgam.texi.
84596         * doc/posix-functions/stpcpy.texi: Renamed from
84597         doc/glibc-functions/stpcpy.texi.
84598         * doc/posix-functions/stpncpy.texi: Renamed from
84599         doc/glibc-functions/stpncpy.texi.
84600         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84601         doc/glibc-functions/strcasecmp_l.texi.
84602         * doc/posix-functions/strcoll_l.texi: Renamed from
84603         doc/glibc-functions/strcoll_l.texi.
84604         * doc/posix-functions/strfmon_l.texi: Renamed from
84605         doc/glibc-functions/strfmon_l.texi.
84606         * doc/posix-functions/strftime_l.texi: Renamed from
84607         doc/glibc-functions/strftime_l.texi.
84608         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84609         doc/glibc-functions/strncasecmp_l.texi.
84610         * doc/posix-functions/strndup.texi: Renamed from
84611         doc/glibc-functions/strndup.texi.
84612         * doc/posix-functions/strnlen.texi: Renamed from
84613         doc/glibc-functions/strnlen.texi.
84614         * doc/posix-functions/strsignal.texi: Renamed from
84615         doc/glibc-functions/strsignal.texi.
84616         * doc/posix-functions/strxfrm_l.texi: Renamed from
84617         doc/glibc-functions/strxfrm_l.texi.
84618         * doc/posix-functions/timer_gettime.texi: Renamed from
84619         doc/glibc-functions/timer_gettime.texi.
84620         * doc/posix-functions/tolower_l.texi: Renamed from
84621         doc/glibc-functions/tolower_l.texi.
84622         * doc/posix-functions/toupper_l.texi: Renamed from
84623         doc/glibc-functions/toupper_l.texi.
84624         * doc/posix-functions/towctrans_l.texi: Renamed from
84625         doc/glibc-functions/towctrans_l.texi.
84626         * doc/posix-functions/towlower_l.texi: Renamed from
84627         doc/glibc-functions/towlower_l.texi.
84628         * doc/posix-functions/towupper_l.texi: Renamed from
84629         doc/glibc-functions/towupper_l.texi.
84630         * doc/posix-functions/uselocale.texi: Renamed from
84631         doc/glibc-functions/uselocale.texi.
84632         * doc/posix-functions/vdprintf.texi: Renamed from
84633         doc/glibc-functions/vdprintf.texi.
84634         * doc/posix-functions/wcpcpy.texi:
84635         Renamed from doc/glibc-functions/wcpcpy.texi.
84636         * doc/posix-functions/wcpncpy.texi: Renamed from
84637         doc/glibc-functions/wcpncpy.texi.
84638         * doc/posix-functions/wcscasecmp.texi: Renamed from
84639         doc/glibc-functions/wcscasecmp.texi.
84640         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84641         doc/glibc-functions/wcscasecmp_l.texi.
84642         * doc/posix-functions/wcscoll_l.texi: Renamed from
84643         doc/glibc-functions/wcscoll_l.texi.
84644         * doc/posix-functions/wcsdup.texi: Renamed from
84645         doc/glibc-functions/wcsdup.texi.
84646         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84647         doc/glibc-functions/wcsncasecmp.texi.
84648         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84649         doc/glibc-functions/wcsncasecmp_l.texi.
84650         * doc/posix-functions/wcsnlen.texi: Renamed from
84651         doc/glibc-functions/wcsnlen.texi.
84652         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84653         doc/glibc-functions/wcsnrtombs.texi.
84654         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84655         doc/glibc-functions/wcsxfrm_l.texi.
84656         * doc/posix-functions/wctrans_l.texi: Renamed from
84657         doc/glibc-functions/wctrans_l.texi.
84658         * doc/posix-functions/wctype_l.texi: Renamed from
84659         doc/glibc-functions/wctype_l.texi.
84660         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84661         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84662         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84663         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84664         these subsections.
84665         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84666         Remove sections.
84668 2008-12-14  Bruno Haible  <bruno@clisp.org>
84670         Update doc for POSIX:2008.
84671         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84673 2008-12-14  Bruno Haible  <bruno@clisp.org>
84675         Update doc for POSIX:2008.
84676         * doc/pastposix-functions/bcmp.texi: Renamed from
84677         doc/posix-functions/bcmp.texi.
84678         * doc/pastposix-functions/bcopy.texi: Renamed from
84679         doc/posix-functions/bcopy.texi.
84680         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84681         doc/posix-functions/bsd_signal.texi.
84682         * doc/pastposix-functions/bzero.texi: Renamed from
84683         doc/posix-functions/bzero.texi.
84684         * doc/pastposix-functions/ecvt.texi: Renamed from
84685         doc/posix-functions/ecvt.texi.
84686         * doc/pastposix-functions/fcvt.texi: Renamed from
84687         doc/posix-functions/fcvt.texi.
84688         * doc/pastposix-functions/ftime.texi: Renamed from
84689         doc/posix-functions/ftime.texi.
84690         * doc/pastposix-functions/gcvt.texi: Renamed from
84691         doc/posix-functions/gcvt.texi.
84692         * doc/pastposix-functions/getcontext.texi: Renamed from
84693         doc/posix-functions/getcontext.texi.
84694         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84695         doc/posix-functions/gethostbyaddr.texi.
84696         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84697         doc/posix-functions/gethostbyname.texi.
84698         * doc/pastposix-functions/getwd.texi: Renamed from
84699         doc/posix-functions/getwd.texi.
84700         * doc/pastposix-functions/h_errno.texi: Renamed from
84701         doc/posix-functions/h_errno.texi.
84702         * doc/pastposix-functions/index.texi: Renamed from
84703         doc/posix-functions/index.texi.
84704         * doc/pastposix-functions/makecontext.texi: Renamed from
84705         doc/posix-functions/makecontext.texi.
84706         * doc/pastposix-functions/mktemp.texi: Renamed from
84707         doc/posix-functions/mktemp.texi.
84708         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84709         doc/posix-functions/pthread_attr_getstackaddr.texi.
84710         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84711         doc/posix-functions/pthread_attr_setstackaddr.texi.
84712         * doc/pastposix-functions/rindex.texi: Renamed from
84713         doc/posix-functions/rindex.texi.
84714         * doc/pastposix-functions/scalb.texi: Renamed from
84715         doc/posix-functions/scalb.texi.
84716         * doc/pastposix-functions/setcontext.texi: Renamed from
84717         doc/posix-functions/setcontext.texi.
84718         * doc/pastposix-functions/swapcontext.texi: Renamed from
84719         doc/posix-functions/swapcontext.texi.
84720         * doc/pastposix-functions/ualarm.texi: Renamed from
84721         doc/posix-functions/ualarm.texi.
84722         * doc/pastposix-functions/usleep.texi: Renamed from
84723         doc/posix-functions/usleep.texi.
84724         * doc/pastposix-functions/vfork.texi: Renamed from
84725         doc/posix-functions/vfork.texi.
84726         * doc/pastposix-functions/wcswcs.texi: Renamed from
84727         doc/posix-functions/wcswcs.texi.
84728         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
84729         (Function Substitutes): Update.
84731 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84733         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
84734         m4/strerror.m4.
84736 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84737             Bruno Haible  <bruno@clisp.org>
84739         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
84741 2008-12-13  Bruno Haible  <bruno@clisp.org>
84743         * modules/strtoull (Depends-on): Remove unistd.
84745 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84747         * modules/strtoull (Depends-on): Add stdlib.
84749 2008-12-11  Simon Josefsson  <simon@josefsson.org>
84751         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
84753 2008-12-10  Jim Meyering  <meyering@redhat.com>
84755         gl_ASSERT: don't say assertions are disabled when they're not
84756         * m4/assert.m4 (gl_ASSERT): Do not make configure report
84757         "checking whether to enable assertions... no", when they are in
84758         fact enabled.  This is solely a bug in the output of configure.
84759         In spite of saying "no", NDEBUG was not defined in that case.
84760         Also, as noted by Eric Blake, leave assertions enabled upon
84761         --enable-assert=INVALID.
84763 2008-12-10  Bruno Haible  <bruno@clisp.org>
84765         Change MODULES.html to refer to POSIX:2008 where possible.
84766         * MODULES.html.sh (POSIX2008_URL): New variable.
84767         (posix_headers): Remove sys/timeb, ucontext.
84768         (posix2001_headers): New variable.
84769         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
84770         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
84771         index, makecontext, mktemp, pthread_attr_getstackaddr,
84772         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
84773         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
84774         (posix2001_functions): New variable.
84775         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
84776         otherwise.
84778 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84780         add missing include to parse-duration.c
84781         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
84782         * modules/parse-duration (Depends-on): Add xalloc.
84784         fix sed script reading maint.mk
84785         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
84786         (syntax-check-rules): Use it.
84788 2008-12-09  Bruno Haible  <bruno@clisp.org>
84790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
84791         MacOS X 10.4/PowerPC.
84792         Reported by Simon Josefsson.
84794 2008-12-08  Jim Meyering  <meyering@redhat.com>
84796         work around mingw's lack of some S_IF definitions
84797         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
84798         Reported by Simon Josefsson.
84800 2008-12-08  Bruno Haible  <bruno@clisp.org>
84802         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
84803         applied to variables. Needed on MacOS X 10.4/PowerPC.
84804         Reported by Simon Josefsson.
84806 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
84807         and Eric Blake  <ebb9@byu.net>
84809         assert: honor --enable-assert
84810         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
84811         order to honor --enable-assert, rather than treating it as a
84812         synonym for --disable-assert.
84814 2008-12-08  Jim Meyering  <meyering@redhat.com>
84816         * lib/posixtm.c: Remove now-useless declaration of mktime.
84818         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
84820 2008-12-07  Bruno Haible  <bruno@clisp.org>
84822         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
84823         test_once): Mark functions as static.
84824         * tests/test-tls.c (test_tls): Likewise.
84826 2008-12-07  Bruno Haible  <bruno@clisp.org>
84828         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
84829         iconv_register_autodetect.
84831 2008-12-07  Jim Meyering  <meyering@redhat.com>
84833         posixtm.c: avoid a warning
84834         * lib/posixtm.c (posixtime): Don't initialize tm0.
84835         It's no longer needed to placate gcc4's -Wuninitialized,
84836         and the attempt to placate would elicit a new warning.
84838         unicodeio.c: mark unused parameters
84839         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84840         (fallback_failure_callback): Likewise.
84842 2008-12-07  Bruno Haible  <bruno@clisp.org>
84844         * gnulib-tool (func_create_testdir): When building the tests
84845         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
84846         Reported by Simon Josefsson.
84848 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84850         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
84852 2008-12-06  Bruno Haible  <bruno@clisp.org>
84854         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
84855         Suggested by Eric Blake.
84857 2008-12-06  Bruno Haible  <bruno@clisp.org>
84859         Fix a c-stack test failure on MacOS X.
84860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
84861         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
84862         handler for SIGBUS as well.
84863         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
84864         install a signal handler for SIGBUS as well.
84865         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
84867 2008-12-06  Bruno Haible  <bruno@clisp.org>
84869         Advocacy documentation.
84870         * doc/gnulib-intro.texi (Benefits): New section.
84871         * doc/gnulib.texi: Update.
84873 2008-12-06  Bruno Haible  <bruno@clisp.org>
84875         Document the 'manywarnings' module.
84876         * doc/manywarnings.texi: New file.
84877         * doc/gnulib.texi: Include it.
84879 2008-12-05  Eric Blake  <ebb9@byu.net>
84881         tests: silence some gcc warnings
84882         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
84883         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
84884         type mismatches.
84886 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84887             Bruno Haible  <bruno@clisp.org>
84889         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
84891 2008-11-29  Jim Meyering  <meyering@redhat.com>
84893         unicodeio.c: mark unused parameters
84894         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84895         (fallback_failure_callback): Likewise.
84897         fts: fix a thinko
84898         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
84899         (set_stat_type): Return S_IF*-valued "type" directly.
84900         Prompted by James Youngman's spotting a related bug.
84901         Confirmed by further testing through find.
84903         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
84904         * lib/fts.c (D_TYPE): Define.
84905         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
84906         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
84907         (s_ifmt_shift_bits): New function.
84908         (set_stat_type): New function.
84909         (fts_build): When not calling fts_stat, call set_stat_type
84910         to propagate dirent.d_type info to fts_read caller.
84911         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
84912         fts_statp->st_mode type information may be valid.
84914 2008-11-28  Simon Josefsson  <simon@josefsson.org>
84916         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
84917         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
84918         <sds@gnu.org>.
84920 2008-11-20  Bruno Haible  <bruno@clisp.org>
84922         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
84923         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
84924         INCLUDE_NEXT.
84925         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
84926         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
84927         * modules/math (Makefile.am): Substitute
84928         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
84929         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84931 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
84932             Bruno Haible  <bruno@clisp.org>
84934         * lib/stdint.in.h: Define all type macros so that their expansion is
84935         a single typedef'ed token. Fixes a compilation failure in Boost which
84936         does "using ::int8_t;".
84938 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84940         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
84941         gl_MANYWARN_ALL_GCC.
84942         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
84943         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
84944         * modules/manywarnings: New file.
84945         * MODULES.html.sh: Mention manywarnings module.
84947 2008-11-18  Bruno Haible  <bruno@clisp.org>
84949         * doc/gnulib-tool.texi (Unit tests): New section.
84951 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84953         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
84954         paths like 'lib/po/foo.po'.
84956 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84958         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
84959         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
84961 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84963         * m4/warnings.m4: Use CPPFLAGS to really check whether the
84964         parameter works.
84966 2008-11-17  Simon Josefsson  <simon@josefsson.org>
84968         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
84970 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84972         * modules/parse-duration-tests: New file.
84973         * tests/test-parse-duration.sh: New file.
84974         * tests/test-parse-duration.c: New file.
84976         New module 'parse-duration'.
84977         * lib/parse-duration.h: New file.
84978         * lib/parse-duration.c: New file.
84979         * modules/parse-duration: New file.
84981 2008-11-17  Bruno Haible  <bruno@clisp.org>
84983         * tests/test-select-out.sh: Comment out the first pipe test.
84984         Reported by Simon Josefsson.
84986 2008-11-17  Bruno Haible  <bruno@clisp.org>
84988         * modules/getaddrinfo (Depends-on): Add servent, hostent.
84989         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
84990         gl_HOSTENT.
84992 2008-11-17  Bruno Haible  <bruno@clisp.org>
84994         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
84995         -lnetwork and -lnet. Needed for Haiku and BeOS.
84997 2008-11-16  Bruno Haible  <bruno@clisp.org>
84999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85001 2008-11-16  Bruno Haible  <bruno@clisp.org>
85003         Avoid test failure on Haiku.
85004         * tests/test-fsync.c: Include <errno.h>.
85005         (main): Don't require that fsync (0) fails.
85007 2008-11-15  Bruno Haible  <bruno@clisp.org>
85009         New module 'hostent'.
85010         * modules/hostent: New file.
85011         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85013 2008-11-15  Bruno Haible  <bruno@clisp.org>
85015         New module 'servent'.
85016         * modules/servent: New file.
85017         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85019 2008-11-15  Bruno Haible  <bruno@clisp.org>
85021         Avoid generating same test program with two different rules.
85022         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85023         test-frexp to test-frexp-nolibm.
85024         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85025         test-frexpl to test-frexpl-nolibm.
85027 2008-11-15  Bruno Haible  <bruno@clisp.org>
85029         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85030         $(FREXPL_LIBM).
85032 2008-11-15  Bruno Haible  <bruno@clisp.org>
85034         * lib/netdb.in.h: Activate the definitions also when the system's
85035         <netdb.h> has 'struct addrinfo'.
85036         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85037         EAI_OVERFLOW or AI_NUMERICSERV.
85038         * doc/posix-headers/netdb.texi: Document the problem.
85040 2008-11-15  Bruno Haible  <bruno@clisp.org>
85042         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85044         Make the 'sched' module work on platforms where <sched.h> exists but
85045         is incomplete (such as Haiku).
85046         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85047         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85048         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85049         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85050         HAVE_STRUCT_SCHED_PARAM.
85051         * modules/sched (Depends-on): Add include_next.
85052         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85053         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85054         * doc/posix-headers/sched.texi: Document the issue.
85056 2008-11-13  Jim Meyering  <meyering@redhat.com>
85058         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85059         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85060         test would fail due to the difference in the Report bugs to ...
85061         line.  The expected address is empty, "<>", while the actual
85062         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85064 2008-11-12  Bruno Haible  <bruno@clisp.org>
85066         lstat: don't compile lstat.c on systems lacking lstat
85067         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85068         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85069         Reported by Daniel P. Berrange via Jim Meyering.
85071 2008-11-12  Jim Meyering  <meyering@redhat.com>
85073         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85075 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85077         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85078         instead.
85080 2008-11-12  Bruno Haible  <bruno@clisp.org>
85082         * lib/unicodeio.c: Include unistr.h.
85083         (utf8_wctomb): Remove function.
85084         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85086 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85088         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85089         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85090         <bruno@clisp.org>.
85091         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85093 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85095         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85096         * doc/gnulib.texi: Add section for warnings.
85098 2008-11-11  Bruno Haible  <bruno@clisp.org>
85100         * lib/sockets.h: Add a comment.
85102 2008-11-11  Karl Berry  <karl@gnu.org>
85104         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85106 2008-11-11  Eric Blake  <ebb9@byu.net>
85108         fdl.texi: avoid git symlinks
85109         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85111 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85113         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85115 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85117         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85118         (gl_WARN_ADD): Substitute $2 if literal.
85120 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85122         * m4/warning.m4: Remove.
85124 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85126         * m4/warnings.m4: Almost complete rewrite. :-)
85128 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85130         * modules/warnings: New module.
85131         * m4/warnings.m4: New file.
85132         * MODULES.html.sh: Mention warnings module.
85133         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85134         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85136 2008-11-10  Eric Blake  <ebb9@byu.net>
85138         fdl.texi: make a symlink to the latest version
85139         * doc/standards.texi: Revert today's earlier change.
85140         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85141         * doc/fdl.texi: ...and replace this with a symlink to the newer
85142         fdl-1.3.texi.
85144 2008-11-10  Bruno Haible  <bruno@clisp.org>
85146         * tests/test-select-fd.c (main): Accept the result file name as fourth
85147         argument.
85148         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85149         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85151 2008-11-10  Bruno Haible  <bruno@clisp.org>
85153         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85154         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85155         as autoconf-substituted macros.
85156         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85157         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85158         gl_NETDB_H_DEFAULTS. Set these variables.
85159         * modules/netdb (Makefile.am): Substitute these variables.
85161 2008-11-10  Eric Blake  <ebb9@byu.net>
85163         standards.texi: include correct file for FDL 1.3
85164         * doc/standards.texi (GNU Free Documentation License): Change
85165         include file to pull in FDL 1.3, not 1.2.
85167         fdl.texi: revert accidental change to license
85168         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85170 2008-11-10  Bruno Haible  <bruno@clisp.org>
85172         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85173         cross-compiling guesses also when the native compile gives no result.
85175 2008-11-10  Bruno Haible  <bruno@clisp.org>
85177         * lib/spawni.c (__spawni): Force variable into the stack.
85179 2008-11-10  Bruno Haible  <bruno@clisp.org>
85181         Add support for Haiku.
85182         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85183         glibc and BeOS, but also on Haiku.
85184         * lib/fpurge.c (fpurge): Likewise.
85185         * lib/freadable.c (freadable): Likewise.
85186         * lib/freadahead.c (freadahead): Likewise.
85187         * lib/freading.c (freading): Likewise.
85188         * lib/freadptr.c (freadptr): Likewise.
85189         * lib/freadseek.c (freadptrinc): Likewise.
85190         * lib/fseeko.c (rpl_fseeko): Likewise.
85191         * lib/fseterr.c (fseterr): Likewise.
85192         * lib/fwritable.c (fwritable): Likewise.
85193         * lib/fwriting.c (fwriting): Likewise.
85194         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85196 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85198         * lib/config.charset: Treat Haiku like BeOS.
85200 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85202         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85203         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85205 2008-11-08  Bruno Haible  <bruno@clisp.org>
85207         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85208         AC_CACHE_CHECK.
85210 2008-11-08  Bruno Haible  <bruno@clisp.org>
85212         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85214 2008-11-08  Bruno Haible  <bruno@clisp.org>
85216         * tests/test-select-fd.c: New file.
85217         * tests/test-select-in.sh: New file.
85218         * tests/test-select-out.sh: New file.
85219         * tests/test-select-stdin.c: New file.
85220         * modules/select-tests (Files): Add the new files.
85221         (Depends-on): Add gettimeofday.
85222         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85223         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85224         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85226 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85227             Bruno Haible  <bruno@clisp.org>
85229         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85231 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85233         * build-aux/pmccabe2html: Added support for C++ source files.
85235 2008-11-05  Ben Pfaff  <blp@gnu.org>
85237         Fix lib/close.c build on Windows.
85238         * modules/close (Files): Add lib/w32sock.h.
85240 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85242         Accept Bison's NEWS format.
85243         * build-aux/announce-gen (print_news_deltas): Tweak
85244         $re_prefix.
85246 2008-11-04  Bruno Haible  <bruno@clisp.org>
85248         * modules/random_r (Maintainer): Add glibc.
85250 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85252         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85253         by karl@freefriends.org (Karl Berry).
85254         * doc/alloca.texi: Likewise.
85255         * doc/c-ctype.texi: Likewise.
85256         * doc/c-strcase.texi: Likewise.
85257         * doc/c-strcaseeq.texi: Likewise.
85258         * doc/c-strcasestr.texi: Likewise.
85259         * doc/c-strstr.texi: Likewise.
85260         * doc/c-strtod.texi: Likewise.
85261         * doc/c-strtold.texi: Likewise.
85262         * doc/ctime.texi: Likewise.
85263         * doc/error.texi: Likewise.
85264         * doc/fdl.texi: Likewise.
85265         * doc/gcd.texi: Likewise.
85266         * doc/getdate.texi: Likewise.
85267         * doc/gnulib-intro.texi: Likewise.
85268         * doc/gnulib-tool.texi: Likewise.
85269         * doc/gnulib.texi: Likewise.
85270         * doc/inet_ntoa.texi: Likewise.
85271         * doc/maintain.texi: Likewise.
85272         * doc/make-stds.texi: Likewise.
85273         * doc/quote.texi: Likewise.
85274         * doc/regexprops-generic.texi: Likewise.
85275         * doc/standards.texi: Likewise.
85276         * doc/verify.texi: Likewise.
85277         * doc/visibility.texi: Likewise.
85278         * doc/gnulib.texi (GNU Free Documentation License): Include
85279         fdl-1.3.texi instead of fdl.texi.
85281 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85283         * doc/fdl-1.3.texi: New file, from
85284         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85285         * modules/fdl-1.3: Add.
85286         * MODULES.html.sh: Add fdl-1.3.
85288 2008-11-03  Bruno Haible  <bruno@clisp.org>
85290         Make determination of absolute name of header file work with AIX xlc.
85291         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85292         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85293         preprocessing.
85294         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85295         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85297 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85299         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85300         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85301         <ludo@gnu.org>.
85303 2008-11-02  Bruno Haible  <bruno@clisp.org>
85305         Mark 'strpbrk' obsolete.
85306         * modules/strpbrk (Status, Notice): New sections.
85307         * modules/strtok_r (Depends-on): Add strpbrk.
85309 2008-11-02  Bruno Haible  <bruno@clisp.org>
85311         Mark 'strdup' obsolete.
85312         * modules/strdup (Status, Notice): New sections.
85313         * modules/findprog (Depends-on): Add strdup.
85314         * modules/getaddrinfo (Depends-on): Likewise.
85315         * modules/localename (Depends-on): Likewise.
85316         * modules/relocatable-lib (Depends-on): Likewise.
85317         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85318         * modules/relocatable-prog (Depends-on): Likewise.
85319         * modules/trim (Depends-on): Likewise.
85320         * modules/unictype/gen-ctype (Depends-on): Likewise.
85321         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85323 2008-11-02  Bruno Haible  <bruno@clisp.org>
85325         Mark 'strcspn' obsolete.
85326         * modules/strcspn (Status, Notice): New sections.
85328 2008-11-02  Bruno Haible  <bruno@clisp.org>
85330         Mark 'rmdir' obsolete.
85331         * modules/rmdir (Status, Notice): New sections.
85332         * modules/clean-temp (Depends-on): Add rmdir.
85333         * modules/openat (Depends-on): Likewise.
85335 2008-11-02  Bruno Haible  <bruno@clisp.org>
85337         Mark 'raise' obsolete.
85338         * modules/raise (Status, Notice): New sections.
85339         (Include): Specify <signal.h>.
85340         * modules/stdio (Depends-on): Add raise.
85341         * modules/write (Depends-on): Likewise.
85343 2008-11-02  Bruno Haible  <bruno@clisp.org>
85345         Mark 'memset' obsolete.
85346         * modules/memset (Status, Notice): New sections.
85348 2008-11-02  Bruno Haible  <bruno@clisp.org>
85350         Mark 'memmove' obsolete.
85351         * modules/memmove (Status, Notice): New sections.
85352         * modules/argp (Depends-on): Add memmove.
85353         * modules/argz (Depends-on): Likewise.
85354         * modules/canonicalize (Depends-on): Likewise.
85355         * modules/canonicalize-lgpl (Depends-on): Likewise.
85356         * modules/fts (Depends-on): Likewise.
85357         * modules/getcwd (Depends-on): Likewise.
85358         * modules/human (Depends-on): Likewise.
85359         * modules/regex (Depends-on): Likewise.
85360         * modules/striconveh (Depends-on): Likewise.
85361         * modules/trim (Depends-on): Likewise.
85362         * modules/unistr/u8-move (Depends-on): Likewise.
85363         * modules/unistr/u16-move (Depends-on): Likewise.
85364         * modules/unistr/u32-move (Depends-on): Likewise.
85366 2008-11-02  Bruno Haible  <bruno@clisp.org>
85368         Mark 'memcpy' obsolete.
85369         * modules/memcpy (Status, Notice): New sections.
85371 2008-11-02  Bruno Haible  <bruno@clisp.org>
85373         Mark 'memcmp' obsolete.
85374         * modules/memcmp (Status, Notice): New sections.
85375         * modules/argmatch (Depends-on): Add memchr.
85376         * modules/backupfile (Depends-on): Likewise.
85377         * modules/c-strcasestr (Depends-on): Likewise.
85378         * modules/crypto/des (Depends-on): Likewise.
85379         * modules/csharpcomp (Depends-on): Likewise.
85380         * modules/fnmatch (Depends-on): Likewise.
85381         * modules/git-merge-changelog (Depends-on): Likewise.
85382         * modules/isnand (Depends-on): Likewise.
85383         * modules/isnand-nolibm (Depends-on): Likewise.
85384         * modules/isnanf (Depends-on): Likewise.
85385         * modules/isnanf-nolibm (Depends-on): Likewise.
85386         * modules/isnanl (Depends-on): Likewise.
85387         * modules/isnanl-nolibm (Depends-on): Likewise.
85388         * modules/mbchar (Depends-on): Likewise.
85389         * modules/memcoll (Depends-on): Likewise.
85390         * modules/quotearg (Depends-on): Likewise.
85391         * modules/regex (Depends-on): Likewise.
85392         * modules/relocatable-prog (Depends-on): Likewise.
85393         * modules/same (Depends-on): Likewise.
85394         * modules/signbit (Depends-on): Likewise.
85395         * modules/strcasestr-simple (Depends-on): Likewise.
85396         * modules/unictype/gen-ctype (Depends-on): Likewise.
85397         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85398         * modules/uniname/uniname (Depends-on): Likewise.
85399         * modules/unistr/u8-cmp (Depends-on): Likewise.
85401 2008-11-02  Bruno Haible  <bruno@clisp.org>
85403         Mark 'memchr' obsolete.
85404         * modules/memchr (Status, Notice): New sections.
85405         * modules/argp (Depends-on): Add memchr.
85406         * modules/base64 (Depends-on): Likewise.
85407         * modules/c-strcasestr (Depends-on): Likewise.
85408         * modules/chdir-long (Depends-on): Likewise.
85409         * modules/fnmatch (Depends-on): Likewise.
85410         * modules/getsubopt (Depends-on): Likewise.
85411         * modules/git-merge-changelog (Depends-on): Likewise.
85412         * modules/glob (Depends-on): Likewise.
85413         * modules/strcasestr-simple (Depends-on): Likewise.
85414         * modules/strnlen (Depends-on): Likewise.
85416 2008-11-02  Bruno Haible  <bruno@clisp.org>
85418         Mark 'atexit' obsolete.
85419         * modules/atexit (Status, Notice): New sections.
85420         * modules/chdir-long (Depends-on): Add atexit.
85421         * modules/wait-process (Depends-on): Likewise.
85423 2008-11-02  Bruno Haible  <bruno@clisp.org>
85425         * gnulib-tool: New option --with-obsolete.
85426         (func_usage): Document it.
85427         (func_modules_transitive_closure): Drop obsolete dependencies if
85428         incobsolete is not true.
85429         (func_import): Read and save the incobsolete variable to the cache.
85431 2008-11-02  Bruno Haible  <bruno@clisp.org>
85433         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85434         * gnulib-tool: New option --extract-status.
85435         (func_usage): Document it.
85436         (sed_extract_prog): Recognize it.
85437         (func_get_status): New function.
85439 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85441         * modules/sockets (License): Change from LGPL to LGPLv2+.
85443 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85445         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85447 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85449         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85450         Mention times and sys_times.
85451         * modules/sys_times, modules/sys_times-tests: New modules.
85452         * modules/times, modules/times-tests: Likewise
85453         * m4/sys_times_h.m4: New file.
85454         * lib/sys_times.in.h: Likewise
85455         * lib/times.c: Likewise.
85456         * tests/test-sys_times.c: Likewise.
85457         * tests/test-times.c: Likewise.
85458         * doc/posix-headers/sys_times.texi: Update.
85459         * doc/posix-functions/times.texi: Update.
85461 2008-10-28  Jim Meyering  <meyering@redhat.com>
85463         * modules/tempname (Depends-on): Add lstat.
85465         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85467 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85469         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85470         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85471         using idiom used elsewhere in gnulib.
85473 2008-10-27  Jim Meyering  <meyering@redhat.com>
85475         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85477 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85479         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85480         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85481         programs.
85482         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85484 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85486         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85488 2008-10-27  Bruno Haible  <bruno@clisp.org>
85490         * tests/test-lstat.c: Include <stdio.h>.
85492 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85494         * modules/lstat-tests: New module.
85495         * tests/test-lstat.c: New file.
85497 2008-10-26  Jim Meyering  <meyering@redhat.com>
85499         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85501 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85502             Bruno Haible  <bruno@clisp.org>
85504         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85505         * modules/configmake (Include): Add a note that the include must come
85506         after all system headers.
85507         * lib/javaversion.c: Include configmake.h after all other includes.
85509 2008-10-26  Bruno Haible  <bruno@clisp.org>
85511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85512         HAVE_STRUCT_RANDOM_DATA to 1.
85513         (gl_STDLIB_H): Simplify.
85515 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85517         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85518         substitute HAVE_STRUCT_RANDOM_DATA.
85519         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85520         random_data.
85521         * modules/stdlib (Makefile.am): Substitute
85522         HAVE_STRUCT_RANDOM_DATA.
85524 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85526         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85527         * doc/gnulib-intro.texi (Copyright): Likewise.
85529 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85531         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85532         findings.
85534 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85535             Bruno Haible  <bruno@clisp.org>
85537         * lib/unistd.in.h: Include <winsock2.h>.
85538         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85539         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85540         Provide dummy declarations.
85541         (gethostname): Override.
85542         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85543         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85544         gl_PREREQ_SYS_H_WINSOCK2.
85545         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85546         * doc/posix-functions/gethostname.texi: More details.
85548 2008-10-25  Bruno Haible  <bruno@clisp.org>
85550         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85551         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85552         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85554         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85555         here ...
85556         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85557         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85558         gl_UNISTD_H_DEFAULTS.
85560 2008-10-25  Eric Blake  <ebb9@byu.net>
85562         signbit: avoid spurious compiler failure
85563         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85564         declarations inside function.
85566 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85567             Bruno Haible  <bruno@clisp.org>
85569         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85570         * modules/random_r (Depends-on): Add stdint.
85572 2008-10-24  Bruno Haible  <bruno@clisp.org>
85574         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85575         Eggert.
85576         * modules/strerror (License): Likewise.
85578 2008-10-24  Jim Meyering  <meyering@redhat.com>
85580         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85581         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85583 2008-10-24  Eric Blake  <ebb9@byu.net>
85585         getgroups: fix compilation when getgroups is available
85586         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85587         but with <config.h> override of getgroups disabled.
85589 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85591         * doc/gnulib.texi (Header files): Add note about C++ problems.
85592         Explained by Bruno Haible <bruno@clisp.org>.
85594 2008-10-23  Bruno Haible  <bruno@clisp.org>
85596         Define a dummy SA_NODEFER macro on Interix.
85597         * lib/signal.in.h (SA_NODEFER): Define fallback.
85598         Reported by Aleksey Cheusov <cheusov@tut.by> via
85599         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85601 2008-10-23  Bruno Haible  <bruno@clisp.org>
85603         * modules/freadahead (License): Change to LGPLv2+.
85604         Suggested by Simon Josefsson.
85606 2008-10-23  Jim Meyering  <meyering@redhat.com>
85608         random_r: new module
85609         * modules/random_r: New file.
85610         * m4/random_r.m4: New file.
85611         * lib/random_r.c: New file, from glibc.
85612         * modules/random_r-tests: New file.
85613         * tests/test-random_r.c: New file.
85614         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85615          Declare.
85616         (RAND_MAX): Define.
85617         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85618         * modules/stdlib: Substitute them, too.
85619         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85620         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85621         * doc/glibc-functions/random_r.texi: Likewise.
85622         * doc/glibc-functions/setstate_r.texi: Likewise.
85623         * doc/glibc-functions/srandom_r.texi: Likewise.
85624         * config/srclist.txt: Mention it.
85626 2008-10-23  David Lutterkort  <lutter@redhat.com>
85628         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85629         link requirement
85631 2008-10-23  Jim Meyering  <meyering@redhat.com>
85633         selinux-h: mark parameters of stub functions as intentionally unused
85634         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85635         * lib/se-context.in.h: Likewise.
85637 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85639         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85641 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85643         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85645 2008-10-22  Eric Blake  <ebb9@byu.net>
85647         glthread/thread: avoid compiler warning
85648         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85649         Add unreachable abort to silence compiler.
85651 2008-10-22  Eric Blake  <ebb9@byu.net>
85653         netdb: also supply struct addrinfo for cygwin 1.5.x
85654         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85655         older cygwin.
85656         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85657         cygwin.
85658         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85660 2008-10-22  Bruno Haible  <bruno@clisp.org>
85662         * users.txt: Update entry about pspp.
85664 2008-10-21  Bruno Haible  <bruno@clisp.org>
85666         Simplification.
85667         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85668         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85670         Simplification.
85671         * lib/ioctl.c (ioctl): Don't undefine.
85672         * lib/socket.c (socket): Don't undefine.
85674         Remove unused module indicator macros.
85675         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85676         GNULIB_$1 as a C macro.
85678         * doc/posix-functions/close.texi: Undo last change.
85679         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85680         Windows platforms.
85682 2008-10-21  Bruno Haible  <bruno@clisp.org>
85684         Add gethostname() declaration to <unistd.h>.
85685         * lib/unistd.in.h (gethostname): New declaration.
85686         * lib/gethostname.c: Include <unistd.h>.
85687         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85688         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85690         and HAVE_GETHOSTNAME.
85691         * modules/gethostname (Depends-on): Add unistd.
85692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85693         (Include): Specify <unistd.h>.
85694         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85695         HAVE_GETHOSTNAME.
85696         * tests/test-gethostname.c: Include <unistd.h> first.
85698 2008-10-21  Bruno Haible  <bruno@clisp.org>
85700         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85701         * modules/select-tests (Depends-on): Likewise.
85702         Reported by Simon Josefsson.
85704 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85706         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85707         * lib/accept.c: New file, based on winsock.c.
85708         * lib/bind.c: New file, based on winsock.c.
85709         * lib/connect.c: New file, based on winsock.c.
85710         * lib/getpeername.c: New file, based on winsock.c.
85711         * lib/getsockname.c: New file, based on winsock.c.
85712         * lib/getsockopt.c: New file, based on winsock.c.
85713         * lib/ioctl.c: New file, based on winsock.c.
85714         * lib/listen.c: New file, based on winsock.c.
85715         * lib/recv.c: New file, based on winsock.c.
85716         * lib/recvfrom.c: New file, based on winsock.c.
85717         * lib/send.c: New file, based on winsock.c.
85718         * lib/sendto.c: New file, based on winsock.c.
85719         * lib/setsockopt.c: New file, based on winsock.c.
85720         * lib/shutdown.c: New file, based on winsock.c.
85721         * lib/socket.c: New file, based on winsock.c.
85722         * lib/w32sock.h: New file, based on winsock.c.
85723         * lib/winsock.c: Remove file.
85724         * modules/accept: Likewise.
85725         * modules/bind: Likewise.
85726         * modules/connect: Likewise.
85727         * modules/getpeername: Likewise.
85728         * modules/getsockname: Likewise.
85729         * modules/getsockopt: Likewise.
85730         * modules/ioctl: Likewise.
85731         * modules/listen: Likewise.
85732         * modules/recv: Likewise.
85733         * modules/recvfrom: Likewise.
85734         * modules/send: Likewise.
85735         * modules/sendto: Likewise.
85736         * modules/setsockopt: Likewise.
85737         * modules/shutdown: Likewise.
85738         * modules/socket: Use socket.c instead of winsock.c.
85739         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
85740         * doc/posix-functions/accept.texi: Doc fix.
85741         * doc/posix-functions/bind.texi: Doc fix.
85742         * doc/posix-functions/close.texi: Doc fix.
85743         * doc/posix-functions/connect.texi: Doc fix.
85744         * doc/posix-functions/getpeername.texi: Doc fix.
85745         * doc/posix-functions/getsockname.texi: Doc fix.
85746         * doc/posix-functions/getsockopt.texi: Doc fix.
85747         * doc/posix-functions/ioctl.texi: Doc fix.
85748         * doc/posix-functions/listen.texi: Doc fix.
85749         * doc/posix-functions/recv.texi: Doc fix.
85750         * doc/posix-functions/recvfrom.texi: Doc fix.
85751         * doc/posix-functions/send.texi: Doc fix.
85752         * doc/posix-functions/sendto.texi: Doc fix.
85753         * doc/posix-functions/setsockopt.texi: Doc fix.
85754         * doc/posix-functions/shutdown.texi: Doc fix.
85755         * doc/posix-functions/socket.texi: Doc fix.
85757 2008-10-20  Bruno Haible  <bruno@clisp.org>
85759         Take into account the role of SIGABRT_COMPAT on Windows 2008.
85760         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
85761         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
85762         as an alias for SIGABRT.
85763         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
85764         (sigaction): Map it to SIGABRT.
85765         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
85767 2008-10-20  Bruno Haible  <bruno@clisp.org>
85769         * lib/fts.c: Don't include lstat.h.
85770         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
85772         Move the lstat() declaration to <sys/stat.h>.
85773         * lib/lstat.h: Remove file.
85774         * lib/sys_stat.in.h: Add special invocation convention.
85775         (lstat): New declaration.
85776         * lib/lstat.c (orig_lstat): New function.
85777         (rpl_lstat): Use orig_lstat instead of lstat.
85778         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
85779         AC_C_INLINE. Set REPLACE_LSTAT.
85780         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
85781         and REPLACE_LSTAT.
85782         * modules/lstat (Files): Remove lib/lstat.h.
85783         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85784         (Include): Specify <sys/stat.h> instead of lstat.h.
85785         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
85786         REPLACE_LSTAT.
85787         * NEWS: Mention the change.
85789 2008-10-20  Bruno Haible  <bruno@clisp.org>
85791         * modules/posix_spawn-tests: New file.
85792         * tests/test-posix_spawn3.c: New file.
85794 2008-10-20  Bruno Haible  <bruno@clisp.org>
85796         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
85797         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85798         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
85799         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85800         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
85802 2008-10-20  Bruno Haible  <bruno@clisp.org>
85804         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
85805         of posix_spawn on AIX 5.3.
85807 2008-10-20  Bruno Haible  <bruno@clisp.org>
85809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
85811 2008-10-20  Bruno Haible  <bruno@clisp.org>
85813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
85814         of AC_LANG_PROGRAM.
85816 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85818         * lib/netdb.in.h: Don't define GNU specific constants until they
85819         are supported or needed.  Reported by Bruno Haible
85820         <bruno@clisp.org>.
85822 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85824         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
85826 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85828         * lib/getaddrinfo.h: Remove file.
85829         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
85830         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
85831         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
85832         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
85833         * modules/netdb: Substitute GNULIB_GETADDRINFO.
85834         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
85835         * tests/test-getaddrinfo.c: Likewise.
85836         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
85837         * NEWS: Mention change.
85839 2008-10-19  Bruno Haible  <bruno@clisp.org>
85841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
85843 2008-10-19  Bruno Haible  <bruno@clisp.org>
85845         * lib/wait-process.c: Include simply <sys/wait.h>.
85846         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
85847         WIFSTOPPED): Remove fallback definitions.
85848         * modules/wait-process (Depends-on): Add sys_wait.
85850         New module 'sys_wait'.
85851         * modules/sys_wait: New file.
85852         * lib/sys_wait.in.h: New file, partially copied from
85853         lib/wait-process.c.
85854         * m4/sys_wait_h.m4: New file.
85855         * doc/posix-headers/sys_wait.texi: Mention the new module.
85857 2008-10-19  Bruno Haible  <bruno@clisp.org>
85859         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
85861 2008-10-19  Bruno Haible  <bruno@clisp.org>
85863         Assume that waitpid() fills an 'int' status, not a 'union wait'.
85864         * lib/wait-process.c (WAIT_T): Remove type.
85865         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
85866         (wait_subprocess): Update.
85868 2008-10-19  Bruno Haible  <bruno@clisp.org>
85870         New module 'atoll'.
85871         * modules/atoll: New file.
85872         * lib/stdlib.in.h (atoll): New declaration.
85873         * lib/atoll.c: New file, from glibc with modifications.
85874         * m4/atoll.m4: New file.
85875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
85876         HAVE_ATOLL.
85877         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
85878         * doc/posix-functions/atoll.texi: Mention the new module.
85880 2008-10-19  Bruno Haible  <bruno@clisp.org>
85882         Add strtoull() declaration to <stdlib.h>.
85883         * lib/stdlib.in.h (strtoull): New declaration.
85884         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
85885         Set HAVE_STRTOULL.
85886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
85887         HAVE_STRTOULL.
85888         * modules/strtoull (Depends-on): Add stdlib.
85889         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85890         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
85891         HAVE_STRTOULL.
85893 2008-10-19  Bruno Haible  <bruno@clisp.org>
85895         Add strtoll() declaration to <stdlib.h>.
85896         * lib/stdlib.in.h (strtoll): New declaration.
85897         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
85898         Set HAVE_STRTOLL.
85899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
85900         HAVE_STRTOLL.
85901         * modules/strtoll (Depends-on): Add stdlib.
85902         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85903         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
85905 2008-10-19  Bruno Haible  <bruno@clisp.org>
85907         * modules/bcopy (Depends-on): Add strings.
85908         (Include): Specify <strings.h>.
85910 2008-10-19  Bruno Haible  <bruno@clisp.org>
85912         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
85914 2008-10-19  Bruno Haible  <bruno@clisp.org>
85916         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
85917         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
85918         mingw.
85920 2008-10-19  Bruno Haible  <bruno@clisp.org>
85922         * lib/atanl.c: Don't include isnanl.h.
85923         * lib/cosl.c: Likewise.
85924         * lib/ldexpl.c: Likewise.
85925         * lib/logl.c: Likewise.
85926         * lib/sinl.c: Likewise.
85927         * lib/sqrtl.c: Likewise.
85928         * lib/tanl.c: Likewise.
85930         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
85931         * lib/isnanf.h: Remove file.
85932         * lib/isnand.h: Remove file.
85933         * lib/isnanl.h: Remove file.
85934         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
85935         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
85936         macros.
85937         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
85938         HAVE_ISNANF, don't define it as a C macro.
85939         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
85940         HAVE_ISNAND, don't define it as a C macro.
85941         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
85942         HAVE_ISNANL, don't define it as a C macro.
85943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
85944         HAVE_ISNAN[FDL].
85945         * modules/isnanf (Files): Remove lib/isnanf.h.
85946         (Depends-on): Add math.
85947         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85948         (Include): Specify <math.h> instead of isnanf.h.
85949         * modules/isnand (Files): Remove lib/isnand.h.
85950         (Depends-on): Add math.
85951         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85952         (Include): Specify <math.h> instead of isnand.h.
85953         * modules/isnanl (Files): Remove lib/isnanl.h.
85954         (Depends-on): Add math.
85955         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
85956         (Include): Specify <math.h> instead of isnanl.h.
85957         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
85958         HAVE_ISNAN[FDL].
85959         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
85960         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
85961         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
85962         * NEWS: Mention the change.
85964 2008-10-18  Bruno Haible  <bruno@clisp.org>
85966         Add getusershell(), setusershell(), endusershell() declarations to
85967         <unistd.h>.
85968         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
85969         declarations.
85970         * lib/getusershell.c: Include unistd.h.
85971         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
85972         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
85973         HAVE_GETUSERSHELL.
85974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
85975         and HAVE_GETUSERSHELL.
85976         * modules/getusershell (Depends-on): Add unistd, extensions.
85977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85978         (Include): Specify <unistd.h>.
85979         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
85980         HAVE_GETUSERSHELL.
85982 2008-10-18  Bruno Haible  <bruno@clisp.org>
85984         Add a getloadavg() declaration to <stdlib.h>.
85985         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
85986         getloadavg declaration.
85987         (getloadavg): New declaration.
85988         * lib/getloadavg.c: Include <stdlib.h> first.
85989         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
85990         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
85991         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
85992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
85993         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
85994         * modules/getloadavg (Depends-on): Add stdlib, extensions.
85995         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
85996         (Include): Specify <stdlib.h>.
85997         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
85998         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86000 2008-10-18  Bruno Haible  <bruno@clisp.org>
86002         * lib/dirchownmod.c: Don't include lchmod.h.
86004         Move the lchmod() declaration to <sys/stat.h>.
86005         * lib/lchmod.h: Remove file.
86006         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86007         (lchmod): New declaration, moved here from lib/lchown.h.
86008         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86009         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86011         and HAVE_LCHMOD.
86012         * modules/lchmod (Files): Remove lib/lchmod.h.
86013         (Depends-on): Add sys_stat, extensions.
86014         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86015         (Include): Specify <sys/stat.h> instead of lchmod.h.
86016         * modules/sys_stat (Depends-on): Add link-warning.
86017         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86018         definition of GL_LINK_WARNING.
86019         * NEWS: Mention the change.
86021 2008-10-18  Bruno Haible  <bruno@clisp.org>
86023         * lib/fchdir.c: Don't include dirfd.h.
86024         * lib/fts.c: Likewise.
86025         * lib/getcwd.c: Likewise.
86026         * lib/glob.c: Likewise.
86028         Move the dirfd() declaration to <dirent.h>.
86029         * lib/dirfd.h: Remove file.
86030         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86031         (dirfd): New declaration.
86032         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86033         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86034         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86035         HAVE_DECL_DIRFD.
86036         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86037         HAVE_DECL_DIRFD.
86038         * modules/dirfd (Files): Remove lib/dirfd.h.
86039         (Depends-on): Add dirent, extensions.
86040         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86041         (Include): Specify <dirent.h> instead of dirfd.h.
86042         * modules/dirent (Depends-on): Add link-warning.
86043         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86044         definition of GL_LINK_WARNING.
86045         * NEWS: Mention the change.
86047 2008-10-18  Bruno Haible  <bruno@clisp.org>
86049         Move the euidaccess() declaration to <unistd.h>.
86050         * lib/euidaccess.h: Remove file.
86051         * lib/unistd.in.h (euidaccess): New declaration.
86052         * lib/euidaccess.c: Don't include euidaccess.h.
86053         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86054         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86056         and HAVE_EUIDACCESS.
86057         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86058         (Depends-on): Add unistd.
86059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86060         (Include): Specify <unistd.h> instead of euidaccess.h.
86061         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86062         HAVE_EUIDACCESS.
86063         * NEWS: Mention the change.
86065 2008-10-18  Bruno Haible  <bruno@clisp.org>
86067         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86069         Move the getdomainname() declaration to <unistd.h>.
86070         * lib/getdomainname.h: Remove file.
86071         * lib/unistd.in.h (getdomainname): New declaration.
86072         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86073         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86074         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86075         HAVE_GETDOMAINNAME.
86076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86077         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86078         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86079         (Depends-on): Add unistd, extensions.
86080         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86081         (Includes): Specify <unistd.h> instead of getdomainname.h.
86082         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86083         HAVE_GETDOMAINNAME.
86084         * NEWS: Mention the change.
86086 2008-10-18  Bruno Haible  <bruno@clisp.org>
86088         * modules/dirent: New file.
86089         * m4/dirent_h.m4: New file.
86090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86091         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86092         * modules/fchdir (Files): Remove lib/dirent.in.h.
86093         (Depends-on): Add dirent.
86094         (Makefile.am): Move rules to modules/dirent.
86095         * doc/posix-headers/dirent.texi: Mention the new module.
86097 2008-10-18  Bruno Haible  <bruno@clisp.org>
86099         Avoid -Wunused-parameter warnings in public gnulib header files.
86100         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86101         macro.
86102         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86104 2008-10-18  Bruno Haible  <bruno@clisp.org>
86106         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86107         * doc/glibc-functions/error.texi: Mention the module 'error'.
86108         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86109         * doc/glibc-functions/getdomainname.texi: Mention the module
86110         'getdomainname'.
86111         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86112         * doc/glibc-functions/getpagesize.texi: Mention the module
86113         'getpagesize'.
86114         * doc/glibc-functions/getusershell.texi: Mention the module
86115         'getusershell'.
86116         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86117         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86118         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86119         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86120         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86121         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86122         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86123         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86124         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86125         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86126         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86127         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86128         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86129         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86131 2008-10-17  Bruno Haible  <bruno@clisp.org>
86133         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86134         HP-UX and IRIX, use -0.0L.
86135         * tests/test-ceill.c (minus_zero): Likewise.
86136         * tests/test-floorl.c (minus_zero): Likewise.
86137         * tests/test-frexpl.c (minus_zero): Likewise.
86138         * tests/test-isnan.c (minus_zerol): Likewise.
86139         * tests/test-isnanl.h (minus_zero): Likewise.
86140         * tests/test-ldexpl.c (minus_zero): Likewise.
86141         * tests/test-roundl.c (minus_zero): Likewise.
86142         * tests/test-signbit.c (minus_zerol): Likewise.
86143         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86144         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86145         * tests/test-truncl.c (minus_zero): Likewise.
86146         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86147         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86148         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86149         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86151 2008-10-17  Bruno Haible  <bruno@clisp.org>
86153         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86154         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86155         that it gets activated only for gcc >= 3.0.
86156         * lib/dirent.in.h: Likewise.
86157         * lib/errno.in.h: Likewise.
86158         * lib/fcntl.in.h: Likewise.
86159         * lib/float.in.h: Likewise.
86160         * lib/iconv.in.h: Likewise.
86161         * lib/inttypes.in.h: Likewise.
86162         * lib/locale.in.h: Likewise.
86163         * lib/math.in.h: Likewise.
86164         * lib/netdb.in.h: Likewise.
86165         * lib/netinet_in.in.h: Likewise.
86166         * lib/search.in.h: Likewise.
86167         * lib/signal.in.h: Likewise.
86168         * lib/spawn.in.h: Likewise.
86169         * lib/stdarg.in.h: Likewise.
86170         * lib/stdint.in.h: Likewise.
86171         * lib/stdio.in.h: Likewise.
86172         * lib/stdlib.in.h: Likewise.
86173         * lib/string.in.h: Likewise.
86174         * lib/strings.in.h: Likewise.
86175         * lib/sys_file.in.h: Likewise.
86176         * lib/sys_ioctl.in.h: Likewise.
86177         * lib/sys_select.in.h: Likewise.
86178         * lib/sys_socket.in.h: Likewise.
86179         * lib/sys_stat.in.h: Likewise.
86180         * lib/sys_time.in.h: Likewise.
86181         * lib/sysexits.in.h: Likewise.
86182         * lib/time.in.h: Likewise.
86183         * lib/unistd.in.h: Likewise.
86184         * lib/wchar.in.h: Likewise.
86185         * lib/wctype.in.h: Likewise.
86186         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86188 2008-10-17  Jim Meyering  <meyering@redhat.com>
86190         ignore-value: don't depend on inline module
86191         * modules/ignore-value (Depends-on): Remove 'inline'.
86192         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86193         Suggestion from Bruno Haible.
86195 2008-10-17  Bruno Haible  <bruno@clisp.org>
86197         New implementation of condition variables for Win32.
86198         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86199         (gl_linked_waitqueue_t): New type.
86200         (gl_cond_t): Use it.
86201         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86202         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86203         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86204         (glthread_cond_init_func, glthread_cond_wait_func,
86205         glthread_cond_timedwait_func, glthread_cond_signal_func,
86206         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86207         Reimplemented on the basis of gl_linked_waitqueue_t.
86208         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86209         gl_waitqueue_t.
86210         (gl_rwlock_t): Update.
86211         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86213 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86215         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86216         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86218 2008-10-17  Jim Meyering  <meyering@redhat.com>
86220         ignore-value: new module
86221         * modules/ignore-value: New file.
86222         * lib/ignore-value.h: New file.
86223         * MODULES.html.sh (Compiler warning management): New section,
86224         just for this module.  More to come.
86226 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86228         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86229         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86230         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86232 2008-10-16  Jim Meyering  <meyering@redhat.com>
86234         openat-die.c: avoid 'no previous prototype' warning
86235         * lib/openat-die.c: Include "openat.h".
86236         Reported by Reuben Thomas <rrt@sc3d.org>.
86238 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86240         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86241         * lib/netdb.in.h: Fix typo.
86242         Reported by Bruno Haible  <bruno@clisp.org>
86244         * lib/netdb.in.h: Include sys/socket.h for platforms without
86245         netdb.h, to get structures like hostent on MinGW.
86246         * modules/netdb (Depends-on): Add sys_socket.
86248 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86250         * modules/netdb, modules/netdb-tests: New file.
86251         * m4/netdb_h.m4: New file.
86252         * lib/netdb.in.h: Add, currently just an empty file pending
86253         definitions.
86254         * tests/test-netdb.c: New file.
86255         * doc/posix-headers/netdb.texi: Mention that we replace it if
86256         needed.
86257         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86258         netdb.
86260 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86262         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86263         with code.
86265 2008-10-13  Bruno Haible  <bruno@clisp.org>
86267         * lib/glthread/cond.c (glthread_cond_wait_func,
86268         glthread_cond_timedwait_func): Add a comment.
86270 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86272         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86273         * tests/test-select.c: Likewise,
86275 2008-10-13  Bruno Haible  <bruno@clisp.org>
86277         * lib/glthread/cond.c (glthread_cond_wait_func,
86278         glthread_cond_timedwait_func): Fix variable name.
86279         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86281 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86283         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86285         struct sockaddr.sa_len.
86286         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86288 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86290         * build-aux/pmccabe2html: Add css and css_url parameters.
86292 2008-10-12  Bruno Haible  <bruno@clisp.org>
86294         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86295         calling aclx_get.
86296         Reported by Rainer Tammer <tammer@tammer.net>.
86298 2008-10-12  Bruno Haible  <bruno@clisp.org>
86300         Use msvcrt aware primitives for creation/termination of Win32 threads.
86301         * lib/glthread/thread.c: Include <process.h>.
86302         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86303         (wrapper_func): Update signature.
86304         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86306 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86307             Bruno Haible  <bruno@clisp.org>
86309         Provide a Win32 implementation of the 'cond' module.
86310         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86311         * lib/glthread/cond.c (glthread_cond_init_func,
86312         glthread_cond_wait_func, glthread_cond_timedwait_func,
86313         glthread_cond_signal_func, glthread_cond_broadcast_func,
86314         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86315         * modules/cond (Dependencies): Add gettimeofday.
86317 2008-10-11  Bruno Haible  <bruno@clisp.org>
86319         Make sleep work on older versions of mingw.
86320         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86321         only whether it exists.
86322         * doc/posix-functions/sleep.texi: Mention the problem with older
86323         versions of mingw.
86325 2008-10-11  Bruno Haible  <bruno@clisp.org>
86327         New module 'shutdown'.
86328         * modules/shutdown: New file.
86329         * lib/sys_socket.in.h (shutdown): New declaration.
86330         * lib/winsock.c (shutdown): New function.
86331         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86332         GNULIB_SHUTDOWN.
86333         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86334         * doc/posix-functions/shutdown.texi: Document the new module.
86336 2008-10-11  Jim Meyering  <meyering@redhat.com>
86338         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86340 2008-10-11  Bruno Haible  <bruno@clisp.org>
86342         New module 'fclose'.
86343         * modules/fclose: New file.
86344         * lib/stdio.in.h (fclose): New declaration.
86345         * lib/fclose.c: New file.
86346         * m4/fclose.m4: New file.
86347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86348         REPLACE_FCLOSE.
86349         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86350         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86351         REPLACE_FCLOSE.
86352         * modules/close (Depends-on): fclose.
86353         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86355 2008-10-11  Bruno Haible  <bruno@clisp.org>
86357         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86358         set errno and don't call _close.
86360 2008-10-10  Bruno Haible  <bruno@clisp.org>
86362         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86363         ACL, not afterwards. Fixes test failure on Cygwin.
86365 2008-10-09  Ben Pfaff  <blp@gnu.org>
86367         * build-aux/announce-gen: Fix gnulib version related part of usage
86368         message.  Die with a useful error message if no tarballs are
86369         found.
86371 2008-10-10  Jim Meyering  <meyering@redhat.com>
86373         bootstrap: use git's --depth=N option only if it's supported
86374         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86375         recognize the --depth option.  Reported by Pádraig Brady.
86377 2008-10-09  Bruno Haible  <bruno@clisp.org>
86379         New module 'ioctl'.
86380         * modules/ioctl: New file.
86381         * lib/sys_socket.in.h (ioctl): Remove declaration.
86382         * lib/winsock.c: Include <sys/ioctl.h>.
86383         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86384         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86385         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86386         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86387         * doc/posix-functions/ioctl.texi: Mention the new module.
86389 2008-10-09  Bruno Haible  <bruno@clisp.org>
86391         New module 'sys_ioctl'.
86392         * lib/sys_ioctl.in.h: New file.
86393         * m4/sys_ioctl_h.m4: New file.
86394         * modules/sys_ioctl: New file.
86395         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86397 2008-10-09  Bruno Haible  <bruno@clisp.org>
86399         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86400         * lib/winsock.c: Include <stdarg.h>.
86401         (rpl_ioctl): Change to second argument 'int' and then varargs.
86403 2008-10-09  Bruno Haible  <bruno@clisp.org>
86405         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86406         when the sys_socket module is present and the system has <winsock2.h>.
86408 2008-10-09  Bruno Haible  <bruno@clisp.org>
86410         * doc/posix-functions/close.texi: Mention module 'close' instead of
86411         module 'sys_socket'.
86413 2008-10-09  Bruno Haible  <bruno@clisp.org>
86415         * doc/glibc-headers/sys_ioctl.texi: New file.
86416         * doc/gnulib.texi: Include it.
86418 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86419             Bruno Haible  <bruno@clisp.org>
86421         Combine the two replacements of 'close'.
86422         * lib/sys_socket.in.h (close): Define to a reminder to include
86423         <unistd.h>.
86424         (_gl_close_fd_maybe_socket): New declaration.
86425         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86426         * lib/winsock.c (close): Remove undefinition.
86427         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86428         needed for the gnulib module 'close'.
86429         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86430         define to an error symbol or to a warning, if suitable.
86431         * lib/close.c: Include <sys/socket.h>.
86432         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86433         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86434         UNISTD_H_HAVE_WINSOCK2_H.
86435         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86437         UNISTD_H_HAVE_WINSOCK2_H.
86438         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86439         (configure.ac): Set a module indicator.
86440         (Makefile.am): Substitute GNULIB_CLOSE.
86441         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86442         * modules/poll-tests (Depends-on): Add close.
86443         * modules/select-tests (Depends-on): Likewise.
86445 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86446             Bruno Haible  <bruno@clisp.org>
86448         New module 'close'.
86449         * modules/close: New file.
86450         * lib/unistd.in.h (close): Move declaration out of the
86451         FCHDIR_REPLACEMENT scope.
86452         (_gl_unregister_fd): New declaration.
86453         * lib/close.c: New file.
86454         * lib/fchdir.c (rpl_close): Remove function.
86455         * m4/close.m4: New file.
86456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86457         close.
86458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86459         REPLACE_CLOSE.
86460         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86461         REPLACE_CLOSE.
86462         * modules/fchdir (Depends-on): Add close.
86464 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86465             Bruno Haible  <bruno@clisp.org>
86467         * lib/fcntl.in.h (open): Simplify conditionals.
86468         (_gl_register_fd): New declaration.
86469         * lib/fchdir.c (rpl_open): Remove function.
86470         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86471         also.
86472         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86474         open.
86476 2008-10-09  Jim Meyering  <meyering@redhat.com>
86478         GNUmakefile: use the more name-space-friendly "_version"
86479         * top/GNUmakefile (_dummy): Update.
86480         (_version): Rename from "version".
86482 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86483             Bruno Haible  <bruno@clisp.org>
86485         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86486         rpl_close.
86487         (_gl_register_fd): New function, extracted from rpl_open.
86488         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86489         (rpl_open, rpl_opendir): Use _gl_register_fd.
86491 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86493         Fix organization of 'open' replacement.
86494         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86495         (gl_FUNC_OPEN): Use it.
86496         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86498 2008-10-08  Bruno Haible  <bruno@clisp.org>
86500         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86502 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86504         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86505         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86506         listen).
86508 2008-10-08  Eric Blake  <ebb9@byu.net>
86510         GNUmakefile: add 'make version' target
86511         * top/GNUmakefile (_curr-ver): Split version update rules...
86512         (version): ...into a target.
86514 2008-10-07  Bruno Haible  <bruno@clisp.org>
86516         Use a more portable replacement expression for -0.0L.
86517         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86518         instead of -0.0L. Fix m4 quotation.
86520         * tests/test-signbit.c: Include <float.h>.
86521         (minus_zero): New variable.
86522         (test_signbitl): Use minus_zero instead of -zero.
86523         * modules/signbit-tests (Depends-on): Add float.
86525         * tests/test-ceill.c: Include <float.h>.
86526         (zero): Remove variable.
86527         (minus_zero): New variable.
86528         (main): Use minus_zero instead of -zero.
86529         * modules/ceill-tests (Depends-on): Add float.
86531         * tests/test-floorl.c: Include <float.h>.
86532         (zero): Remove variable.
86533         (minus_zero): New variable.
86534         (main): Use minus_zero instead of -zero.
86535         * modules/floorl-tests (Depends-on): Add float.
86537         * tests/test-roundl.c: Include <float.h>.
86538         (zero): Remove variable.
86539         (minus_zero): New variable.
86540         (main): Use minus_zero instead of -zero.
86541         * modules/roundl-tests (Depends-on): Add float.
86543         * tests/test-truncl.c: Include <float.h>.
86544         (zero): Remove variable.
86545         (minus_zero): New variable.
86546         (main): Use minus_zero instead of -zero.
86547         * modules/truncl-tests (Depends-on): Add float.
86549         * tests/test-frexpl.c (zero): Remove variable.
86550         (minus_zero): New variable.
86551         (main): Use minus_zero instead of -zero.
86552         * modules/frexpl-tests (Depends-on): Add float.
86554         * tests/test-isnan.c (zerol): Remove variable.
86555         (minus_zerol): New variable.
86556         (test_long_double): Use minus_zerol instead of -zerol.
86557         * modules/isnan-tests (Depends-on): Add float.
86559         * tests/test-isnanl.h (zero): Remove variable.
86560         (minus_zero): New variable.
86561         (main): Use minus_zero instead of -zero.
86562         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86563         * modules/isnanl-tests (Depends-on): Add float.
86565         * tests/test-ldexpl.c (zero): Remove variable.
86566         (minus_zero): New variable.
86567         (main): Use minus_zero instead of -zero.
86568         * modules/ldexpl-tests (Depends-on): Add float.
86570         * tests/test-snprintf-posix.h (zerol): Remove variable.
86571         (minus_zerol): New variable.
86572         (test_function): Use minus_zerol instead of -zerol.
86573         * modules/snprintf-posix-tests (Depends-on): Add float.
86574         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86576         * tests/test-sprintf-posix.h (zerol): Remove variable.
86577         (minus_zerol): New variable.
86578         (test_function): Use minus_zerol instead of -zerol.
86579         * modules/sprintf-posix-tests (Depends-on): Add float.
86580         * modules/vsprintf-posix-tests (Depends-on): Add float.
86582         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86583         (minus_zerol): New variable.
86584         (test_function): Use minus_zerol instead of -zerol.
86585         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86587         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86588         (minus_zerol): New variable.
86589         (test_function): Use minus_zerol instead of -zerol.
86590         * modules/vasprintf-posix-tests (Depends-on): Add float.
86592 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86594         * MODULES.html.sh (Support for building documentation): Mention
86595         pmccabe2html.  Sort entries.
86597         Add pmccabe2html module, from gnupdf.
86598         * build-aux/pmccabe.css: New file.
86599         * build-aux/pmccabe2html: New file.
86600         * m4/pmccabe2html.m4: New file.
86601         * modules/pmccabe2html: New file.
86603 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86605         flock: new module
86606         * MODULES.html.sh: Add to list of modules.
86607         * lib/flock.c: flock implementation for Windows and Unix systems
86608         which have fcntl.
86609         * doc/glibc-functions/flock.texi: Update documentation.
86610         * lib/sys_file.in.h: <sys/file.h> header file.
86611         * m4/flock.m4: M4 macros.
86612         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86613         * modules/flock: flock module.
86614         * modules/flock-tests: flock tests module.
86615         * modules/sys_file: sys/file.h module.
86616         * tests/test-flock.c: test suite for flock.
86618 2008-10-06  Jim Meyering  <meyering@redhat.com>
86620         bootstrap: check for LT_INIT more portably still ;-)
86621         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86622         Spotted by Bruno Haible.
86624 2008-10-06  Eric Blake  <ebb9@byu.net>
86626         test-signbit: avoid tripping Irix cc bug on -0.0L
86627         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86628         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86629         entire testsuite consistent and avoids an Irix 6.2 bug.
86631 2008-10-05  Bruno Haible  <bruno@clisp.org>
86632             Jim Meyering  <jim@meyering.net>
86634         Add an option for ignoring EPIPE during close_stdout.
86635         * lib/closeout.h: Include <stdbool.h>.
86636         (close_stdout_set_ignore_EPIPE): New declaration.
86637         * lib/closeout.c: Include <stdbool.h>.
86638         (ignore_EPIPE): New variable.
86639         (close_stdout_set_ignore_EPIPE): New function.
86640         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86641         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86642         failure.
86643         * modules/closeout (Depends-on): Add stdbool.
86645 2008-10-05  Bruno Haible  <bruno@clisp.org>
86647         * modules/accept: New file.
86648         * modules/bind: New file.
86649         * modules/connect: New file.
86650         * modules/getpeername: New file.
86651         * modules/getsockname: New file.
86652         * modules/getsockopt: New file.
86653         * modules/listen: New file.
86654         * modules/recv: New file.
86655         * modules/recvfrom: New file.
86656         * modules/send: New file.
86657         * modules/sendto: New file.
86658         * modules/setsockopt: New file.
86659         * modules/socket: New file.
86660         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86661         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86662         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86663         the particular module is requested. Add a link warning when the
86664         particular module is not requested.
86665         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86666         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86667         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86668         the particular module is requested.
86669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86670         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86671         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86672         * modules/sys_socket (Depends-on): Add link-warning.
86673         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86674         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86675         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86676         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86677         GL_LINK_WARNING.
86678         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86679         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86680         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86681         * doc/posix-functions/getpeername.texi: Mention the new module
86682         'getpeername'.
86683         * doc/posix-functions/getsockname.texi: Mention the new module
86684         'getsockname'.
86685         * doc/posix-functions/getsockopt.texi: Mention the new module
86686         'getsockopt'.
86687         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86688         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86689         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86690         * doc/posix-functions/send.texi: Mention the new module 'send'.
86691         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86692         * doc/posix-functions/setsockopt.texi: Mention the new module
86693         'setsockopt'.
86694         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86695         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86696         listen, connect, accept.
86697         * modules/select-tests (Depends-on): Likewise.
86699 2008-10-05  Bruno Haible  <bruno@clisp.org>
86701         * lib/winsock.c (strerror): Remove unused #undef.
86702         (rpl_close): Remove unused local variable.
86704         * modules/sys_socket (Depends-on); Add errno.
86706 2008-10-05  Bruno Haible  <bruno@clisp.org>
86708         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86709         (select): Add a link warning when the 'select' module is not used.
86710         * modules/sys_select (Depends-on): Add link-warning.
86711         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86712         Suggested by Paolo Bonzini.
86714 2008-10-05  Jim Meyering  <meyering@redhat.com>
86716         bootstrap: check for LT_INIT more portably
86717         * build-aux/bootstrap: Avoid using grep -E, since it's not
86718         portable enough.  Suggestion from Bruno Haible.
86720 2008-10-05  Bruno Haible  <bruno@clisp.org>
86722         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
86723         as being fixed by gnulib.
86725 2008-10-05  Bruno Haible  <bruno@clisp.org>
86727         * modules/select-tests: New file, mostly copied from
86728         modules/sys_select-tests.
86729         * tests/test-select.c: New file, mostly copied from
86730         tests/test-sys_select.c.
86731         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
86732         * modules/sys_select-tests (Depends-on): Remove all dependencies.
86733         (Makefile.am): Remove test_sys_select_LDADD.
86735         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
86736         to an undefined symbol, for an error message.
86737         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
86738         (gl_SYS_SELECT_H_DEFAULTS): New macro.
86739         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
86740         winsock-select.c here.
86741         * modules/sys_select (Files): Remove lib/winsock-select.c.
86742         (Depends-on): Remove alloca.
86743         (Makefile.am): Substitute GNULIB_SELECT.
86744         * modules/select: New file.
86745         * doc/posix-functions/select.texi: Update.
86747 2008-10-05  Bruno Haible  <bruno@clisp.org>
86749         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
86750         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
86751         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
86752         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
86753         getdtablesize.
86754         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
86755         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
86757 2008-10-05  Bruno Haible  <bruno@clisp.org>
86759         * modules/getdtablesize-tests: New file.
86760         * tests/test-getdtablesize.c: New file.
86762         New module 'getdtablesize'.
86763         * lib/unistd.in.h (getdtablesize): New declaration.
86764         * lib/getdtablesize.c: New file.
86765         * m4/getdtablesize.m4: New file.
86766         * modules/getdtablesize: New file.
86767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86768         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
86769         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
86770         HAVE_GETDTABLESIZE.
86771         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
86773 2008-10-05  Bruno Haible  <bruno@clisp.org>
86775         * modules/sched (Makefile.am): Fix typo.
86776         Reported by Simon Josefsson.
86778 2008-10-05  Jim Meyering  <meyering@redhat.com>
86780         bootstrap: check for LT_INIT, too
86781         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
86782         are deprecated.  Suggestion from Ralf Wildenhues.
86784 2008-10-05  Bruno Haible  <bruno@clisp.org>
86786         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
86787         overriding them by ours.
86788         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
86790 2008-10-05  Jim Meyering  <meyering@redhat.com>
86792         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
86793         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
86794         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
86796 2008-10-04  Bruno Haible  <bruno@clisp.org>
86798         * modules/dup2 (License): Change to LGPLv2+.
86799         * modules/sleep (License): Likewise.
86800         * modules/perror (License): Likewise.
86801         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
86802         Blake.
86803         * modules/signal (License): Likewise.
86804         * modules/sigprocmask (License): Likewise.
86805         * modules/raise (License): Change to LGPLv2+, with approval by Jim
86806         Meyering.
86808 2008-10-04  Bruno Haible  <bruno@clisp.org>
86810         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
86811         Reported by Rainer Tammer <tammer@tammer.net>.
86813 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
86814             Bruno Haible  <bruno@clisp.org>
86816         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
86817         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
86818         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
86820 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
86822         filevercmp: new module
86823         * lib/filevercmp.h: New function filevercmp comparing version strings.
86824         * lib/filevercmp.c: Implementation of filevercmp function.
86825         * modules/filevercmp: Module metadata.
86826         * tests/test-filevercmp.c: Unit test for new module.
86827         * modules/filevercmp-tests: Unit test metadata.
86828         * MODULES.html.sh: Add filevercmp module.
86830 2008-10-03  Bruno Haible  <bruno@clisp.org>
86832         * lib/c-ctype.h: Add comment.
86833         Reported by Jim Meyering.
86835 2008-10-02  Bruno Haible  <bruno@clisp.org>
86837         * modules/posix_spawn-internal (Depends-on): Add 'open'.
86839 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86841         * build-aux/bootstrap: Allow renaming bootstrap, and change the
86842         name of bootstrap.conf accordingly.
86844 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86846         * build-aux/bootstrap: Install git-merge-changelog configuration
86847         items into .gitconfig if needed.
86849 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86851         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
86852         git repository, and initialize/update it accordingly.
86854 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
86856         * modules/fsync-tests: New file.
86857         * tests/test-fsync.c: New file.
86859         New module 'fsync'.
86860         * lib/fsync.c: New file.
86861         * m4/fsync.m4: New file.
86862         * modules/fsync: New file.
86863         * lib/unistd.in.h (fsync): New declaration.
86864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
86865         GNULIB_FSYNC and HAVE_FSYNC.
86866         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
86867         * MODULES.html.sh (posix_functions): Add fsync.
86868         * doc/posix-functions/fsync.texi: Mention the new module.
86870 2008-10-02  Jim Meyering  <meyering@redhat.com>
86872         fts.c: sync with similar code from coreutils' remove.c
86873         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
86874         Guard also with "#if defined __linux__", since for now at least,
86875         this code is Linux-kernel-specific.
86877 2008-10-02  Jim Meyering  <meyering@redhat.com>
86879         fts: bug fixes
86880         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
86881         Include <sys/vfs.h>, not <sys/statfs.h>.
86883         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
86884         Include <sys/vfs.h>, not <sys/statfs.h>.
86886 2008-10-01  Bruno Haible  <bruno@clisp.org>
86888         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
86889         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
86890         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
86891         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
86892         * doc/posix-functions/posix_spawnp.texi: Likewise.
86893         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
86894         whether posix_spawn actually works.
86895         * m4/pipe.m4 (gl_PIPE): Likewise.
86896         * modules/execute (Files): Add m4/posix_spawn.m4.
86897         * modules/pipe (Files): Add m4/posix_spawn.m4.
86898         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
86900 2008-10-01  Jim Meyering  <meyering@redhat.com>
86902         remove trailing spaces
86903         * NEWS: Likewise.
86904         * lib/poll.c (poll): Likewise.
86905         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
86906         * lib/winsock.c (rpl_close): Likewise.
86907         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
86908         * modules/yield: Likewise.
86909         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
86910         * tests/test-sys_select.c (connect_to_socket): Likewise.
86912         fts.c: adjust a new interface to be more generally useful
86913         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
86914         (fts_build): Adjust caller.
86916 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86918         * modules/cond-tests: New file.
86919         * tests/test-cond.c: New file.
86921 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86922             Bruno Haible  <bruno@clisp.org>
86924         * modules/cond (Dependencies): Add errno, time.
86925         * lib/glthread/cond.h: Include <time.h>.
86926         (gl_cond_define, gl_cond_define_initialized): Use the same definition
86927         across platforms.
86929 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86930             Bruno Haible  <bruno@clisp.org>
86932         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
86934 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86935             Bruno Haible  <bruno@clisp.org>
86937         * modules/tls-tests (Depends-on): Add thread, yield.
86938         (configure.ac): Remove all checks.
86939         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
86940         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
86941         gl_thread_self): Remove definitions. Include glthread/thread.h and
86942         glthread/yield.h instead.
86943         (test_tls): Pass an additional NULL argument to gl_thread_join.
86945 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86946             Bruno Haible  <bruno@clisp.org>
86948         * modules/lock-tests (Depends-on): Add thread, yield.
86949         (configure.ac): Remove all checks.
86950         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
86951         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
86952         gl_thread_self): Remove definitions. Include glthread/thread.h and
86953         glthread/yield.h instead.
86954         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
86955         additional NULL argument to gl_thread_join.
86957 2008-09-30  Bruno Haible  <bruno@clisp.org>
86959         Fix the Win32 implementation of the 'thread' module.
86960         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
86961         pointer type.
86962         (gl_thread_self): Invoke gl_thread_self_func.
86963         (gl_thread_self_func): New declaration.
86964         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
86965         (do_init_self_key, init_self_key): New functions.
86966         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
86967         Remove some fields.
86968         (running_threads, running_lock): Remove variables.
86969         (get_current_thread_handle): New function.
86970         (gl_thread_self_func, wrapper_func, glthread_create_func,
86971         glthread_join_func, gl_thread_exit_func): Largely rewritten and
86972         simplified.
86974 2008-09-30  Bruno Haible  <bruno@clisp.org>
86976         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
86977         files.
86979 2008-09-30  Jim Meyering  <meyering@redhat.com>
86981         fts.m4: correct the test for statfs.f_type
86982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
86983         when checking for statfs.f_type.
86985 2008-09-15  Simon Josefsson  <simon@josefsson.org>
86987         tests: avoid some compiler warnings
86988         * tests/test-memchr.c (main): Pass NULL indirectly.
86989         * tests/test-getdate.c (main): Remove unused variable 'ret'.
86991 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
86993         getdate.y: disallow countable dayshifts like "4 yesterday ago"
86994         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
86995         exactly specified dayshifts.
86996         (dayshift): New rule.
86997         (rel): Add dayshift.
86998         (relative_time_table) [tomorrow, yesterday, today, now]:
86999         Use tDAY_SHIFT in place of tDAY_UNIT.
87000         * tests/test-getdate.c: Add tests for now-disallowed countable
87001         dayshifts, e.g., "4 yesterday ago".
87003 2008-09-29  Bruno Haible  <bruno@clisp.org>
87005         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87006         * tests/test-posix_spawn1.in.sh: Renamed from
87007         tests/test-posix_spawn.in.sh.
87008         * tests/test-posix_spawn2.c: New file.
87009         * tests/test-posix_spawn2.in.sh: New file.
87010         * modules/posix_spawnp-tests (Files): Update.
87011         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87013 2008-09-29  Bruno Haible  <bruno@clisp.org>
87015         Propagate effects of putenv/setenv/unsetenv to child processes.
87016         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87017         * lib/pipe.c (create_pipe): Likewise.
87019 2008-09-29  Bruno Haible  <bruno@clisp.org>
87021         Enable use of shell scripts as executables in mingw.
87022         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87023         run the program as a shell script.
87024         * lib/pipe.c (create_pipe): Likewise.
87025         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87026         resulting array.
87028 2008-09-29  Eric Blake  <ebb9@byu.net>
87030         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87032 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87034         * doc/posix-functions/accept.texi: Update mingw problems.
87035         * doc/posix-functions/bind.texi: Update mingw problems.
87036         * doc/posix-functions/close.texi: Update mingw problems.
87037         * doc/posix-functions/connect.texi: Update mingw problems.
87038         * doc/posix-functions/getpeername.texi: Update mingw problems.
87039         * doc/posix-functions/getsockname.texi: Update mingw problems.
87040         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87041         * doc/posix-functions/ioctl.texi: Update mingw problems.
87042         * doc/posix-functions/listen.texi: Update mingw problems.
87043         * doc/posix-functions/recv.texi: Update mingw problems.
87044         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87045         * doc/posix-functions/select.texi: Update mingw problems.
87046         * doc/posix-functions/send.texi: Update mingw problems.
87047         * doc/posix-functions/sendto.texi: Update mingw problems.
87048         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87049         * doc/posix-functions/socket.texi: Update mingw problems.
87051 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87052             Bruno Haible  <bruno@clisp.org>
87054         * lib/sys_select.in.h: Include sys/time.h.
87055         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87056         * modules/sys_select: Depend on sys_time.
87057         * tests/test-sys_select.c: Test that sys/select.h defines struct
87058         timeval fully.
87060 2008-09-29  Bruno Haible  <bruno@clisp.org>
87062         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87063         * lib/sys_select.in.h: Likewise.
87065 2008-09-29  Bruno Haible  <bruno@clisp.org>
87067         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87069 2008-09-29  Bruno Haible  <bruno@clisp.org>
87071         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87072         Set LIBSOCKET instead of augmenting LIBS.
87073         * modules/sockets (Link): New section.
87074         * modules/sockets-tests (test_sockets_LDADD): New variable.
87075         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87076         * modules/poll-tests (test_poll_LDADD): New variable.
87077         * NEWS: Document the change.
87079 2008-09-29  Bruno Haible  <bruno@clisp.org>
87081         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87082         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87083         ARPA_INET_H directly.
87084         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87086 2008-09-28  Bruno Haible  <bruno@clisp.org>
87088         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87089         from gl_HEADER_SYS_SOCKET.
87090         (gl_HEADER_SYS_SOCKET): Invoke it.
87091         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87093 2008-09-28  Bruno Haible  <bruno@clisp.org>
87095         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87096         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87097         Needed on OSF/1 4.0.
87099 2008-09-28  Bruno Haible  <bruno@clisp.org>
87101         Override open more carefully.
87102         * lib/open.c (orig_open): New function.
87103         (rpl_open): Use orig_open instead of open.
87104         * lib/fcntl.in.h: Add special invocation convention.
87105         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87106         (gl_FUNC_OPEN): Invoke it.
87108         Override freopen more carefully.
87109         * lib/freopen.c (orig_freopen): New function.
87110         (rpl_freopen): Use orig_freopen instead of freopen.
87111         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87112         (gl_FUNC_FREOPEN): Invoke it.
87114         Override fopen more carefully.
87115         * lib/fopen.c (orig_fopen): New function.
87116         (rpl_fopen): Use orig_fopen instead of fopen.
87117         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87118         (gl_FUNC_FOPEN): Invoke it.
87119         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87121 2008-09-28  Bruno Haible  <bruno@clisp.org>
87123         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87124         SIGPIPE.
87126 2008-09-28  Bruno Haible  <bruno@clisp.org>
87128         * tests/test-sigaction.c (handler, main): Disable the check whether
87129         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87130         glibc systems with LinuxThreads.
87132 2008-09-28  Bruno Haible  <bruno@clisp.org>
87134         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87136         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87137         with AIX xlc.
87138         * lib/fcntl.in.h (open): Likewise.
87139         Reported by Rainer Tammer <tammer@tammer.net>.
87141 2008-09-28  Bruno Haible  <bruno@clisp.org>
87143         * modules/posix_spawnp-tests: New file.
87144         * tests/test-posix_spawn.c: New file.
87145         * tests/test-posix_spawn.in.sh: New file.
87147         New module 'posix_spawnp'.
87148         * modules/posix_spawnp: New file.
87149         * lib/spawnp.c: New file, from GNU libc with modifications.
87150         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87152         New module 'posix_spawn'.
87153         * modules/posix_spawn: New file.
87154         * lib/spawn.c: New file, from GNU libc with modifications.
87155         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87157         New module 'posix_spawnattr_destroy'.
87158         * modules/posix_spawnattr_destroy: New file.
87159         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87160         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87161         module.
87163         New module 'posix_spawnattr_setsigmask'.
87164         * modules/posix_spawnattr_setsigmask: New file.
87165         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87166         modifications.
87167         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87168         new module.
87170         New module 'posix_spawnattr_getsigmask'.
87171         * modules/posix_spawnattr_getsigmask: New file.
87172         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87173         modifications.
87174         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87175         new module.
87177         New module 'posix_spawnattr_setsigdefault'.
87178         * modules/posix_spawnattr_setsigdefault: New file.
87179         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87180         modifications.
87181         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87182         new module.
87184         New module 'posix_spawnattr_getsigdefault'.
87185         * modules/posix_spawnattr_getsigdefault: New file.
87186         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87187         modifications.
87188         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87189         new module.
87191         New module 'posix_spawnattr_setschedpolicy'.
87192         * modules/posix_spawnattr_setschedpolicy: New file.
87193         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87194         modifications.
87195         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87196         new module.
87198         New module 'posix_spawnattr_getschedpolicy'.
87199         * modules/posix_spawnattr_getschedpolicy: New file.
87200         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87201         modifications.
87202         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87203         new module.
87205         New module 'posix_spawnattr_setschedparam'.
87206         * modules/posix_spawnattr_setschedparam: New file.
87207         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87208         modifications.
87209         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87210         new module.
87212         New module 'posix_spawnattr_getschedparam'.
87213         * modules/posix_spawnattr_getschedparam: New file.
87214         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87215         modifications.
87216         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87217         new module.
87219         New module 'posix_spawnattr_setpgroup'.
87220         * modules/posix_spawnattr_setpgroup: New file.
87221         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87222         modifications.
87223         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87224         module.
87226         New module 'posix_spawnattr_getpgroup'.
87227         * modules/posix_spawnattr_getpgroup: New file.
87228         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87229         modifications.
87230         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87231         module.
87233         New module 'posix_spawnattr_setflags'.
87234         * modules/posix_spawnattr_setflags: New file.
87235         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87236         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87237         module.
87239         New module 'posix_spawnattr_getflags'.
87240         * modules/posix_spawnattr_getflags: New file.
87241         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87242         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87243         module.
87245         New module 'posix_spawnattr_init'.
87246         * modules/posix_spawnattr_init: New file.
87247         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87248         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87249         module.
87251         New module 'posix_spawn_file_actions_destroy'.
87252         * modules/posix_spawn_file_actions_destroy: New file.
87253         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87254         modifications.
87255         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87256         the new module.
87258         New module 'posix_spawn_file_actions_addopen'.
87259         * modules/posix_spawn_file_actions_addopen: New file.
87260         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87261         modifications.
87262         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87263         the new module.
87265         New module 'posix_spawn_file_actions_adddup2'.
87266         * modules/posix_spawn_file_actions_adddup2: New file.
87267         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87268         modifications.
87269         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87270         the new module.
87272         New module 'posix_spawn_file_actions_addclose'.
87273         * modules/posix_spawn_file_actions_addclose: New file.
87274         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87275         modifications.
87276         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87277         the new module.
87279         New module 'posix_spawn_file_actions_init'.
87280         * modules/posix_spawn_file_actions_init: New file.
87281         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87282         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87283         new module.
87285         New module 'posix_spawn-internal'.
87286         * modules/posix_spawn-internal: New file.
87287         * lib/spawn_int.h: New file, from GNU libc with modifications.
87288         * lib/spawni.c: New file, from GNU libc with modifications.
87289         * m4/posix_spawn.m4: New file.
87291         New module 'spawn'.
87292         * modules/spawn: New file.
87293         * lib/spawn.in.h: New file, from GNU libc with modifications.
87294         * m4/spawn_h.m4: New file.
87295         * doc/posix-headers/spawn.texi: Mention the new module.
87297 2008-09-28  Bruno Haible  <bruno@clisp.org>
87299         * modules/sched-tests: New file.
87300         * tests/test-sched.c: New file.
87302         New module 'sched'.
87303         * modules/sched: New file.
87304         * lib/sched.in.h: New file.
87305         * m4/sched_h.m4: New file.
87306         * doc/posix-headers/sched.texi: Mention the new module.
87308 2008-09-27  Eric Blake  <ebb9@byu.net>
87310         Fix previous patch, and tweak references to $0.
87311         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87312         (func_version, func_gnulib_dir): Don't call this program
87313         gnulib-tool.
87314         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87315         with using $0 in function.
87316         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87317         (func_fatal_error): Reuse the name the user invoked us with.
87319 2008-09-27  Bruno Haible  <bruno@clisp.org>
87321         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87322         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87323         (gl_ICONV_H): Not here.
87324         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87325         instead of assigning ICONV_H directly.
87327         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87329         WCHAR_H directly.
87331 2008-09-27  Bruno Haible  <bruno@clisp.org>
87333         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87334         * modules/arpa_inet (Depends-on): Add link-warning.
87335         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87336         * modules/unistd (Makefile.am): Likewise.
87338 2008-09-26  Bruno Haible  <bruno@clisp.org>
87340         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87341         variables.
87342         (func_version): Essentially copied from gnulib-tool.
87343         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87344         func_readlink): Copied from gnulib-tool.
87346 2008-09-26  Bruno Haible  <bruno@clisp.org>
87348         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87349         invoking git-version-gen.
87351 2008-09-26  Bruno Haible  <bruno@clisp.org>
87353         * posix-modules: Update to directory names changed on 2008-01-19.
87354         Remove commas in output before splitting into words. No more need to
87355         avoid 'ftruncate' since 2007-02-19.
87357 2008-09-26  Bruno Haible  <bruno@clisp.org>
87359         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87361 2008-09-26  Bruno Haible  <bruno@clisp.org>
87363         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87364         * modules/fwriteerror (Depends-on): Add errno.
87366 2008-09-26  Bruno Haible  <bruno@clisp.org>
87368         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87369         * tests/test-vc-list-files-cvs.sh: Likewise.
87371 2008-09-26  Bruno Haible  <bruno@clisp.org>
87373         * doc/posix-headers/sys_resource.texi: Reorder items.
87375 2008-09-26  Jim Meyering  <meyering@redhat.com>
87377         fts: tweak inode comparison function
87378         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87379         inode numbers, as documented.
87381         fts: sort dirent entries on inode number before traversing
87382         This avoids a quadratic, seek-related performance penalty when
87383         operating on a directory containing many entries (measurable at 10k;
87384         3.5 hours at 2 million entries with a cold cache) on certain types
87385         of file systems, including ext3 and ext4, but not tmpfs.
87386         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87387         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87388         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87389         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87390         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87391         (fts_build): Set the stat.st_ino member from D_INO.
87392         If it is likely to be useful, sort dirent entries on inode number.
87394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87395         and the struct statfs.f_type member.
87396         * modules/fts (Depends-on): Add d-ino.
87398 2008-09-26  Bruno Haible  <bruno@clisp.org>
87400         * modules/sigpipe-die (Depends-on): Add sigpipe.
87402         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87403         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87404         and GNULIB_STDIO_H_SIGPIPE are set.
87405         * lib/stdio-write.c: New file.
87406         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87407         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87408         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87409         REPLACE_STDIO_WRITE_FUNCS.
87410         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87411         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87412         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87413         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87414         * modules/stdio (Files): Add lib/stdio-write.c.
87415         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87416         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87417         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87418         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87419         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87420         REPLACE_FPRINTF_POSIX.
87421         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87422         REPLACE_PRINTF_POSIX.
87423         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87424         REPLACE_VFPRINTF_POSIX.
87425         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87426         REPLACE_VPRINTF_POSIX.
87427         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87428         SIGPIPE issue.
87429         * doc/posix-functions/fputc.texi: Likewise.
87430         * doc/posix-functions/fputs.texi: Likewise.
87431         * doc/posix-functions/fwrite.texi: Likewise.
87432         * doc/posix-functions/printf.texi: Likewise.
87433         * doc/posix-functions/putc.texi: Likewise.
87434         * doc/posix-functions/putchar.texi: Likewise.
87435         * doc/posix-functions/puts.texi: Likewise.
87436         * doc/posix-functions/vfprintf.texi: Likewise.
87437         * doc/posix-functions/vprintf.texi: Likewise.
87439         * modules/safe-write (Depends-on): Add write.
87441         * modules/sigpipe-tests: New file.
87442         * tests/test-sigpipe.c: New file.
87443         * tests/test-sigpipe.sh: New file.
87445         * modules/write: New file.
87446         * lib/unistd.in.h: Include <sys/types.h>.
87447         (write): New declaration.
87448         * lib/write.c: New file.
87449         * m4/write.m4: New file.
87450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87451         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87452         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87453         GNULIB_WRITE, REPLACE_WRITE.
87454         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87455         and the SIGPIPE issue.
87457         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87458         (raise): New declaration.
87459         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87460         (ext_signal): New function.
87461         (rpl_raise): New function.
87462         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87463         GNULIB_SIGNAL_H_SIGPIPE.
87464         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87465         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87467         * modules/sigpipe: New file.
87468         * m4/sigpipe.m4: New file.
87470 2008-09-25  Derek Price  <derek@ximbiot.com>
87471             Bruno Haible  <bruno@clisp.org>
87473         * gnulib-tool (func_import): Report all license incompatibilities, not
87474         just the first one.
87476 2008-09-25  Bruno Haible  <bruno@clisp.org>
87478         * gnulib-tool (func_import): When computing the edits, consider not
87479         only the Makefile.ams that exist but also those that will be generated.
87481 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87483         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87484         fixes gnulib-tool --test warning about duplicate dependency.
87486 2008-09-25  Bruno Haible  <bruno@clisp.org>
87488         * gnulib-tool: Don't ask the user to perform edits in the generated
87489         Makefile.ams.
87490         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87491         apply to the Makefile.am being generated.
87492         (func_emit_tests_Makefile_am): Execute edits that apply to the
87493         Makefile.am being generated.
87494         (func_import): Setup list of Makefile.am edits before emitting the
87495         Makefile.ams, not at the end.
87496         (func_create_testdir): Update.
87497         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87499 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87501         * gnulib-tool (func_import): Store the --tests-base option in the
87502         comment in gnulib-cache.m4.
87504 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87506         * NEWS: Document increased portability that sys_select now provides.
87508         * lib/sys_select.in.h: Install select wrapper.
87509         * lib/sys_socket.in.h: Use more descriptive name when there is no
87510         select wrapper.
87511         * lib/winsock-select.c: New.
87512         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87513         Require gl_HEADER_SYS_SOCKET.
87514         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87515         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87516         * tests/test-sys_select.c: Add functional tests.
87518 2008-09-24  Eric Blake  <ebb9@byu.net>
87520         open, fopen: close fd leak in last patch
87521         * lib/open.c (rpl_open): Close fd before returning error.
87522         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87523         * doc/posix-functions/open.texi (open): Document that Irix also
87524         has the bug.
87525         * doc/posix-functions/fopen.texi (fopen): Likewise.
87526         Reported by Paolo Bonzini.
87528 2008-09-24  Bruno Haible  <bruno@clisp.org>
87530         Ensure that a filename ending in a slash cannot be used to access a
87531         non-directory.
87532         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87533         to check whether it's really a directory.
87534         * lib/fopen.c: Include fcntl.h, unistd.h.
87535         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87536         and fdopen().
87537         * modules/fopen (Depends-on): Add unistd.
87538         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87539         * tests/test-fopen.c (main): Likewise.
87540         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87541         * doc/posix-functions/fopen.texi: Likewise.
87542         Reported by Eric Blake.
87544 2008-09-23  Eric Blake  <ebb9@byu.net>
87546         c-stack: avoid compiler optimizations when provoking overflow
87547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87548         recursion harder to optimize, to ensure a stack overflow occurs.
87549         * tests/test-c-stack.c (recurse): Likewise.
87550         Borrowed from libsigsegv.
87552         c-stack: work around Irix sigaltstack bug
87553         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87554         whether sigaltstack uses wrong end of stack_t (copied in part from
87555         libsigsegv).
87556         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87557         Irix bug, without requiring an over-allocation.
87558         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87559         bug.
87561         fopen: document mingw bug on directories
87562         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87563         not allowing a stream visiting a directory, even though reading
87564         from such a stream is not portable.
87566 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87568         * lib/poll.c: Rewrite.
87569         * modules/poll: Depend on alloca.
87571 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87573         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87574         instead define prototypes for a full set of wrappers.  Ensure
87575         that Cygwin does not use the compatibility code, which is only
87576         for MinGW.
87577         * lib/winsock.c: New.
87578         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87579         * modules/sys_socket: Add lib/winsock.c.
87581         * modules/poll-tests: Add errno and perror.
87582         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87584 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87586         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87588 2008-09-23  Bruno Haible  <bruno@clisp.org>
87590         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87591         * doc/glibc-functions/*: Likewise.
87593 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87595         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87596         success.
87598 2008-09-22  Eric Blake  <ebb9@byu.net>
87599             Bruno Haible  <bruno@clisp.org>
87601         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87602         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87603         supply %A but mishandle pseudo-NaN.
87604         Reported by Simon Josefsson.
87606 2008-09-21  Bruno Haible  <bruno@clisp.org>
87608         * tests/test-lock.c (main): Tweak skip message.
87609         * tests/test-tls.c (main): Likewise.
87611 2008-09-21  Bruno Haible  <bruno@clisp.org>
87613         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87614         whether 'struct sigaction' has sa_sigaction here...
87615         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87616         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87618 2008-09-21  Bruno Haible  <bruno@clisp.org>
87620         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87621         section.
87622         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87623         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87624         the new section.
87625         (Support for obsolete systems lacking POSIX:2001): New section.
87626         (String handling <string.h>): Move strdup to the new section.
87627         Suggested by Simon Josefsson and Paolo Bonzini.
87629 2008-09-21  Bruno Haible  <bruno@clisp.org>
87631         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87632         exponents in %e and %g results on 'long double'. Needed for mingw's
87633         improved *printf functions.
87634         * tests/test-vasprintf-posix.c (test_function): Likewise.
87635         * tests/test-snprintf-posix.h (test_function): Likewise.
87636         * tests/test-sprintf-posix.h (test_function): Likewise.
87637         Reported by Eric Blake.
87639 2008-09-21  Bruno Haible  <bruno@clisp.org>
87641         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87642         * tests/test-sprintf-posix.h (test_function): Likewise.
87644 2008-09-21  Bruno Haible  <bruno@clisp.org>
87646         * modules/getpass (Depends-on): Add strdup-posix.
87648         New module 'strdup-posix'.
87649         * modules/strdup-posix: New file.
87650         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87651         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87653         REPLACE_STRDUP.
87654         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87655         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87657         strdup-posix.
87659         * modules/strdup (Depends-on): Remove malloc-posix.
87661 2008-09-20  Bruno Haible  <bruno@clisp.org>
87663         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87664         Wildenhues.
87666 2008-09-20  Bruno Haible  <bruno@clisp.org>
87668         Ensure that wint_t gets defined on IRIX 5.3.
87669         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87670         * lib/wctype.in.h (wint_t): Likewise.
87671         (__wctype_wint_t): Remove type.
87672         (isw*): Use wint_t instead of __wctype_wint_t.
87673         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87674         * modules/wchar (Files): Add m4/wint_t.m4.
87675         (Makefile.am): Substitute HAVE_WINT_T.
87676         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87677         * tests/test-wctype.c: Check that wint_t is defined.
87678         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87679         * doc/posix-headers/wctype.texi: Likewise.
87680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87682 2008-09-18  Bruno Haible  <bruno@clisp.org>
87684         * gnulib-tool (func_exit): Update comment.
87686 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87688         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87689         assumes strdup exists and does not depend on strdup to return
87690         ENOMEM on out of memory conditions.
87692 2008-09-18  Bruno Haible  <bruno@clisp.org>
87694         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87695         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87696         digits for the exponent.
87698 2008-09-18  Jim Meyering  <meyering@redhat.com>
87699             Bruno Haible  <bruno@clisp.org>
87701         * lib/vasnprintf.c (decimal_point_char): Define also if
87702         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87704 2008-09-16  Bruno Haible  <bruno@clisp.org>
87705         and Eric Blake  <ebb9@byu.net>
87707         vasnprintf: support Irix 5.3
87708         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87709         that mishandle long double infinity.
87710         Reported by Tom G. Christensen.
87712 2008-09-16  Bruno Haible  <bruno@clisp.org>
87714         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87715         Solaris 9.
87716         * doc/glibc-functions/alphasort.texi: Likewise.
87717         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87719 2008-09-16  Jim Meyering  <meyering@redhat.com>
87721         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
87722         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
87723         a umask modification leak out of a subshell.  Otherwise, the
87724         opensolaris /bin/sh would be accepted and thus cause unwarranted
87725         failures in the coreutils test suite.
87727 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
87729         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
87730         to succeed.
87732 2008-09-16  Jim Meyering  <meyering@redhat.com>
87734         avoid spurious test failure when library is built without ACL support
87735         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
87736         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
87737         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
87738         * tests/test-copy-acl.sh: Likewise.
87740 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87742         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
87743         based on character occurrence counts.
87745 2008-09-15  Eric Blake  <ebb9@byu.net>
87747         tests: avoid some compiler warnings
87748         * tests/test-memchr.c (main): Pass NULL indirectly.
87749         * tests/test-closein.c (main): Avoid unused variable.
87751 2008-09-15  Bruno Haible  <bruno@clisp.org>
87753         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
87754         are missing on OpenBSD 4.0 individually.
87755         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87757 2008-09-15  Bruno Haible  <bruno@clisp.org>
87759         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
87760         * doc/posix-functions/strerror.texi: Mention also Cygwin.
87761         * doc/posix-functions/perror.texi: Likewise.
87762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
87763         is missing.
87764         Reported by Eric Blake.
87766         * lib/errno.in.h: Use replacement values >= 2000.
87767         Reported by Eric Blake.
87769 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87771         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
87772         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
87773         limit.
87774         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
87775         compareseq was aborted.
87777 2008-09-14  Bruno Haible  <bruno@clisp.org>
87779         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
87780         yvec_edit_count.
87781         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
87782         (fstrcmp_bounded): Simplify result computation accordingly.
87784 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87786         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
87787         (fstrcmp): Define in terms of fstrcmp_bounded.
87788         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
87789         lower_bound argument.
87790         Return quickly if the result is certainly < lower_bound.
87791         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
87793 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87795         * lib/diffseq.h (EARLY_ABORT): New macro.
87796         (compareseq): Change return type to bool. Return true when EARLY_ABORT
87797         evaluates to true.
87799 2008-09-14  Bruno Haible  <bruno@clisp.org>
87801         * modules/perror-tests: New file.
87802         * tests/test-perror.sh: New file.
87803         * tests/test-perror.c: New file.
87805         New module 'perror'.
87806         * lib/stdio.in.h (perror): New declaration.
87807         * lib/perror.c: New file.
87808         * m4/perror.m4: New file.
87809         * modules/perror: New file.
87810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
87811         * doc/posix-functions/perror.texi: Mention the perror module.
87812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
87813         REPLACE_PERROR.
87814         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
87815         REPLACE_PERROR.
87817 2008-09-14  Bruno Haible  <bruno@clisp.org>
87819         * modules/stdio (Makefile.am): Reorder to match the order in
87820         lib/stdio.in.h.
87821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87823 2008-09-13  Bruno Haible  <bruno@clisp.org>
87825         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
87827 2008-09-13  Bruno Haible  <bruno@clisp.org>
87829         Extend strerror to cover the added errno values.
87830         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
87831         (rpl_strerror): Provide error messages for the added errno values and
87832         for the WSA* values.
87833         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
87834         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
87835         strerror.
87836         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
87837         * modules/strerror (Depends-on): Add errno.
87838         * doc/posix-functions/strerror.texi: Document the change.
87839         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
87840         and EOVERFLOW.
87842 2008-09-13  Bruno Haible  <bruno@clisp.org>
87844         * modules/EOVERFLOW: Remove file.
87845         * m4/eoverflow.m4: Remove file.
87846         * modules/EOVERFLOW-tests: Remove file.
87847         * tests/test-EOVERFLOW.c: Remove file.
87848         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
87849         * modules/ftell (Depends-on): Likewise.
87850         * modules/getdelim (Depends-on): Likewise.
87851         * modules/getugroups (Depends-on): Likewise.
87852         * modules/poll (Depends-on): Likewise.
87853         * modules/snprintf (Depends-on): Likewise.
87854         * modules/sprintf-posix (Depends-on): Likewise.
87855         * modules/vasnprintf (Depends-on): Likewise.
87856         * modules/vasprintf (Depends-on): Likewise.
87857         * modules/vfprintf-posix (Depends-on): Likewise.
87858         * modules/vsnprintf (Depends-on): Likewise.
87859         * modules/vsprintf-posix (Depends-on): Likewise.
87860         * modules/xvasprintf (Depends-on): Likewise.
87861         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87862         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
87863         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
87864         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
87865         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87866         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
87867         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
87868         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
87869         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87870         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
87871         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
87872         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
87873         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87874         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
87875         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
87876         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
87877         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87878         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
87879         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
87880         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
87881         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87882         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
87883         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
87884         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
87885         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
87886         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87887         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
87888         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
87889         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
87890         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
87891         * MODULES.html.sh: Remove EOVERFLOW.
87892         * NEWS: Mention the change.
87894 2008-09-13  Bruno Haible  <bruno@clisp.org>
87896         * modules/errno-tests: New file.
87897         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
87899         * lib/errno.in.h: New file.
87900         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
87901         * modules/errno: New file.
87902         * doc/posix-headers/errno.texi: Update documentation.
87903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
87905 2008-09-13  Bruno Haible  <bruno@clisp.org>
87907         * tests/test-poll.c: Use #if for native Windows, rather than testing
87908         __MSVCRT__.
87910 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87911             Bruno Haible  <bruno@clisp.org>
87913         * lib/glob.c: Don't include <pwd.h> on native Windows.
87914         (WINDOWS32): New macro.
87915         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
87917 2008-09-13  Bruno Haible  <bruno@clisp.org>
87919         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
87920         (ETIMEDOUT): Remove macro.
87921         (glthread_cond_timedwait_multithreaded): New declaration.
87922         (glthread_cond_timedwait): Use it.
87923         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
87924         (glthread_cond_timedwait_multithreaded): New function.
87926 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87928         * modules/poll-tests: Do not check for io.h.
87929         * tests/test-poll.c: Check for __MSVCRT__ instead.
87931 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87933         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
87934         * modules/poll-tests: Add inet_pton, stdbool, sockets.
87935         * tests/test-poll.c: Use them.  Use _pipe on Windows.
87937 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
87939         * modules/poll-tests: New.
87940         * tests/test-poll.c: New.
87942 2008-09-12  Eric Blake  <ebb9@byu.net>
87944         frexp: test for NetBSD failure on -0.0
87945         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
87946         not all, bugs from NetBSD 3.0 have been fixed.
87947         * doc/posix-functions/frexp.texi (frexp): Document bug.
87948         Reported by Thomas Klausner.
87950         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
87951         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
87952         literal -0.0.
87953         Reported by Jonathan C. Patschke <jp@centtech.com>.
87955 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87957         * lib/glthread/cond.h: Use dummy implementation also if
87958         USE_WIN32_THREADS.
87960 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87962         * modules/fnmatch-posix (License): Change to LGPLv2+.
87963         * modules/fnmatch-gnu (License): Likewise.
87965 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87967         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
87969 2008-09-11  Jim Meyering  <meyering@redhat.com>
87971         * users.txt: Add gtk-vnc.
87973 2008-09-08  Simon Josefsson  <simon@josefsson.org>
87975         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
87976         rotate amounts.
87978         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
87979         required for 16-bit and 8-bit rotates.
87980         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
87981         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
87982         UINT8_MAX instead of hard-coded constants.
87983         Suggested by Paul Eggert.
87985 2008-09-07  Bruno Haible  <bruno@clisp.org>
87987         * tests/test-striconveh.c (main): Check behaviour when converting from
87988         UTF-7.
87990         Make striconveh work better with stateful encodings.
87991         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
87992         that iconv does not increment the inptr when returning -1/EINVAL.
87994 2008-09-07  Bruno Haible  <bruno@clisp.org>
87996         * build-aux/config.rpath: Update according to libtool-2.2.6.
87997         * build-aux/config.libpath: Likewise.
87999 2008-09-06  Bruno Haible  <bruno@clisp.org>
88001         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88002         * lib/freadptr.c (freadptr): Likewise.
88003         * lib/freadseek.c (freadptrinc): Likewise.
88004         Reported by Simon Josefsson.
88006 2008-09-06  Bruno Haible  <bruno@clisp.org>
88008         * modules/freadptr (License): Change to LGPLv2+.
88009         * modules/freadseek (License): Likewise.
88010         Suggested by Eric Blake.
88012         * modules/memchr2 (License): Change to LGPLv2+.
88013         Approved by Eric Blake.
88015 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88016             Bruno Haible  <bruno@clisp.org>
88018         Make gnulib-tool work with native 'sed' on AIX.
88019         * gnulib-tool (sed_noop): New variable.
88020         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88021         func_add_or_update, func_create_testdir): Use it to initialize sed
88022         script variables.
88023         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88025 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88026             Bruno Haible  <bruno@clisp.org>
88028         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88029         also works after #include directives.
88031 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88033         getdate.y: reject an out-of-range timezone value
88034         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88035         the range [-24...+24].  When specified with only one or two digits,
88036         * tests/test-getdate.c: Tests for the fix.
88037         * doc/getdate.texi: Document this change.
88039 2008-09-03  Bruno Haible  <bruno@clisp.org>
88041         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88043 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88045         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88046         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88047         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88048         Blake <ebb9@byu.net>.
88050         * tests/test-bitrotate.c: Add more test vectors.
88052 2008-09-02  Eric Blake  <ebb9@byu.net>
88054         vasnprintf-posix: handle large precision via %.*d
88055         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88056         when handling it ourselves.
88057         * tests/test-vasnprintf-posix.c (test_function): Add test.
88058         * tests/test-snprintf-posix.h (test_function): Likewise.
88059         * tests/test-sprintf-posix.h (test_function): Likewise.
88060         * tests/test-vasprintf-posix.c (test_function): Likewise.
88061         Reported by Alain Guibert.
88063 2008-09-01  Eric Blake  <ebb9@byu.net>
88065         c-stack: make configure-time check more robust
88066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88067         successful sigaction call.
88068         Reported by Tom G. Christensen.
88070 2008-09-01  Bruno Haible  <bruno@clisp.org>
88072         New module 'findprog-lgpl'.
88073         * modules/findprog-lgpl: New file.
88074         * lib/findprog-lgpl.c: New file.
88075         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88076         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88077         to decide whether to use strdup or xstrdup, concatenated_filename or
88078         xconcatenated_filename.
88080 2008-09-01  Bruno Haible  <bruno@clisp.org>
88082         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88083         'xconcat-filename' (GPL).
88084         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88085         (License): Change to LGPLv2+.
88086         * modules/xconcat-filename: New file.
88087         * lib/concat-filename.h (concatenated_filename): Change specification.
88088         (xconcatenated_filename): New declaration.
88089         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88090         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88091         memory situations.
88092         * lib/xconcat-filename.c: New file.
88093         * NEWS: Mention the change.
88094         * lib/findprog.c: Include concat-filename.h, not filename.h.
88095         (find_in_path): Use xconcatenated_filename instead of
88096         concatenated_filename.
88097         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88098         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88099         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88100         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88101         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88102         instead of concatenated_filename.
88103         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88104         (execute_java_class): Use xconcatenated_filename instead of
88105         concatenated_filename.
88106         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88107         * modules/javacomp (Depends-on): Likewise.
88108         * modules/javaexec (Depends-on): Likewise.
88110 2008-09-01  Bruno Haible  <bruno@clisp.org>
88112         Split module 'filename' into 'filename' and 'concat-filename'.
88113         * modules/filename: Keep only lib/filename.h.
88114         (License): Change to LGPLv2+.
88115         * modules/concat-filename: New file, extracted from modules/filename.
88116         * lib/filename.h (concatenated_filename): Remove declaration.
88117         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88118         * lib/concat-filename.c: Include concat-filename.h.
88119         * NEWS: Mention the change.
88121 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88123         * lib/bitrotate.h (rotl8, rotr8): Add.
88125         * modules/bitrotate (configure.ac): Need
88126         AC_REQUIRE([AC_C_INLINE]).
88127         (Description): Mention stdint.h.  Reported by Bruno Haible
88128         <bruno@clisp.org>.
88130         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88131         Paolo Bonzini <bonzini@gnu.org>.
88133 2008-08-31  Bruno Haible  <bruno@clisp.org>
88135         Assume Solaris specific bi-arch conventions on Solaris systems.
88136         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88137         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88138         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88139         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88140         like acl_libdirstem.
88141         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88142         acl_libdirstem.
88143         * NEWS: Mention the change.
88144         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88146 2008-08-31  Jim Meyering  <meyering@redhat.com>
88148         * lib/strftime.h: Add comments describing the two added arguments.
88150         remove duplicate #include directives
88151         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88152         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88154 2008-08-31  Bruno Haible  <bruno@clisp.org>
88156         New module 'sigpipe-die'.
88157         * modules/sigpipe-die: New file.
88158         * lib/sigpipe-die.h: New file.
88159         * lib/sigpipe-die.c: New file.
88160         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88162 2008-08-31  Bruno Haible  <bruno@clisp.org>
88164         Don't override previously installed signal handlers.
88165         * lib/fatal-signal.c (saved_sigactions): New variable.
88166         (uninstall_handlers): Reset the signal to the saved handler, not
88167         to SIG_DFL (except when ignored).
88168         (install_handlers): Save the previous handlers.
88170 2008-08-30  Bruno Haible  <bruno@clisp.org>
88172         * gnulib-tool (func_reset_sigpipe): New function.
88173         (func_get_automake_snippet, func_modules_transitive_closure,
88174         func_import): Invoke it before a join command that reads from stdin,
88175         to avoid "echo: write error: Broken pipe" error messages on stderr.
88176         Reported by Sam Steingold <sds@gnu.org>.
88178 2008-08-30  Bruno Haible  <bruno@clisp.org>
88180         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88181         Code copied from m4/open.m4.
88182         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88183         access and the filename ends in a slash. Code copied from lib/open.c.
88184         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88185         * tests/test-fopen.c (main): Check against bug with trailing slash.
88187 2008-08-29  Bruno Haible  <bruno@clisp.org>
88189         Avoid some "gcc -pedantic" warnings.
88190         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88191         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88192         * lib/dirent.in.h: Likewise.
88193         * lib/fcntl.in.h: Likewise.
88194         * lib/float.in.h: Likewise.
88195         * lib/iconv.in.h: Likewise.
88196         * lib/inttypes.in.h: Likewise.
88197         * lib/locale.in.h: Likewise.
88198         * lib/math.in.h: Likewise.
88199         * lib/netinet_in.in.h: Likewise.
88200         * lib/search.in.h: Likewise.
88201         * lib/signal.in.h: Likewise.
88202         * lib/stdarg.in.h: Likewise.
88203         * lib/stdint.in.h: Likewise.
88204         * lib/stdio.in.h: Likewise.
88205         * lib/stdlib.in.h: Likewise.
88206         * lib/string.in.h: Likewise.
88207         * lib/strings.in.h: Likewise.
88208         * lib/sys_select.in.h: Likewise.
88209         * lib/sys_socket.in.h: Likewise.
88210         * lib/sys_stat.in.h: Likewise.
88211         * lib/sys_time.in.h: Likewise.
88212         * lib/sysexits.in.h: Likewise.
88213         * lib/time.in.h: Likewise.
88214         * lib/unistd.in.h: Likewise.
88215         * lib/wchar.in.h: Likewise.
88216         * lib/wctype.in.h: Likewise.
88217         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88218         * modules/fchdir (Makefile.am): Likewise.
88219         * modules/fcntl (Makefile.am): Likewise.
88220         * modules/float (Makefile.am): Likewise.
88221         * modules/iconv_open (Makefile.am): Likewise.
88222         * modules/inttypes (Makefile.am): Likewise.
88223         * modules/locale (Makefile.am): Likewise.
88224         * modules/math (Makefile.am): Likewise.
88225         * modules/netinet_in (Makefile.am): Likewise.
88226         * modules/search (Makefile.am): Likewise.
88227         * modules/signal (Makefile.am): Likewise.
88228         * modules/stdarg (Makefile.am): Likewise.
88229         * modules/stdint (Makefile.am): Likewise.
88230         * modules/stdio (Makefile.am): Likewise.
88231         * modules/stdlib (Makefile.am): Likewise.
88232         * modules/string (Makefile.am): Likewise.
88233         * modules/strings (Makefile.am): Likewise.
88234         * modules/sys_select (Makefile.am): Likewise.
88235         * modules/sys_socket (Makefile.am): Likewise.
88236         * modules/sys_stat (Makefile.am): Likewise.
88237         * modules/sys_time (Makefile.am): Likewise.
88238         * modules/sysexits (Makefile.am): Likewise.
88239         * modules/time (Makefile.am): Likewise.
88240         * modules/unistd (Makefile.am): Likewise.
88241         * modules/wchar (Makefile.am): Likewise.
88242         * modules/wctype (Makefile.am): Likewise.
88243         Reported by Reuben Thomas <rrt@sc3d.org>.
88245 2008-08-29  Bruno Haible  <bruno@clisp.org>
88247         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88248         any more.
88250 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88252         * MODULES.html.sh (Misc): Add bitrotate.
88254         * modules/bitrotate: New file.
88256         * lib/bitrotate.h: New file.
88258         * modules/bitrotate-tests: New file.
88260         * tests/test-bitrotate.c: New file.
88262         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88263         on the bitrotate module.
88265         * lib/arctwo.c: Use new bitrotate module.
88267 2008-08-29  Jim Meyering  <meyering@redhat.com>
88269         bootstrap: merge changes from coreutils
88270         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88271         of copied files.  Remove a kludge, now that this is fixed.
88272         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88273         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88274         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88276 2008-08-29  Bruno Haible  <bruno@clisp.org>
88278         * MODULES.html.sh: Remove --cvs-urls option.
88280 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88282         maint.mk: adjust to file name change
88283         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88285 2008-08-28  Jim Meyering  <meyering@redhat.com>
88287         * modules/getndelim2 (License): Relicense to LGPLv2+.
88288         Approved by Richard Stallman for the version of 1995, and by
88289         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88291 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88293         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88294         dummy if one is not available.  Do not touch them if
88295         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88296         (getc_maybe_unlocked): New.
88297         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88299 2008-08-26  Eric Blake  <ebb9@byu.net>
88301         doc/INSTALL: resync from autoconf
88302         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88303         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88304         moving...
88305         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88306         * INSTALL: Regenerate.
88307         * INSTALL.ISO: New file.
88308         * INSTALL.UTF-8: Likewise.
88310 2008-08-26  Jim Meyering  <meyering@redhat.com>
88312         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88313         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88314         these definitions conditional, so that they may be overridden, too.
88316 2008-08-26  Bruno Haible  <bruno@clisp.org>
88318         Generate INSTALL file variants with prettier quotes.
88319         * doc/Makefile (INSTALL_PRELUDE): New macro.
88320         (INSTALL): Use it.
88321         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88323 2008-08-26  Bruno Haible  <bruno@clisp.org>
88325         Run makeinfo in an English locale.
88326         * doc/Makefile (MAKEINFO): New variable.
88328 2008-08-26  Bruno Haible  <bruno@clisp.org>
88330         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88331         Suggested by Eric Blake.
88333 2008-08-25  Bruno Haible  <bruno@clisp.org>
88335         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88337 2008-08-25  Eric Blake  <ebb9@byu.net>
88339         c-stack: test that stack overflow can be caught
88340         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88341         that platform allows handling stack overflow; at least OS/2 EMX
88342         has sigaltstack, but crashes before transferring control to
88343         handler on stack overflow.
88344         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88345         check for HAVE_STACK_OVERFLOW_HANDLING.
88346         Reported by Elbert Pol.
88348 2008-08-25  Bruno Haible  <bruno@clisp.org>
88350         * doc/posix-functions/strftime.texi: Fix description of strftime
88351         module.
88353 2008-08-24  Bruno Haible  <bruno@clisp.org>
88355         * tests/uniwidth/test-uc_width2.c: New file.
88356         * tests/uniwidth/test-uc_width2.sh: New file.
88357         * modules/uniwidth/width-tests (Files): Add the new files.
88358         (TESTS): Add uniwidth/test-uc_width2.sh.
88359         (TESTS_ENVIRONMENT): New variable.
88360         (check_PROGRAMS): Add test-uc_width2.
88361         (test_uc_width2_SOURCES): New variable.
88363         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88364         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88365         not 0x00AB.
88366         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88368 2008-08-22  Eric Blake  <ebb9@byu.net>
88370         test-lock, test-tls: mention why a test is skipped
88371         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88372         skipped.
88373         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88375         count-one-bits: relax license
88376         * modules/count-one-bits (License): Relicense to LGPLv2+.
88377         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88379 2008-08-22  Andreas Schwab  <schwab@suse.de>
88381         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88382         Remove spurious space in assignment.
88384 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88386         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88387         Paul Eggert <eggert@CS.UCLA.EDU>.
88389 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88391         * modules/gettext: Add m4/threadlib.m4.
88393 2008-08-19  Eric Blake  <ebb9@byu.net>
88395         test-c-stack: fix compilation failure on FreeBSD 5.0
88396         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88397         headers before <sys/resource.h>.
88398         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88399         the bug.
88400         Reported by Nelson H. F. Beebe.
88402         strverscmp: migrate from "strverscmp.h" to <string.h>
88403         * modules/string (Makefile.am): Add new hooks.
88404         * modules/strverscmp (Files): Remove strverscmp.h.
88405         (Depends-on): Add string.
88406         (configure.ac): Add indicator.
88407         (Include): Mention new header.
88408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88409         defaults.
88410         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88411         results.
88412         * lib/strverscmp.h: Delete.
88413         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88414         * tests/test-strverscmp.c (includes): Adjust client.
88415         * lib/check-version.c (includes): Likewise.
88416         * NEWS: Document the change.
88418         strverscmp: add unit test
88419         * modules/strverscmp-tests: New file.
88420         * tests/test-strverscmp.c: Likewise.
88422 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88424         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88425         regarding Windows crypto stuff, from Mono.
88427 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88429         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88430         if present, for intel RND.  Return error on failures.
88432 2008-08-18  Ben Pfaff  <blp@gnu.org>
88434         gitlog-to-changelog: give better diagnostic for failed pipe-open
88435         * build-aux/gitlog-to-changelog: Improve error message: suggest
88436         that the version of Git may be too old.
88438 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88440         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88441         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88443 2008-08-18  Bruno Haible  <bruno@clisp.org>
88445         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88446         pthread_in_use().
88448 2008-08-18  Bruno Haible  <bruno@clisp.org>
88450         * lib/glthread/threadlib.c: Include <pthread.h>.
88452 2008-08-18  Bruno Haible  <bruno@clisp.org>
88454         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88455         glthread_recursive_lock_* macros.
88456         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88457         Fix syntax error.
88459 2008-08-18  Bruno Haible  <bruno@clisp.org>
88461         * lib/glthread/thread.c: Avoid forcing a context switch right after
88462         thread creation.
88464 2008-08-17  Bruno Haible  <bruno@clisp.org>
88466         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88467         * lib/glthread/thread.h: Provide Win32 specific implementation.
88468         * modules/thread (Files): Add lib/glthread/thread.c.
88469         (Depends-on): Add lock.
88470         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88472 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88474         New module 'yield'.
88475         * modules/yield: New file.
88476         * lib/glthread/yield.h: New file.
88477         * m4/yield.m4: New file.
88478         * MODULES.html.sh (Multithreading): Add yield.
88480 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88482         New module 'thread'.
88483         * modules/thread: New file.
88484         * lib/glthread/thread.h: New file.
88485         * m4/thread.m4: New file.
88486         * MODULES.html.sh (Multithreading): Add thread.
88488 2008-08-17  Bruno Haible  <bruno@clisp.org>
88490         * lib/glthread/lock.h: Include <stdlib.h> always.
88491         * lib/glthread/tls.h: Likewise.
88492         * lib/glthread/cond.h: Likewise.
88494 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88496         New module 'cond'.
88497         * modules/cond: New file.
88498         * lib/glthread/cond.h: New file.
88499         * lib/glthread/cond.c: New file.
88500         * m4/cond.m4: New file.
88501         * MODULES.html.sh (Multithreading): Add cond.
88503 2008-08-16  Eric Blake  <ebb9@byu.net>
88505         c-stack: fix regression on Irix 5.3 from 2008-06-21
88506         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88507         sa_sigaction...
88508         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88509         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88510         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88511         * modules/signal (Makefile.am): Use the value.
88512         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88513         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88514         * doc/posix-headers/signal.texi (signal.h): Document this
88515         portability issue.
88516         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88517         Reported by Tom G. Christensen.
88519 2008-08-17  Bruno Haible  <bruno@clisp.org>
88521         New module 'threadlib'.
88522         * modules/threadlib: New file.
88523         * lib/glthread/threadlib.c: New file, extracted from
88524         lib/glthread/lock.c.
88525         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88526         functions.
88527         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88528         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88529         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88530         macros.
88531         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88532         (gl_DISABLE_THREADS): Remove macro.
88533         * modules/lock (Files): Remove build-aux/config.rpath.
88534         (Depends-on): Remove havelib. Add threadlib.
88535         (configure.ac-early): Remove section.
88536         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88537         * modules/tls (Depends-on): Remove lock. Add threadlib.
88538         (Link): New section, copied from threadlib.
88539         * MODULES.html.sh (Multithreading): Add threadlib.
88541 2008-08-14  Bruno Haible  <bruno@clisp.org>
88543         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88544         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88545         glthread_rwlock_unlock, glthread_rwlock_destroy,
88546         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88547         glthread_recursive_lock_destroy): Define as macros always.
88548         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88549         glthread_lock_lock.
88550         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88551         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88552         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88553         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88554         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88555         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88556         (glthread_recursive_lock_lock_func): Renamed from
88557         glthread_recursive_lock_lock.
88558         (glthread_recursive_lock_unlock_func): Renamed from
88559         glthread_recursive_lock_unlock.
88560         (glthread_recursive_lock_destroy_func): Renamed from
88561         glthread_recursive_lock_destroy.
88563 2008-08-14  Bruno Haible  <bruno@clisp.org>
88565         * lib/glthread/lock.h: Renamed from lib/lock.h.
88566         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88567         * lib/glthread/tls.h: Renamed from lib/tls.h.
88568         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88569         * lib/fstrcmp.c: Update includes.
88570         * lib/strsignal.c: Update includes.
88571         * modules/lock (Files, Makefile.am): Update.
88572         (Include): Change to "glthread/lock.h".
88573         * modules/tls (Files, Makefile.am): Update.
88574         (Include): Change to "glthread/tls.h".
88575         * tests/test-lock.c: Update includes.
88576         * tests/test-tls.c: Update includes.
88577         * NEWS: Mention the renamed header files.
88579 2008-08-11  Jim Meyering  <meyering@redhat.com>
88581         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88583 2008-08-11  Eric Blake  <ebb9@byu.net>
88585         test-c-stack: avoid C99-ism
88586         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88587         before statement.
88588         Reported by Alain Guibert.
88590 2008-08-10  Jim Meyering  <meyering@redhat.com>
88592         ensure that return value of uinttostr et al are not ignored
88593         * lib/inttostr.h (__GNUC_PREREQ): Define.
88594         (__attribute_warn_unused_result__): Define.
88595         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88597 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88599         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88600         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88602 2008-08-07  Jim Meyering  <meyering@redhat.com>
88604         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88606         * modules/mkstemp (License): Relicense under LGPLv2+.
88607         * modules/tempname (License): Likewise.
88609 2008-08-06  Bruno Haible  <bruno@clisp.org>
88611         * lib/poll.c (poll): Further micro-optimization.
88613 2008-08-06  Jim Meyering  <meyering@redhat.com>
88615         inet_pton.c: use locale-independent tolower
88616         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88617         (inet_pton6): Use c_tolower rather than tolower.
88618         * modules/inet_pton (Depends-on): Add c-ctype.
88620 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88622         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88623         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88625 2008-08-06  Jim Meyering  <meyering@redhat.com>
88627         * modules/inet_pton (License): Relicense under LGPLv2+.
88629 2008-08-03  Bruno Haible  <bruno@clisp.org>
88631         Additional non-aborting API for lock and tls.
88632         * lib/lock.h: Include <errno.h>.
88633         (glthread_lock_init): New macro/function.
88634         (gl_lock_init): Define as wrapper around glthread_lock_init.
88635         (glthread_lock_lock): New macro/function.
88636         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88637         (glthread_lock_unlock): New macro/function.
88638         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88639         (glthread_lock_destroy): New macro/function.
88640         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88641         (glthread_rwlock_init): New macro/function.
88642         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88643         (glthread_rwlock_rdlock): New macro/function.
88644         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88645         (glthread_rwlock_wrlock): New macro/function.
88646         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88647         (glthread_rwlock_unlock): New macro/function.
88648         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88649         (glthread_rwlock_destroy): New macro/function.
88650         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88651         (glthread_recursive_lock_init): New macro/function.
88652         (gl_recursive_lock_init): Define as wrapper around
88653         glthread_recursive_lock_init.
88654         (glthread_recursive_lock_lock): New macro/function.
88655         (gl_recursive_lock_lock): Define as wrapper around
88656         glthread_recursive_lock_lock.
88657         (glthread_recursive_lock_unlock): New macro/function.
88658         (gl_recursive_lock_unlock): Define as wrapper around
88659         glthread_recursive_lock_unlock.
88660         (glthread_recursive_lock_destroy): New macro/function.
88661         (gl_recursive_lock_destroy): Define as wrapper around
88662         glthread_recursive_lock_destroy.
88663         (glthread_once): New macro/function.
88664         (gl_once): Define as wrapper around glthread_once.
88665         Update function declarations.
88666         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88667         glthread_rwlock_init. Return error code.
88668         (glthread_rwlock_rdlock_multithreaded): Renamed from
88669         glthread_rwlock_rdlock. Return error code.
88670         (glthread_rwlock_wrlock_multithreaded): Renamed from
88671         glthread_rwlock_wrlock. Return error code.
88672         (glthread_rwlock_unlock_multithreaded): Renamed from
88673         glthread_rwlock_unlock. Return error code.
88674         (glthread_rwlock_destroy_multithreaded): Renamed from
88675         glthread_rwlock_destroy. Return error code.
88676         (glthread_recursive_lock_init_multithreaded): Renamed from
88677         glthread_recursive_lock_init. Return error code.
88678         (glthread_recursive_lock_lock_multithreaded): Renamed from
88679         glthread_recursive_lock_lock. Return error code.
88680         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88681         glthread_recursive_lock_unlock. Return error code.
88682         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88683         glthread_recursive_lock_destroy. Return error code.
88684         (glthread_once_call): Make static.
88685         (glthread_once_multithreaded): Renamed from glthread_once.
88686         * lib/tls.h: Include <errno.h>.
88687         (glthread_tls_key_init): New macro/function.
88688         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88689         (glthread_tls_set): New macro/function.
88690         (gl_tls_set): Define as wrapper around glthread_tls_set.
88691         (glthread_tls_key_destroy): New macro/function.
88692         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88693         Update function declarations.
88694         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88695         glthread_tls_get.
88696         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88698 2008-08-04  Eric Blake  <ebb9@byu.net>
88700         gnumakefile: use space, not TAB, outside of targets
88701         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88703 2008-08-02  Jim Meyering  <meyering@redhat.com>
88705         getdate.y: avoid locale-dependent date parsing failure
88706         In Turkish locales, getdate would fail to recognize keywords
88707         containing a lowercase "i".  The solution is not to rely on
88708         locale-sensitive case-conversion.
88709         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88710         (lookup_word): Use c_toupper in place of toupper.
88711         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88712         Reported by Vefa Bicakci <bicave@superonline.com> in
88713         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88714         * modules/getdate (Depends-on): Add c-ctype.
88716 2008-08-02  Bruno Haible  <bruno@clisp.org>
88718         * gnulib-tool (func_import): When updating or creating a .gitignore
88719         file, prepend each added line with a slash, and ignore leading slashes
88720         from the existing lines.
88721         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88723 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88725         Portability fix for GNU make 3.79.1.
88726         * top/GNUmakefile: Avoid 'else COND', which older GNU make
88727         versions do not understand.
88729 2008-08-01  Bruno Haible  <bruno@clisp.org>
88731         Work around bug of HP-UX 10.20 cc with -0.0 literal.
88732         * tests/test-isnanf.h (zero): New variable.
88733         (main): Avoid literal -0.0f.
88734         * tests/test-isnand.h (zero): New variable.
88735         (main): Avoid literal -0.0.
88736         * tests/test-isnanl.h (zero): New variable.
88737         (main): Avoid literal -0.0L.
88738         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
88739         (test_float, test_double, test_long_double): Avoid literals -0.0f,
88740         -0.0, -0.0L.
88741         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
88742         (test_signbitd): Avoid literal -0.0.
88743         (test_signbitl): Avoid literal -0.0L.
88744         * tests/test-ceilf1.c (zero): New variable.
88745         (main): Avoid literal -0.0f.
88746         * tests/test-ceill.c (zero): New variable.
88747         (main): Avoid literal -0.0L.
88748         * tests/test-floorf1.c (zero): New variable.
88749         (main): Avoid literal -0.0f.
88750         * tests/test-floorl.c (zero): New variable.
88751         (main): Avoid literal -0.0L.
88752         * tests/test-roundf1.c (zero): New variable.
88753         (main): Avoid literal -0.0f.
88754         * tests/test-round1.c (zero): New variable.
88755         (main): Avoid literal -0.0.
88756         * tests/test-roundl.c (zero): New variable.
88757         (main): Avoid literal -0.0L.
88758         * tests/test-truncf1.c (zero): New variable.
88759         (main): Avoid literal -0.0f.
88760         * tests/test-trunc1.c (zero): New variable.
88761         (main): Avoid literal -0.0.
88762         * tests/test-truncl.c (zero): New variable.
88763         (main): Avoid literal -0.0L.
88764         * tests/test-frexp.c (zero): New variable.
88765         (main): Avoid literal -0.0.
88766         * tests/test-frexpl.c (zero): New variable.
88767         (main): Avoid literal -0.0L.
88768         * tests/test-ldexpl.c (zero): New variable.
88769         (main): Avoid literal -0.0L.
88770         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88771         (zerod, zerol): New variables.
88772         (test_function): Avoid literals -0.0, -0.0L.
88773         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88774         (zerod, zerol): New variables.
88775         (test_function): Avoid literals -0.0, -0.0L.
88776         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88777         (zerod, zerol): New variables.
88778         (test_function): Avoid literals -0.0, -0.0L.
88779         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88780         (zerod, zerol): New variables.
88781         (test_function): Avoid literals -0.0, -0.0L.
88782         * tests/test-strtod.c (zero): New variable.
88783         (main): Avoid literal -0.0.
88784         Reported by Jonathan C. Patschke <jp@centtech.com>.
88786 2008-07-31  Jim Meyering  <meyering@redhat.com>
88788         sha256.h: correct definition of SHA224_DIGEST_SIZE
88789         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
88790         Reported by Paulie Pena IV <paulie4@gmail.com>.
88791         Define as 224 / 8, rather than as a literal.
88792         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
88793         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
88794         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
88796 2008-07-31  Bruno Haible  <bruno@clisp.org>
88798         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
88799         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
88800         Reported by Jonathan Patschke <jp@centtech.com>.
88802 2008-07-31  Bruno Haible  <bruno@clisp.org>
88804         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
88805         Reported by Paolo Bonzini <bonzini@gnu.org>.
88807 2008-07-30  Eric Blake  <ebb9@byu.net>
88809         test-strtod: allow compilation without -lm
88810         * tests/test-strtod.c (main): Avoid link dependence on fabs.
88811         Reported by Dennis Clarke <blastwave@gmail.com>.
88813 2008-07-28  Jim Meyering  <meyering@redhat.com>
88815         bootstrap: work also when there are no .po files in po/
88816         * build-aux/bootstrap (update_po_files): Complete the change
88817         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
88819 2008-07-27  Jim Meyering  <meyering@redhat.com>
88821         * users.txt: Add zile.
88823 2008-07-26  Ben Pfaff  <blp@gnu.org>
88825         Add missing dependencies on new m4/exponent[fdl].m4 files.
88826         * modules/isnanf-nolibm: Add m4/exponentf.m4.
88827         * modules/isnand-nolibm: Add m4/exponentd.m4.
88828         * modules/isnanl-nolibm: Add m4/exponentl.m4.
88829         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
88830         m4/isnan[fdl].m4, because the macros actually used moved.
88831         Reported by Jim Meyering.
88833 2008-07-14  Ben Pfaff  <blp@gnu.org>
88835         Add isinf module.
88836         * lib/isinf.c: New file.
88837         * lib/math.in.h: Define isinf macro if we have decided to replace
88838         it.
88839         * m4/isinf.m4: New file.
88840         * m4/math_h.m4: Initialize and substitute variables for isinf
88841         module.
88842         * modules/isinf: New file.
88843         * modules/isinf-tests: New file.
88844         * modules/math: Add substitutions for new module.
88845         * tests/test-isinf.c: New file.
88846         * doc/posix-functions/isinf.texi: Mention new module.
88847         * MODULES.html.sh: Mention new module.
88849 2008-07-14  Ben Pfaff  <blp@gnu.org>
88851         Factor out some macros for use by additional modules.
88852         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
88853         exponentf.m4.
88854         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
88855         exponentd.m4.
88856         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
88857         file exponentl.m4.
88858         * m4/exponentf.m4: New file.
88859         * m4/exponentd.m4: New file.
88860         * m4/exponentl.m4: New file.
88861         * modules/isnanf: Use new file m4/exponentf.m4.
88862         * modules/isnand: Use new file m4/exponentd.m4.
88863         * modules/isnanl: Use new file m4/exponentl.m4.
88865 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
88867         mktime.c: normalize tp->tm_isdst value to -1/0/1.
88868         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
88869         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
88870         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
88872         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
88873         readlink on platforms without PATH_MAX.
88875 2008-07-21  Eric Blake  <ebb9@byu.net>
88877         Warn, not fail, on stale version.
88878         * top/GNUmakefile (_curr-ver): Tone down previous patch.
88880         Don't allow installation with stale devel version number.
88881         * top/GNUmakefile (_is-install-target): New macro.
88882         (_curr-ver): Forbid installation with stale version number.
88884 2008-07-20  Bruno Haible  <bruno@clisp.org>
88886         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
88887         TESTS_ENVIRONMENT.
88888         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
88890 2008-07-20  Bruno Haible  <bruno@clisp.org>
88892         * lib/c-stack.h (c_stack_action): Add documentation.
88893         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
88895 2008-07-20  Bruno Haible  <bruno@clisp.org>
88897         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
88898         * modules/readlink (License): Likewise.
88900 2008-07-17  Eric Blake  <ebb9@byu.net>
88902         * modules/c-stack (Link): Fix typo.
88904         Make c-stack use libsigsegv, when available.
88905         * modules/c-stack (Depends-on): Add libsigsegv.
88906         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
88907         needed.
88908         * lib/c-stack.c (SIGSTKSZ): Define fallback.
88909         (segv_handler, overflow_handler, c_stack_action)
88910         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
88911         implementation when libsigsegv is available, but only when using
88912         the library is necessary.
88913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
88914         comment, explaining why XSI check fails on Linux.
88915         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
88916         * tests/test-c-stack2.sh: Tweak skip message.
88917         * NEWS: Document new link-time requirements.
88919 2008-07-16  Eric Blake  <ebb9@byu.net>
88921         c-stack: Expose false positives when not using libsigsegv.
88922         * modules/c-stack-tests (Files): Expand test.
88923         * tests/test-c-stack.c (main): Add means to conditionally trigger
88924         non-overflow SIGSEGV.
88925         * tests/test-c-stack2.sh: New file.
88927 2008-07-14  Bruno Haible  <bruno@clisp.org>
88929         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
88930         Reported by Eric Blake.
88932 2008-07-14  Sam Steingold  <sds@gnu.org>
88933             Bruno Haible  <bruno@clisp.org>
88935         New module libsigsegv.
88936         * modules/libsigsegv: New file.
88937         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
88938         modifications.
88939         * MODULES.html.sh (Signal handling): New section.
88941 2008-07-14  Bruno Haible  <bruno@clisp.org>
88943         * modules/unictype/ctype-* (Description): Add the word "function".
88944         Improves the resulting doc in MODULES.html.
88946 2008-07-12  Ben Pfaff  <blp@gnu.org>
88948         Add longlong module.
88949         * modules/longlong: New file.
88951 2008-07-12  Bruno Haible  <bruno@clisp.org>
88953         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
88954         to empty.
88956 2008-07-10  Ben Pfaff  <blp@gnu.org>
88958         Add isnan module.
88959         * doc/posix-functions/isnan.texi: Mention new module.
88960         * lib/math.in.h: Define isnan macro if we have decided to replace
88961         it.
88962         * m4/isnan.m4: New file.
88963         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
88964         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
88965         also.
88966         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
88967         redundancy.
88968         * m4/math_h.m4: Initialize and substitute variables for isnan
88969         module.
88970         * modules/isnan: New file.
88971         * modules/isnan-tests: New file.
88972         * modules/math: Add substitutions for new module.
88973         * tests/test-isnan.c: New file.
88974         * MODULES.html.sh: Mention new module.
88976 2008-07-10  Ben Pfaff  <blp@gnu.org>
88978         Add isnanf module.
88979         * lib/isnanf.m4: New file.
88980         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
88981         (gl_HAVE_ISNANF_IN_LIBM): New macro.
88982         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
88983         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
88984         * modules/isnanf: New file.
88985         * modules/isnanf-tests: New file.
88986         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
88987         files.
88988         * tests/test-isnanf-nolibm.c: factored most of its contents into
88989         new file tests/test-isnanf.h.
88990         * tests/test-isnanf.h: New file.
88991         * tests/test-isnanf.c: New file.
88992         * MODULES.html.sh: Mention new module.
88993         * doc/glibc-functions/isnanf.texi: Mention new module.
88995 2008-07-10  Ben Pfaff  <blp@gnu.org>
88997         Add isnand module.
88998         * lib/isnand.h: New file.
88999         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89000         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89001         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89002         functionality also.
89003         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89004         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89005         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89006         * modules/isnand: New file.
89007         * modules/isnand-tests: New file.
89008         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89009         files.
89010         * tests/test-isnand-nolibm.c: factored most of its contents into
89011         new file tests/test-isnand.h.
89012         * tests/test-isnand.h: New file.
89013         * tests/test-isnand.c: New file.
89014         * MODULES.html.sh: Mention new module.
89016 2008-07-10  Ben Pfaff  <blp@gnu.org>
89018         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89019         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89020         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89021         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89022         * modules/isnanf-nolibm: Update references to renamed files.
89023         * modules/isnand-nolibm: Likewise.
89024         * modules/isnanf-nolibm-tests: Likewise.
89025         * modules/isnand-nolibm-tests: Likewise.
89026         * lib/frexp.c: Likewise.
89027         * lib/isfinite.c: Likewise.
89028         * lib/signbitd.c: Likewise.
89029         * lib/signbitf.c: Likewise.
89030         * lib/vasnprintf.c: Likewise.
89031         * tests/test-ceilf1.c: Likewise.
89032         * tests/test-ceilf2.c: Likewise.
89033         * tests/test-floorf1.c: Likewise.
89034         * tests/test-floorf2.c: Likewise.
89035         * tests/test-frexp.c: Likewise.
89036         * tests/test-round1.c: Likewise.
89037         * tests/test-round2.c: Likewise.
89038         * tests/test-roundf1.c: Likewise.
89039         * tests/test-strtod.c: Likewise.
89040         * tests/test-trunc1.c: Likewise.
89041         * tests/test-trunc2.c: Likewise.
89042         * tests/test-truncf1.c: Likewise.
89043         * tests/test-truncf2.c: Likewise.
89044         * NEWS: Mention the renamed header files.
89046 2008-07-11  Jim Meyering  <meyering@redhat.com>
89048         vc-list-files: make the last-resort awk code more portable
89049         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89050         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89051         does not support it.
89053 2008-07-10  Eric Blake  <ebb9@byu.net>
89055         Work with tar's bootstrap.
89056         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89057         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89058         an m4 comment.
89060 2008-07-09  Jim Meyering  <meyering@redhat.com>
89062         posix-shell.m4: fix typo that made this test malfunction
89063         * m4/posix-shell.m4: Remove capitalization in variable name.
89065 2008-07-08  Bruno Haible  <bruno@clisp.org>
89067         * m4/onceonly.m4: Update comments.
89068         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89070 2008-07-04  Jim Meyering  <meyering@redhat.com>
89072         * users.txt: Add vc-dwim.
89073         (bison, coreutils): Use the gitweb URL.
89075 2008-07-03  Jim Meyering  <meyering@redhat.com>
89077         * users.txt: Add libffcall.  From Sam Steingold.
89079 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89081         getdate.y: do not ignore TZ with relative day, month or year offset
89082         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89083         relative-date-handling, since otherwise, the latter would clobber the
89084         sole output (an updated Start value) of the tz-handling block.
89085         * tests/test-getdate.c: Tests for the fix
89087 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89089         Recognize 'foo_LIBRARIES += libgnu.a'.
89090         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89091         makefile snippet has already specified an installation location,
89092         also using '+='.
89094 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89096         getdate.y: factor out common actions
89097         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89098         Use them in place of open-coded actions.
89100 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89102         Add self-test for getdate module.
89103         * modules/getdate-tests: New file.
89104         * tests/test-getdate.c: New file.
89106 2008-06-29  Bruno Haible  <bruno@clisp.org>
89108         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89109         .gitignore.
89110         Reported by Sylvain Beucler <beuc@beuc.net>.
89112 2008-06-29  Bruno Haible  <bruno@clisp.org>
89114         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89115         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89117 2008-06-29  Bruno Haible  <bruno@clisp.org>
89119         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89120         EXTRA_DIST.
89121         Reported by Sylvain Beucler <beuc@beuc.net>.
89123 2008-06-26  Jim Meyering  <meyering@redhat.com>
89125         make several modules depend on the "open" module
89126         This provides slightly increased consistency when opening-for-write
89127         the name of a non-directory spelled with a trailing slash.
89128         * modules/chdir-safer: Likewise.
89129         * modules/chown: Likewise.
89130         * modules/clean-temp: Likewise.
89131         * modules/copy-file: Likewise.
89132         * modules/fchdir: Likewise.
89133         * modules/fcntl-safer: Likewise.
89134         * modules/pipe: Likewise.
89135         * modules/utime: Likewise.
89136         Prompted by Eric Blake and Bruno Haible.
89138 2008-06-24  Andreas Schwab  <schwab@suse.de>
89140         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89141         literals can be used as initializers for global variables.
89143 2008-06-23  Eric Blake  <ebb9@byu.net>
89145         Make gnulib-cache.m4 easier to diff.
89146         * gnulib-tool (func_import): Allow newlines when reading cached
89147         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89149 2008-06-23  Bruno Haible  <bruno@clisp.org>
89151         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89152         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89153         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89154         m4/signalblocking.m4.
89155         (gl_PREREQ_SIGACTION): Don't invoke it.
89156         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89157         gl_PREREQ_SIG_HANDLER_H.
89158         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89159         Don't check for sigaction here.
89161 2008-06-23  Bruno Haible  <bruno@clisp.org>
89163         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89164         (install_handlers): Don't set the SA_RESETHAND flag.
89166 2008-06-23  Bruno Haible  <bruno@clisp.org>
89168         * m4/sigaction.m4: Comment fixes.
89169         * lib/signal.in.h: Likewise.
89171 2008-06-23  Eric Blake  <ebb9@byu.net>
89173         Fix typo.
89174         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89176         Avoid SA_ namespace.
89177         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89178         Reported by Ralf Wildenhues.
89180         Avoid test failure due to SA_RESTORER.
89181         * tests/test-sigaction.c (SA_MASK): New macro.
89182         (main): Avoid failing due to extension flags being set.
89183         Reported by Jim Meyering.
89185         Revert use of sig-handler.h in sigprocmask.c.
89186         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89187         it requires the existence of struct sigaction.
89188         * lib/sigprocmask.c (handler_t): Restore typedef.
89189         (rpl_signal, old_handlers): Use local type.
89191 2008-06-22  Bruno Haible  <bruno@clisp.org>
89193         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89194         conditionally.
89195         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89197 2008-06-22  Bruno Haible  <bruno@clisp.org>
89199         * doc/posix-functions/siginterrupt.texi: Move note.
89201         * lib/signal.in.h (SA_RESTART): New macro.
89202         * lib/sigaction.c: Update comment.
89204         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89206         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89207         (gl_PREREQ_SIGPROCMASK): Invoke it.
89208         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89210         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89212         * lib/sigprocmask.c: Update a comment.
89214 2008-06-21  Eric Blake  <ebb9@byu.net>
89216         Use sigaction module rather than signal().
89217         * modules/c-stack (Depends-on): Add sigaction.
89218         * modules/fatal-signal (Depends-on): Likewise.
89219         * modules/nanosleep (Depends-on): Likewise.
89220         * modules/sigprocmask (Files): Add sig-handler.h.
89221         * modules/sigaction (Files): Likewise.
89222         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89223         Eggert.
89224         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89225         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89226         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89227         (init_fatal_signals): Likewise.
89228         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89229         (siginterrupt): Delete fallback.
89230         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89231         instead.
89232         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89233         siginterrupt.
89235         New module sigaction, for mingw.
89236         * modules/sigaction: New module...
89237         * modules/sigaction-tests: ...and its test.
89238         * m4/sigaction.m4: New file.
89239         * lib/sigaction.c: Likewise.
89240         * tests/test-sigaction.c: Likewise.
89241         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89242         * modules/signal (Makefile.am): Likewise.
89243         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89244         needed.
89245         * doc/posix-headers/signal.texi (signal.h): Mention provided
89246         types.
89247         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89248         that sigaction is preferable.
89249         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89250         module.
89251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89252         sigaction.
89254         Improve robustness of sigprocmask by overriding signal.
89255         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89256         is in use.
89257         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89258         (SIGKILL, SIGSTOP): Provide fallbacks.
89259         (rpl_signal): Implement.
89260         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89261         signal can be called inside handlers.
89263         Fix nanosleep module on mingw.
89264         * modules/nanosleep (Depends-on): Add sys_select.
89265         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89267         Fix licensing of sigprocmask.
89268         * modules/raise (License): Relicense as LGPL.
89270 2008-06-21  Bruno Haible  <bruno@clisp.org>
89272         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89273         result if it contains question marks.
89274         Reported by Michael Geng <linux@michaelgeng.de>.
89276 2008-06-19  Bruno Haible  <bruno@clisp.org>
89278         Fix CVS-ism.
89279         * doc/gnulib.texi: Include updated-stamp.texi.
89280         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89281         (updated-stamp.texi): New rule.
89282         (gnulib.info): Depend on it.
89283         * doc/.gitignore: Add updated-stamp.texi.
89284         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89286 2008-06-19  Bruno Haible  <bruno@clisp.org>
89288         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89289         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89291 2008-06-19  Eric Blake  <ebb9@byu.net>
89293         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89294         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89295         Reported by Stepan Kasal.
89297 2008-06-18  Bruno Haible  <bruno@clisp.org>
89299         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89300         Reported by Eric Blake.
89302 2008-06-18  Eric Blake  <ebb9@byu.net>
89304         Work around cygwin 1.5.25 strsignal bug.
89305         * tests/test-strsignal.c: Allow for const char *.
89306         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89308 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89310         * users.txt: Update URL to article and add author/date
89311         information.
89313 2008-06-17  Bruno Haible  <bruno@clisp.org>
89315         New macro gl_DISABLE_THREADS.
89316         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89317         if the user did not pass --enable-threads or --disable-threads option.
89318         (gl_DISABLE_THREADS): New macro.
89319         Reported by Eric Blake <ebb9@byu.net>.
89321 2008-06-17  Bruno Haible  <bruno@clisp.org>
89323         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89324         when the macro ignores it.
89325         Based on a patch by Eric Blake <ebb9@byu.net>.
89327 2008-06-17  Bruno Haible  <bruno@clisp.org>
89329         * modules/tls (License): Change to LGPLv2+.
89330         Reported by Eric Blake.
89332 2008-06-17  Eric Blake  <ebb9@byu.net>
89334         Simplify c-stack prerequisites.
89335         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89337         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89338         check.
89339         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89340         <sys/resource.h>.
89342         Move c-stack test into testsuite.
89343         * modules/c-stack-tests: New file.
89344         * lib/c-stack.c [DEBUG]: Move test program...
89345         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89346         fail test if sigaltstack is lacking.
89347         * tests/test-c-stack.sh: New driver file.
89349 2008-06-16  Eric Blake  <ebb9@byu.net>
89351         Use raise module consistently.
89352         * modules/fatal-signal (Depends-on): Add raise.
89353         * modules/sigprocmask (Depends-on): Likewise.
89354         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89355         * lib/sigprocmask.c (sigprocmask): Likewise.
89356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89357         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89359         Fix compliance bug in sigpending.
89360         * lib/sigprocmask.c (sigpending): Return pending array via
89361         parameter, not return value.
89363 2008-06-14  Eric Blake  <ebb9@byu.net>
89365         Improve obstack-printf test code.
89366         * tests/test-obstack-printf.c (test_function): Fix comment, and
89367         simplify usage of obstack_* in macros.  Add a test for coverage.
89368         Reported by Bruno Haible.
89370 2008-06-14  Bruno Haible  <bruno@clisp.org>
89372         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89373         array size as a constant, not as a const variable.
89374         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89375         AC_USE_SYSTEM_EXTENSIONS.
89376         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89377         Test whether the obstack_printf function actually exists.
89378         * modules/obstack-printf (Depends-on): Add extensions.
89379         (Include): Remove obstack.h.
89380         * modules/obstack-printf-posix (Depends-on): Add extensions.
89381         (Include): Remove obstack.h.
89383 2008-06-13  Eric Blake  <ebb9@byu.net>
89385         Add obstack-printf and obstack-printf-posix modules.
89386         * modules/obstack-printf: New file.
89387         * modules/obstack-printf-posix: Likewise.
89388         * MODULES.html.sh (Misc): Mention them.
89389         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89390         Likewise.
89391         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89392         Likewise.
89393         * modules/stdio (Makefile.am): Accomodate new modules.
89394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89395         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89396         Declare.
89397         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89398         functions.
89399         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89400         (gl_REPLACE_OBSTACK_PRINTF): New macros
89401         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89402         * tests/test-obstack-printf.c: New file.
89403         * modules/obstack-printf-tests: Likewise.
89404         * modules/obstack-printf-posix-tests: Likewise.
89406 2008-06-11  Bruno Haible  <bruno@clisp.org>
89408         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89409         * lib/open.c: Include errno.h.
89410         (open): Fail when attempting to write to a file that has a trailing
89411         slash.
89412         * tests/test-open.c (main): Test against trailing slash bug.
89413         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89415 2008-06-10  Bruno Haible  <bruno@clisp.org>
89417         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89418         for $? to work inside the trap command, with various /bin/sh-s.
89419         * tests/test-vc-list-files-cvs.sh: Likewise.
89421 2008-06-10  Bruno Haible  <bruno@clisp.org>
89423         * lib/acl-internal.h: Don't include gettext.h here.
89424         * lib/set-mode-acl.c: Include gettext.h here.
89425         * lib/copy-acl.c: Likewise.
89427 2008-06-10  Bruno Haible  <bruno@clisp.org>
89429         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89430         * lib/wait-process.c (wait_subprocess): Likewise.
89431         * lib/execute.h (execute): Add termsigp argument.
89432         * lib/execute.c (execute): Likewise.
89433         * lib/csharpcomp.c (compile_csharp_using_pnet,
89434         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89435         * lib/csharpexec.c (execute_csharp_using_pnet,
89436         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89437         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89438         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89439         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89440         is_jikes_present): Update.
89441         * lib/javaexec.c (execute_java_class): Update.
89442         * lib/javaversion.c (execute_and_read_line): Update.
89443         * NEWS: Document the changes.
89444         Reported by Eric Blake.
89446 2008-06-10  Eric Blake  <ebb9@byu.net>
89448         Add missing include.
89449         * tests/test-strstr.c (includes): Add <signal.h>.
89450         * tests/test-strcasestr.c (includes): Likewise.
89451         * tests/test-memmem.c (includes): Likewise.
89453 2008-06-10  Bruno Haible  <bruno@clisp.org>
89455         * lib/wait-process.c (wait_subprocess): Add an assertion.
89457 2008-06-10  Bruno Haible  <bruno@clisp.org>
89459         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89461 2008-06-10  Bruno Haible  <bruno@clisp.org>
89463         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89464         using alarm().
89465         * tests/test-strcasestr.c (main): Likewise.
89466         * tests/test-strstr.c (main): Likewise.
89468 2008-06-09  Bruno Haible  <bruno@clisp.org>
89470         Work around the Solaris 10 ACE ACLs ABI change.
89471         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89472         declare if ACL_NO_TRIVIAL is present.
89473         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89474         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89475         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89476         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89477         define if ACL_NO_TRIVIAL is present.
89478         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89479         and use the current ABI.
89480         (file_has_acl): Use same #if condition as elsewhere.
89481         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89482         in use, and use the current ABI.
89483         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89484         Reported by Jim Meyering.
89486 2008-06-09  Eric Blake  <ebb9@byu.net>
89488         Work around environments that (stupidly) ignore SIGALRM.
89489         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89490         before using alarm().
89491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89492         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89493         Reported by Ian Beckwith <ianb@erislabs.net>.
89495         Produce autobuild blurb earlier in log.
89496         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89498 2008-06-09  Jim Meyering  <meyering@redhat.com>
89499         and Ondřej Vašík  <ovasik@redhat.com>
89501         utimens.c: correct kernel bug work-around
89502         Ondřej Vašík found that the invalid return value of 280 indicates
89503         failure, not success, and the kernel bug we're trying to work
89504         around affects not just the utimensat call, but also the fallback
89505         futimens call.
89506         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89507         not success.
89508         [HAVE_FUTIMENS]: Use the same work-around, here.
89510 2008-06-09  Jim Meyering  <meyering@redhat.com>
89512         add more guards around definition of ACE_-related code
89513         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89514         ALLOW and ACE_OWNER are also defined.
89516 2008-06-08  Bruno Haible  <bruno@clisp.org>
89518         * lib/acl-internal.h: Add me as co-author.
89519         * lib/file-has-acl.c: Likewise.
89520         * lib/set-mode-acl.c: Likewise.
89521         * lib/copy-acl.c: Likewise.
89523 2008-06-08  Bruno Haible  <bruno@clisp.org>
89525         Add support for AIX ACLs.
89526         * lib/acl-internal.h (acl_nontrivial): New declaration.
89527         * lib/file-has-acl.c (acl_nontrivial): New function.
89528         (file_has_acl): Add implementation using AIX 4 ACL API.
89529         * lib/set-mode-acl.c (qset_acl): Likewise.
89530         * lib/copy-acl.c (qcopy_acl): Likewise.
89532 2008-06-08  Bruno Haible  <bruno@clisp.org>
89534         Add support for HP-UX ACLs.
89535         * lib/acl-internal.h (acl_nontrivial): New declaration.
89536         * lib/file-has-acl.c (acl_nontrivial): New function.
89537         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89538         * lib/set-mode-acl.c (qset_acl): Likewise.
89539         * lib/copy-acl.c (qcopy_acl): Likewise.
89541 2008-06-08  Bruno Haible  <bruno@clisp.org>
89543         Add support for Cygwin ACLs.
89544         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89545         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89546         the chmod_or_fchmod call.
89547         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89549 2008-06-08  Bruno Haible  <bruno@clisp.org>
89551         Fix bug with setuid modes in Solaris 10+ code.
89552         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89553         succeeded, when the mode contains some special bits.
89555 2008-06-08  Bruno Haible  <bruno@clisp.org>
89557         Add support for Solaris 7..10 ACLs.
89558         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89559         declarations.
89560         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89561         functions.
89562         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89563         * lib/set-mode-acl.c (qset_acl): Likewise.
89564         * lib/copy-acl.c (qcopy_acl): Likewise.
89566 2008-06-08  Bruno Haible  <bruno@clisp.org>
89568         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89569         declaration.
89570         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89571         (acl_access_nontrivial): Remove MacOS X case.
89572         (file_has_acl): Use acl_extended_nontrivial.
89573         * lib/copy-acl.c (qcopy_acl): Likewise.
89575 2008-06-08  Bruno Haible  <bruno@clisp.org>
89577         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89579 2008-06-08  Jim Meyering  <meyering@redhat.com>
89581         * modules/acl (Maintainer): Add Bruno Haible.
89583 2008-06-07  Bruno Haible  <bruno@clisp.org>
89585         Improve support for Tru64 ACLs.
89586         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89587         ACL on OSF/1.
89589 2008-06-07  Bruno Haible  <bruno@clisp.org>
89591         Add support for MacOS X ACLs.
89592         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89593         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89594         * lib/set-mode-acl.c (qset_acl): Likewise.
89595         * lib/copy-acl.c (qcopy_acl): Likewise.
89597 2008-06-07  Bruno Haible  <bruno@clisp.org>
89599         Fix memory leak introduced on 2008-05-22.
89600         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89601         use.
89603 2008-06-07  Bruno Haible  <bruno@clisp.org>
89605         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89606         to construct an empty ACL.
89608 2008-06-07  Bruno Haible  <bruno@clisp.org>
89610         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89611         precisely.
89612         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89614 2008-06-07  Bruno Haible  <bruno@clisp.org>
89616         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89617         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89619 2008-06-07  Bruno Haible  <bruno@clisp.org>
89621         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89622         regardless of POSIX.
89623         * doc/posix-functions/_longjmp.texi: Likewise.
89624         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89625         SystemV platform in this case.
89627 2008-06-06  Eric Blake  <ebb9@byu.net>
89629         Document abort() bugs.
89630         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89632         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89633         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89634         sigsetjmp.
89635         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89636         siglongjmp, but only as a macro.
89637         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89638         is obsolete.
89639         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89641         Tweak documentation to cover cygwin argz bugs.
89642         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89643         argz bug fix; no code change needed since no cygwin releases
89644         occurred between the last fix and the bug being tested.
89645         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89646         module and recently fixed cygwin bugs.
89647         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89648         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89649         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89650         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89651         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89652         Likewise.
89653         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89654         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89655         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89656         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89657         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89658         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89659         Likewise.
89661         Avoid gcc warning on cygwin.
89662         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89663         !ACL_NO_TRIVIAL]: Avoid unused variable.
89665 2008-06-05  Eric Blake  <ebb9@byu.net>
89667         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89668         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89669         git-version-gen fails to come up with a version.
89670         Reported by Simon Josefsson.
89672 2008-06-05  Jim Meyering  <meyering@redhat.com>
89673             Paul Eggert  <eggert@cs.ucla.edu>
89675         utimens.c: work around a probable Linux kernel bug
89676         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89677         appears to be a kernel bug that causes utimensat to return 280
89678         instead of 0, indicating success.
89680 2008-06-04  Bruno Haible  <bruno@clisp.org>
89682         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89683         2008-06-01 commit.
89685 2008-06-04  Bruno Haible  <bruno@clisp.org>
89687         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89688         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89689         (file_has_acl): Use it. Save errno afterwards.
89690         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89692 2008-06-03  Bruno Haible  <bruno@clisp.org>
89694         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89695         draft code. Simplify #ifs.
89696         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89697         Put Solaris code after POSIX-draft code. Fix comments regarding
89698         Solaris 10, HP-UX. Mention Cygwin.
89699         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89701 2008-06-03  Eric Blake  <ebb9@byu.net>
89703         Provide fallback for older kernels.
89704         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89705         Provide runtime fallback if kernel lacks support.
89706         Reported by Mike Frysinger.
89708 2008-06-02  Bruno Haible  <bruno@clisp.org>
89710         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89711         it exists.
89713 2008-06-02  Bruno Haible  <bruno@clisp.org>
89715         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89716         * lib/copy-acl.c (qcopy_acl): Update comment.
89718 2008-06-02  Bruno Haible  <bruno@clisp.org>
89720         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
89721         like ACL APIs.
89723 2008-06-02  Bruno Haible  <bruno@clisp.org>
89725         * tests/test-file-has-acl.sh: Use different code for Cygwin.
89726         * tests/test-set-mode-acl.sh: Likewise.
89727         * tests/test-copy-acl.sh: Likewise.
89728         * tests/test-copy-file.sh: Likewise.
89730 2008-06-02  Bruno Haible  <bruno@clisp.org>
89732         * tests/test-file-has-acl.sh: Remove unused code.
89734 2008-06-01  Bruno Haible  <bruno@clisp.org>
89736         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
89737         (copy_acl): Just a wrapper around qcopy_acl that emits the error
89738         messages.
89739         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
89741 2008-06-01  Bruno Haible  <bruno@clisp.org>
89743         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
89744         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
89745         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
89746         APIs.
89747         * modules/acl-tests (configure.ac): Remove tests now contained in
89748         m4/acl.m4.
89750 2008-06-02  Jim Meyering  <meyering@redhat.com>
89752         announce-gen: use a better key-server host name
89753         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
89754         it may be more consistently reliable.  Suggested by Werner Koch
89755         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
89757 2008-06-01  Bruno Haible  <bruno@clisp.org>
89759         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
89760         Reported by Voroskoi Andras <voroskoi@gmail.com>.
89762 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
89764         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
89766 2008-06-01  Bruno Haible  <bruno@clisp.org>
89768         New ACL tests.
89769         * tests/test-file-has-acl.sh: New file.
89770         * tests/test-file-has-acl.c: New file.
89771         * tests/test-set-mode-acl.sh: New file.
89772         * tests/test-set-mode-acl.c: New file.
89773         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
89774         * tests/test-copy-acl.c: New file.
89775         * modules/acl-tests: New file, based on modules/copy-file-tests.
89776         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
89777         (Depends-on): Add acl-tests.
89778         (configure.ac): Remove checks.
89779         (Makefile.am): Don't create test-sameacls program here any more.
89781 2008-06-01  Bruno Haible  <bruno@clisp.org>
89783         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
89784         * tests/test-sameacls.c: Include progname.h.
89785         (main): Invoke set_program_name. Portability fixes for MacOS X,
89786         Solaris, HP-UX.
89788 2008-06-01  Bruno Haible  <bruno@clisp.org>
89790         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
89791         function.
89792         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
89794 2008-06-01  Bruno Haible  <bruno@clisp.org>
89796         * modules/rpmatch (Depends-on): Add strdup.
89798 2008-06-01  Bruno Haible  <bruno@clisp.org>
89800         * lib/pipe.c: Include unistd-safer.h.
89801         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
89802         * modules/pipe (Depends-on): Add unistd-safer.
89804 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89806         * modules/autobuild (configure.ac): Call AB_INIT.
89808 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89810         * tests/test-getaddrinfo.c: Don't print debug messages by default.
89811         Suggested by Bruno Haible <bruno@clisp.org>.
89813 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89815         * tests/test-base64.c: Cast size_t to unsigned long when invoking
89816         printf.  Use %lu instead of %d.  Reported by Bruno Haible
89817         <bruno@clisp.org>.
89819 2008-05-29  Eric Blake  <ebb9@byu.net>
89821         Prefer new POSIX 200x interfaces over futimesat.
89822         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
89823         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
89824         when available.
89825         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
89827 2008-05-28  Bruno Haible  <bruno@clisp.org>
89829         * modules/stpcpy (License): Change to LGPLv2+.
89830         Requested by David Lutterkort <dlutter@redhat.com>.
89832 2008-05-27  Bruno Haible  <bruno@clisp.org>
89834         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
89835         current mingw.
89836         Reported by Jose E. Marchesi <jemarch@gnu.org>.
89838 2008-05-27  Bruno Haible  <bruno@clisp.org>
89840         * modules/iconv_open (Link): New section, from module 'iconv'.
89841         * modules/striconv (Link): Likewise.
89842         * modules/striconveh (Link): Likewise.
89843         * modules/xstriconv (Link): Likewise.
89844         * modules/unicodeio (Link): Likewise.
89845         * modules/propername (Link): Likewise.
89846         Reported by Jim Meyering.
89848 2008-05-26  Jim Meyering  <meyering@redhat.com>
89850         sha256: do not artificially restrict buffer length to be < 2^32
89851         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
89852         uint32_t to size_t.
89853         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
89854         to match.
89856         avoid unaligned access errors, e.g., on sparc
89857         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
89858         direct access through a possibly-unaligned uint64* pointer.
89859         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
89860         direct access through a possibly-unaligned uint32* pointer.
89861         Prompted by this patch from Tom "spot" Callaway:
89862         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
89864         sha512.c: fix typo in comment
89865         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
89867 2008-05-25  Bruno Haible  <bruno@clisp.org>
89869         * lib/set-mode-acl.c: Renamed from lib/acl.c.
89870         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
89871         (Makefile.am): Update lib_SOURCES.
89873 2008-05-25  Bruno Haible  <bruno@clisp.org>
89875         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
89877 2008-05-25  Jim Meyering  <meyering@redhat.com>
89879         useless-if-before-free: freed expr may have white-space differences
89880         * build-aux/useless-if-before-free: Recognize cases in which the
89881         freed expression differs from the tested one in embedded white
89882         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
89883         $1 was used, so we can't make any regexp shy.  Improved tests now
89884         detect this.
89886         useless-if-before-free: accept white space in the expression.
89887         * build-aux/useless-if-before-free: For now, any white space
89888         in the expression must be identical in the free argument.
89890         useless-if-before-free: efficiency tweak
89891         * build-aux/useless-if-before-free: Make the expression-matching
89892         regexp "shy".
89893         Make the *outer* regexp shy, not the expr-matching one.
89895         update code-in-comment to accept cast of free arg
89896         * build-aux/useless-if-before-free: Update regexp.
89898 2008-05-25  Bruno Haible  <bruno@clisp.org>
89900         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
89901         * modules/copy-file-tests (Files, Makefile.am): Update.
89902         * tests/test-copy-file.c (func_test_copy): Update.
89904 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
89906         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
89908 2008-05-23  Bruno Haible  <bruno@clisp.org>
89910         Improve support for ACLs on OSF/1.
89911         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
89912         Remove fallback for unknown flavors of ACLs.
89914 2008-05-22  Bruno Haible  <bruno@clisp.org>
89916         Add support for ACLs on OSF/1.
89917         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
89918         replacements.
89919         (acl_free_text): New macro fallback.
89920         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
89921         acl_free.
89922         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
89923         acl_free_text function. Require AC_C_INLINE.
89925 2008-05-22  Bruno Haible  <bruno@clisp.org>
89927         Make copy_acl work on MacOS X 10.5.
89928         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
89929         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
89930         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
89931         If MODE_INSIDE_ACL, don't assume that every system has the same text
89932         representation for ACLs as FreeBSD.
89933         * lib/copy-acl.c (copy_acl): Add support for platforms with
89934         !MODE_INSIDE_ACL.
89935         * lib/file-has-acl.c (file_has_acl): Likewise.
89936         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
89937         FreeBSD, MacOS X, or IRIX, respectively.
89939 2008-05-22  Bruno Haible  <bruno@clisp.org>
89941         * lib/acl.h: Don't include <sys/acl.h>.
89942         (GETACLCNT): Move fallback to lib/acl-internal.h.
89943         * lib/acl-internal.h: Include <sys/acl.h> here.
89944         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
89946 2008-05-22  Bruno Haible  <bruno@clisp.org>
89948         Split off copy_acl function to separate file.
89949         * lib/copy-acl.c: New file, extracted from lib/acl.c.
89950         * lib/acl.c (copy_acl): Moved function to separate file.
89951         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
89952         * modules/acl (Files): Add lib/copy-acl.c.
89953         (Makefiles.am): Augment lib_SOURCES.
89955 2008-05-22  Bruno Haible  <bruno@clisp.org>
89957         * modules/copy-file-tests: New file.
89958         * tests/test-copy-file.sh: New file.
89959         * tests/test-copy-file.c: New file.
89960         * tests/test-copy-file-sameacls.c: New file.
89962 2008-05-22  Eric Blake  <ebb9@byu.net>
89964         Avoid gcc warning.
89965         * tests/test-memcmp.c (main): Pass NULL indirectly.
89967 2008-05-21  Bruno Haible  <bruno@clisp.org>
89969         Add reference doc about ACLs.
89970         * doc/acl-resources.txt: New file.
89971         * doc/acl-cygwin.txt: New file.
89973 2008-05-21  Bruno Haible  <bruno@clisp.org>
89975         Avoid one more warning from gcc.
89976         * lib/vasnprintf.c (IF_LINT): Update comments.
89977         (VASNPRINTF): Use it also for the 'prefix' array initializer.
89979 2008-05-21  Jim Meyering  <meyering@redhat.com>
89981         avoid a warning from gcc
89982         * lib/vasnprintf.c (IF_LINT): Define.
89983         (scale10_round_decimal_long_double):
89984         Use it to avoid a "may be used uninitialized" warning.
89985         (scale10_round_decimal_double): Likewise.
89987 2008-05-21  Simon Josefsson  <simon@josefsson.org>
89989         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
89990         declared.
89992 2008-05-20  Bruno Haible  <bruno@clisp.org>
89994         * tests/test-memcmp.c (main): Test also the sign of the result. Test
89995         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
89997 2008-05-20  Simon Josefsson  <simon@josefsson.org>
89999         * modules/memcmp-tests: New file.
90000         * tests/test-memcmp.c: New file.
90002 2008-05-19  Bruno Haible  <bruno@clisp.org>
90004         * modules/propername (Notice, configure.ac): Put quoted "..." into
90005         --keyword option.
90006         * lib/propername.h: Update comments accordingly.
90007         Reported by Eric Blake.
90009 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90011         * modules/getpass-gnu (Depends-on): Add fseeko.
90013 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90015         * modules/base64-tests: New file.
90017 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90019         * lib/base64.c (base64_decode_ctx): If a decode context structure
90020         was passed in use it to ignore newlines.  If a context structure
90021         was _not_ passed in, continue to treat newlines as garbage (this
90022         is the historical behavior).  Formerly base64_decode.
90023         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90024         takes a decode context structure.
90025         * lib/base64.h (base64_decode): Macro for four-argument calls.
90026         (base64_decode_alloc): Likewise.
90027         * lib/base64.c (base64_decode_ctx): If a decode context structure
90028         was passed in use it to ignore newlines.  If a context structure
90029         was _not_ passed in, continue to treat newlines as garbage (this
90030         is the historical behavior).  Formerly base64_decode.
90031         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90032         takes a decode context structure.
90033         * lib/base64.h (base64_decode): Macro for four-argument calls.
90034         (base64_decode_alloc): Likewise.
90036 2008-05-19  Jim Meyering  <meyering@redhat.com>
90038         avoid a warning from gcc
90039         * lib/trim.c (IF_LINT): Define.
90040         (trim2): Use it to avoid a "may be used uninitialized" warning.
90042         Fix doc typo.
90043         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90045 2008-05-19  Bruno Haible  <bruno@clisp.org>
90047         * doc/glibc-functions/getpass.texi: Document limits of other
90048         implementations.
90050 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90051             Bruno Haible <bruno@clisp.org>
90053         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90055 2008-05-18  Bruno Haible  <bruno@clisp.org>
90057         * modules/propername: New file, from GNU gettext.
90058         * lib/propername.h: New file, from GNU gettext.
90059         * lib/propername.c: New file, from GNU gettext.
90060         * MODULES.html.sh (Internationalization functions): Add propername.
90062 2008-05-16  Jim Meyering  <meyering@redhat.com>
90063             Bruno Haible  <bruno@clisp.org>
90065         Avoid some warnings from "gcc -Wshadow".
90066         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90068 2008-05-15  Eric Blake  <ebb9@byu.net>
90070         Extend previous patch to cygwin 1.7.0.
90071         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90072         fast implementation in cygwin >= 1.7.0.
90073         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90076 2008-05-15  Bruno Haible  <bruno@clisp.org>
90078         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90079         implementation in glibc >= 2.9.
90080         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90083 2008-05-15  Bruno Haible  <bruno@clisp.org>
90085         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90086         (Unicode string functions): Add unilbrk/*.
90087         Reported by Karl Berry.
90089 2008-05-15  Eric Blake  <ebb9@byu.net>
90091         Fix violation of <stdbool.h> replacement in regex.
90092         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90093         * lib/regexec.c (re_search_internal): Likewise.
90094         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90096 2008-05-15  Jim Meyering  <meyering@redhat.com>
90098         avoid distracting test output when git or cvs is not found
90099         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90100         * tests/test-vc-list-files-git.sh: Likewise.
90102 2008-05-15  Eric Blake  <ebb9@byu.net>
90104         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90105         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90106         glibc version.
90107         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90108         * doc/posix-functions/strstr.texi (strstr): Likewise.
90109         * lib/str-two-way.h (MAX): Sychronize with glibc.
90111 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90113         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90114         opr.ctx_type.
90115         (calc_first): Initialize constraint field.
90116         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90117         Fix grammar.
90118         (duplicate_node): Merge constraint field for all node types.
90119         (calc_eclosure_iter): Look at constraint field for all node types.
90120         * lib/regex_internal.c (create_cd_newstate): Don't look at
90121         opr.ctx_type.
90123 2008-05-14  Bruno Haible  <bruno@clisp.org>
90125         Help GCC to do better code generation.
90126         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90127         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90128         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90129         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90130         Declare with attribute 'malloc' if supported.
90132 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90134         use "echo STR|wc -c" rather than unportable "expr length STR"
90135         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90136         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90138 2008-05-14  Jim Meyering  <meyering@redhat.com>
90140         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90141         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90142         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90143         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90144         via Collin Lasse.
90146 2008-05-14  Eric Blake  <ebb9@byu.net>
90148         Avoid quadratic growth in gl_LIBSOURCES.
90149         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90150         Suggested by Bruno Haible.
90152         Test xmemdup0.
90153         * modules/xmemdup0-tests: New file.
90154         * tests/test-xmemdup0.c: Likewise.
90156 2008-05-13  Eric Blake  <ebb9@byu.net>
90158         Split xmemdup0 into its own module.
90159         * modules/xmemdup0: New file.
90160         * lib/xmemdup0.h: Likewise.
90161         * lib/xmemdup0.c: Likewise.
90162         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90163         * lib/xalloc.h (xmemdup0): Remove.
90164         * lib/xmalloc.c (xmemdup0): Likewise.
90166 2008-05-13  Eric Blake  <ebb9@byu.net>
90167             Bruno Haible  <bruno@clisp.org>
90169         Reduce number of forks required during autoconf.
90170         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90171         and gl_LIBSOURCES_DIR.
90172         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90173         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90174         m4_syscmd per file.
90175         <m4_foreach_w>: Move...
90176         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90178 2008-05-13  Eric Blake  <ebb9@byu.net>
90180         * gnulib-tool: Fix various comment typos.
90182 2008-05-12  Bruno Haible  <bruno@clisp.org>
90184         Tailor the linebreaking algorithm.
90185         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90187 2008-05-12  Bruno Haible  <bruno@clisp.org>
90189         Update to Unicode 5.0.0.
90190         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90191         LBP_JV, LBP_JT. Redistribute values.
90192         (unilbrk_table): Change size.
90193         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90194         Unicode TR#14 rev. 22.
90195         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90196         LBP_JV, LBP_JT. Redistribute values.
90197         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90198         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90199         Update.
90200         * lib/unilbrk/lbrkprop1.h: Regenerated.
90201         * lib/unilbrk/lbrkprop2.h: Regenerated.
90202         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90203         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90204         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90205         Likewise.
90206         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90207         Likewise.
90208         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90209         result.
90210         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90211         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90212         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90213         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90214         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90215         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90217 2008-05-11  Bruno Haible  <bruno@clisp.org>
90219         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90221 2008-05-11  Bruno Haible  <bruno@clisp.org>
90223         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90224         * modules/unilbrk/gen-lbrk: New file.
90226 2008-05-11  Bruno Haible  <bruno@clisp.org>
90228         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90229         * m4/sha512.m4 (gl_SHA512): Likewise.
90231 2008-05-11  Jim Meyering  <meyering@redhat.com>
90233         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90234         * modules/crypto/sha256: New file.
90235         * modules/crypto/sha512: Likewise.
90236         * lib/sha256.c: Likewise.
90237         * lib/sha256.h: Likewise.
90238         * lib/sha512.c: Likewise.
90239         * lib/sha512.h: Likewise.
90240         * lib/u64.h: Likewise.
90241         * m4/sha256.m4: Likewise.
90242         * m4/sha512.m4: Likewise.
90243         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90245 2008-05-10  Bruno Haible  <bruno@clisp.org>
90247         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90248         (Input/Output <stdio.h>): Add xprintf.
90249         (Signal handling <signal.h>): Add strsignal.
90250         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90251         (Core language properties): Add func.
90252         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90253         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90254         strings.
90255         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90256         (Input/output): New section.
90257         (File system functions): Add openat-die, stat-macros.
90258         (Networking functions): Add sockets.
90259         (Unicode string functions): Add unictype/*.
90260         (Support for building libraries and executables): Add gperf.
90261         (Support for building documentation): Add agpl-3.0.
90262         (Misc): Add nocrash.
90264 2008-05-10  Bruno Haible  <bruno@clisp.org>
90266         * modules/unictype/gen-ctype: New file.
90268 2008-05-10  Jim Meyering  <meyering@redhat.com>
90270         Make chdir-safer.c more efficient on a system with no symlinks.
90271         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90272         also if ELOOP is zero.  Suggested by Bruno Haible.
90274         Make chdir-safer.c slightly safer.
90275         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90276         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90278         Avoid compile failure on systems without ELOOP (like mingw).
90279         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90280         Reported by Bruno Haible.
90282 2008-05-10  Bruno Haible  <bruno@clisp.org>
90284         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90285         (is_utf8_encoding): Use a case-insensitive comparison.
90286         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90287         streq.
90289 2008-05-10  Bruno Haible  <bruno@clisp.org>
90291         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90292         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90293         * lib/unilbrk/ulc-common.h (iconv_string_length,
90294         iconv_string_keeping_offsets): Remove declarations.
90295         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90296         Don't include <iconv.h>, streq.h, xsize.h.
90297         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90298         conversion.
90299         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90300         <iconv.h>, streq.h, xsize.h.
90301         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90302         conversion.
90303         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90304         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90305         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90306         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90308 2008-05-10  Bruno Haible  <bruno@clisp.org>
90310         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90311         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90313         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90314         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90316         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90317         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90319         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90320         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90322         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90323         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90325         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90326         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90328         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90329         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90331         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90332         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90334 2008-05-10  Bruno Haible  <bruno@clisp.org>
90336         Split up 'linebreak' module.
90337         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90338         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90339         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90340         modifications.
90341         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90342         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90343         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90344         lib/linebreak.c.
90345         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90346         lib/linebreak.c.
90347         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90348         lib/linebreak.c.
90349         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90350         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90351         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90352         lib/linebreak.c.
90353         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90354         lib/linebreak.c.
90355         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90356         lib/linebreak.c.
90357         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90358         lib/linebreak.c.
90359         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90360         lib/linebreak.c.
90361         * modules/unilbrk/base: New file.
90362         * modules/unilbrk/tables: New file.
90363         * modules/unilbrk/u8-possible-linebreaks: New file.
90364         * modules/unilbrk/u16-possible-linebreaks: New file.
90365         * modules/unilbrk/u32-possible-linebreaks: New file.
90366         * modules/unilbrk/ulc-common: New file.
90367         * modules/unilbrk/ulc-possible-linebreaks: New file.
90368         * modules/unilbrk/u8-width-linebreaks: New file.
90369         * modules/unilbrk/u16-width-linebreaks: New file.
90370         * modules/unilbrk/u32-width-linebreaks: New file.
90371         * modules/unilbrk/ulc-width-linebreaks: New file.
90372         * lib/linebreak.h: Remove file.
90373         * lib/linebreak.c: Remove file.
90374         * m4/linebreak.m4: Remove file.
90375         * modules/linebreak: Remove file.
90376         * NEWS: Mention the changes.
90378 2008-05-09  Eric Blake  <ebb9@byu.net>
90380         Add xmemdup0.
90381         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90382         implementation.
90383         * lib/xmalloc.c (xmemdup0): New C implementation.
90385 2008-05-08  Bruno Haible  <bruno@clisp.org>
90387         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90389 2008-05-07  Eric Blake  <ebb9@byu.net>
90391         Support cross-compilation of <wctype.h>.
90392         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90393         AC_CACHE_CHECK.
90395 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90397         * build-aux/vc-list-files: Add support for bzr.
90399 2008-05-03  Jim Meyering  <meyering@redhat.com>
90401         avoid failed assertion with tight malloc
90402         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90404 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90406         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90407         are needed from arpa/inet.h.
90408         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90409         Reported by Bruno Haible.
90411 2008-05-02  Jim Meyering  <meyering@redhat.com>
90413         avoid compilation error on FreeBSD 6
90414         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90416 2008-05-01  Jim Meyering  <meyering@redhat.com>
90418         useless-if-before-free: correct --help's exit status description
90419         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90420         for one or more matches, etc.  Reported by Bruno Haible.
90422         vc-list-files: make the stand-alone gnulib test work
90423         * modules/vc-list-files-tests (configure.ac):
90424         Define and AC_SUBST abs_aux_dir.
90425         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90426         $(abs_top_srcdir) to each script and having each of them
90427         duplicate the work of setting PATH, set PATH here, using
90428         the new variable, abs_aux_dir instead.
90429         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90430         * tests/test-vc-list-files-git.sh: Likewise.
90431         Reported by Bruno Haible.
90433 2008-05-01  Bruno Haible  <bruno@clisp.org>
90435         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90436         reallocation. Rename 'done' to 'found_delimiter'.
90438 2008-05-01  Jim Meyering  <meyering@redhat.com>
90440         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90441         * build-aux/vc-list-files: Use `...`, not $(...).
90443 2008-04-30  Jim Meyering  <meyering@redhat.com>
90445         add tests for vc-list-files
90446         * modules/vc-list-files-tests: New module.
90447         * tests/test-vc-list-files-cvs.sh: New file.
90448         * tests/test-vc-list-files-git.sh: New file.
90450         avoid a warning from gcc
90451         * lib/getndelim2.c (IF_LINT): Define.
90452         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90454         vc-list-files: work properly with build-aux/cvsu, too
90455         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90456         to all cvs-based clauses.
90458         vc-list-files: work properly in the CVS+awk case, too
90459         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90461         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90462         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90463         take more than one file argument, so .  Add quotes, just in case $dir
90464         ever contains a shell meta-character.  Prompted by Soren Hansen in
90465         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90467 2008-04-29  Eric Blake  <ebb9@byu.net>
90469         Optimize getndelim2 to use block operations when possible.
90470         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90471         freadseek, and memchr2.
90472         * lib/getndelim2.c (getndelim2): Use them for block reads.
90474 2008-04-29  Bruno Haible  <bruno@clisp.org>
90476         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90477         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90478         * modules/inet_ntop (Depends-on): Add extensions.
90479         * modules/inet_pton (Depends-on): Likewise.
90480         Reported by Simon Josefsson.
90482 2008-04-29  Jim Meyering  <meyering@redhat.com>
90484         When the is more than one match in a block, match all of them.
90485         * build-aux/useless-if-before-free: Iterate through each block
90486         until there are no more matches.
90488         Fix broken useless-if-before-free script.
90489         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90490         the expression to match cast of argument to free-like function.
90492 2008-04-29  Eric Blake  <ebb9@byu.net>
90494         Use new header.
90495         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90497 2008-04-29  Jim Meyering  <meyering@redhat.com>
90499         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90500         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90501         by gnulib to exist and to declare e.g., inet_ntop.
90502         Don't include "inet_ntop.h", now removed.
90504         * m4/arpa_inet_h.m4: Remove trailing blanks.
90506 2008-04-29  Eric Blake  <ebb9@byu.net>
90508         Silence valgrind on safe reads beyond potential array bounds.
90509         * lib/rawmemchr.valgrind: New file.
90510         * lib/strchrnul.valgrind: Likewise.
90511         * modules/rawmemchr (Files): Distribute new file.
90512         * modules/strchrnul (Files): Likewise.
90513         Suggested by Bruno Haible.
90515 2008-04-29  Bruno Haible  <bruno@clisp.org>
90517         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90518         (inet_ntop, inet_pton): Change portability warning's wording.
90519         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90520         Invoke gl_CHECK_NEXT_HEADERS.
90521         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90522         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90523         set ARPA_INET_H.
90524         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90525         * modules/arpa_inet (Description): No longer only for systems that
90526         lack it.
90527         (Depends-on): Add include_next.
90528         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90529         HAVE_ARPA_INET_H.
90531 2008-04-29  Jim Meyering  <meyering@redhat.com>
90533         * modules/mkdir (License): Re-license as LGPLv2+.
90535 2008-04-29  Bruno Haible  <bruno@clisp.org>
90537         * modules/rawmemchr (Maintainer): Set to Eric.
90538         * modules/strchrnul (Maintainer): Likewise.
90540 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90542         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90543         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90545         * modules/arpa_inet (arpa/inet.h): Use them.
90547 2008-04-28  Eric Blake  <ebb9@byu.net>
90549         Test getndelim2.
90550         * modules/getndelim2-tests: New file.
90551         * tests/test-getndelim2.c: Likewise.
90552         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90553         stream.
90554         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90556         * MODULES.html.sh: Document new module.
90558 2008-04-20  Bruno Haible  <bruno@clisp.org>
90560         * lib/c-stack.c (die): Use raise.
90561         * modules/c-stack (Depends-on): Add raise.
90563 2008-04-28  Bruno Haible  <bruno@clisp.org>
90565         Expect rpmatch to be declared.
90566         * lib/yesno.c (rpmatch): Remove declaration.
90568         Declare rpmatch.
90569         * lib/stdlib.in.h (rpmatch): New declaration.
90570         * lib/rpmatch.c: Include <stdlib.h> first.
90571         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90572         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90574         HAVE_RPMATCH.
90575         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90577         (Include): Set to <stdlib.h>.
90578         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90579         HAVE_RPMATCH.
90580         * NEWS: Document the change.
90582 2008-04-28  Bruno Haible  <bruno@clisp.org>
90584         Change rpmatch to use nl_langinfo when appropriate.
90585         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90586         (N_): New macro.
90587         (localized_pattern): New function/macro.
90588         (try): Remove match, nomatch arguments. Copy the pattern into safe
90589         memory before caching it.
90590         (rpmatch): Use localized_pattern. Add translator comments.
90591         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90592         Suggested by Eric Blake.
90593         * modules/rpmatch (Depends-on): Add stdbool.
90595 2008-04-28  Eric Blake  <ebb9@byu.net>
90597         Add rawmemchr module, matching glibc.
90598         * modules/string (Makefile.am): New indicator.
90599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90600         * lib/string.in.h (rawmemchr): Declare when appropriate.
90601         * modules/rawmemchr: New file.
90602         * m4/rawmemchr.m4: Likewise.
90603         * lib/rawmemchr.c: Likewise.
90604         * modules/rawmemchr-tests: Likewise.
90605         * tests/test-rawmemchr.c: Likewise.
90606         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90607         module.
90608         * modules/strchrnul (Depends-on): Add rawmemchr.
90609         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90611         Whitespace cleanup.
90612         * tests/test-strchrnul.c: Reindent.
90613         * lib/strchrnul.c: Likewise.
90615         Optimize and test strchrnul.
90616         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90617         * modules/strchrnul-tests: New file.
90618         * tests/test-strchrnul.c: Likewise.
90620         Remove intprops dependency.
90621         * modules/memchr (Depends-on): Remove intprops.
90622         * modules/memrchr (Depends-on): Likewise.
90623         * modules/memchr2 (Depends-on): Likewise.
90624         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90625         * lib/memrchr.c (__memrchr): Likewise.
90626         * lib/memrchr2.c (memchr2): Likewise.
90627         Reported by Simon Josefsson.
90629 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90631         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90632         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90634 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90636         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90638         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90640         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90642         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90643         declarations.
90644         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90646         * m4/inet_pton.m4: Don't check for header files.
90648         * m4/inet_ntop.m4: Don't check for header files.
90650 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90652         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90653         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90654         trigger for cygwin).
90655         Reported by Bruno Haible  <bruno@clisp.org>.
90657 2008-04-28  Bruno Haible  <bruno@clisp.org>
90659         * doc/posix-functions/strdup.texi: Mention mingw problem.
90661 2008-04-27  Bruno Haible  <bruno@clisp.org>
90663         * modules/stat-time-tests (Depends-on): Add sleep.
90664         * tests/test-stat-time.c (force_unlink): New function.
90665         (cleanup): Use it.
90666         (test_mtime): Remove the ctime related tests.
90667         (test_ctime): New function, containing the ctime related tests.
90668         (main): Call test_ctime, except on native Windows platforms.
90670 2008-04-27  Bruno Haible  <bruno@clisp.org>
90672         * lib/rpmatch.c (rpmatch): Add some comments.
90673         Reported by James Youngman <jay@gnu.org>.
90675 2008-04-27  Bruno Haible  <bruno@clisp.org>
90677         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90678         quiet NaNs.
90680 2008-04-27  Bruno Haible  <bruno@clisp.org>
90682         Make test-yesno.sh work on mingw.
90683         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90684         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90685         (main): Set stdin to binary mode.
90686         * modules/yesno-tests (Depends-on): Add binary-io.
90688 2008-04-27  Bruno Haible  <bruno@clisp.org>
90690         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90691         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90692         argument that lie outside the IEEE 854 domain.
90693         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90694         (gl_ISFINITE): Use it.
90695         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90697 2008-04-27  Bruno Haible  <bruno@clisp.org>
90699         Allow local renaming in config.h.
90700         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90702 2008-04-27  Bruno Haible  <bruno@clisp.org>
90704         * lib/memchr.c (__memchr): Change type of 'i'.
90705         * lib/memchr2.c (memchr2): Likewise.
90707 2008-04-26  Eric Blake  <ebb9@byu.net>
90708         and Bruno Haible  <bruno@clisp.org>
90710         Optimize and test memrchr.
90711         * modules/memrchr (Depends-on): Add intprops.
90712         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90713         * modules/memrchr-tests: New file.
90714         * tests/test-memrchr.c: New file.
90716 2008-04-26  Bruno Haible  <bruno@clisp.org>
90718         Add tentative support for DragonFly BSD.
90719         * lib/stdio-impl.h: Add macros for DragonFly BSD.
90720         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
90721         fp.
90722         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90723         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
90724         * lib/fpurge.c (fpurge): Likewise.
90725         * lib/freadable.c (freaadable): Likewise.
90726         * lib/freadahead.c (freadahead): Likewise.
90727         * lib/freading.c (freading): Likewise.
90728         * lib/freadptr.c (freadptr): Likewise.
90729         * lib/freadseek.c (freadptrinc): Likewise.
90730         * lib/fseeko.c (fseeko): Likewise.
90731         * lib/fseterr.c (fseterr): Likewise.
90732         * lib/fwritable.c (fwritable): Likewise.
90733         * lib/fwriting.c (fwriting): Likewise.
90735 2008-04-26  Bruno Haible  <bruno@clisp.org>
90737         * lib/stdio-impl.h: New file.
90738         * lib/fbufmode.c: Include stdio-impl.h.
90739         (fbufmode): Use fp_, remove redundant #defines.
90740         * lib/fflush.c: Include stdio-impl.h.
90741         (clear_ungetc_buffer): Remove redundant #defines.
90742         * lib/fpurge.c: Include stdio-impl.h.
90743         (fpurge): Remove redundant #defines.
90744         * lib/freadable.c: Include stdio-impl.h.
90745         (freadable): Remove redundant #defines.
90746         * lib/freadahead.c: Include stdio-impl.h.
90747         (freadahead): Remove redundant #defines.
90748         * lib/freading.c: Include stdio-impl.h.
90749         (freading): Remove redundant #defines.
90750         * lib/freadptr.c: Include stdio-impl.h.
90751         (freadptr): Remove redundant #defines.
90752         * lib/freadseek.c: Include stdio-impl.h.
90753         (freadptrinc): Remove redundant #defines.
90754         * lib/fseeko.c: Include stdio-impl.h.
90755         (rpl_fseeko): Remove redundant #defines.
90756         * lib/fseterr.c: Include stdio-impl.h.
90757         (fseterr): Remove redundant #defines.
90758         * lib/fwritable.c: Include stdio-impl.h.
90759         (fwritable: Remove redundant #defines.
90760         * lib/fwriting.c: Include stdio-impl.h.
90761         (fwriting): Remove redundant #defines.
90762         * modules/fbufmode (Files): Add lib/stdio-impl.h.
90763         * modules/fflush (Files): Likewise.
90764         * modules/fpurge (Files): Likewise.
90765         * modules/freadable (Files): Likewise.
90766         * modules/freadahead (Files): Likewise.
90767         * modules/freading (Files): Likewise.
90768         * modules/freadptr (Files): Likewise.
90769         * modules/freadseek (Files): Likewise.
90770         * modules/fseeko (Files): Likewise.
90771         * modules/fseterr (Files): Likewise.
90772         * modules/fwritable (Files): Likewise.
90773         * modules/fwriting (Files): Likewise.
90775 2008-04-26  Bruno Haible  <bruno@clisp.org>
90777         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90778         restore_seek_optimization, update_fpos_cache): New functions, extracted
90779         from rpl_fflush.
90780         (rpl_fflush): Use them.
90781         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
90782         (gl_REPLACE_FFLUSH): Use it.
90784 2008-04-26  Bruno Haible  <bruno@clisp.org>
90786         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
90787         on Solaris.
90788         * tests/test-xstrtoimax.sh: Likewise.
90789         * tests/test-xstrtoumax.sh: Likewise.
90790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90792 2008-04-26  Bruno Haible  <bruno@clisp.org>
90794         * modules/memchr-tests: New file.
90795         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
90797 2008-04-26  Eric Blake  <ebb9@byu.net>
90798             Bruno Haible  <bruno@clisp.org>
90800         * lib/memchr.c: Include intprops.h.
90801         (__memchr): Optimize parallel detection of matching bytes. Rename local
90802         variables. Add explanatory comments.
90804 2008-04-26  Bruno Haible  <bruno@clisp.org>
90806         Fix module 'memchr', broken since 2000-10-28.
90807         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
90809 2008-04-26  Bruno Haible  <bruno@clisp.org>
90811         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
90812         comments.
90814 2008-04-25  Eric Blake  <ebb9@byu.net>
90816         Use native fstatat on cygwin 1.7.0.
90817         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
90818         first.
90820 2008-04-23  Eric Blake  <ebb9@byu.net>
90822         Improve memchr2 performance.
90823         * lib/memchr2.c (memchr2): Further optimize parallel detection of
90824         NUL bytes.
90825         * modules/memchr2 (Depends-on): Use intprops.h.
90827 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90829         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
90830         an inline function instead of a CPP macro.  Patch by Ben Pfaff
90831         <blp@cs.stanford.edu>.
90833 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90835         * lib/arpa_inet.in.h: New file.
90837         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
90838         (Makefile.am): Sed in substitute header file.
90840         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
90841         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
90843         * modules/inet_ntop (configure.ac): Use
90844         gl_ARPA_INET_MODULE_INDICATOR.
90846         * modules/inet_pton (configure.ac): Use
90847         gl_ARPA_INET_MODULE_INDICATOR.
90849 2008-04-22  Jim Meyering  <meyering@redhat.com>
90851         * modules/verify (License): Re-license as LGPLv2+.
90853 2008-04-22  Simon Josefsson  <simon@josefsson.org>
90855         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
90856         parameter to void* as per POSIX standard (MinGW uses char*).
90858 2008-04-21  Bruno Haible  <bruno@clisp.org>
90860         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
90861         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
90862         Define to replacements if REPLACE_ISWCNTRL is 1.
90863         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
90864         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
90865         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
90866         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
90867         what it fixes.
90868         * doc/posix-functions/iswalpha.texi: Likewise.
90869         * doc/posix-functions/iswblank.texi: Likewise.
90870         * doc/posix-functions/iswcntrl.texi: Likewise.
90871         * doc/posix-functions/iswdigit.texi: Likewise.
90872         * doc/posix-functions/iswgraph.texi: Likewise.
90873         * doc/posix-functions/iswlower.texi: Likewise.
90874         * doc/posix-functions/iswprint.texi: Likewise.
90875         * doc/posix-functions/iswpunct.texi: Likewise.
90876         * doc/posix-functions/iswspace.texi: Likewise.
90877         * doc/posix-functions/iswupper.texi: Likewise.
90878         * doc/posix-functions/iswxdigit.texi: Likewise.
90879         Reported by Alain Guibert.
90881 2008-04-21  Bruno Haible  <bruno@clisp.org>
90883         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
90884         Patch by Alain Guibert.
90886 2008-04-21  Bruno Haible  <bruno@clisp.org>
90888         Fix test failures on mingw.
90889         * tests/test-xstrtol.c (print_no_progname): New function.
90890         (main): Install it in error_print_progname hook.
90891         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
90892         * tests/test-xstrtoimax.sh: Likewise.
90893         * tests/test-xstrtoumax.sh: Likewise.
90895 2008-04-21  Bruno Haible  <bruno@clisp.org>
90897         Fix test failure on mingw.
90898         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
90900 2008-04-21  Bruno Haible  <bruno@clisp.org>
90902         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
90903         Actually assign a value.
90905 2008-04-20  Bruno Haible  <bruno@clisp.org>
90907         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
90908         take 2.
90909         * lib/canonicalize.c (canonicalize_file_name): Elide if the
90910         'canonicalize-lgpl' module is also used.
90911         * lib/canonicalize-lgpl.c: Undo last change.
90912         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
90914 2008-04-20  Bruno Haible  <bruno@clisp.org>
90916         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
90917         config.h. Provide _mkdir based fallback for mingw.
90918         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
90919         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
90920         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
90921         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
90922         rather than defining mkdir in config.h.
90923         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
90924         (gl_SYS_STAT_H_DEFAULTS): New macro.
90925         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
90926         HAVE_IO_H any more.
90927         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
90928         HAVE_DECL_MKDIR and HAVE_IO_H.
90930 2008-04-20  Bruno Haible  <bruno@clisp.org>
90932         * lib/isapipe.c: Port to native Windows platforms.
90934 2008-04-20  Bruno Haible  <bruno@clisp.org>
90936         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
90938 2008-04-21  Eric Blake  <ebb9@byu.net>
90940         Work around preprocessors that don't handle UINTMAX_MAX.
90941         * lib/memchr2.c (memchr2): Avoid embedded #if.
90942         Reported by Alain Guibert, fix suggested by Bruno Haible.
90944 2008-04-21  Simon Josefsson  <simon@josefsson.org>
90946         * doc/posix-functions/strftime.texi (strftime): Explain better
90947         Windows incompatibility.  Suggested by Micah Cowan
90948         <micah@cowan.name>.
90950 2008-04-20  Bruno Haible  <bruno@clisp.org>
90952         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
90953         unistr/u8-mblen.
90955 2008-04-20  Bruno Haible  <bruno@clisp.org>
90957         Fix test failure on platforms with non-GNU iconv.
90958         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
90959         (U_TO_U8): Use it, rather than u16_to_u8.
90960         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
90961         units at the end of the input string.
90962         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
90964 2008-04-20  Bruno Haible  <bruno@clisp.org>
90966         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
90967         when the resulting length is 0.
90968         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
90970 2008-04-20  Bruno Haible  <bruno@clisp.org>
90972         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
90973         works.
90974         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
90976 2008-04-20  Bruno Haible  <bruno@clisp.org>
90978         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
90979         * modules/tsearch-tests (configure.ac): Test for initstate function.
90981 2008-04-20  Bruno Haible  <bruno@clisp.org>
90983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
90984         for nlink_t if missing.
90985         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
90987 2008-04-19  Bruno Haible  <bruno@clisp.org>
90989         Work around snprintf bug on Linux libc5.
90990         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
90991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
90992         gl_SNPRINTF_SIZE1.
90993         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90994         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
90995         that test failed.
90996         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
90997         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
90998         * modules/snprintf (Files): Add m4/printf.m4.
90999         * modules/vsnprintf (Files): Likewise.
91000         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91001         * doc/posix-functions/vsnprintf.texi: Likewise.
91003 2008-04-19  Bruno Haible  <bruno@clisp.org>
91005         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91006         from 0.0058 to less than 10^-7.
91008 2008-04-19  Bruno Haible  <bruno@clisp.org>
91010         Fix rounding when a precision is given.
91011         * lib/vasnprintf.c (is_borderline): New function.
91012         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91013         9...9x.
91014         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91015         %e, %g.
91016         * tests/test-vasprintf-posix.c (test_function): Likewise.
91017         * tests/test-snprintf-posix.h (test_function): Likewise.
91018         * tests/test-sprintf-posix.h (test_function): Likewise.
91019         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91020         * tests/test-printf-posix.h (test_function): Likewise.
91021         * tests/test-printf-posix.output: Update.
91022         Reported by John Darrington <john@darrington.wattle.id.au> via
91023         Ben Pfaff <blp@cs.stanford.edu>.
91025 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91027         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91028         Suggested by Bruno Haible <bruno@clisp.org>.
91030 2008-04-17  Bruno Haible  <bruno@clisp.org>
91032         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91033         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91034         implementation.
91035         Patch by Bruce Merry <bmerry@gmail.com>.
91037 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91039         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91040         doesn't work under Windows.
91042 2008-04-16  Bruno Haible  <bruno@clisp.org>
91044         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91045         New macros.
91046         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91047         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91048         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91049         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91050         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91051         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91052         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91053         macros.
91054         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91055         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91056         Northern Sotho, Uighur.
91058 2008-04-16  Bruno Haible  <bruno@clisp.org>
91060         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91061         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91062         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91063         Reported by Daniel Bergström <daniel@octocode.com>.
91065 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91066             Bruno Haible  <bruno@clisp.org>
91068         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91069         function.
91070         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91071         New functions, mostly extracted from gl_locale_name_default.
91072         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91074 2008-04-16  Eric Blake  <ebb9@byu.net>
91076         Adjust strtod detection to catch glibc 2.7 bug.
91077         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91078         Reported by John Gatewood Ham.
91080 2008-04-16  Bruno Haible  <bruno@clisp.org>
91082         Add tentative support for Linux libc5.
91083         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91084         * lib/fpurge.c (fpurge): Likewise.
91085         * lib/freadable.c (freadable): Likewise.
91086         * lib/freadahead.c (freadahead): Likewise.
91087         * lib/freading.c (freading): Likewise.
91088         * lib/freadptr.c (freadptr): Likewise.
91089         * lib/freadseek.c (freadptrinc): Likewise.
91090         * lib/fseeko.c (rpl_fseeko): Likewise.
91091         * lib/fseterr.c (fseterr): Likewise.
91092         * lib/fwritable.c (fwritable): Likewise.
91093         * lib/fwriting.c (fwriting): Likewise.
91094         Reported by Alain Guibert <alguibert+bts@free.fr>.
91096 2008-04-15  Bruno Haible  <bruno@clisp.org>
91098         * modules/mathl (configure.ac): Define module indicator.
91100 2008-04-15  Bruno Haible  <bruno@clisp.org>
91102         * lib/logl.c (logl): Remove unused variables.
91104 2008-04-15  Bruno Haible  <bruno@clisp.org>
91106         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91107         fails.
91109 2008-04-15  Bruno Haible  <bruno@clisp.org>
91111         * lib/trim.c (trim2): Fix argument of isspace() macro.
91113 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91115         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91116         to 0.
91117         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91119 2008-04-14  Bruno Haible  <bruno@clisp.org>
91121         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91122         AC_LANG_PROGRAM argument.
91123         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91124         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91126         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91127         * m4/math_h.m4 (gl_MATH_H): Likewise.
91128         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91130         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91131         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91132         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91133         * m4/regex.m4 (gl_REGEX): Likewise.
91134         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91135         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91137         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91138         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91139         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91140         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91141         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91143 2008-04-14  Jim Meyering  <meyering@redhat.com>
91145         test-strtod: fix typos: s/abs/fabs/
91146         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91148 2008-04-13  Bruno Haible  <bruno@clisp.org>
91150         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91151         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91152         module is also used and while not building the reloc-wrapper.
91154 2008-04-13  Bruno Haible  <bruno@clisp.org>
91156         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91158 2008-04-13  Bruno Haible  <bruno@clisp.org>
91160         Fix AIX compilation failure introduced on 2008-04-02.
91161         * tests/test-frexp.c (exp): Undefine before redefining.
91162         * tests/test-frexpl.c (exp): Likewise.
91164 2008-04-13  Bruno Haible  <bruno@clisp.org>
91166         Work around a HP-UX stdio bug.
91167         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91168         * tests/test-ftello.c (main): Likewise.
91169         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91170         * doc/posix-functions/ftello.texi: Likewise.
91172 2008-04-13  Bruno Haible  <bruno@clisp.org>
91174         Make test-signbit pass on HP-UX/hppa.
91175         * tests/test-signbit.c (minus_zerol): New variable.
91176         (test_signbitl): Use it.
91178 2008-04-13  Bruno Haible  <bruno@clisp.org>
91180         Make truncl work on OSF/1 4.0.
91181         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91182         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91183         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91185         HAVE_DECL_TRUNCL.
91186         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91187         HAVE_DECL_TRUNCL.
91188         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91190 2008-04-13  Bruno Haible  <bruno@clisp.org>
91192         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91194 2008-04-13  Bruno Haible  <bruno@clisp.org>
91196         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91197         expression, so as to avoid HP-UX 11 cc compiler bug.
91199 2008-04-13  Bruno Haible  <bruno@clisp.org>
91201         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91203 2008-04-13  Bruno Haible  <bruno@clisp.org>
91205         * lib/git-merge-changelog.c: Remove empty declaration outside of
91206         functions.
91208 2008-04-13  Bruno Haible  <bruno@clisp.org>
91210         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91212 2008-04-13  Bruno Haible  <bruno@clisp.org>
91214         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91215         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91217         also if it exists but lacks definitions of the SHUT_* macros.
91218         * modules/sys_socket (Description): Update.
91219         Reported by Elbert Pol <e.pol@chello.nl>.
91221 2008-04-13  Bruno Haible  <bruno@clisp.org>
91223         * lib/localcharset.c (OS2): Don't redefine if already defined.
91224         Reported by Elbert Pol <e.pol@chello.nl>.
91226 2008-04-13  Bruno Haible  <bruno@clisp.org>
91228         * lib/binary-io.h [__EMX__]: Include <io.h>.
91229         Reported by Elbert Pol <e.pol@chello.nl>.
91231 2008-04-12  Bruno Haible  <bruno@clisp.org>
91233         * lib/fpucw.h: Enable the definitions also for x86_64.
91234         Needed for NetBSD/x86_64.
91235         Reported by Thomas Klausner <tk@giga.or.at>.
91237 2008-04-12  Bruno Haible  <bruno@clisp.org>
91239         * tests/test-strtod.c: Include isnand.h.
91240         (main): Use isnand instead of isnan.
91241         Reported by Jim Meyering.
91243 2008-04-12  Bruno Haible  <bruno@clisp.org>
91245         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91246         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91248 2008-04-12  Jim Meyering  <meyering@redhat.com>
91250         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91252 2008-04-12  Bruno Haible  <bruno@clisp.org>
91254         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91255         Reported by Elbert Pol <e.pol@chello.nl>.
91257 2008-04-12  Eric Blake  <ebb9@byu.net>
91259         Work around Solaris 10 math.h bug.
91260         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91261         (gl_MATH_H_DEFAULTS): Set up default.
91262         * modules/math (Makefile.am): Replace new indicators.
91263         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91264         * tests/test-math.c (main): Test this.
91265         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91266         * doc/posix-headers/math.texi (math.h): Mention bug.
91267         Reported by Nelson H. F. Beebe and Jim Meyering.
91269 2008-04-11  Bruno Haible  <bruno@clisp.org>
91271         Adapt to future versions of Apple GCC.
91272         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91273         Reported by Peter O'Gorman <peter@pogma.com>.
91275 2008-04-11  Bruno Haible  <bruno@clisp.org>
91277         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91279 2008-04-11  Bruno Haible  <bruno@clisp.org>
91281         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91283         * modules/getaddrinfo-tests (Makefile.am): Define
91284         test_getaddrinfo_LDADD.
91286 2008-04-11  Bruno Haible  <bruno@clisp.org>
91288         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91289         (init): Fix syntax error.
91290         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91291         is declared.
91293 2008-04-11  Bruno Haible  <bruno@clisp.org>
91295         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91296         * modules/glob (Depends-on): Add stdbool.
91298 2008-04-11  Bruno Haible  <bruno@clisp.org>
91300         * lib/trim.c: Include <string.h>.
91302 2008-04-11  Eric Blake  <ebb9@byu.net>
91304         Avoid compile failure on OS/2.
91305         * lib/regex_internal.h (internal_function): Disable optimization
91306         on OS/2 (__EMX__), where it caused compiler error.
91307         Reported by Elbert Pol.
91309 2008-04-11  Bruno Haible  <bruno@clisp.org>
91311         Flush the standard error stream before aborting. Needed on mingw.
91312         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91313         * tests/test-array_list.c (ASSERT): Likewise.
91314         * tests/test-array_oset.c (ASSERT): Likewise.
91315         * tests/test-avltree_list.c (ASSERT): Likewise.
91316         * tests/test-avltree_oset.c (ASSERT): Likewise.
91317         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91318         * tests/test-binary-io.c (ASSERT): Likewise.
91319         * tests/test-byteswap.c (ASSERT): Likewise.
91320         * tests/test-c-ctype.c (ASSERT): Likewise.
91321         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91322         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91323         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91324         * tests/test-c-strstr.c (ASSERT): Likewise.
91325         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91326         * tests/test-canonicalize.c (ASSERT): Likewise.
91327         * tests/test-carray_list.c (ASSERT): Likewise.
91328         * tests/test-ceilf1.c (ASSERT): Likewise.
91329         * tests/test-ceilf2.c (ASSERT): Likewise.
91330         * tests/test-ceill.c (ASSERT): Likewise.
91331         * tests/test-count-one-bits.c (ASSERT): Likewise.
91332         * tests/test-fbufmode.c (ASSERT): Likewise.
91333         * tests/test-fflush2.c (ASSERT): Likewise.
91334         * tests/test-floorf1.c (ASSERT): Likewise.
91335         * tests/test-floorf2.c (ASSERT): Likewise.
91336         * tests/test-floorl.c (ASSERT): Likewise.
91337         * tests/test-fopen.c (ASSERT): Likewise.
91338         * tests/test-fpending.c (ASSERT): Likewise.
91339         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91340         * tests/test-fpurge.c (ASSERT): Likewise.
91341         * tests/test-freadable.c (ASSERT): Likewise.
91342         * tests/test-freadahead.c (ASSERT): Likewise.
91343         * tests/test-freading.c (ASSERT): Likewise.
91344         * tests/test-freadptr.c (ASSERT): Likewise.
91345         * tests/test-freadptr2.c (ASSERT): Likewise.
91346         * tests/test-freadseek.c (ASSERT): Likewise.
91347         * tests/test-freopen.c (ASSERT): Likewise.
91348         * tests/test-frexp.c (ASSERT): Likewise.
91349         * tests/test-frexpl.c (ASSERT): Likewise.
91350         * tests/test-fseek.c (ASSERT): Likewise.
91351         * tests/test-fseeko.c (ASSERT): Likewise.
91352         * tests/test-fstrcmp.c (ASSERT): Likewise.
91353         * tests/test-ftell.c (ASSERT): Likewise.
91354         * tests/test-ftello.c (ASSERT): Likewise.
91355         * tests/test-func.c (ASSERT): Likewise.
91356         * tests/test-fwritable.c (ASSERT): Likewise.
91357         * tests/test-fwriting.c (ASSERT): Likewise.
91358         * tests/test-getdelim.c (ASSERT): Likewise.
91359         * tests/test-getline.c (ASSERT): Likewise.
91360         * tests/test-i-ring.c (ASSERT): Likewise.
91361         * tests/test-iconv-utf.c (ASSERT): Likewise.
91362         * tests/test-iconv.c (ASSERT): Likewise.
91363         * tests/test-isfinite.c (ASSERT): Likewise.
91364         * tests/test-isnand.c (ASSERT): Likewise.
91365         * tests/test-isnanf.c (ASSERT): Likewise.
91366         * tests/test-isnanl.h (ASSERT): Likewise.
91367         * tests/test-ldexpl.c (ASSERT): Likewise.
91368         * tests/test-linked_list.c (ASSERT): Likewise.
91369         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91370         * tests/test-localename.c (ASSERT): Likewise.
91371         * tests/test-lseek.c (ASSERT): Likewise.
91372         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91373         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91374         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91375         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91376         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91377         * tests/test-mbschr.c (ASSERT): Likewise.
91378         * tests/test-mbscspn.c (ASSERT): Likewise.
91379         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91380         * tests/test-mbspbrk.c (ASSERT): Likewise.
91381         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91382         * tests/test-mbsrchr.c (ASSERT): Likewise.
91383         * tests/test-mbsspn.c (ASSERT): Likewise.
91384         * tests/test-mbsstr1.c (ASSERT): Likewise.
91385         * tests/test-mbsstr2.c (ASSERT): Likewise.
91386         * tests/test-mbsstr3.c (ASSERT): Likewise.
91387         * tests/test-memchr2.c (ASSERT): Likewise.
91388         * tests/test-memmem.c (ASSERT): Likewise.
91389         * tests/test-open.c (ASSERT): Likewise.
91390         * tests/test-printf-frexp.c (ASSERT): Likewise.
91391         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91392         * tests/test-printf-posix.c (ASSERT): Likewise.
91393         * tests/test-quotearg.c (ASSERT): Likewise.
91394         * tests/test-rbtree_list.c (ASSERT): Likewise.
91395         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91396         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91397         * tests/test-round1.c (ASSERT): Likewise.
91398         * tests/test-roundf1.c (ASSERT): Likewise.
91399         * tests/test-roundl.c (ASSERT): Likewise.
91400         * tests/test-signbit.c (ASSERT): Likewise.
91401         * tests/test-sleep.c (ASSERT): Likewise.
91402         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91403         * tests/test-snprintf.c (ASSERT): Likewise.
91404         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91405         * tests/test-stat-time.c (ASSERT): Likewise.
91406         * tests/test-strcasestr.c (ASSERT): Likewise.
91407         * tests/test-strerror.c (ASSERT): Likewise.
91408         * tests/test-striconv.c (ASSERT): Likewise.
91409         * tests/test-striconveh.c (ASSERT): Likewise.
91410         * tests/test-striconveha.c (ASSERT): Likewise.
91411         * tests/test-strsignal.c (ASSERT): Likewise.
91412         * tests/test-strstr.c (ASSERT): Likewise.
91413         * tests/test-strtod.c (ASSERT): Likewise.
91414         * tests/test-trunc1.c (ASSERT): Likewise.
91415         * tests/test-trunc2.c (ASSERT): Likewise.
91416         * tests/test-truncf1.c (ASSERT): Likewise.
91417         * tests/test-truncf2.c (ASSERT): Likewise.
91418         * tests/test-truncl.c (ASSERT): Likewise.
91419         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91420         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91421         * tests/test-vasnprintf.c (ASSERT): Likewise.
91422         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91423         * tests/test-vasprintf.c (ASSERT): Likewise.
91424         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91425         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91426         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91427         * tests/test-vsnprintf.c (ASSERT): Likewise.
91428         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91429         * tests/test-wcwidth.c (ASSERT): Likewise.
91430         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91431         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91432         * tests/test-xvasprintf.c (ASSERT): Likewise.
91433         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91434         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91435         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91436         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91437         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91438         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91439         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91440         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91441         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91442         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91443         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91444         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91445         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91446         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91447         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91448         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91449         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91450         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91451         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91452         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91453         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91454         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91455         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91456         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91457         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91458         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91459         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91460         * tests/unictype/test-combining.c (ASSERT): Likewise.
91461         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91462         * tests/unictype/test-digit.c (ASSERT): Likewise.
91463         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91464         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91465         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91466         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91467         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91468         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91469         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91470         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91471         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91472         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91473         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91474         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91475         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91476         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91477         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91478         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91479         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91480         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91481         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91482         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91483         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91484         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91485         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91486         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91487         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91488         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91489         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91490         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91491         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91492         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91493         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91494         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91495         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91496         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91497         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91498         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91499         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91500         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91501         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91502         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91503         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91504         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91505         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91506         Reported by Eric Blake.
91508 2008-04-11  Bruno Haible  <bruno@clisp.org>
91510         * lib/wchar.in.h: Tweak comment.
91512 2008-04-11  Bruno Haible  <bruno@clisp.org>
91514         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91515         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91516         gl_COMMON.
91517         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91519 2008-04-11  Bruno Haible  <bruno@clisp.org>
91521         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91523 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91525         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91526         of attempting to use non-existing /dev/*random.  Based on patch
91527         from Adam Strzelecki <ono@java.pl> in
91528         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91530 2008-04-08  Bruno Haible  <bruno@clisp.org>
91532         Add tentative support for emx+gcc.
91533         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91534         * lib/fpurge.c (fpurge): Likewise.
91535         * lib/freadable.c (freadable): Likewise.
91536         * lib/freadahead.c (freadahead): Likewise.
91537         * lib/freading.c (freading): Likewise.
91538         * lib/freadptr.c (freadptr): Likewise.
91539         * lib/freadseek.c (freadptrinc): Likewise.
91540         * lib/fseeko.c (rpl_fseeko): Likewise.
91541         * lib/fseterr.c (fseterr): Likewise.
91542         * lib/fwritable.c (fwritable): Likewise.
91543         * lib/fwriting.c (fwriting): Likewise.
91544         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91546 2008-04-09  Eric Blake  <ebb9@byu.net>
91548         Avoid some autoconf warnings.
91549         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91550         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91551         * m4/afs.m4 (gl_AFS): Likewise.
91552         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91553         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91554         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91555         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91556         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91557         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91558         (AC_CHECK_DECLS_ONCE): Likewise.
91559         Rename file...
91560         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91561         gnulib-tool requires autoconf 2.59 or better.
91562         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91564 2008-04-08  Eric Blake  <ebb9@byu.net>
91566         Use 'git describe --match' if present (added in git 1.5.5).
91567         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91568         if possible.
91570 2008-04-08  Bruno Haible  <bruno@clisp.org>
91572         Add tentative support for OpenServer.
91573         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91574         _ptr, _cnt.
91575         * lib/fpurge.c (fpurge): Likewise.
91576         * lib/freadable.c (freadable): Likewise.
91577         * lib/freadahead.c (freadahead): Likewise.
91578         * lib/freading.c (freading): Likewise.
91579         * lib/freadptr.c (freadptr): Likewise.
91580         * lib/freadseek.c (freadptrinc): Likewise.
91581         * lib/fseeko.c (rpl_fseeko): Likewise.
91582         * lib/fseterr.c (fseterr): Likewise.
91583         * lib/fwritable.c (fwritable): Likewise.
91584         * lib/fwriting.c (fwriting): Likewise.
91585         Reported by Roger Cornelius <rac@tenzing.org> and
91586         Brian K. White <brian@aljex.com>.
91588 2008-04-06  Jim Meyering  <meyering@redhat.com>
91590         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91592 2008-04-06  Bruno Haible  <bruno@clisp.org>
91594         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91595         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91596         * tests/test-printf-posix.sh: Likewise.
91597         * tests/test-vfprintf-posix.sh: Likewise.
91598         * tests/test-vprintf-posix.sh: Likewise.
91599         * tests/test-xprintf-posix.sh: Likewise.
91601 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91603         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91604         hide error from 'ls', needed on OS/2.
91605         Report by Elbert Pol <elbert.pol@gmail.com>.
91607 2008-04-04  Eric Blake  <ebb9@byu.net>
91609         Make test-fseeko.c failures meaningful.
91610         * tests/test-fseeko.c: Print line number on failure.
91611         * tests/test-fseek.c: Likewise.
91612         Reported by Nelson H. F. Beebe.
91614         Improve strtod bug detection check.
91615         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91616         required for Solaris 10.
91617         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91619 2008-04-04  Bruno Haible  <bruno@clisp.org>
91621         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91622         by m4/setenv.m4.
91624 2008-04-03  Eric Blake  <ebb9@byu.net>
91626         Ensure sane .version contents.
91627         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91628         version string.
91629         * build-aux/git-version-gen: Improve documentation.
91631         Make GNU make output nicer.
91632         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91633         MAKECMDGOALS to enforce message for all command line targets.  Set
91634         srcdir for use in maint.mk.
91636         Another maintainer tweak.
91637         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91638         a target that regenerates version.
91640 2008-04-03  Jim Meyering  <meyering@redhat.com>
91642         vc-list-files: don't cause coreutils "make po-check" failure
91643         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91645 2008-04-03  Eric Blake  <ebb9@byu.net>
91647         Allow VPATH usage of vc-list-files.
91648         * build-aux/vc-list-files (scriptversion): Add timestamp.
91649         (options): Add --help, --version, -C.
91650         (CVS): Support installed cvsu.
91652 2008-04-02  Bruno Haible  <bruno@clisp.org>
91654         Avoid some "statement with no effect" warnings from gcc.
91655         * tests/test-wctype.c (main): Explicitly ignore unused values.
91656         Reported by Jim Meyering.
91658 2008-04-02  Jim Meyering  <meyering@redhat.com>
91660         Avoid some warnings from "gcc -Wshadow".
91661         * tests/test-frexp.c (exp): Define to a different identifier.
91662         * tests/test-frexpl.c (exp): Likewise.
91664 2008-04-03  Jim Meyering  <meyering@redhat.com>
91666         bootstrap: remove dangling *.[ch] symlinks from lib
91667         * build-aux/bootstrap [dangling symlink removal]: Move find's
91668         -depth option to precede all others, to avoid a warning.
91669         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91671 2008-04-02  Bruno Haible  <bruno@clisp.org>
91673         Avoid some warnings from "gcc -Wshadow".
91674         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91675         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91676         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91677         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91678         Reported by Jim Meyering.
91680 2008-04-01  Bruno Haible  <bruno@clisp.org>
91682         Fix test to work on IRIX 6.5 with cc.
91683         * tests/test-math.c (numeric_equal): New function.
91684         (main): Use it.
91686 2008-04-01  Bruno Haible  <bruno@clisp.org>
91688         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91690 2008-04-01  Bruno Haible  <bruno@clisp.org>
91692         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91693         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91694         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91695         (Depends-on): Remove math.
91697         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91698         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91699         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91700         (Depends-on): Remove math.
91702         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91703         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91704         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91705         (Depends-on): Remove math.
91706         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91707         (Depends-on): Remove math.
91709         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91710         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91711         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91712         (Depends-on): Remove math.
91713         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91714         (Depends-on): Remove math.
91716         * tests/test-round1.c: Include nan.h.
91717         (main): Use NaNd instead of NAN.
91718         * modules/round-tests (Files): Add tests/nan.h.
91720         * tests/test-trunc1.c: Include nan.h.
91721         (main): Use NaNd instead of NAN.
91722         * modules/trunc-tests (Files): Add tests/nan.h.
91724         * tests/test-roundf1.c: Include nan.h.
91725         (main): Use NaNf instead of NAN.
91726         * modules/roundf-tests (Files): Add tests/nan.h.
91728         * tests/test-truncf1.c: Include nan.h.
91729         (main): Use NaNf instead of NAN.
91730         * modules/truncf-tests (Files): Add tests/nan.h.
91732         * tests/test-ceilf1.c: Include nan.h.
91733         (main): Use NaNf instead of NAN.
91734         * modules/ceilf-tests (Files): Add tests/nan.h.
91736         * tests/test-floorf1.c: Include nan.h.
91737         (main): Use NaNf instead of NAN.
91738         * modules/floorf-tests (Files): Add tests/nan.h.
91740         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
91741         (main): Use NaNf instead of NAN.
91742         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
91744         * tests/test-isnand.c: Include nan.h instead of <math.h>.
91745         (main): Use NaNd instead of NAN.
91746         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
91748         * tests/test-frexp.c: Include nan.h.
91749         (main): Use NaNd instead of NAN.
91750         * modules/frexp-tests (Files): Add tests/nan.h.
91752         * lib/isnan.c: Don't include <math.h>.
91753         (FUNC): Don't use NAN macro.
91754         * modules/isnand-nolibm (Depends-on): Remove math.
91755         * modules/isnanf-nolibm (Depends-on): Remove math.
91756         * modules/isnanl (Depends-on): Remove math.
91757         * modules/isnanl-nolibm (Depends-on): Remove math.
91759         * tests/nan.h: New file.
91761 2008-04-01  Eric Blake  <ebb9@byu.net>
91763         Fix typos.
91764         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
91765         values to be the right type.
91767         For now, cater to gnulib strtod inaccuracies.
91768         * tests/test-strtod.c (main): Allow 1-ulp error on expected
91769         fractional results.  While not as nice from a QoI perspective, it
91770         is a quicker patch than correctly implementing decimal to binary
91771         rounding.
91773 2008-03-31  Eric Blake  <ebb9@byu.net>
91775         Guarantee a definition of NAN.
91776         * lib/math.in.h (NAN): Define if missing.
91777         * tests/test-math.c (main): Test it.
91778         * doc/posix-headers/math.texi (math.h): Document this.
91779         * lib/isnan.c (rpl_isnand): Use it.
91780         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
91781         * tests/test-floorf1.c (NaN): Likewise.
91782         * tests/test-frexp.c (NaN): Likewise.
91783         * tests/test-isnand.c (NaN): Likewise.
91784         * tests/test-isnanf.c (NaN): Likewise.
91785         * tests/test-round1.c (NaN): Likewise.
91786         * tests/test-roundf1.c (NaN): Likewise.
91787         * tests/test-snprintf-posix.h (NaN): Likewise.
91788         * tests/test-sprintf-posix.h (NaN): Likewise.
91789         * tests/test-trunc1.c (NaN): Likewise.
91790         * tests/test-truncf1.c (NaN): Likewise.
91791         * tests/test-vasnprintf-posix.c (NaN): Likewise.
91792         * tests/test-vasprintf-posix.c (NaN): Likewise.
91793         * modules/isnand-nolibm (Depends-on): Add math.
91794         * modules/isnanf-nolibm (Depends-on): Likewise.
91795         * modules/isnanl (Depends-on): Likewise.
91796         * modules/isnanl-nolibm (Depends-on): Likewise.
91797         * modules/snprintf-posix-tests (Depends-on): Likewise.
91798         * modules/sprintf-posix-tests (Depends-on): Likewise.
91799         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
91800         * modules/vsprintf-posix-tests (Depends-on): Likewise.
91801         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
91802         * modules/vasprintf-posix-tests (Depends-on): Likewise.
91804 2008-03-31  Bruno Haible  <bruno@clisp.org>
91806         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
91807         * doc/posix-functions/strtod.texi: Likewise.
91809 2008-03-31  Bruno Haible  <bruno@clisp.org>
91811         * tests/test-strtod.c (main): Don't use C99 syntax.
91813 2008-03-31  Bruno Haible  <bruno@clisp.org>
91815         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
91816         Reported by Eric Blake.
91818 2008-03-31  Jim Meyering  <meyering@redhat.com>
91820         Don't compare actual signbit return values.
91821         * tests/test-strtod.c (main): Rather, compare only their
91822         zero/non-zero nature.
91824 2008-03-31  Eric Blake  <ebb9@byu.net>
91826         More strtod documentation.
91827         * doc/posix-functions/strtod.texi (strtod): Interpret more test
91828         failures as distinct bugs.
91830 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
91832         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
91833         Problem reported by Erik Benada in
91834         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
91836 2008-03-30  Bruno Haible  <bruno@clisp.org>
91838         * tests/test-strtod.c: Add comments about which assertion fails on which
91839         platform.
91840         * doc/posix-functions/strtod.texi: Add info about many more platforms.
91842 2008-03-30  Eric Blake  <ebb9@byu.net>
91844         Test signbit behavior on zeros.
91845         * tests/test-signbit.c (test_signbitf): Add tests for zero.
91846         (test_signbitd, test_signbitl): Likewise.
91848         More strtod touchups.
91849         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
91850         sign of negative underflow, for now.  Use .5, not .1.
91851         * doc/posix-functions/strtod.texi (strtod): Mention these
91852         limitations.
91853         Reported by Jim Meyering.
91855 2008-03-30  Bruno Haible  <bruno@clisp.org>
91857         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
91858         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
91860 2008-03-30  Bruno Haible  <bruno@clisp.org>
91862         Avoid failure when attempting to return empty iconv results on some
91863         platforms.
91864         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
91865         allocation, don't report ENOMEM when the resulting string is empty.
91867 2008-03-30  Bruno Haible  <bruno@clisp.org>
91869         Fix buffer overrun.
91870         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
91871         Don't consider the width for tmp_length. Check count against tmp_length
91872         before doing the padding. Ensure enough allocation during padding.
91874 2008-03-30  Eric Blake  <ebb9@byu.net>
91876         strtod touchups.
91877         * lib/strtod.c (strtod): Avoid compiler warnings.
91878         Reported by Jim Meyering.
91880 2008-03-30  Bruno Haible  <bruno@clisp.org>
91882         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
91883         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
91884         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
91885         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
91886         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
91887         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
91888         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
91889         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
91891         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
91892         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
91893         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
91894         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
91895         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
91896         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
91897         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
91898         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
91900         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
91901         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
91902         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
91903         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
91904         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
91905         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
91906         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
91907         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
91909         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
91910         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
91912         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
91913         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
91915         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
91916         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
91918         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
91919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
91920         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
91922         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
91923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
91924         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
91926         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
91927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
91928         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
91930         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
91931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
91932         * modules/vasprintf (Depends-on): Add EOVERFLOW.
91934         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
91935         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
91936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
91937         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
91938         (Depends-on): Add EOVERFLOW.
91939         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
91940         (Depends-on): Add EOVERFLOW.
91941         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
91942         (Depends-on): Add EOVERFLOW.
91943         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
91944         (Depends-on): Add EOVERFLOW.
91945         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
91946         (Depends-on): Add EOVERFLOW.
91947         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
91948         (Depends-on): Add EOVERFLOW.
91949         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
91950         (Depends-on): Add EOVERFLOW.
91951         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
91952         (Depends-on): Add EOVERFLOW.
91954         * lib/sprintf.c (EOVERFLOW): Remove fallback.
91955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
91956         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
91958         * lib/snprintf.c (EOVERFLOW): Remove fallback.
91959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
91960         * modules/snprintf (Depends-on): Add EOVERFLOW.
91962         * lib/poll.c (EOVERFLOW): Remove fallback.
91963         * modules/poll (Depends-on): Add EOVERFLOW.
91965         * lib/getugroups.c (EOVERFLOW): Remove fallback.
91966         * modules/getugroups (Depends-on): Add EOVERFLOW.
91968         * lib/getdelim.c (EOVERFLOW): Remove fallback.
91969         * modules/getdelim (Depends-on): Add EOVERFLOW.
91971         * lib/ftell.c (EOVERFLOW): Remove fallback.
91972         * modules/ftell (Depends-on): Add EOVERFLOW.
91974         * lib/fprintf.c (EOVERFLOW): Remove fallback.
91975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
91976         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
91978         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
91980         * modules/EOVERFLOW-tests: New file.
91981         * tests/test-EOVERFLOW.c: New file.
91983         * modules/EOVERFLOW: New file.
91984         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
91986 2008-03-30  Bruno Haible  <bruno@clisp.org>
91988         Fix bug introduced on 2007-06-10.
91989         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
91990         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
91992 2008-03-30  Bruno Haible  <bruno@clisp.org>
91994         Improve freadseek's efficiency after ungetc.
91995         * lib/freadseek.c: Include freadahead.h.
91996         (freadptrinc): New function, extracted from freadseek.
91997         (freadseek): Use it in a loop. Use freadahead to determine the number
91998         of loop iterations.
91999         * modules/freadseek (Depends-on): Add freadahead.
92000         (configure.ac): Require AC_C_INLINE.
92002 2008-03-30  Bruno Haible  <bruno@clisp.org>
92004         * lib/freadseek.c (freadseek): Don't ignore the return value of
92005         freadptr.
92007 2008-03-29  Eric Blake  <ebb9@byu.net>
92009         Add hex float support.
92010         * modules/strtod (Depends-on): Add c-ctype.
92011         (Link): Mention POW_LIB.
92012         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92013         whitespace between 'e' and exponent.
92014         * tests/test-strtod.c (main): Enable hex float tests.
92015         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92016         now provides.
92018         Document various strtod bugs, with some fixes.
92019         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92020         "-0x", "inf", "nan", and hex constants.
92021         * doc/posix-functions/atof.texi (atof): Likewise.
92022         * modules/stdlib (Makefile.am): Support strtod.
92023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92024         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92025         detect additional strtod bugs.
92026         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92027         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92028         bool where appropriate.  Parse 'inf' and 'nan'.
92029         * tests/test-strtod.c: New file.
92030         * modules/strtod (Depends-on): Add stdbool, stdlib.
92031         (configure.ac): Turn on module indicator.
92032         * modules/strtod-tests: New module.
92034 2008-03-29  Eric Blake  <ebb9@byu.net>
92036         Fix ftell on mingw.
92037         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92038         * modules/ftell-tests (Depends-on): Add binary-io.
92039         * modules/ftello-tests (Depends-on): Likewise.
92040         * tests/test-ftell.c (main): Enhance test to cover behavior after
92041         ungetc.  Enforce binary mode.
92042         * tests/test-ftello.c (main): Likewise.
92044         Pass test-freadseek on cygwin.
92045         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92046         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92047         ungetc buffer.
92049         * tests/test-fflush2.c (main): Fix typo.
92051 2008-03-29  Bruno Haible  <bruno@clisp.org>
92053         * tests/test-fflush2.c (main): Temporarily disable the contents of
92054         this test.
92055         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92056         Reported by Eric Blake.
92058 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92060         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92061         (GC_SHA224_DIGEST_SIZE): Add.
92063         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92064         (gc_hash_digest_length): Likewise.
92065         (gc_hash_buffer): Likewise.
92067 2008-03-25  Bruno Haible  <bruno@clisp.org>
92069         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92070         detail which gettext release to use.
92071         Reported by Simon Josefsson.
92073 2008-03-26  Jim Meyering  <meyering@redhat.com>
92075         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92076         * modules/gnumakefile (clean-GNUmakefile): Also, use
92077         test ... && ... || : syntax rather than if-then ... fi.
92079         gnumakefile: Don't double-quote-expand $(VPATH) value.
92080         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92082 2008-03-24  Eric Blake  <ebb9@byu.net>
92084         Alter GNUmakefile to install into top directory.
92085         * modules/maintainer-makefile: Split, and add dependency...
92086         * modules/gnumakefile: to this new module.
92087         * build-aux/GNUmakefile: Move...
92088         * top/GNUmakefile: ...here.
92089         * build-aux/maint.mk: Move...
92090         * top/maint.mk: ...here.
92091         * MODULES.html.sh (Support for maintaining...): Document new
92092         module.
92094 2008-03-23  Bruno Haible  <bruno@clisp.org>
92096         * gnulib-tool: New options --vc-files, --no-vc-files.
92097         (func_usage): Document them.
92098         (vc_files): New variable.
92099         (func_import): Consider vc_files.
92100         (func_create_testdir): Set vc_files to empty.
92101         Suggested by Jim Meyering and Karl Berry.
92103 2008-03-23  Bruno Haible  <bruno@clisp.org>
92105         Fix regex compilation error on HP-UX 11.
92106         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92107         * modules/regex (Files): Add m4/mbstate_t.m4.
92108         Reported by Ton Voon <ton.voon@altinity.com>.
92110 2008-03-23  Bruno Haible  <bruno@clisp.org>
92112         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92114 2008-03-23  Eric Blake  <ebb9@byu.net>
92115             Bruno Haible  <bruno@clisp.org>
92117         Install files from top/ in the destination directory.
92118         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92119         augmentation also for the files from top/.
92120         (func_import, func_create_testdir): Rewrite file names:
92121         top/filename -> filename.
92123 2008-03-23  Bruno Haible  <bruno@clisp.org>
92125         Tweak "gnulib --version" output.
92126         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92128 2008-03-23  Bruno Haible  <bruno@clisp.org>
92130         Tweak "gnulib --version" output.
92131         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92132         rather than contents of ChangeLog, when possible.
92134 2008-03-21  Eric Blake  <ebb9@byu.net>
92136         More --version tweaks.
92137         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92138         date of last ChangeLog entry.
92140 2008-03-21  Jim Meyering  <meyering@redhat.com>
92142         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92144 2008-03-20  Eric Blake  <ebb9@byu.net>
92146         VPATH fix.
92147         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92149 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92151         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92152         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92154 2008-03-20  Eric Blake  <ebb9@byu.net>
92156         Sync GNUmakefile with coreutils.
92157         * build-aux/GNUmakefile (have-Makefile): Rename...
92158         (_have-Makefile): ...to this, for namespace consideration.
92159         (GNUmakefile.cfg): Include, if present.
92160         (_autoreconf): Define a default.
92161         (_is-dist-target): New rule for rebuilds to pick up intra-release
92162         version.
92163         (maint-cfg.mk): Rename...
92164         (cfg.mk): ...to this.
92166 2008-03-18  Jim Meyering  <meyering@redhat.com>
92168         New script and module: mktempd
92169         * MODULES.html.sh (maint+release support): Add mktempd.
92170         * build-aux/mktempd: New file.
92171         * modules/mktempd: New file.
92173 2008-03-15  Jim Meyering  <meyering@redhat.com>
92175         Undo last change.
92176         * lib/sha1.c, lib/md5.c: 63 != ~63.
92177         Reported by Andreas Schwab.
92179         sha1.c, md5.c: Hoist a redundant expression.
92180         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92181         "ctx->buflen" only once, before calling *_process_block.
92182         * lib/md5.c (md5_process_bytes): Likewise.
92184 2008-03-14  Eric Blake  <ebb9@byu.net>
92186         Bump copyright year in files generated by gnulib-tool.
92187         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92188         gnulib-tool, rather than hard-coding it.
92190         Fix 'gnulib-tool --version' output to work with git.
92191         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92192         (startup): ...here.
92193         (func_version): Use it to invoke git-version-gen, rather than
92194         relying on CVS keyword expansion.  Modernize wording.
92195         (cvsdatestamp, last_checkin_date, version): Kill unused
92196         variables.
92198 2008-03-12  Jim Meyering  <meyering@redhat.com>
92200         Recognize optional cast of the argument to free.
92201         * build-aux/useless-if-before-free: Update regexps.
92203         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92205 2008-03-11  Bruno Haible  <bruno@clisp.org>
92207         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92208         by a single package.
92209         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92210         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92211         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92212         Reported by Sam Steingold <sds@gnu.org>.
92214 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92216         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92217         repositories.
92219 2008-03-11  Bruno Haible  <bruno@clisp.org>
92221         Avoid conflicts between local macro definitions.
92222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92223         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92225 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92226             Bruno Haible  <bruno@clisp.org>
92228         Make va_copy work with some version of xlc on AIX 5.1.
92229         * lib/stdarg.in.h: New file.
92230         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92231         On AIX, use a <stdarg.h> file substitute.
92232         * modules/stdarg (Files): Add lib/stdarg.in.h.
92233         (Depends-on): Add include_next.
92234         (Makefile.am): Build a stdarg.h substitute if requested.
92235         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92237 2008-03-10  Bruno Haible  <bruno@clisp.org>
92239         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92240         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92241         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92243 2008-03-10  Bruno Haible  <bruno@clisp.org>
92245         * modules/stdlib (Depends-on): Add include_next, remove
92246         absolute-header.
92248 2008-03-09  Bruno Haible  <bruno@clisp.org>
92250         * lib/freadahead.h (freadahead): Document more precisely.
92251         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92252         the sum of both buffer sizes.
92253         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92254         * NEWS: Document the change.
92256 2008-03-09  Bruno Haible  <bruno@clisp.org>
92258         Extend freadptr to return also the buffer size.
92259         * lib/freadptr.h (freadptr): Add sizep argument.
92260         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92261         (freadptr): Add sizep argument. Determine buffer size like freadahead
92262         does.
92263         * tests/test-freadptr.c: Don't include freadahead.h.
92264         (main): Adapt for new calling convention of freadptr.
92265         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92266         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92267         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92268         tests/test-freadptr2.sh.
92269         (Depends): Remove freadahead.
92270         (TESTS): Add test-freadptr2.sh.
92271         (check_PROGRAMS): Add test-freadptr2.
92273 2008-03-09  Bruno Haible  <bruno@clisp.org>
92275         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92276         Report and solution by Simon Josefsson.
92278 2008-03-06  Bruno Haible  <bruno@clisp.org>
92280         Make fflush after ungetc work on BSD platforms.
92281         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92282         * tests/test-fflush2.c: New file.
92283         * tests/test-fflush2.sh: New file.
92284         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92285         tests/test-fflush2.c.
92286         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92287         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92289 2008-03-06  Eric Blake  <ebb9@byu.net>
92291         Likewise for ftello.
92292         * modules/ftello (Dependencies): Add extensions.
92293         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92295 2008-03-06  Bruno Haible  <bruno@clisp.org>
92297         * modules/fseeko (Dependencies): Add extensions.
92298         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92299         Needed on glibc systems.
92301 2008-03-06  Bruno Haible  <bruno@clisp.org>
92303         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92304         email address.
92305         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92307 2008-03-06  Bruno Haible  <bruno@clisp.org>
92309         * users.txt: Add libgnupdf.
92311 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92313         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92314         (Header File Substitutes, Function Substitutes,
92315         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92316         (Build robot for gnulib): Fix typo.
92318 2008-03-06  Bruno Haible  <bruno@clisp.org>
92320         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92321         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92323 2008-03-06  Bruno Haible  <bruno@clisp.org>
92325         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92326         * doc/gnulib.texi: Include it.
92328 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92330         * modules/func (License): Change license to unlimited; there was
92331         no LGPL parts in the module anyway.
92333 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92335         * modules/__func__: Renamed to modules/func.
92336         * modules/__func__-tests: Renamed to modules/func-tests.
92337         * tests/test-__func__.c: Renamed to tests/test-func.c.
92338         * m4/__func__.m4: Renamed to m4/func.m4.
92339         * doc/gnulib.texi (__func__): Section renamed to func.
92340         Suggested by Eric Blake <ebb9@byu.net>.
92342 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92344         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92345         about __func__.  Make example self-contained.  Suggested by Eric
92346         Blake <ebb9@byu.net>.
92348         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92349         Suggested by Eric Blake <ebb9@byu.net>.
92351 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92353         * modules/__func__: New file.
92354         * modules/__func__-tests: New file.
92355         * tests/test-__func__.c: New file.
92356         * m4/__func__.m4: New file.
92357         * doc/gnulib.texi (__func__): Document __func__ module.
92359 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92361         * modules/byteswap (License): Re-license as LGPLv2+.
92363 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92365         * doc/Makefile: Add pdf target.
92367 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92369         * modules/inline (License): Use 'unlimited', since there are only
92370         *.m4 files in this module.
92372 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92373             Bruno Haible  <bruno@clisp.org>
92375         Add support for HP C 7.1 on OpenVMS 8.3.
92376         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92378 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92380         Update VMS specifics.
92381         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92383 2008-03-02  Jim Meyering  <meyering@redhat.com>
92385         Remove the last dependency on the "free" module.
92386         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92387         Reported by Bob Proulx.
92389         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92391         Remove useless "if" tests before free.  Deprecate "free" module.
92392         * doc/posix-functions/free.texi: Mention that this
92393         module is no longer useful.
92394         * modules/free (Notice): Say this module is obsolete.
92395         * modules/readutmp (Depends-on): Remove free.
92396         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92397         * lib/putenv.c (putenv): Likewise.
92398         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92399         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92400         * tests/test-c-strcasestr.c (main): Likewise.
92401         * tests/test-c-strstr.c (main): Likewise.
92402         * tests/test-mbscasestr1.c (main): Likewise.
92403         * tests/test-mbscasestr2.c (main): Likewise.
92404         * tests/test-mbsstr1.c (main): Likewise.
92405         * tests/test-mbsstr2.c (main): Likewise.
92406         * tests/test-memmem.c (main): Likewise.
92407         * tests/test-strcasestr.c (main): Likewise.
92408         * tests/test-striconv.c (main): Likewise.
92409         * tests/test-striconveh.c (main): Likewise.
92410         * tests/test-striconveha.c (main): Likewise.
92411         * tests/test-strstr.c (main): Likewise.
92413         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92415         bootstrap: sync from coreutils again
92416         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92418 2008-03-01  Jim Meyering  <meyering@redhat.com>
92420         bootstrap: sync from coreutils
92421         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92422         also when the target doesn't exist.
92424 2008-03-01  Eric Blake  <ebb9@byu.net>
92426         Fix bugs in last patch.
92427         * lib/memchr2.c (memchr2): Fix typo.
92428         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92429         extension.
92430         Reported by Bruce Korb.
92432         New module 'memchr2'.
92433         * modules/memchr2: New file.
92434         * modules/memchr2-tests: Likewise.
92435         * lib/memchr2.h: Likewise.
92436         * lib/memchr2.c: Likewise, based on memchr.c.
92437         * tests/test-memchr2.c: New test.
92438         * MODULES.html.sh (String handling): Add memchr2.
92440 2008-02-29  Bruno Haible  <bruno@clisp.org>
92442         * modules/freadseek-tests: New file.
92443         * tests/test-freadseek.sh: New file.
92444         * tests/test-freadseek.c: New file.
92446         New module 'freadseek'.
92447         * modules/freadseek: New file.
92448         * lib/freadseek.h: New file.
92449         * lib/freadseek.c: New file.
92450         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92452 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92454         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92455         wydawca.
92457         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92458         program_invocation_name and program_invocation_short_name are
92459         present.
92461 2008-02-28  Bruno Haible  <bruno@clisp.org>
92463         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92464         * tests/test-freadptr.sh: Also test non-seekable stdin.
92466 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92468         * build-aux/bootstrap (source_base, m4_base)
92469         (doc_base, tests_base): New variables.
92470         (gnulib_tool_options): Do not hardcode base directories, use
92471         the above variables instead.
92473 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92475         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92477 2008-02-28  Bruno Haible  <bruno@clisp.org>
92479         * modules/freadptr-tests: New file.
92480         * tests/test-freadptr.sh: New file.
92481         * tests/test-freadptr.c: New file.
92483         New module 'freadptr'.
92484         * modules/freadptr: New file.
92485         * lib/freadptr.h: New file.
92486         * lib/freadptr.c: New file.
92487         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92489 2008-02-26  Karl Berry  <karl@freefriends.org>
92491         Sync from Libtool:
92492         * libltdl/argz.c (argz_add, argz_count): New functions.
92493         * libltdl/argz.in.h: Declare them.
92494         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92496 2008-02-22  Bruno Haible  <bruno@clisp.org>
92498         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92499         is a pointer type.  Needed for HP-UX 10.
92500         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92501         * doc/posix-functions/gmtime_r.texi: Likewise.
92502         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92504 2008-02-24  Bruno Haible  <bruno@clisp.org>
92506         * modules/environ-tests: New file.
92507         * tests/test-environ.c: New file.
92509         New module 'environ'.
92510         * modules/environ: New file.
92511         * lib/unistd.in.h (environ): New declaration.
92512         * m4/environ.m4: New file.
92513         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92514         after use.
92515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92516         HAVE_DECL_ENVIRON.
92517         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92518         HAVE_DECL_ENVIRON.
92519         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92520         wrong claim that 'environ' is missing on some systems.
92521         * modules/execute (Depends-on): Add environ.
92522         * lib/execute.c (environ): Remove fallback declaration.
92523         * modules/pipe (Depends-on): Add environ.
92524         * lib/pipe.c (environ): Remove fallback declaration.
92525         * modules/setenv (Depends-on): Add environ.
92526         * lib/setenv.c (environ): Remove fallback declaration.
92527         * modules/unsetenv (Depends-on): Add environ.
92528         * lib/unsetenv.c (environ): Remove fallback declaration.
92529         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92530         m4/environ.m4.
92531         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92532         (gl_PREREQ_UNSETENV): Likewise.
92534 2008-02-24  Bruno Haible  <bruno@clisp.org>
92536         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92538 2008-02-20  Bob Proulx  <bob@proulx.com>
92540         Enable use of older two part flavor 'git describe'.
92541         * build-aux/git-version-gen: If using the older two part flavor of
92542         git version then recreate the third part now present in the
92543         newer three part flavor of git describe.
92545 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92547         * lib/fts.c (fts_build): Typo correction to comment.
92549 2008-02-17  Bruno Haible  <bruno@clisp.org>
92551         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92552         generating no-op conflicts.
92554 2008-02-17  Bruno Haible  <bruno@clisp.org>
92556         Speed up by 10%.
92557         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92558         result_entries, rather than an index-based loop.
92560 2008-02-17  Bruno Haible  <bruno@clisp.org>
92562         Speed up by 25%.
92563         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92564         'hashcode_cached'.
92565         (entry_create): New function.
92566         (entry_hashcode): Use the cached hashcode if possible.
92567         (read_changelog_file, try_split_merged_entry): Use entry_create.
92569 2008-02-17  Bruno Haible  <bruno@clisp.org>
92571         Speed up from O(n^2) to O(n) for long ChangeLog files.
92572         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92573         (read_changelog_file): Change implementation of entries_reversed list
92574         to rbtreehash.
92575         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92577 2008-02-17  Bruno Haible  <bruno@clisp.org>
92579         New option --split-merged-entry.
92580         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92581         (find_paragraph_end, try_split_merged_entry): New functions.
92582         (long_options): Add option --split-merged-entry.
92583         (usage): Document option --split-merged-entry.
92584         (main): Implement option --split-merged-entry.
92585         Reported by Eric Blake.
92587 2008-02-17  Bruno Haible  <bruno@clisp.org>
92589         * lib/git-merge-changelog.c: Include c-strstr.h.
92590         (main): Support the "git pull --rebase" situation.
92591         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92592         Reported by Eric Blake.
92594 2008-02-16  Eric Blake  <ebb9@byu.net>
92596         Avoid doubling \ in common case of "c-maybe" quoting style.
92597         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92598         eliding outer quotes.
92599         * lib/quotearg.h: Document this.
92600         * tests/test-quotearg.c (result_strings, inputs, results_g)
92601         (flag_results, locale_results): Test it by adding a new string to
92602         each test group.
92603         (compare_strings): Test new string.
92605 2008-02-13  Eric Blake  <ebb9@byu.net>
92607         Avoid trigraph quoting in default output.
92608         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92609         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92610         unless explicitly requested.
92611         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92613 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92615         Don't rely on signed integer overflowing to negative value.
92616         * lib/getugroups.c (getugroups): Include <limits.h>.
92617         Instead, compare against INT_MAX, and increment only if the test passes.
92619 2008-02-13  Jim Meyering  <meyering@redhat.com>
92620         and Eric Blake  <ebb9@byu.net>
92622         Avoid shadowing warning and compile errors on Linux.
92623         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92624         forwarding macros on Linux.
92625         (dcgettext): Define a stub, for Linux.
92626         (results_g, main): Avoid warnings.
92628 2008-02-12  Eric Blake  <ebb9@byu.net>
92630         Silence warning in last patch.
92631         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92633         Quotearg part 4: add tests, fix c-maybe colon quoting.
92634         * lib/quotearg.h: Improve documentation.
92635         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92636         escapes when adding outer quotes.  When quoting trigraphs, use
92637         valid C notation.  When quoting NUL, omit extra characters if next
92638         character is not digit.  Alter prototype.
92639         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92640         callers.
92641         * modules/quotearg-tests: New module.
92642         * tests/test-quotearg.c: New test.
92644 2008-02-07  Eric Blake  <ebb9@byu.net>
92646         Quotearg part 3: add flag to control outer quote elision.
92647         * lib/quotearg.h (c_maybe_quoting_style): New style.
92648         (enum quoting_flags): Better documentation of flags.
92649         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92650         c-maybe style.
92651         (quotearg_buffer_restyled): Handle new flag to elide outer
92652         quotes.
92654         Quotearg part 2: add flag that can control NUL elision.
92655         * lib/quotearg.h (set_quoting_flags): New prototype.
92656         * lib/quotearg.c (struct quoting_options): Add flag field.
92657         (set_quoting_flags): New function.
92658         (quotearg_buffer_restyled): Add flags parameter.
92659         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92660         (quotearg_n_options): Set the flag, since length cannot be
92661         returned.
92662         (quoting_options_from_style): Default flags correctly.
92664         Quotearg part 1: more wrappers, restore quotearg_char state.
92665         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92666         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92667         (quotearg_colon_mem): New wrappers.
92668         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92669         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92670         functions.
92671         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92672         (quotearg_colon_mem): New functions.
92674 2008-02-11  Bruno Haible  <bruno@clisp.org>
92676         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92677         library in the current directory: it does not work with parallel make.
92678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92680 2008-02-11  Bruno Haible  <bruno@clisp.org>
92682         * .gitattributes: New file.
92684 2008-02-11  Jim Meyering  <meyering@redhat.com>
92686         useless-if-before-free: Fix reversed exit values.
92687         * build-aux/useless-if-before-free: Use correct values
92688         for EXIT_MATCH and EXIT_NO_MATCH.
92690         * build-aux/useless-if-before-free: Close stdout carefully.
92692 2008-02-10  Bruno Haible  <bruno@clisp.org>
92694         New module 'git-merge-changelog'.
92695         * modules/git-merge-changelog: New file.
92696         * lib/git-merge-changelog.c: New file.
92698 2008-02-10  Jim Meyering  <meyering@redhat.com>
92700         useless-if-before-free: New option: --list (-l).
92702         useless-if-before-free: Don't exit immediately upon open failure.
92703         * build-aux/useless-if-before-free: Exit 2 for errors.
92704         Upon failure to open a file, don't exit immediately.
92705         Rather, just warn and continue with any remaining files.
92707 2008-02-10  Bruno Haible  <bruno@clisp.org>
92709         New abstract list operation 'node_set_value'.
92710         * lib/gl_list.h (gl_list_node_set_value): New function.
92711         (struct gl_list_implementation): New field node_set_value.
92712         * lib/gl_list.c (gl_list_node_set_value): New function.
92713         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92714         (gl_array_list_implementation): Update.
92715         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92716         (gl_carray_list_implementation): Update.
92717         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92718         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92719         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92720         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
92721         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92722         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92723         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92724         Update.
92725         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92726         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
92727         (gl_sublist_list_implementation): Update.
92729 2008-02-10  Bruno Haible  <bruno@clisp.org>
92731         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
92732         Needed when ELEMENT is #defined to 'some_type *'.
92734 2008-02-10  Jim Meyering  <meyering@redhat.com>
92736         New script and module: useless-if-before-free
92737         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
92738         * build-aux/useless-if-before-free: New file.
92739         * modules/useless-if-before-free: New file.
92741         * build-aux/gitlog-to-changelog: Use committer date, not author date.
92743         xstrtol_error: Fix typo.
92744         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
92745         s/exit_failure/exit_status/.
92747 2008-02-09  Jim Meyering  <meyering@redhat.com>
92749         New script and module: gitlog-to-changelog
92750         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
92751         * modules/gitlog-to-changelog: New file.
92752         * build-aux/gitlog-to-changelog: New file.
92754 2008-02-08  Jim Meyering  <meyering@redhat.com>
92756         Avoid two "parameter unused" warnings.
92757         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
92758         Mark "st" as used.
92760         Use "git COMMAND", not "git-COMMAND".
92761         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
92762         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
92763         * build-aux/git-version-gen: Use "git status", not "git-status".
92765 2008-02-07  Bruno Haible  <bruno@clisp.org>
92767         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
92768         Avoids a crash on Windows Vista.
92769         Reported by Adam Strzelecki <ono@java.pl> via
92770         Simon Josefsson <simon@josefsson.org>.
92772 2008-02-06  Bruno Haible  <bruno@clisp.org>
92774         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
92775         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
92776         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
92777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
92778         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
92779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
92780         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
92781         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
92782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
92783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
92784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
92785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
92786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
92787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
92789         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
92790         left-adjust flag.
92791         * tests/test-snprintf-posix.h (test_function): Likewise.
92792         * tests/test-sprintf-posix.h (test_function): Likewise.
92793         * tests/test-vasprintf-posix.c (test_function): Likewise.
92794         * doc/posix-functions/fprintf.texi: Update.
92795         * doc/posix-functions/printf.texi: Update.
92796         * doc/posix-functions/snprintf.texi: Update.
92797         * doc/posix-functions/sprintf.texi: Update.
92798         * doc/posix-functions/vfprintf.texi: Update.
92799         * doc/posix-functions/vprintf.texi: Update.
92800         * doc/posix-functions/vsnprintf.texi: Update.
92801         * doc/posix-functions/vsprintf.texi: Update.
92802         Reported by Peter Fales <psfales@alcatel-lucent.com>.
92804 2008-02-06  Bruno Haible  <bruno@clisp.org>
92806         Fix bug introduced on 2008-01-26.
92807         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
92809 2008-02-06  Bruno Haible  <bruno@clisp.org>
92811         Fix bug introduced on 2007-06-10.
92812         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
92813         !NEED_PRINTF_FLAG_ZERO.
92815 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
92817         getloadavg: use libperfstat on AIX5
92818         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
92820 2008-02-03  Bruno Haible  <bruno@clisp.org>
92822         * lib/diffseq.h: Add comments about required #includes.
92823         Reported by Michael Biggs <gnulib@doubleplum.net>.
92825 2008-02-01  Bruno Haible  <bruno@clisp.org>
92827         * users.txt: Add gnuit.
92829 2008-01-31  Bruno Haible  <bruno@clisp.org>
92831         * lib/md4.c (set_uint32): Mark as inline.
92832         * lib/md5.c (set_uint32): Likewise.
92833         * lib/sha1.c (set_uint32): Likewise.
92834         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
92835         * m4/md5.m4 (gl_MD5): Likewise.
92836         * m4/sha1.m4 (gl_SHA1): Likewise.
92838 2008-01-31  Jim Meyering  <meyering@redhat.com>
92840         Use "sizeof VAR", rather than a literal "4".
92841         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
92842         * lib/md4.c (md4_read_ctx): Likewise.
92843         * lib/sha1.c (sha1_read_ctx): Likewise.
92845 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92847         * tests/test-sha1.c: New file, based on test-md5.c.
92849         * modules/crypto/sha1-tests: New file.
92851 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92853         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
92855 2008-01-31  Jim Meyering  <meyering@redhat.com>
92857         Prefer "sizeof v" over the equivalent "4".
92858         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
92859         * lib/md5.c (set_uint32): Likewise.
92860         * lib/sha1.c (set_uint32): Likewise.
92862 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92864         * lib/sha1.c (set_uint32): Mark function as static.
92866 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92868         md2: clarify comments to say that alignment is not required.
92869         * lib/md2.h: Remove warning about alignment in comment.
92870         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
92871         never been required.
92873 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92875         md4: adapt alignment constraint fix from sha1.
92876         * lib/md4.c (set_uint32): New function, from sha1.c
92877         (md4_read_ctx): Use it.
92878         (md4_finish_ctx): Doc fix.
92879         * lib/md4.h: Doc fix.
92881 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92883         md5: adapt alignment constraint fix from sha1.
92884         * lib/md5.c (set_uint32): New function, from sha1.c
92885         (md5_read_ctx): Use it.
92886         (md5_finish_ctx): Doc fix.
92887         * lib/md5.h: Doc fix.
92889 2008-01-30  Peter Palfrader  <weasel@debian.org>
92891         sha1: remove the result buffer alignment constraint
92892         * lib/sha1.c (set_uint32): New function.
92893         (sha1_read_ctx): Rewrite to remove the result buffer alignment
92894         constraint.
92895         (sha1_finish_ctx): Remove comment warning about alignment constraint.
92896         * lib/sha1.h: Likewise.
92898 2008-01-30  Andreas Schwab  <schwab@suse.de>
92899             Bruno Haible  <bruno@clisp.org>
92901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
92902         correct definition of LDBL_MIN_EXP.
92904 2008-01-30  Karl Berry  <karl@gnu.org>
92906         * config/srclist-update: try to preserve x bit on updates.
92907         * config/srclistvars.sh: update for karl.
92909 2008-01-29  Jim Meyering  <meyering@redhat.com>
92911         vasnprintf.c: Avoid warning about unused label
92912         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
92913         "overflow" label definition and associated code with the
92914         same cpp condition that guards the sole use of that label.
92916 2008-01-26  Bruno Haible  <bruno@clisp.org>
92918         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
92919         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
92920         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
92921         * lib/isnanl-nolibm.h (isnanl): Likewise.
92922         Reported by Paul Eggert <eggert@cs.ucla.edu>.
92924 2008-01-26  Bruno Haible  <bruno@clisp.org>
92926         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
92927         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
92929 2008-01-26  Bruno Haible  <bruno@clisp.org>
92931         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
92932         GCC >= 4.0 built-in.
92933         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
92935 2008-01-26  Bruno Haible  <bruno@clisp.org>
92937         Rename isnan, applicable to 'double' only, to isnand.
92938         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
92939         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
92940         (configure.ac): Update.
92941         (Include): Replace "isnan.h" with "isnand.h".
92942         * m4/isnand.m4: Renamed from m4/isnan.m4.
92943         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
92944         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
92945         instead of isnan.c.
92946         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
92947         instead of HAVE_ISNAN_IN_LIBC.
92948         (isnand): Renamed from isnan.
92949         * lib/isnand.c: New file.
92950         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
92951         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
92952         (Makefile.am): Update.
92953         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
92954         Include isnand.h instead of isnan.h.
92955         (main): Test isnand instead of isnan.
92956         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
92957         isnan-nolibm.
92958         * modules/frexp (Depends-on): Likewise.
92959         * modules/frexp-tests (Depends-on): Likewise.
92960         * modules/frexp-nolibm (Depends-on): Likewise.
92961         * modules/frexp-nolibm-tests (Depends-on): Likewise.
92962         * modules/isfinite (Depends-on): Likewise.
92963         * modules/round-tests (Depends-on): Likewise.
92964         * modules/signbit (Depends-on): Likewise.
92965         * modules/signbit-tests (Depends-on): Likewise.
92966         * modules/snprintf-posix (Depends-on): Likewise.
92967         * modules/sprintf-posix (Depends-on): Likewise.
92968         * modules/trunc-tests (Depends-on): Likewise.
92969         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92972         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92973         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92974         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92976         * modules/vasnprintf-posix (Depends-on): Likewise.
92977         * modules/vasprintf-posix (Depends-on): Likewise.
92978         * modules/vfprintf-posix (Depends-on): Likewise.
92979         * modules/vsnprintf-posix (Depends-on): Likewise.
92980         * modules/vsprintf-posix (Depends-on): Likewise.
92981         * lib/frexp.c: Include isnand.h instead of isnan.h.
92982         (ISNAN): Set to isnand instead of isnan.
92983         * lib/isfinite.c: Include isnand.h instead of isnan.h.
92984         (gl_isfinited): Use isnand instead of isnan.
92985         * lib/signbitd.c: Include isnand.h instead of isnan.h.
92986         (gl_signbitd): Use isnand instead of isnan.
92987         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
92988         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
92989         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
92990         (main): Use isnand instead of isnan.
92991         * tests/test-round1.c: Include isnand.h.
92992         (main): Use isnand instead of isnan.
92993         * tests/test-round2.c: Include isnand.h instead of isnan.h.
92994         (ISNAN): Set to isnand instead of isnan.
92995         * tests/test-trunc1.c: Include isnand.h.
92996         (main): Use isnand instead of isnan.
92997         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
92998         (equal): Use isnand instead of isnan.
92999         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93000         isnand-nolibm.
93001         * NEWS: Mention the change.
93003 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93004             Bruno Haible  <bruno@clisp.org>
93006         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93007         the GCC builtins for signbits are present and set
93008         REPLACE_SIGNBIT_USING_GCC if so.
93009         * lib/math.in.h (signbit): Define using GCC builtins if
93010         REPLACE_SIGNBIT_USING_GCC is set.
93011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93012         REPLACE_SIGNBIT_USING_GCC.
93013         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93015 2008-01-25  Jim Meyering  <meyering@redhat.com>
93017         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93018         * lib/poll.c: Include <config.h>, not "config.h".
93019         * tests/test-getaddrinfo.c: Likewise.
93021 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93023         * modules/sockets-tests: New file.
93025 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93027         * modules/sockets: New module, can be used to call WSA_Startup and
93028         WSA_Cleanup when needed.
93030         * lib/sockets.h, lib/sockets.c: New files.
93032         * m4/sockets.m4: New file.
93034         * tests/test-sockets.c: New file.
93036 2008-01-19  Bruno Haible  <bruno@clisp.org>
93038         * doc/posix-headers: Renamed from doc/headers.
93039         * doc/posix-functions: Renamed from doc/functions.
93040         * doc/gnulib.texi: Update.
93042 2008-01-19  Bruno Haible  <bruno@clisp.org>
93044         * doc/glibc-functions/strcasestr.texi: Include contents of
93045         doc/functions/strcasestr.texi, fixing the list of platforms.
93046         * doc/functions/strcasestr.texi: Remove file.
93048 2008-01-19  Bruno Haible  <bruno@clisp.org>
93050         * doc/glibc-functions/memmem.texi: Include contents of
93051         doc/functions/memmem.texi.
93052         * doc/functions/memmem.texi: Remove file.
93054 2008-01-18  Bruno Haible  <bruno@clisp.org>
93056         * doc/glibc-functions/*.texi: New files.
93057         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93058         to use the new files.
93060 2008-01-17  Bruno Haible  <bruno@clisp.org>
93062         * tests/test-gethostname.c (main): Fix printf statement.
93064 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93066         * modules/gethostname-tests: New file.
93068         * tests/test-gethostname.c: New file.
93070 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93072         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93073         used by the UNAME case.  Reported by Bruno Haible
93074         <bruno@clisp.org>.
93076 2008-01-17  Eric Blake  <ebb9@byu.net>
93078         Convert c-strcasestr to be more efficient.
93079         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93080         (Depends-on): Add c-strcase, remove malloca, strnlen.
93081         * tests/test-c-strcasestr.c (main): Enhance test.
93082         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93084 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93086         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93087         Use it in creating po/Makevars.
93089 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93091         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93092         Applications that requires it should initialize libgcrypt
93093         manually.
93095 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93097         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93099 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93101         Fix problem with getdate on mingw32 reported by Simon Josefsson
93102         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93103         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93104         tzname", when deciding whether to declare tzname.
93105         * lib/strftime.c (tzname): Likewise.
93107 2008-01-15  Bruno Haible  <bruno@clisp.org>
93109         Work around a MacOS X 10.5 bug in frexpl().
93110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93111         * doc/functions/frexpl.texi: Document the bug.
93112         Reported by Elias Pipping <pipping@gentoo.org>.
93114 2008-01-14  Eric Blake  <ebb9@byu.net>
93116         Touch up previous patch.
93117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93118         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93120         Convert strcasestr module to use Two-Way algorithm.
93121         * modules/strcasestr-simple: New module, based on the old
93122         strcasestr, but with Two-Way rather than KMP.
93123         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93124         * lib/string.in.h (rpl_strcasestr): Declare.
93125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93126         performance.
93127         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93128         * modules/string (Makefile.am): Support strcasestr.
93129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93130         * modules/strcasestr-tests (Depends-on): Check for alarm.
93131         * tests/test-strcasestr.c: Augment test.
93132         * lib/str-two-way.h: Clean up stray macro.
93133         * NEWS: Document new module.
93134         * MODULES.html.sh (string handling): Likewise.
93135         * doc/functions/strcasestr.texi: New file.
93136         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93137         here, since it is not a POSIX function.
93139 2008-01-14  Colin Watson  <cjwatson@debian.org>
93140             Bruno Haible  <bruno@clisp.org>
93142         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93143         works fine; if not, set REPLACE_STRSIGNAL.
93144         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93146         REPLACE_STRSIGNAL.
93147         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93148         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93149         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93151 2008-01-14  Bruno Haible  <bruno@clisp.org>
93153         * modules/strsignal (Include): Change to <string.h>.
93155 2008-01-14  Colin Watson  <cjwatson@debian.org>
93157         * modules/argp (Notice): Add a notice recommending to change
93158         XGETTEXT_OPTIONS.
93159         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93161 2008-01-13  Colin Watson  <cjwatson@debian.org>
93163         * modules/strsignal-tests: New file.
93164         * tests/test-strsignal.c: New file.
93166         * lib/strsignal.c: New file, from glibc with modifications.
93167         * lib/siglist.h: New file, from glibc with modifications.
93168         * lib/string.in.h (strsignal): New declaration.
93169         * m4/strsignal.m4: New file.
93170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93171         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93172         * modules/strsignal: New file.
93173         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93174         HAVE_DECL_STRSIGNAL.
93176 2008-01-13  Bruno Haible  <bruno@clisp.org>
93178         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93179         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93180         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93181         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93183 2008-01-13  Bruno Haible  <bruno@clisp.org>
93185         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93186         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93187         * lib/argp.h (__attribute__): Likewise.
93188         * lib/c-stack.c (__attribute__): Likewise.
93189         * lib/error.h (__attribute__): Likewise.
93190         * lib/fts.c (__attribute__): Likewise.
93191         * lib/openat.h (__attribute__): Likewise.
93192         * lib/stdio.in.h (__attribute__): Likewise.
93193         * lib/string.in.h (__attribute__): Likewise.
93194         * lib/utimens.c (__attribute__): Likewise.
93195         * lib/vasnprintf.h (__attribute__): Likewise.
93196         * lib/xalloc.h (__attribute__): Likewise.
93197         * lib/xprintf.h (__attribute__): Likewise.
93198         * lib/xstrtol.h (__attribute__): Likewise.
93199         * lib/xvasprintf.h (__attribute__): Likewise.
93201 2008-01-12  Bruno Haible  <bruno@clisp.org>
93203         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93204         * doc/glibc-headers/a.out.texi: New file.
93205         * doc/glibc-headers/aliases.texi: New file.
93206         * doc/glibc-headers/alloca.texi: New file.
93207         * doc/glibc-headers/ar.texi: New file.
93208         * doc/glibc-headers/argp.texi: New file.
93209         * doc/glibc-headers/argz.texi: New file.
93210         * doc/glibc-headers/byteswap.texi: New file.
93211         * doc/glibc-headers/crypt.texi: New file.
93212         * doc/glibc-headers/endian.texi: New file.
93213         * doc/glibc-headers/envz.texi: New file.
93214         * doc/glibc-headers/err.texi: New file.
93215         * doc/glibc-headers/error.texi: New file.
93216         * doc/glibc-headers/execinfo.texi: New file.
93217         * doc/glibc-headers/fpu_control.texi: New file.
93218         * doc/glibc-headers/fstab.texi: New file.
93219         * doc/glibc-headers/fts.texi: New file.
93220         * doc/glibc-headers/getopt.texi: New file.
93221         * doc/glibc-headers/ieee754.texi: New file.
93222         * doc/glibc-headers/ifaddrs.texi: New file.
93223         * doc/glibc-headers/libintl.texi: New file.
93224         * doc/glibc-headers/mcheck.texi: New file.
93225         * doc/glibc-headers/mntent.texi: New file.
93226         * doc/glibc-headers/obstack.texi: New file.
93227         * doc/glibc-headers/paths.texi: New file.
93228         * doc/glibc-headers/printf.texi: New file.
93229         * doc/glibc-headers/pty.texi: New file.
93230         * doc/glibc-headers/resolv.texi: New file.
93231         * doc/glibc-headers/shadow.texi: New file.
93232         * doc/glibc-headers/sysexits.texi: New file.
93233         * doc/glibc-headers/ttyent.texi: New file.
93235 2008-01-12  Jim Meyering  <meyering@redhat.com>
93237         announce-gen: emit Gnulib's git-based version string.
93238         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93239         New option --gnulib-version=V, where V is expected to be
93240         the output of running git describe in the gnulib directory.
93241         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93242         not useful, and plan to stop publishing an xdelta file with each
93243         coreutils release.
93245         * build-aux/announce-gen: Also check for lzma-compressed files.
93247 2008-01-11  Bruno Haible  <bruno@clisp.org>
93249         * tests/test-memmem.c (main): Increase maximum allowed time.
93250         * tests/test-strstr.c (main): Likewise.
93252 2008-01-11  Bruno Haible  <bruno@clisp.org>
93254         * doc/functions/memmem.texi: Add more precisions about platforms.
93255         * doc/functions/strstr.texi: Likewise.
93257 2008-01-10  Eric Blake  <ebb9@byu.net>
93259         * m4/strstr.m4: Delete cruft from copy-n-paste.
93260         Reported by Bruno Haible.
93262 2008-01-10  Bruno Haible  <bruno@clisp.org>
93264         Make c-strstr rely on strstr.
93265         * lib/c-strstr.c: Don't include str-kmp.h.
93266         (c_strstr): Define in terms of strstr.
93267         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93268         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93270 2008-01-10  Bruno Haible  <bruno@clisp.org>
93272         * doc/gnulib.texi (String Functions in C Locale): New section.
93273         * doc/c-ctype.texi: New file.
93274         * doc/c-strcase.texi: New file.
93275         * doc/c-strcaseeq.texi: New file.
93276         * doc/c-strcasestr.texi: New file.
93277         * doc/c-strstr.texi: New file.
93278         * doc/c-strtod.texi: New file.
93279         * doc/c-strtold.texi: New file.
93281 2008-01-10  Eric Blake  <ebb9@byu.net>
93283         * lib/relocatable.h: Fix a comment.
93285 2008-01-10  Eric Blake  <ebb9@byu.net>
93287         Share two-way algorithm.
93288         * lib/str-two-way.h: New file, merged from...
93289         * lib/memmem.c: ...here...
93290         * lib/strstr.c: ...and here.
93291         * modules/memmem (Files): Use it.
93292         * modules/strstr (Files): Likewise.
93294         Avoid quadratic strstr implementations.
93295         * lib/strstr.c: New file.
93296         * m4/strstr.m4: Likewise.
93297         * modules/strstr: Likewise.
93298         * modules/strstr-tests: Likewise.
93299         * tests/test-strstr.c: Likewise.
93300         * lib/string.in.h (rpl_strstr): Declare.
93301         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93303         * modules/string (Makefile.am): Likewise.
93304         * MODULES.html.sh (string handling): Mention new module.
93305         * doc/functions/strstr.texi (strstr): Document the bug.
93307 2008-01-10  Bruno Haible  <bruno@clisp.org>
93309         * lib/relocatable.h (relocate): State whether result is freshly
93310         allocated or not.
93311         * lib/relocatable.c (relocate): Return a freshly allocated string
93312         instead of a pointer to a privately held string.
93313         Reported by Sylvain Beucler <beuc@gnu.org>.
93315 2008-01-10  Colin Watson  <cjwatson@debian.org>
93317         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93318         s/S_ISNLK/S_ISLNK/.
93320 2008-01-09  Bruno Haible  <bruno@clisp.org>
93322         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93323         and other files.
93324         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93325         if it's only a guess.
93326         * modules/memmem: Simplify by depending on memmem-simple.
93328 2008-01-09  Bruno Haible  <bruno@clisp.org>
93330         Work around OpenBSD 4.0 tdelete() bug.
93331         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93332         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93333         macros and don't redefine the enum values.
93334         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93335         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93336         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93338 2008-01-09  Bruno Haible  <bruno@clisp.org>
93340         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93341         (main): Don't perform the tests if setlocale did not install a UTF-8
93342         locale. Needed on OpenBSD 4.0.
93343         * modules/wcwidth-tests (Depends-on): Add localcharset.
93345 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93347         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93348         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93349         * NEWS: announce this.
93350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93352 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93353         and Eric Blake  <ebb9@byu.net>
93355         Add memmem-simple module.
93356         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93357         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93358         * modules/memmem-simple: New file.
93359         * modules/memmem (Description): Tweak.
93360         * MODULES.html.sh (string handling): Mention new module.
93361         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93362         addressed by memmem-simple.
93363         * NEWS: Document the difference.
93365 2008-01-09  Eric Blake  <ebb9@byu.net>
93367         Give gcc some memmem optimization hints.
93368         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93369         (strcasestr): Declare as pure.
93370         * modules/memmem (Maintainer): Claim my implementation.
93372 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93374         Support AIX 6.1 and higher.
93375         * build-aux/config.libpath: Likewise.
93376         * build-aux/config.rpath: Likewise.
93378 2008-01-08  Jim Meyering  <meyering@redhat.com>
93379             Bruno Haible  <bruno@clisp.org>
93381         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93382         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93383         Reported by Peter Fales in
93384         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93386 2008-01-08  Bruno Haible  <bruno@clisp.org>
93388         * modules/unictype/category-of (Depends-on): Add
93389         unictype/category-none.
93390         * modules/unictype/category-and-tests (Depends-on): Add
93391         unictype/category-{L,N,Lu,Nd}.
93392         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93393         * modules/unictype/category-or-tests (Depends-on): Add
93394         unictype/category-{L,N}.
93395         * modules/unictype/category-name-tests (Depends-on): Add
93396         unictype/category-{Z,Nl}.
93397         Reported by Simon Josefsson.
93399 2008-01-08  Bruno Haible  <bruno@clisp.org>
93401         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93402         convention better.
93403         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93404         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93405         Reported by Peter Miller <millerp@canb.auug.org.au>.
93407 2008-01-08  Eric Blake  <ebb9@byu.net>
93409         Rewrite memmem to guarantee linear complexity without malloc.
93410         * lib/memmem.c (memmem): Use Two-Way rather than
93411         Knuth-Morris-Pratt, to allow O(1) space usage.
93412         (critical_factorization, two_way_short_needle)
93413         (two_way_long_needle): New functions.
93414         (knuth_morris_pratt): Delete.
93415         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93416         Add stdint.
93417         * tests/test-memmem.c (main): Add tests for periodic needle and
93418         sublinear performance.
93419         * doc/functions/memmem.texi (memmem): Document other deficiencies
93420         in cygwin and older glibc.
93422 2008-01-08  Bruno Haible  <bruno@clisp.org>
93424         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93425         augmentation.
93427 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93429         Add a configure time option: --disable-acl.
93430         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93431         AC_ARG_ENABLE(acl).
93433 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93435         * tests/test-localename.c: Don't include obsolete "setenv.h".
93437         * modules/localename-tests (Depends-on): Need unsetenv.
93439 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93441         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93443 2008-01-06  Colin Watson  <cjwatson@debian.org>
93445         * users.txt: Add man-db.
93447 2008-01-07  Bruno Haible  <bruno@clisp.org>
93449         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93450         previous section name.
93452 2008-01-07  Bruno Haible  <bruno@clisp.org>
93454         * lib/progname.c (set_program_name): Don't strip off a leading
93455         "lt-" prefix outside a .libs directory.
93456         Suggested by Paul Eggert.
93458 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93459             Bruno Haible  <bruno@clisp.org>
93461         Improve memory cleanup in 'relocatable' module.
93462         * lib/relocatable.h (compute_curr_prefix): Change return type to
93463         'char *'.
93464         * lib/relocatable.c (compute_curr_prefix): Change return type to
93465         'char *'. Free curr_installdir after use.
93466         (relocate): Free curr_prefix_better after use.
93467         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93469 2008-01-01  Bruno Haible  <bruno@clisp.org>
93471         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93472         failure on older glibc systems.
93473         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93475 2008-01-05  Eric Blake  <ebb9@byu.net>
93477         Avoid quadratic system memmem.
93478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93479         Reported by Ralf Wildenhues.
93481         Fix memmem test for mingw.
93482         * modules/memmem-tests (configure.ac): Check for alarm.
93483         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93484         it.
93485         * doc/functions/memmem.texi: New file.
93486         * doc/gnulib.texi (Function Substitutes): Add memmem.
93487         Reported by Bruno Haible.
93489 2008-01-04  Bruno Haible  <bruno@clisp.org>
93491         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93492         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93493         gl_HEADER_STRING_H_DEFAULTS.
93495 2008-01-04  Eric Blake  <ebb9@byu.net>
93497         Shorten duration of memmem test.
93498         * tests/test-memmem.c (main): Use alarm to declare failure if test
93499         is taking too long.
93500         Reported by Ralf Wildenhues.
93502 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93504         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93505         string, needed by strerror.
93507 2008-01-03  Colin Watson  <cjwatson@debian.org>
93508             Bruno Haible  <bruno@clisp.org>
93510         * doc/gnulib-tool.texi (Localization): New section.
93512 2008-01-02  Bruno Haible  <bruno@clisp.org>
93514         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93515         variables to 'unsigned char *' type.
93516         Reported by Paul Eggert.
93518 2008-01-02  Jim Meyering  <jim@meyering.net>
93520         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93522 2007-12-31  Jim Meyering  <jim@meyering.net>
93524         Avoid use of private FTS type name.
93525         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93527 2007-12-30  Karl Berry  <karl@gnu.org>
93529         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93530         work around defect in Texinfo and/or the standalone Info browser.
93532 2007-12-30  Bruno Haible  <bruno@clisp.org>
93534         Unify 5 copies of the KMP code.
93535         * lib/str-kmp.h: New file.
93536         * lib/c-strcasestr.c: Include str-kmp.h.
93537         (knuth_morris_pratt): Remove function.
93538         (c_strcasestr): Update.
93539         * lib/c-strstr.c: Include str-kmp.h.
93540         (knuth_morris_pratt): Remove function.
93541         (c_strcasestr): Update.
93542         * lib/mbscasestr.c: Include str-kmp.h.
93543         (knuth_morris_pratt_unibyte): Remove function.
93544         * lib/mbsstr.c: Include str-kmp.h.
93545         (knuth_morris_pratt_unibyte): Remove function.
93546         * lib/strcasestr.c: Include str-kmp.h.
93547         (knuth_morris_pratt): Remove function.
93548         (strcasestr): Update.
93549         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93550         * modules/c-strstr (Files): Likewise.
93551         * modules/mbscasestr (Files): Likewise.
93552         * modules/mbsstr (Files): Likewise.
93553         * modules/strcasestr (Files): Likewise.
93554         Suggested by Paul Eggert.
93556 2007-12-30  Bruno Haible  <bruno@clisp.org>
93558         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93559         defined.
93561 2007-12-30  Bruno Haible  <bruno@clisp.org>
93563         * lib/xmalloca.h: Include xalloc.h.
93564         (xnmalloca): New macro.
93566 2007-12-30  Bruno Haible  <bruno@clisp.org>
93568         * lib/malloca.h (nmalloca): New macro.
93569         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93570         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93571         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93572         knuth_morris_pratt_multibyte): Likewise.
93573         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93574         knuth_morris_pratt_multibyte): Likewise.
93575         * lib/memmem.c (knuth_morris_pratt): Likewise.
93576         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93578 2007-12-25  Bruno Haible  <bruno@clisp.org>
93580         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93581         * lib/glob.c: Don't include openat.h.
93582         (link_exists2_p): Add back the code that deals with the
93583         !GLOB_ALTDIRFUNC case.
93584         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93585         let it do the filename concatenation.
93586         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93587         * modules/glob (Depends-on): Remove openat.
93589 2007-12-31  Bruno Haible  <bruno@clisp.org>
93591         * modules/dirfd (License): Change to LGPLv2+.
93592         Approved by Jim Meyering.
93594 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93596         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93597         when multiplying M by sizeof (size_t).
93599 2007-12-10  Martin Lambers  <marlam@marlam.de>
93601         Override getpagesize on mingw.
93602         * lib/getpagesize.c: New file.
93603         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93604         * modules/getpagesize (Files): Add lib/getpagesize.c.
93605         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93607         REPLACE_GETPAGESIZE.
93608         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93610 2007-12-25  Bruno Haible  <bruno@clisp.org>
93612         * modules/localcharset (Notice): New field.
93613         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93614         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93616 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93617             Bruno Haible  <bruno@clisp.org>
93619         Avoid using the syntax symbol() in formatted documentation.
93620         * MODULES.html.sh (func_module): When replacing symbol() with a
93621         hyperlink, remove the parentheses. Show an error if some remain.
93622         Recognize and render the '...' syntax.
93623         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93624         Rework. Add paragraph about GCC's inlining.
93625         * doc/alloca.texi: Likewise.
93626         * doc/error.texi: Remove parentheses from symbol reference.
93627         * doc/gnulib-intro.texi: Likewise.
93628         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93629         * modules/fnmatch (Description): Reword to say "the ... function".
93630         * modules/full-read (Description): Likewise.
93631         * modules/full-write (Description): Likewise.
93632         * modules/safe-read (Description): Likewise.
93633         * modules/safe-write (Description): Likewise.
93634         * modules/strchrnul (Description): Likewise.
93635         * modules/trim (Description): Likewise.
93636         * modules/error (Description): Remove parentheses from symbol
93637         references.
93638         * modules/verror (Description): Likewise.
93639         Reported by Karl Berry.
93641 2007-12-25  Bruno Haible  <bruno@clisp.org>
93643         Fixup after 2007-10-16 commit.
93644         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93646 2007-12-24  Bruno Haible  <bruno@clisp.org>
93648         Make --enable-relocatable work with DESTDIR.
93649         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93650         to compute installdir from destprog.
93651         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93652         also set the RELOC_DESTDIR variable.
93653         Reported by Левашев Иван <octagram@bluebottle.com>.
93655 2007-12-24  Bruno Haible  <bruno@clisp.org>
93657         Fix link error due to xalloc_die().
93658         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93659         of xreadlink.
93660         * lib/relocwrapper.c: Update comments.
93661         * build-aux/install-reloc: Remove xreadlink.c from file list.
93662         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93663         xreadlink.c.
93664         Reported by Левашев Иван <octagram@bluebottle.com>.
93666 2007-12-24  Bruno Haible  <bruno@clisp.org>
93668         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93669         * lib/setenv.h: Remove file.
93670         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93671         lib/setenv.h.
93672         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93673         (Depends-on): Add stdlib.
93674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93675         gl_FUNC_UNSETENV.
93676         (Include): Replace setenv.h with <stdlib.h>.
93677         * modules/unsetenv: New file.
93678         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93679         * lib/unsetenv.c: Include <stdlib.h> first.
93680         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93681         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93682         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93683         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93684         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93685         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93687         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93688         * doc/functions/unsetenv.texi: Update.
93689         * modules/xsetenv (Depends-on): Add unsetenv.
93690         * modules/getdate (Depends-on): Likewise.
93691         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93692         * lib/xsetenv.c: Don't include setenv.h.
93693         * lib/getdate.y: Likewise.
93694         * lib/relocwrapper.c: Likewise.
93695         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93696         (Depends-on): Add stdlib.
93697         * NEWS: Mention the changes.
93698         Reported by Левашев Иван <octagram@bluebottle.com>.
93700 2007-12-23  Bruno Haible  <bruno@clisp.org>
93702         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93703         indentation.
93705 2007-12-23  Bruno Haible  <bruno@clisp.org>
93707         * lib/c-strcasestr.c: Add more comments.
93708         * lib/c-strstr.c: Likewise.
93709         * lib/mbscasestr.c: Likewise.
93710         * lib/mbsstr.c: Likewise.
93711         * lib/strcasestr.c: Likewise.
93712         * lib/memmem.c: Likewise.
93714 2007-12-23  Bruno Haible  <bruno@clisp.org>
93716         * tests/test-memmem.c: Include <string.h> first.
93718 2007-12-22  Bruno Haible  <bruno@clisp.org>
93720         * gnulib-tool (func_create_testdir): Change $auxdir while generating
93721         the contents of $testsbase.
93722         Reported by Ralf Wildenhues.
93724 2007-12-22  Bruno Haible  <bruno@clisp.org>
93726         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
93727         two variables local_ldadd_before, local_ldadd_last.
93729 2007-12-20  Eric Blake  <ebb9@byu.net>
93731         Work around circular library issue when cross-compiling.
93732         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
93733         that progname.o does not need to pull in rpl_memcmp.
93735 2007-12-19  Eric Blake  <ebb9@byu.net>
93737         Fix memmem to avoid O(n^2) worst-case complexity.
93738         * lib/memmem.c (knuth_morris_pratt): New function.
93739         (memmem): Use it if first few naive iterations fail.
93740         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
93741         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
93742         * modules/memchr (License): Likewise.
93743         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
93744         malloca.
93745         * tests/test-memmem.c: Rewrite, borrowing ideas from
93746         test-mbsstr1.c; the old version wouldn't even compile!
93747         * modules/memmem-tests: New file.
93748         * lib/string.in.h (rpl_memmem): Add declaration.
93749         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
93750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
93751         REPLACE_MEMMEM.
93753 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93755         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
93756         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
93757         before any system include files, and undef after them all.  This
93758         should fix a problem on VMS reported by John E. Malmberg in
93759         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
93761 2007-12-17  Eric Blake  <ebb9@byu.net>
93763         Revert addition of verify, for BSD/OS.
93764         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
93765         can't handle large files, for the sake of obsolete platforms.
93766         * modules/fseeko (Depends-on): Remove verify.
93767         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
93768         * doc/functions/ftello.texi (ftello): Likewise.
93769         * doc/functions/fgetpos.texi (fgetpos): Likewise.
93770         Reported by Larry Jones.
93772 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
93774         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
93775         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
93777 2007-12-17  Jim Meyering  <meyering@redhat.com>
93779         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
93780         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
93781         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
93782         * modules/getcwd (Depends-on): Add openat.
93783         Reported by Petr Salinger.
93785 2007-12-17  Bruno Haible  <bruno@clisp.org>
93787         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
93788         avoid a segmentation fault of the configure test on x86_64 systems.
93790 2007-12-15  Jim Meyering  <meyering@redhat.com>
93792         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
93794 2007-12-13  Eric Blake  <ebb9@byu.net>
93796         Another fseek test.
93797         * tests/test-fseek.c (main): Also test ungetc handling.
93798         * tests/test-fseeko.c (main): Likewise.
93799         * modules/fseeko (Depends-on): Add verify.
93800         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
93801         large.
93802         Reported by Larry Jones.
93804         Fix fseeko on mingw.
93805         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
93806         seek.
93808         Beef up fseek tests.
93809         * tests/test-fseek.c (main): Also test eof handling.
93810         * tests/test-fseeko.c (main): Likewise.
93811         Reported by Larry Jones.
93813 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
93815         Fix fseeko on BSD-based platforms.
93816         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
93817         successful seek.
93819 2007-12-12  Eric Blake  <ebb9@byu.net>
93821         Allow circular dependency of separate libtests.a
93822         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
93823         when use_libtests.
93825 2007-12-11  Eric Blake  <ebb9@byu.net>
93827         Fix bug with -0.0L in previous patch.
93828         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
93829         * tests/test-isnan.c (main): Also test on zeroes.
93830         * tests/test-isnanf.c (main): Likewise.
93831         * tests/test-isnanl.h (main): Likewise.
93833         Detect pseudo-denormals on x86 even when cross-compiling.
93834         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
93835         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
93836         invalid bit patterns that happen to satisfy ==.
93838         Avoid link failures with separate libtests.a.
93839         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
93840         last, to satisfy circular dependencies.
93842 2007-12-11  Eric Blake  <ebb9@byu.net>
93843         and Bruno Haible  <bruno@clisp.org>
93845         Fix OpenBSD 4.0 <float.h> handling of long double.
93846         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
93847         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
93848         * doc/headers/float.texi (float.h): Document OpenBSD bug.
93850 2007-12-11  Jim Meyering  <meyering@redhat.com>
93852         * users.txt: Add libvirt.
93854         Support versions of autoconf prior to 2.59c.
93855         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
93856         if it is not already defined.
93858 2007-12-09  Bruno Haible  <bruno@clisp.org>
93860         Let 'gnulib-tool --import' collect sources needed for the tests in
93861         tests/ rather than in lib/.
93862         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
93863         argument. If true, add rules to generate libtests.a, and put libtests.a
93864         into $(LDADD). Consider source files in subdirectories and set
93865         uses_subdirs.
93866         (func_emit_initmacro_start, func_emit_initmacro_end,
93867         func_emit_initmacro_done): Pass all arguments explicitly.
93868         (func_import): Determine two module lists main_modules,
93869         testsrelated_modules. Determine use_libtests. Determine two variables
93870         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
93871         instead of just sed_transform_lib_file. Determine two variables
93872         main_files and testsrelated_files. Compute 'files' as the union of
93873         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
93874         func_add_or_update. In the generated gnulib-comp.m4, collect the
93875         object files for tests/ in different variables than those for lib/.
93876         Substitute LIBTESTS_LIBDEPS.
93877         (func_create_testdir): Combine the uses_subdirs results from
93878         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
93880 2007-12-09  Bruno Haible  <bruno@clisp.org>
93882         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
93883         the build-aux directory.
93885 2007-12-09  Bruno Haible  <bruno@clisp.org>
93887         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
93888         introduced on 2006-09-09.
93890 2007-12-07  Jim Meyering  <meyering@redhat.com>
93892         Let these macros work also with autoconf-2.59.
93893         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
93894         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
93895         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
93897 2007-12-06  Jim Meyering  <meyering@redhat.com>
93899         Avoid a configure-time syntax error in gl_FUNC_ACL.
93900         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
93901         function in each branch, before testing the cache variable.
93903 2007-12-04  Eric Blake  <ebb9@byu.net>
93905         Make scripts executable.
93906         * build-aux/config.guess: Add execute permissions.
93907         * build-aux/config.sub: Likewise.
93908         * build-aux/gendocs.sh: Likewise.
93910         Fix frexp on mingw.
93911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
93912         cross-compiling.
93913         * doc/functions/frexp.texi (frexp): Document the bug.
93915         Make cygwin fseeko check more reliable.
93916         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
93917         version numbers, rather than unrelated feature check.
93918         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
93919         * doc/functions/ftello.texi (ftello): Likewise.
93920         Reported by Bruno Haible.
93922         * m4/strerror.m4: Bump version number.
93924 2007-12-03  Bruno Haible  <bruno@clisp.org>
93926         * doc/functions/mprotect.texi: Mention the mingw problem.
93928 2007-12-03  Eric Blake  <ebb9@byu.net>
93930         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
93931         REPLACE_STRERROR is initialized before this macro.
93933 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
93935         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
93936         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
93937         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
93938         put -lsec in even for programs other than 'ls'.  This fixes a problem
93939         for gettext reported by Bruno Haible in
93940         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
93941         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
93942         Add support for Solaris 10.  This isn't efficient, but should get the
93943         job done for now.
93945 2007-12-03  James Youngman  <jay@gnu.org>
93947         * doc/regexprops-generic.texi: change "an close-group" to "a
93948         close-group" and "illegal" to "not allowed".
93950 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93952         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
93953         pr_byname.h. Needed for the rare case when the maintainer has done
93954         "make maintainer-clean" in the source directory and then attempts a
93955         build outside the source directory.
93956         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
93957         scripts_byname.h.
93959 2007-12-02  Martin Lambers  <marlam@marlam.de>
93960             Bruno Haible  <bruno@clisp.org>
93962         * lib/getpagesize.h: Remove file.
93963         * lib/unistd.in.h: Include declaration of getpagesize here.
93964         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
93965         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
93966         HAVE_SYS_PARAM_H.
93967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
93968         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
93969         * modules/getpagesize (Files): Remove lib/getpagesize.h.
93970         (Depends-on): Add unistd.
93971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
93972         (Include): Use <unistd.h> instead of getpagesize.h.
93973         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
93974         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
93975         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
93976         gl_GETPAGESIZE invocation, already handled by module dependency.
93977         * lib/pagealign_alloc.c: Don't include getpagesize.h.
93979 2007-12-02  Bruno Haible  <bruno@clisp.org>
93981         * modules/strings-tests: New file.
93982         * tests/test-strings.c: New file.
93984         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
93985         * lib/strings.in.h: New file.
93986         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
93987         * m4/strings_h.m4: New file.
93988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
93989         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
93990         * modules/strings: New file.
93991         * modules/string (Makefile.am): Update.
93992         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
93993         Reported by Karl Berry.
93995 2007-12-01  Eric Blake  <ebb9@byu.net>
93997         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
93998         accommodate fix in cygwin 1.5.25.
94000 2007-12-01  Jim Meyering  <meyering@redhat.com>
94002         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94003         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94004         that would inhibit utf8-optimization of a regexp containing line-
94005         or buffer-anchors, e.g., `^', `$'.
94007 2007-11-30  Bruno Haible  <bruno@clisp.org>
94009         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94010         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94011         glthread_recursive_lock_init.
94012         * lib/lock.c (glthread_recursive_lock_init)
94013         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94014         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94016 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94018         New function qset_acl, like set_acl but with syscall semantics.
94019         * lib/acl.h (qset_acl): New decl.
94020         * lib/acl.c (qset_acl): New function.
94021         (set_acl): Use new function.  Use more-consistent diagnostics.
94023 2007-11-28  Jim Meyering  <meyering@redhat.com>
94025         * modules/physmem (License): Change from GPL to LGPLv2+.
94027 2007-11-26  Bruno Haible  <bruno@clisp.org>
94029         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94030         'long double' type has excess precision.
94031         Reported by Jim Meyering in
94032         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94034 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94036         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94037         Sync from <http://gnu.org/licenses>.
94038         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94039         with license text from same location.
94040         * doc/maintain.texi, doc/standards.texi:  Sync from
94041         <http://savannah.gnu.org/projects/gnustandards>.
94043 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94044         and Jim Meyering  <meyering@redhat.com>
94046         Adjust getdate' grammar to accept a slightly more regular language.
94047         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94048         Before, the former was rejected.
94049         * lib/getdate.y (digits_to_date_time): New function, factored
94050         out of ...
94051         (number): ...here.  Just call digits_to_date_time.
94052         (hybrid): New non-terminal to handle an <unsigned number,
94053         signed relative offset> sequence consistently.
94055 2007-11-18  Jim Meyering  <meyering@redhat.com>
94057         Pull my changes from coreutils:
94058         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94059         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94060         use of $gnulib_tool_option_extras, so that it's separated from the
94061         preceding argument.
94063         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94064         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94065         parent destination directories before copying a file into place.
94067 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94069         bootstrap: work also with 4-argument variant of AC_INIT
94070         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94072 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94074         Port test-getaddrinfo to Solaris.
94075         Problem reported by Bruno Haible in
94076         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94077         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94078         explanation of setting 'hints'.
94079         Don't reject an implementation merely because it returns EAI_SERVICE.
94080         (EAI_SERVICE): Define to 0 if not defined.
94082 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94084         The license of gnu-make and posix-shell is now "GPLed build tool".
94085         * modules/gnu-make (License): Likewise.
94086         * modules/posix-shell (License): Likewise.
94088         New module posix-shell, for determining a POSIX shell
94089         or perhaps something that is close enough to a POSIX shell.
94090         * m4/posix-shell.m4: New file.
94091         * modules/posix-shell: New file.
94093         * MODULES.html.sh: Mention new module.
94095         New module gnu-make, for determining whether we're using GNU Make.
94096         * m4/gnu-make.m4: New file.
94097         * modules/gnu-make: New file.
94098         * MODULES.html.sh: Mention new module.
94100 2007-11-14  Jim Meyering  <meyering@redhat.com>
94102         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94103         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94104         use this macro to create a function _definition_.
94105         Remove useless "#undef ARGMATCH_DIE".
94107 2007-11-14  Bruno Haible  <bruno@clisp.org>
94109         * lib/config.charset: Update for OpenBSD 4.1.
94110         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94112 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94114         Document 64-bit #if problems in stdint.texi.
94115         * doc/headers/stdint.texi (stdint.h): Mention problems with
94116         64-bit-#if, and how to work around them.
94118         Don't insist on 'long long int' support in the preprocessor.  It
94119         breaks too many things.  For example, PRIdMAX still uses a 'long
94120         long int' format with the latest Sun compiler, even though
94121         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94122         preprocessor problem.  This causes the latest coreutils to dump
94123         core on Solaris 10 sparc with the Sun C compiler.
94124         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94125         the troublesome expressions at configure-time, not at #if-time.
94126         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94127         preprocessor.
94128         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94129         compile-time C checks, done at 'configure'-time.
94130         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94131         * modules/inttypes (Makefile): Substitute the new symbols that
94132         gl_INTTYPES_H now generates.
94133         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94135 2007-11-12  Bruno Haible  <bruno@clisp.org>
94137         Tests for Unicode character classification functions.
94139         * modules/unictype/bidicategory-byname-tests: New file.
94140         * modules/unictype/bidicategory-name-tests: New file.
94141         * modules/unictype/bidicategory-of-tests: New file.
94142         * modules/unictype/bidicategory-test-tests: New file.
94143         * modules/unictype/block-list-tests: New file.
94144         * modules/unictype/block-of-tests: New file.
94145         * modules/unictype/block-test-tests: New file.
94146         * modules/unictype/category-C-tests: New file.
94147         * modules/unictype/category-Cc-tests: New file.
94148         * modules/unictype/category-Cf-tests: New file.
94149         * modules/unictype/category-Cn-tests: New file.
94150         * modules/unictype/category-Co-tests: New file.
94151         * modules/unictype/category-Cs-tests: New file.
94152         * modules/unictype/category-L-tests: New file.
94153         * modules/unictype/category-Ll-tests: New file.
94154         * modules/unictype/category-Lm-tests: New file.
94155         * modules/unictype/category-Lo-tests: New file.
94156         * modules/unictype/category-Lt-tests: New file.
94157         * modules/unictype/category-Lu-tests: New file.
94158         * modules/unictype/category-M-tests: New file.
94159         * modules/unictype/category-Mc-tests: New file.
94160         * modules/unictype/category-Me-tests: New file.
94161         * modules/unictype/category-Mn-tests: New file.
94162         * modules/unictype/category-N-tests: New file.
94163         * modules/unictype/category-Nd-tests: New file.
94164         * modules/unictype/category-Nl-tests: New file.
94165         * modules/unictype/category-No-tests: New file.
94166         * modules/unictype/category-P-tests: New file.
94167         * modules/unictype/category-Pc-tests: New file.
94168         * modules/unictype/category-Pd-tests: New file.
94169         * modules/unictype/category-Pe-tests: New file.
94170         * modules/unictype/category-Pf-tests: New file.
94171         * modules/unictype/category-Pi-tests: New file.
94172         * modules/unictype/category-Po-tests: New file.
94173         * modules/unictype/category-Ps-tests: New file.
94174         * modules/unictype/category-S-tests: New file.
94175         * modules/unictype/category-Sc-tests: New file.
94176         * modules/unictype/category-Sk-tests: New file.
94177         * modules/unictype/category-Sm-tests: New file.
94178         * modules/unictype/category-So-tests: New file.
94179         * modules/unictype/category-Z-tests: New file.
94180         * modules/unictype/category-Zl-tests: New file.
94181         * modules/unictype/category-Zp-tests: New file.
94182         * modules/unictype/category-Zs-tests: New file.
94183         * modules/unictype/category-and-not-tests: New file.
94184         * modules/unictype/category-and-tests: New file.
94185         * modules/unictype/category-byname-tests: New file.
94186         * modules/unictype/category-name-tests: New file.
94187         * modules/unictype/category-none-tests: New file.
94188         * modules/unictype/category-of-tests: New file.
94189         * modules/unictype/category-or-tests: New file.
94190         * modules/unictype/category-test-withtable-tests: New file.
94191         * modules/unictype/combining-class-tests: New file.
94192         * modules/unictype/ctype-alnum-tests: New file.
94193         * modules/unictype/ctype-alpha-tests: New file.
94194         * modules/unictype/ctype-blank-tests: New file.
94195         * modules/unictype/ctype-cntrl-tests: New file.
94196         * modules/unictype/ctype-digit-tests: New file.
94197         * modules/unictype/ctype-graph-tests: New file.
94198         * modules/unictype/ctype-lower-tests: New file.
94199         * modules/unictype/ctype-print-tests: New file.
94200         * modules/unictype/ctype-punct-tests: New file.
94201         * modules/unictype/ctype-space-tests: New file.
94202         * modules/unictype/ctype-upper-tests: New file.
94203         * modules/unictype/ctype-xdigit-tests: New file.
94204         * modules/unictype/decimal-digit-tests: New file.
94205         * modules/unictype/digit-tests: New file.
94206         * modules/unictype/mirror-tests: New file.
94207         * modules/unictype/numeric-tests: New file.
94208         * modules/unictype/property-alphabetic-tests: New file.
94209         * modules/unictype/property-ascii-hex-digit-tests: New file.
94210         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94211         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94212         * modules/unictype/property-bidi-block-separator-tests: New file.
94213         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94214         * modules/unictype/property-bidi-common-separator-tests: New file.
94215         * modules/unictype/property-bidi-control-tests: New file.
94216         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94217         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94218         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94219         * modules/unictype/property-bidi-european-digit-tests: New file.
94220         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94221         * modules/unictype/property-bidi-left-to-right-tests: New file.
94222         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94223         * modules/unictype/property-bidi-other-neutral-tests: New file.
94224         * modules/unictype/property-bidi-pdf-tests: New file.
94225         * modules/unictype/property-bidi-segment-separator-tests: New file.
94226         * modules/unictype/property-bidi-whitespace-tests: New file.
94227         * modules/unictype/property-byname-tests: New file.
94228         * modules/unictype/property-combining-tests: New file.
94229         * modules/unictype/property-composite-tests: New file.
94230         * modules/unictype/property-currency-symbol-tests: New file.
94231         * modules/unictype/property-dash-tests: New file.
94232         * modules/unictype/property-decimal-digit-tests: New file.
94233         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94234         * modules/unictype/property-deprecated-tests: New file.
94235         * modules/unictype/property-diacritic-tests: New file.
94236         * modules/unictype/property-extender-tests: New file.
94237         * modules/unictype/property-format-control-tests: New file.
94238         * modules/unictype/property-grapheme-base-tests: New file.
94239         * modules/unictype/property-grapheme-extend-tests: New file.
94240         * modules/unictype/property-grapheme-link-tests: New file.
94241         * modules/unictype/property-hex-digit-tests: New file.
94242         * modules/unictype/property-hyphen-tests: New file.
94243         * modules/unictype/property-id-continue-tests: New file.
94244         * modules/unictype/property-id-start-tests: New file.
94245         * modules/unictype/property-ideographic-tests: New file.
94246         * modules/unictype/property-ids-binary-operator-tests: New file.
94247         * modules/unictype/property-ids-trinary-operator-tests: New file.
94248         * modules/unictype/property-ignorable-control-tests: New file.
94249         * modules/unictype/property-iso-control-tests: New file.
94250         * modules/unictype/property-join-control-tests: New file.
94251         * modules/unictype/property-left-of-pair-tests: New file.
94252         * modules/unictype/property-line-separator-tests: New file.
94253         * modules/unictype/property-logical-order-exception-tests: New file.
94254         * modules/unictype/property-lowercase-tests: New file.
94255         * modules/unictype/property-math-tests: New file.
94256         * modules/unictype/property-non-break-tests: New file.
94257         * modules/unictype/property-not-a-character-tests: New file.
94258         * modules/unictype/property-numeric-tests: New file.
94259         * modules/unictype/property-other-alphabetic-tests: New file.
94260         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94261         * modules/unictype/property-other-grapheme-extend-tests: New file.
94262         * modules/unictype/property-other-id-continue-tests: New file.
94263         * modules/unictype/property-other-id-start-tests: New file.
94264         * modules/unictype/property-other-lowercase-tests: New file.
94265         * modules/unictype/property-other-math-tests: New file.
94266         * modules/unictype/property-other-uppercase-tests: New file.
94267         * modules/unictype/property-paired-punctuation-tests: New file.
94268         * modules/unictype/property-paragraph-separator-tests: New file.
94269         * modules/unictype/property-pattern-syntax-tests: New file.
94270         * modules/unictype/property-pattern-white-space-tests: New file.
94271         * modules/unictype/property-private-use-tests: New file.
94272         * modules/unictype/property-punctuation-tests: New file.
94273         * modules/unictype/property-quotation-mark-tests: New file.
94274         * modules/unictype/property-radical-tests: New file.
94275         * modules/unictype/property-sentence-terminal-tests: New file.
94276         * modules/unictype/property-soft-dotted-tests: New file.
94277         * modules/unictype/property-space-tests: New file.
94278         * modules/unictype/property-terminal-punctuation-tests: New file.
94279         * modules/unictype/property-test-tests: New file.
94280         * modules/unictype/property-titlecase-tests: New file.
94281         * modules/unictype/property-unassigned-code-value-tests: New file.
94282         * modules/unictype/property-unified-ideograph-tests: New file.
94283         * modules/unictype/property-uppercase-tests: New file.
94284         * modules/unictype/property-variation-selector-tests: New file.
94285         * modules/unictype/property-white-space-tests: New file.
94286         * modules/unictype/property-xid-continue-tests: New file.
94287         * modules/unictype/property-xid-start-tests: New file.
94288         * modules/unictype/property-zero-width-tests: New file.
94289         * modules/unictype/scripts-tests: New file.
94290         * modules/unictype/syntax-c-ident-tests: New file.
94291         * modules/unictype/syntax-c-whitespace-tests: New file.
94292         * modules/unictype/syntax-java-ident-tests: New file.
94293         * modules/unictype/syntax-java-whitespace-tests: New file.
94294         * tests/unictype/test-bidi_byname.c: New file.
94295         * tests/unictype/test-bidi_name.c: New file.
94296         * tests/unictype/test-bidi_of.c: New file.
94297         * tests/unictype/test-bidi_test.c: New file.
94298         * tests/unictype/test-block_list.c: New file.
94299         * tests/unictype/test-block_of.c: New file.
94300         * tests/unictype/test-block_test.c: New file.
94301         * tests/unictype/test-categ_and.c: New file.
94302         * tests/unictype/test-categ_and_not.c: New file.
94303         * tests/unictype/test-categ_byname.c: New file.
94304         * tests/unictype/test-categ_name.c: New file.
94305         * tests/unictype/test-categ_none.c: New file.
94306         * tests/unictype/test-categ_of.c: New file.
94307         * tests/unictype/test-categ_or.c: New file.
94308         * tests/unictype/test-categ_test_withtable.c: New file.
94309         * tests/unictype/test-combining.c: New file.
94310         * tests/unictype/test-decdigit.c: New file.
94311         * tests/unictype/test-digit.c: New file.
94312         * tests/unictype/test-mirror.c: New file.
94313         * tests/unictype/test-numeric.c: New file.
94314         * tests/unictype/test-pr_byname.c: New file.
94315         * tests/unictype/test-pr_test.c: New file.
94316         * tests/unictype/test-predicate-part1.h: New file.
94317         * tests/unictype/test-predicate-part2.h: New file.
94318         * tests/unictype/test-scripts.c: New file.
94319         * tests/unictype/test-sy_c_ident.c: New file.
94320         * tests/unictype/test-sy_java_ident.c: New file.
94322         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94323         for Unicode 5.0.0.
94324         * tests/unictype/test-categ_Cc.c: Likewise.
94325         * tests/unictype/test-categ_Cf.c: Likewise.
94326         * tests/unictype/test-categ_Cn.c: Likewise.
94327         * tests/unictype/test-categ_Co.c: Likewise.
94328         * tests/unictype/test-categ_Cs.c: Likewise.
94329         * tests/unictype/test-categ_L.c: Likewise.
94330         * tests/unictype/test-categ_Ll.c: Likewise.
94331         * tests/unictype/test-categ_Lm.c: Likewise.
94332         * tests/unictype/test-categ_Lo.c: Likewise.
94333         * tests/unictype/test-categ_Lt.c: Likewise.
94334         * tests/unictype/test-categ_Lu.c: Likewise.
94335         * tests/unictype/test-categ_M.c: Likewise.
94336         * tests/unictype/test-categ_Mc.c: Likewise.
94337         * tests/unictype/test-categ_Me.c: Likewise.
94338         * tests/unictype/test-categ_Mn.c: Likewise.
94339         * tests/unictype/test-categ_N.c: Likewise.
94340         * tests/unictype/test-categ_Nd.c: Likewise.
94341         * tests/unictype/test-categ_Nl.c: Likewise.
94342         * tests/unictype/test-categ_No.c: Likewise.
94343         * tests/unictype/test-categ_P.c: Likewise.
94344         * tests/unictype/test-categ_Pc.c: Likewise.
94345         * tests/unictype/test-categ_Pd.c: Likewise.
94346         * tests/unictype/test-categ_Pe.c: Likewise.
94347         * tests/unictype/test-categ_Pf.c: Likewise.
94348         * tests/unictype/test-categ_Pi.c: Likewise.
94349         * tests/unictype/test-categ_Po.c: Likewise.
94350         * tests/unictype/test-categ_Ps.c: Likewise.
94351         * tests/unictype/test-categ_S.c: Likewise.
94352         * tests/unictype/test-categ_Sc.c: Likewise.
94353         * tests/unictype/test-categ_Sk.c: Likewise.
94354         * tests/unictype/test-categ_Sm.c: Likewise.
94355         * tests/unictype/test-categ_So.c: Likewise.
94356         * tests/unictype/test-categ_Z.c: Likewise.
94357         * tests/unictype/test-categ_Zl.c: Likewise.
94358         * tests/unictype/test-categ_Zp.c: Likewise.
94359         * tests/unictype/test-categ_Zs.c: Likewise.
94360         * tests/unictype/test-ctype_alnum.c: Likewise.
94361         * tests/unictype/test-ctype_alpha.c: Likewise.
94362         * tests/unictype/test-ctype_blank.c: Likewise.
94363         * tests/unictype/test-ctype_cntrl.c: Likewise.
94364         * tests/unictype/test-ctype_digit.c: Likewise.
94365         * tests/unictype/test-ctype_graph.c: Likewise.
94366         * tests/unictype/test-ctype_lower.c: Likewise.
94367         * tests/unictype/test-ctype_print.c: Likewise.
94368         * tests/unictype/test-ctype_punct.c: Likewise.
94369         * tests/unictype/test-ctype_space.c: Likewise.
94370         * tests/unictype/test-ctype_upper.c: Likewise.
94371         * tests/unictype/test-ctype_xdigit.c: Likewise.
94372         * tests/unictype/test-decdigit.h: Likewise.
94373         * tests/unictype/test-digit.h: Likewise.
94374         * tests/unictype/test-numeric.h: Likewise.
94375         * tests/unictype/test-pr_alphabetic.c: Likewise.
94376         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94377         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94378         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94379         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94380         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94381         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94382         * tests/unictype/test-pr_bidi_control.c: Likewise.
94383         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94384         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94385         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94386         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94387         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94388         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94389         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94390         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94391         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94392         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94393         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94394         * tests/unictype/test-pr_combining.c: Likewise.
94395         * tests/unictype/test-pr_composite.c: Likewise.
94396         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94397         * tests/unictype/test-pr_dash.c: Likewise.
94398         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94399         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94400         * tests/unictype/test-pr_deprecated.c: Likewise.
94401         * tests/unictype/test-pr_diacritic.c: Likewise.
94402         * tests/unictype/test-pr_extender.c: Likewise.
94403         * tests/unictype/test-pr_format_control.c: Likewise.
94404         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94405         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94406         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94407         * tests/unictype/test-pr_hex_digit.c: Likewise.
94408         * tests/unictype/test-pr_hyphen.c: Likewise.
94409         * tests/unictype/test-pr_id_continue.c: Likewise.
94410         * tests/unictype/test-pr_id_start.c: Likewise.
94411         * tests/unictype/test-pr_ideographic.c: Likewise.
94412         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94413         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94414         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94415         * tests/unictype/test-pr_iso_control.c: Likewise.
94416         * tests/unictype/test-pr_join_control.c: Likewise.
94417         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94418         * tests/unictype/test-pr_line_separator.c: Likewise.
94419         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94420         * tests/unictype/test-pr_lowercase.c: Likewise.
94421         * tests/unictype/test-pr_math.c: Likewise.
94422         * tests/unictype/test-pr_non_break.c: Likewise.
94423         * tests/unictype/test-pr_not_a_character.c: Likewise.
94424         * tests/unictype/test-pr_numeric.c: Likewise.
94425         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94426         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94427         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94428         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94429         * tests/unictype/test-pr_other_id_start.c: Likewise.
94430         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94431         * tests/unictype/test-pr_other_math.c: Likewise.
94432         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94433         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94434         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94435         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94436         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94437         * tests/unictype/test-pr_private_use.c: Likewise.
94438         * tests/unictype/test-pr_punctuation.c: Likewise.
94439         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94440         * tests/unictype/test-pr_radical.c: Likewise.
94441         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94442         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94443         * tests/unictype/test-pr_space.c: Likewise.
94444         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94445         * tests/unictype/test-pr_titlecase.c: Likewise.
94446         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94447         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94448         * tests/unictype/test-pr_uppercase.c: Likewise.
94449         * tests/unictype/test-pr_variation_selector.c: Likewise.
94450         * tests/unictype/test-pr_white_space.c: Likewise.
94451         * tests/unictype/test-pr_xid_continue.c: Likewise.
94452         * tests/unictype/test-pr_xid_start.c: Likewise.
94453         * tests/unictype/test-pr_zero_width.c: Likewise.
94454         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94455         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94457 2007-11-12  Bruno Haible  <bruno@clisp.org>
94459         Unicode character classification functions.
94460         * lib/unictype.h: New file.
94461         * modules/unictype/base: New file.
94462         * modules/unictype/category-L: New file.
94463         * modules/unictype/category-Lu: New file.
94464         * modules/unictype/category-Ll: New file.
94465         * modules/unictype/category-Lt: New file.
94466         * modules/unictype/category-Lm: New file.
94467         * modules/unictype/category-Lo: New file.
94468         * modules/unictype/category-M: New file.
94469         * modules/unictype/category-Mn: New file.
94470         * modules/unictype/category-Mc: New file.
94471         * modules/unictype/category-Me: New file.
94472         * modules/unictype/category-N: New file.
94473         * modules/unictype/category-Nd: New file.
94474         * modules/unictype/category-Nl: New file.
94475         * modules/unictype/category-No: New file.
94476         * modules/unictype/category-P: New file.
94477         * modules/unictype/category-Pc: New file.
94478         * modules/unictype/category-Pd: New file.
94479         * modules/unictype/category-Ps: New file.
94480         * modules/unictype/category-Pe: New file.
94481         * modules/unictype/category-Pi: New file.
94482         * modules/unictype/category-Pf: New file.
94483         * modules/unictype/category-Po: New file.
94484         * modules/unictype/category-S: New file.
94485         * modules/unictype/category-Sm: New file.
94486         * modules/unictype/category-Sc: New file.
94487         * modules/unictype/category-Sk: New file.
94488         * modules/unictype/category-So: New file.
94489         * modules/unictype/category-Z: New file.
94490         * modules/unictype/category-Zs: New file.
94491         * modules/unictype/category-Zl: New file.
94492         * modules/unictype/category-Zp: New file.
94493         * modules/unictype/category-C: New file.
94494         * modules/unictype/category-Cc: New file.
94495         * modules/unictype/category-Cf: New file.
94496         * modules/unictype/category-Cs: New file.
94497         * modules/unictype/category-Co: New file.
94498         * modules/unictype/category-Cn: New file.
94499         * modules/unictype/category-or: New file.
94500         * modules/unictype/category-of: New file.
94501         * modules/unictype/category-test: New file.
94502         * modules/unictype/category-test-withtable: New file.
94503         * modules/unictype/category-byname: New file.
94504         * modules/unictype/category-none: New file.
94505         * modules/unictype/category-and: New file.
94506         * modules/unictype/category-and-not: New file.
94507         * modules/unictype/category-name: New file.
94508         * modules/unictype/combining-class: New file.
94509         * modules/unictype/category-all: New file.
94510         * modules/unictype/bidicategory-all: New file.
94511         * modules/unictype/bidicategory-byname: New file.
94512         * modules/unictype/bidicategory-name: New file.
94513         * modules/unictype/bidicategory-of: New file.
94514         * modules/unictype/bidicategory-test: New file.
94515         * modules/unictype/decimal-digit: New file.
94516         * modules/unictype/digit: New file.
94517         * modules/unictype/numeric: New file.
94518         * modules/unictype/mirror: New file.
94519         * modules/unictype/property-white-space: New file.
94520         * modules/unictype/property-alphabetic: New file.
94521         * modules/unictype/property-other-alphabetic: New file.
94522         * modules/unictype/property-not-a-character: New file.
94523         * modules/unictype/property-default-ignorable-code-point: New file.
94524         * modules/unictype/property-other-default-ignorable-code-point: New
94525         file.
94526         * modules/unictype/property-deprecated: New file.
94527         * modules/unictype/property-logical-order-exception: New file.
94528         * modules/unictype/property-variation-selector: New file.
94529         * modules/unictype/property-private-use: New file.
94530         * modules/unictype/property-unassigned-code-value: New file.
94531         * modules/unictype/property-uppercase: New file.
94532         * modules/unictype/property-other-uppercase: New file.
94533         * modules/unictype/property-lowercase: New file.
94534         * modules/unictype/property-other-lowercase: New file.
94535         * modules/unictype/property-titlecase: New file.
94536         * modules/unictype/property-soft-dotted: New file.
94537         * modules/unictype/property-id-start: New file.
94538         * modules/unictype/property-other-id-start: New file.
94539         * modules/unictype/property-id-continue: New file.
94540         * modules/unictype/property-other-id-continue: New file.
94541         * modules/unictype/property-xid-start: New file.
94542         * modules/unictype/property-xid-continue: New file.
94543         * modules/unictype/property-pattern-white-space: New file.
94544         * modules/unictype/property-pattern-syntax: New file.
94545         * modules/unictype/property-join-control: New file.
94546         * modules/unictype/property-grapheme-base: New file.
94547         * modules/unictype/property-grapheme-extend: New file.
94548         * modules/unictype/property-other-grapheme-extend: New file.
94549         * modules/unictype/property-grapheme-link: New file.
94550         * modules/unictype/property-bidi-control: New file.
94551         * modules/unictype/property-bidi-left-to-right: New file.
94552         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94553         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94554         * modules/unictype/property-bidi-european-digit: New file.
94555         * modules/unictype/property-bidi-eur-num-separator: New file.
94556         * modules/unictype/property-bidi-eur-num-terminator: New file.
94557         * modules/unictype/property-bidi-arabic-digit: New file.
94558         * modules/unictype/property-bidi-common-separator: New file.
94559         * modules/unictype/property-bidi-block-separator: New file.
94560         * modules/unictype/property-bidi-segment-separator: New file.
94561         * modules/unictype/property-bidi-whitespace: New file.
94562         * modules/unictype/property-bidi-non-spacing-mark: New file.
94563         * modules/unictype/property-bidi-boundary-neutral: New file.
94564         * modules/unictype/property-bidi-pdf: New file.
94565         * modules/unictype/property-bidi-embedding-or-override: New file.
94566         * modules/unictype/property-bidi-other-neutral: New file.
94567         * modules/unictype/property-hex-digit: New file.
94568         * modules/unictype/property-ascii-hex-digit: New file.
94569         * modules/unictype/property-ideographic: New file.
94570         * modules/unictype/property-unified-ideograph: New file.
94571         * modules/unictype/property-radical: New file.
94572         * modules/unictype/property-ids-binary-operator: New file.
94573         * modules/unictype/property-ids-trinary-operator: New file.
94574         * modules/unictype/property-zero-width: New file.
94575         * modules/unictype/property-space: New file.
94576         * modules/unictype/property-non-break: New file.
94577         * modules/unictype/property-iso-control: New file.
94578         * modules/unictype/property-format-control: New file.
94579         * modules/unictype/property-dash: New file.
94580         * modules/unictype/property-hyphen: New file.
94581         * modules/unictype/property-punctuation: New file.
94582         * modules/unictype/property-line-separator: New file.
94583         * modules/unictype/property-paragraph-separator: New file.
94584         * modules/unictype/property-quotation-mark: New file.
94585         * modules/unictype/property-sentence-terminal: New file.
94586         * modules/unictype/property-terminal-punctuation: New file.
94587         * modules/unictype/property-currency-symbol: New file.
94588         * modules/unictype/property-math: New file.
94589         * modules/unictype/property-other-math: New file.
94590         * modules/unictype/property-paired-punctuation: New file.
94591         * modules/unictype/property-left-of-pair: New file.
94592         * modules/unictype/property-combining: New file.
94593         * modules/unictype/property-composite: New file.
94594         * modules/unictype/property-decimal-digit: New file.
94595         * modules/unictype/property-numeric: New file.
94596         * modules/unictype/property-diacritic: New file.
94597         * modules/unictype/property-extender: New file.
94598         * modules/unictype/property-ignorable-control: New file.
94599         * modules/unictype/property-test: New file.
94600         * modules/unictype/property-byname: New file.
94601         * modules/unictype/property-all: New file.
94602         * modules/unictype/scripts: New file.
94603         * modules/unictype/scripts-all: New file.
94604         * modules/unictype/block-of: New file.
94605         * modules/unictype/block-test: New file.
94606         * modules/unictype/block-list: New file.
94607         * modules/unictype/block-all: New file.
94608         * modules/unictype/syntax-c-whitespace: New file.
94609         * modules/unictype/syntax-java-whitespace: New file.
94610         * modules/unictype/syntax-c-ident: New file.
94611         * modules/unictype/syntax-java-ident: New file.
94612         * modules/unictype/ctype-alnum: New file.
94613         * modules/unictype/ctype-alpha: New file.
94614         * modules/unictype/ctype-cntrl: New file.
94615         * modules/unictype/ctype-digit: New file.
94616         * modules/unictype/ctype-graph: New file.
94617         * modules/unictype/ctype-lower: New file.
94618         * modules/unictype/ctype-print: New file.
94619         * modules/unictype/ctype-punct: New file.
94620         * modules/unictype/ctype-space: New file.
94621         * modules/unictype/ctype-upper: New file.
94622         * modules/unictype/ctype-xdigit: New file.
94623         * modules/unictype/ctype-blank: New file.
94624         * lib/unictype/bidi_byname.c: New file.
94625         * lib/unictype/bidi_name.c: New file.
94626         * lib/unictype/bidi_of.c: New file.
94627         * lib/unictype/bidi_test.c: New file.
94628         * lib/unictype/bitmap.h: New file.
94629         * lib/unictype/block_test.c: New file.
94630         * lib/unictype/blocks.c: New file.
94631         * lib/unictype/categ_C.c: New file.
94632         * lib/unictype/categ_Cc.c: New file.
94633         * lib/unictype/categ_Cf.c: New file.
94634         * lib/unictype/categ_Cn.c: New file.
94635         * lib/unictype/categ_Co.c: New file.
94636         * lib/unictype/categ_Cs.c: New file.
94637         * lib/unictype/categ_L.c: New file.
94638         * lib/unictype/categ_Ll.c: New file.
94639         * lib/unictype/categ_Lm.c: New file.
94640         * lib/unictype/categ_Lo.c: New file.
94641         * lib/unictype/categ_Lt.c: New file.
94642         * lib/unictype/categ_Lu.c: New file.
94643         * lib/unictype/categ_M.c: New file.
94644         * lib/unictype/categ_Mc.c: New file.
94645         * lib/unictype/categ_Me.c: New file.
94646         * lib/unictype/categ_Mn.c: New file.
94647         * lib/unictype/categ_N.c: New file.
94648         * lib/unictype/categ_Nd.c: New file.
94649         * lib/unictype/categ_Nl.c: New file.
94650         * lib/unictype/categ_No.c: New file.
94651         * lib/unictype/categ_P.c: New file.
94652         * lib/unictype/categ_Pc.c: New file.
94653         * lib/unictype/categ_Pd.c: New file.
94654         * lib/unictype/categ_Pe.c: New file.
94655         * lib/unictype/categ_Pf.c: New file.
94656         * lib/unictype/categ_Pi.c: New file.
94657         * lib/unictype/categ_Po.c: New file.
94658         * lib/unictype/categ_Ps.c: New file.
94659         * lib/unictype/categ_S.c: New file.
94660         * lib/unictype/categ_Sc.c: New file.
94661         * lib/unictype/categ_Sk.c: New file.
94662         * lib/unictype/categ_Sm.c: New file.
94663         * lib/unictype/categ_So.c: New file.
94664         * lib/unictype/categ_Z.c: New file.
94665         * lib/unictype/categ_Zl.c: New file.
94666         * lib/unictype/categ_Zp.c: New file.
94667         * lib/unictype/categ_Zs.c: New file.
94668         * lib/unictype/categ_and.c: New file.
94669         * lib/unictype/categ_and_not.c: New file.
94670         * lib/unictype/categ_byname.c: New file.
94671         * lib/unictype/categ_name.c: New file.
94672         * lib/unictype/categ_none.c: New file.
94673         * lib/unictype/categ_of.c: New file.
94674         * lib/unictype/categ_or.c: New file.
94675         * lib/unictype/categ_test.c: New file.
94676         * lib/unictype/combining.c: New file.
94677         * lib/unictype/ctype_alnum.c: New file.
94678         * lib/unictype/ctype_alpha.c: New file.
94679         * lib/unictype/ctype_blank.c: New file.
94680         * lib/unictype/ctype_cntrl.c: New file.
94681         * lib/unictype/ctype_digit.c: New file.
94682         * lib/unictype/ctype_graph.c: New file.
94683         * lib/unictype/ctype_lower.c: New file.
94684         * lib/unictype/ctype_print.c: New file.
94685         * lib/unictype/ctype_punct.c: New file.
94686         * lib/unictype/ctype_space.c: New file.
94687         * lib/unictype/ctype_upper.c: New file.
94688         * lib/unictype/ctype_xdigit.c: New file.
94689         * lib/unictype/decdigit.c: New file.
94690         * lib/unictype/digit.c: New file.
94691         * lib/unictype/identsyntaxmap.h: New file.
94692         * lib/unictype/mirror.c: New file.
94693         * lib/unictype/numeric.c: New file.
94694         * lib/unictype/pr_alphabetic.c: New file.
94695         * lib/unictype/pr_ascii_hex_digit.c: New file.
94696         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94697         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94698         * lib/unictype/pr_bidi_block_separator.c: New file.
94699         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94700         * lib/unictype/pr_bidi_common_separator.c: New file.
94701         * lib/unictype/pr_bidi_control.c: New file.
94702         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94703         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94704         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94705         * lib/unictype/pr_bidi_european_digit.c: New file.
94706         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94707         * lib/unictype/pr_bidi_left_to_right.c: New file.
94708         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94709         * lib/unictype/pr_bidi_other_neutral.c: New file.
94710         * lib/unictype/pr_bidi_pdf.c: New file.
94711         * lib/unictype/pr_bidi_segment_separator.c: New file.
94712         * lib/unictype/pr_bidi_whitespace.c: New file.
94713         * lib/unictype/pr_byname.c: New file.
94714         * lib/unictype/pr_byname.gperf: New file.
94715         * lib/unictype/pr_combining.c: New file.
94716         * lib/unictype/pr_composite.c: New file.
94717         * lib/unictype/pr_currency_symbol.c: New file.
94718         * lib/unictype/pr_dash.c: New file.
94719         * lib/unictype/pr_decimal_digit.c: New file.
94720         * lib/unictype/pr_default_ignorable_code_point.c: New file.
94721         * lib/unictype/pr_deprecated.c: New file.
94722         * lib/unictype/pr_diacritic.c: New file.
94723         * lib/unictype/pr_extender.c: New file.
94724         * lib/unictype/pr_format_control.c: New file.
94725         * lib/unictype/pr_grapheme_base.c: New file.
94726         * lib/unictype/pr_grapheme_extend.c: New file.
94727         * lib/unictype/pr_grapheme_link.c: New file.
94728         * lib/unictype/pr_hex_digit.c: New file.
94729         * lib/unictype/pr_hyphen.c: New file.
94730         * lib/unictype/pr_id_continue.c: New file.
94731         * lib/unictype/pr_id_start.c: New file.
94732         * lib/unictype/pr_ideographic.c: New file.
94733         * lib/unictype/pr_ids_binary_operator.c: New file.
94734         * lib/unictype/pr_ids_trinary_operator.c: New file.
94735         * lib/unictype/pr_ignorable_control.c: New file.
94736         * lib/unictype/pr_iso_control.c: New file.
94737         * lib/unictype/pr_join_control.c: New file.
94738         * lib/unictype/pr_left_of_pair.c: New file.
94739         * lib/unictype/pr_line_separator.c: New file.
94740         * lib/unictype/pr_logical_order_exception.c: New file.
94741         * lib/unictype/pr_lowercase.c: New file.
94742         * lib/unictype/pr_math.c: New file.
94743         * lib/unictype/pr_non_break.c: New file.
94744         * lib/unictype/pr_not_a_character.c: New file.
94745         * lib/unictype/pr_numeric.c: New file.
94746         * lib/unictype/pr_other_alphabetic.c: New file.
94747         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
94748         * lib/unictype/pr_other_grapheme_extend.c: New file.
94749         * lib/unictype/pr_other_id_continue.c: New file.
94750         * lib/unictype/pr_other_id_start.c: New file.
94751         * lib/unictype/pr_other_lowercase.c: New file.
94752         * lib/unictype/pr_other_math.c: New file.
94753         * lib/unictype/pr_other_uppercase.c: New file.
94754         * lib/unictype/pr_paired_punctuation.c: New file.
94755         * lib/unictype/pr_paragraph_separator.c: New file.
94756         * lib/unictype/pr_pattern_syntax.c: New file.
94757         * lib/unictype/pr_pattern_white_space.c: New file.
94758         * lib/unictype/pr_private_use.c: New file.
94759         * lib/unictype/pr_punctuation.c: New file.
94760         * lib/unictype/pr_quotation_mark.c: New file.
94761         * lib/unictype/pr_radical.c: New file.
94762         * lib/unictype/pr_sentence_terminal.c: New file.
94763         * lib/unictype/pr_soft_dotted.c: New file.
94764         * lib/unictype/pr_space.c: New file.
94765         * lib/unictype/pr_terminal_punctuation.c: New file.
94766         * lib/unictype/pr_test.c: New file.
94767         * lib/unictype/pr_titlecase.c: New file.
94768         * lib/unictype/pr_unassigned_code_value.c: New file.
94769         * lib/unictype/pr_unified_ideograph.c: New file.
94770         * lib/unictype/pr_uppercase.c: New file.
94771         * lib/unictype/pr_variation_selector.c: New file.
94772         * lib/unictype/pr_white_space.c: New file.
94773         * lib/unictype/pr_xid_continue.c: New file.
94774         * lib/unictype/pr_xid_start.c: New file.
94775         * lib/unictype/pr_zero_width.c: New file.
94776         * lib/unictype/scripts.c: New file.
94777         * lib/unictype/sy_c_ident.c: New file.
94778         * lib/unictype/sy_c_whitespace.c: New file.
94779         * lib/unictype/sy_java_ident.c: New file.
94780         * lib/unictype/sy_java_whitespace.c: New file.
94782         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
94783         Unicode 5.0.0.
94784         * lib/unictype/blocks.h: Likewise.
94785         * lib/unictype/categ_C.h: Likewise.
94786         * lib/unictype/categ_Cc.h: Likewise.
94787         * lib/unictype/categ_Cf.h: Likewise.
94788         * lib/unictype/categ_Cn.h: Likewise.
94789         * lib/unictype/categ_Co.h: Likewise.
94790         * lib/unictype/categ_Cs.h: Likewise.
94791         * lib/unictype/categ_L.h: Likewise.
94792         * lib/unictype/categ_Ll.h: Likewise.
94793         * lib/unictype/categ_Lm.h: Likewise.
94794         * lib/unictype/categ_Lo.h: Likewise.
94795         * lib/unictype/categ_Lt.h: Likewise.
94796         * lib/unictype/categ_Lu.h: Likewise.
94797         * lib/unictype/categ_M.h: Likewise.
94798         * lib/unictype/categ_Mc.h: Likewise.
94799         * lib/unictype/categ_Me.h: Likewise.
94800         * lib/unictype/categ_Mn.h: Likewise.
94801         * lib/unictype/categ_N.h: Likewise.
94802         * lib/unictype/categ_Nd.h: Likewise.
94803         * lib/unictype/categ_Nl.h: Likewise.
94804         * lib/unictype/categ_No.h: Likewise.
94805         * lib/unictype/categ_P.h: Likewise.
94806         * lib/unictype/categ_Pc.h: Likewise.
94807         * lib/unictype/categ_Pd.h: Likewise.
94808         * lib/unictype/categ_Pe.h: Likewise.
94809         * lib/unictype/categ_Pf.h: Likewise.
94810         * lib/unictype/categ_Pi.h: Likewise.
94811         * lib/unictype/categ_Po.h: Likewise.
94812         * lib/unictype/categ_Ps.h: Likewise.
94813         * lib/unictype/categ_S.h: Likewise.
94814         * lib/unictype/categ_Sc.h: Likewise.
94815         * lib/unictype/categ_Sk.h: Likewise.
94816         * lib/unictype/categ_Sm.h: Likewise.
94817         * lib/unictype/categ_So.h: Likewise.
94818         * lib/unictype/categ_Z.h: Likewise.
94819         * lib/unictype/categ_Zl.h: Likewise.
94820         * lib/unictype/categ_Zp.h: Likewise.
94821         * lib/unictype/categ_Zs.h: Likewise.
94822         * lib/unictype/categ_of.h: Likewise.
94823         * lib/unictype/combining.h: Likewise.
94824         * lib/unictype/ctype_alnum.h: Likewise.
94825         * lib/unictype/ctype_alpha.h: Likewise.
94826         * lib/unictype/ctype_blank.h: Likewise.
94827         * lib/unictype/ctype_cntrl.h: Likewise.
94828         * lib/unictype/ctype_digit.h: Likewise.
94829         * lib/unictype/ctype_graph.h: Likewise.
94830         * lib/unictype/ctype_lower.h: Likewise.
94831         * lib/unictype/ctype_print.h: Likewise.
94832         * lib/unictype/ctype_punct.h: Likewise.
94833         * lib/unictype/ctype_space.h: Likewise.
94834         * lib/unictype/ctype_upper.h: Likewise.
94835         * lib/unictype/ctype_xdigit.h: Likewise.
94836         * lib/unictype/decdigit.h: Likewise.
94837         * lib/unictype/digit.h: Likewise.
94838         * lib/unictype/mirror.h: Likewise.
94839         * lib/unictype/numeric.h: Likewise.
94840         * lib/unictype/pr_alphabetic.h: Likewise.
94841         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
94842         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
94843         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
94844         * lib/unictype/pr_bidi_block_separator.h: Likewise.
94845         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
94846         * lib/unictype/pr_bidi_common_separator.h: Likewise.
94847         * lib/unictype/pr_bidi_control.h: Likewise.
94848         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
94849         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
94850         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
94851         * lib/unictype/pr_bidi_european_digit.h: Likewise.
94852         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
94853         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
94854         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
94855         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
94856         * lib/unictype/pr_bidi_pdf.h: Likewise.
94857         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
94858         * lib/unictype/pr_bidi_whitespace.h: Likewise.
94859         * lib/unictype/pr_combining.h: Likewise.
94860         * lib/unictype/pr_composite.h: Likewise.
94861         * lib/unictype/pr_currency_symbol.h: Likewise.
94862         * lib/unictype/pr_dash.h: Likewise.
94863         * lib/unictype/pr_decimal_digit.h: Likewise.
94864         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
94865         * lib/unictype/pr_deprecated.h: Likewise.
94866         * lib/unictype/pr_diacritic.h: Likewise.
94867         * lib/unictype/pr_extender.h: Likewise.
94868         * lib/unictype/pr_format_control.h: Likewise.
94869         * lib/unictype/pr_grapheme_base.h: Likewise.
94870         * lib/unictype/pr_grapheme_extend.h: Likewise.
94871         * lib/unictype/pr_grapheme_link.h: Likewise.
94872         * lib/unictype/pr_hex_digit.h: Likewise.
94873         * lib/unictype/pr_hyphen.h: Likewise.
94874         * lib/unictype/pr_id_continue.h: Likewise.
94875         * lib/unictype/pr_id_start.h: Likewise.
94876         * lib/unictype/pr_ideographic.h: Likewise.
94877         * lib/unictype/pr_ids_binary_operator.h: Likewise.
94878         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
94879         * lib/unictype/pr_ignorable_control.h: Likewise.
94880         * lib/unictype/pr_iso_control.h: Likewise.
94881         * lib/unictype/pr_join_control.h: Likewise.
94882         * lib/unictype/pr_left_of_pair.h: Likewise.
94883         * lib/unictype/pr_line_separator.h: Likewise.
94884         * lib/unictype/pr_logical_order_exception.h: Likewise.
94885         * lib/unictype/pr_lowercase.h: Likewise.
94886         * lib/unictype/pr_math.h: Likewise.
94887         * lib/unictype/pr_non_break.h: Likewise.
94888         * lib/unictype/pr_not_a_character.h: Likewise.
94889         * lib/unictype/pr_numeric.h: Likewise.
94890         * lib/unictype/pr_other_alphabetic.h: Likewise.
94891         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
94892         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
94893         * lib/unictype/pr_other_id_continue.h: Likewise.
94894         * lib/unictype/pr_other_id_start.h: Likewise.
94895         * lib/unictype/pr_other_lowercase.h: Likewise.
94896         * lib/unictype/pr_other_math.h: Likewise.
94897         * lib/unictype/pr_other_uppercase.h: Likewise.
94898         * lib/unictype/pr_paired_punctuation.h: Likewise.
94899         * lib/unictype/pr_paragraph_separator.h: Likewise.
94900         * lib/unictype/pr_pattern_syntax.h: Likewise.
94901         * lib/unictype/pr_pattern_white_space.h: Likewise.
94902         * lib/unictype/pr_private_use.h: Likewise.
94903         * lib/unictype/pr_punctuation.h: Likewise.
94904         * lib/unictype/pr_quotation_mark.h: Likewise.
94905         * lib/unictype/pr_radical.h: Likewise.
94906         * lib/unictype/pr_sentence_terminal.h: Likewise.
94907         * lib/unictype/pr_soft_dotted.h: Likewise.
94908         * lib/unictype/pr_space.h: Likewise.
94909         * lib/unictype/pr_terminal_punctuation.h: Likewise.
94910         * lib/unictype/pr_titlecase.h: Likewise.
94911         * lib/unictype/pr_unassigned_code_value.h: Likewise.
94912         * lib/unictype/pr_unified_ideograph.h: Likewise.
94913         * lib/unictype/pr_uppercase.h: Likewise.
94914         * lib/unictype/pr_variation_selector.h: Likewise.
94915         * lib/unictype/pr_white_space.h: Likewise.
94916         * lib/unictype/pr_xid_continue.h: Likewise.
94917         * lib/unictype/pr_xid_start.h: Likewise.
94918         * lib/unictype/pr_zero_width.h: Likewise.
94919         * lib/unictype/scripts.h: Likewise.
94920         * lib/unictype/scripts_byname.gperf: Likewise.
94921         * lib/unictype/sy_c_ident.h: Likewise.
94922         * lib/unictype/sy_c_whitespace.h: Likewise.
94923         * lib/unictype/sy_java_ident.h: Likewise.
94924         * lib/unictype/sy_java_whitespace.h: Likewise.
94926         * lib/unictype/Makefile: New file.
94927         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
94928         glibc.
94929         * lib/unictype/3level.h: New file, copied from glibc.
94930         * lib/unictype/3levelbit.h: New file.
94932 2007-11-11  Bruno Haible  <bruno@clisp.org>
94934         * modules/gperf: New file.
94935         * modules/iconv_open (Depends-on): Add it.
94936         (Makefile.am): Remove the GPERF definition.
94938 2007-11-11  Bruno Haible  <bruno@clisp.org>
94940         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
94941         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
94943 2007-11-11  Bruno Haible  <bruno@clisp.org>
94945         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
94946         (usage): Remove function.
94948 2007-11-11  Bruno Haible  <bruno@clisp.org>
94950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
94951         gl_FUNC_CEILF_LIBS.
94952         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
94953         gl_FUNC_CEIL_LIBS.
94954         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
94955         gl_FUNC_CEILL_LIBS.
94956         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
94957         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
94958         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
94960 2007-11-11  Bruno Haible  <bruno@clisp.org>
94962         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
94963         roundf were declared but do not exist on functions.
94964         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
94965         roundl were declared but do not exist on functions.
94966         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
94967         HAVE_FLOORL_AND_CEILL, respectively.
94968         Needed for Sun C on Solaris 10.
94970 2007-11-11  Bruno Haible  <bruno@clisp.org>
94972         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
94973         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
94974         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
94975         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
94976         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
94977         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
94978         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
94979         HAVE_DECL_ROUNDF.
94980         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
94981         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
94982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
94983         of HAVE_DECL_ROUND*.
94984         * modules/math (Makefile.am): Update.
94986 2007-11-10  Bruno Haible  <bruno@clisp.org>
94988         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
94989         ptrdiff_t as m4/intl.m4.
94991 2007-11-10  Jim Meyering  <meyering@redhat.com>
94993         Avoid link failure for the argmatch test.
94994         * tests/test-argmatch.c (usage): Define function to avoid a link
94995         failure: argmatch_die requires a usage function.
94997 2007-11-09  Bruno Haible  <bruno@clisp.org>
94999         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95000         * doc/functions/vsnprintf.texi: Likewise.
95001         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95002         with a size argument < 2.
95004 2007-11-09  Bruno Haible  <bruno@clisp.org>
95006         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95007         buffer. Fixes an inefficiency introduced on 2007-11-03.
95009 2007-11-09  Bruno Haible  <bruno@clisp.org>
95011         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95012         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95014 2007-11-08  Jim Meyering  <meyering@redhat.com>
95016         Change cache variable name prefix "jm_" to "gl_" everywhere.
95017         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95018         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95019         * m4/uptime.m4: s/gl_/jm_/
95021 2007-11-07  Bruno Haible  <bruno@clisp.org>
95023         Update to GNU gettext 0.17.
95024         * m4/intl.m4: Update to GNU gettext 0.17.
95025         * m4/po.m4: Likewise.
95026         * modules/gettext (Files): Remove m4/ulonglong.m4.
95027         (configure.ac): Require gettext infrastructure from version 0.17.
95029 2007-11-06  Bruno Haible  <bruno@clisp.org>
95031         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95032         symbolic values are not defined in a public header.
95033         * lib/freadable.c (freadable) [QNX]: Likewise.
95034         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95035         * lib/freading.c (freading) [QNX]: Likewise.
95036         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95037         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95038         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95039         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95040         Reported by Alain Magloire.
95042         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95044 2007-11-05  Bruno Haible  <bruno@clisp.org>
95046         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95047         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95048         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95049         Reported by Eric Blake.
95051 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95052             Bruno Haible  <bruno@clisp.org>
95054         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95055         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95056         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95057         (malloc): Undefine also before including <stdlib.h>.
95058         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95059         Needed on OSF/1 4.0.
95061 2007-11-05  Jim Meyering  <meyering@redhat.com>
95063         git-version-gen: sync from coreutils.
95064         * build-aux/git-version-gen: Add comments.
95065         Change the first '-' to '.' in the snapshot version string,
95066         e.g., 6.9-377-08144 -> 6.9.377-08144
95067         Remove first parameter.
95068         Don't declare a version "-dirty" merely because a time
95069         stamp has changed.
95071 2007-11-04  Bruno Haible  <bruno@clisp.org>
95073         * lib/lock.h: Protect all macro definitions containing an 'if'
95074         statement through a "do { ... } while (0)".
95075         * lib/tls.h: Likewise.
95077 2007-11-04  Bruno Haible  <bruno@clisp.org>
95079         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95081 2007-11-04  Bruno Haible  <bruno@clisp.org>
95083         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95084         * modules/fprintf-posix (Depends-on): Add nocrash.
95085         * modules/snprintf-posix (Depends-on): Likewise.
95086         * modules/sprintf-posix (Depends-on): Likewise.
95087         * modules/vasnprintf-posix (Depends-on): Likewise.
95088         * modules/vasprintf-posix (Depends-on): Likewise.
95089         * modules/vfprintf-posix (Depends-on): Likewise.
95090         * modules/vsnprintf-posix (Depends-on): Likewise.
95091         * modules/vsprintf-posix (Depends-on): Likewise.
95092         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95093         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95094         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95095         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95096         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95097         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95098         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95100 2007-11-04  Bruno Haible  <bruno@clisp.org>
95102         * modules/nocrash: New file.
95103         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95104         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95106 2007-11-04  Bruno Haible  <bruno@clisp.org>
95108         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95109         precision handling.
95110         * tests/test-vasprintf-posix.c (test_function): Likewise.
95111         * tests/test-snprintf-posix.h (test_function): Likewise.
95112         * tests/test-sprintf-posix.h (test_function): Likewise.
95114         Fix *printf behaviour for large precisions on mingw and BeOS.
95115         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95116         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95118         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95120         gl_PRINTF_PRECISION and test its result. Invoke
95121         gl_PREREQ_VASNPRINTF_PRECISION.
95122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95126         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95127         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95128         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95129         * doc/functions/fprintf.texi: Update.
95130         * doc/functions/printf.texi: Update.
95131         * doc/functions/snprintf.texi: Update.
95132         * doc/functions/sprintf.texi: Update.
95133         * doc/functions/vfprintf.texi: Update.
95134         * doc/functions/vprintf.texi: Update.
95135         * doc/functions/vsnprintf.texi: Update.
95136         * doc/functions/vsprintf.texi: Update.
95138 2007-11-04  Bruno Haible  <bruno@clisp.org>
95140         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95142 2007-11-04  Bruno Haible  <bruno@clisp.org>
95144         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95145         Reported by Sylvain Beucler <beuc@gnu.org>.
95147 2007-11-03  Bruno Haible  <bruno@clisp.org>
95149         * tests/test-fprintf-posix2.sh: New file.
95150         * tests/test-fprintf-posix2.c: New file.
95151         * modules/fprintf-posix-tests (Files): Add them.
95152         (TESTS): Add test-fprintf-posix2.sh.
95153         (configure.ac): Check for getrlimit and setrlimit.
95154         (check_PROGRAMS): Add test-fprintf-posix2.
95156         * tests/test-printf-posix2.sh: New file.
95157         * tests/test-printf-posix2.c: New file.
95158         * modules/printf-posix-tests (Files): Add them.
95159         (TESTS): Add test-printf-posix2.sh.
95160         (configure.ac): Check for getrlimit and setrlimit.
95161         (check_PROGRAMS): Add test-printf-posix2.
95163         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95164         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95165         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95166         (decode_double): New function, copied from decode_long_double.
95167         (scale10_round_decimal_decoded): New function, extracted from
95168         scale10_round_decimal_long_double.
95169         (scale10_round_decimal_long_double): Use it.
95170         (scale10_round_decimal_double): New function.
95171         (floorlog10): New function.
95172         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95174         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95176         gl_PRINTF_ENOMEM and test its result. Invoke
95177         gl_PREREQ_VASNPRINTF_ENOMEM.
95178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95185         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95186         * modules/snprintf-posix (Depends-on): Likewise.
95187         * modules/sprintf-posix (Depends-on): Likewise.
95188         * modules/vasnprintf-posix (Depends-on): Likewise.
95189         * modules/vasprintf-posix (Depends-on): Likewise.
95190         * modules/vfprintf-posix (Depends-on): Likewise.
95191         * modules/vsnprintf-posix (Depends-on): Likewise.
95192         * modules/vsprintf-posix (Depends-on): Likewise.
95193         * doc/functions/fprintf.texi: Update.
95194         * doc/functions/printf.texi: Update.
95195         * doc/functions/snprintf.texi: Update.
95196         * doc/functions/sprintf.texi: Update.
95197         * doc/functions/vfprintf.texi: Update.
95198         * doc/functions/vprintf.texi: Update.
95199         * doc/functions/vsnprintf.texi: Update.
95200         * doc/functions/vsprintf.texi: Update.
95202 2007-11-03  Bruno Haible  <bruno@clisp.org>
95204         * modules/frexp-nolibm-tests: New file.
95206         * modules/frexp-nolibm: New file.
95207         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95209 2007-11-03  Bruno Haible  <bruno@clisp.org>
95211         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95212         value is C99 compliant.
95213         Needed for OSF/1 5.1.
95215 2007-11-03  Bruno Haible  <bruno@clisp.org>
95217         Fix out-of-memory handling of vasnprintf.
95218         * lib/printf-parse.c: Include <errno.h>.
95219         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95220         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95221         is already set.
95223 2007-11-02  Eric Blake  <ebb9@byu.net>
95225         Fix tests on cygwin.
95226         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95228 2007-11-01  Bruno Haible  <bruno@clisp.org>
95230         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95231         warning.
95232         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95233         needed for POSIX compatibility.
95235 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95237         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95238         for compatibility with GNU.
95240 2007-11-01  Bruno Haible  <bruno@clisp.org>
95242         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95243         (putenv): Renamed from rpl_putenv. Change argument type from
95244         'const char *' to 'char *'.
95245         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95246         of defining putenv in config.h, just set REPLACE_PUTENV.
95247         * modules/putenv (Depends-on): Add stdlib.
95248         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95249         (Include): Use <stdlib.h>.
95250         * lib/stdlib.in.h (putenv): New declaration.
95251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95252         REPLACE_PUTENV.
95253         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95254         REPLACE_PUTENV.
95255         Needed for MacOS X 10.5.0.
95256         Reported by Peter O'Gorman <peter@pogma.com>.
95258 2007-11-01  Jim Meyering  <meyering@redhat.com>
95260         Treat an empty date string exactly like "0".
95261         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95262         if the remaining date string (to be parsed) is empty, use "0".
95263         Reported by Mischa Molhoek and discussed in this thread:
95264         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95266 2007-10-31  Bruno Haible  <bruno@clisp.org>
95268         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95269         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95270         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95271         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95272         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95273         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95275 2007-10-31  Bruno Haible  <bruno@clisp.org>
95277         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95278         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95279         (AC_TYPE_LONG_LONG_INT): Use it.
95280         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95281         it as well.
95282         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95283         to m4/longlong.m4.
95284         * modules/stdint (Files): Remove m4/ulonglong.m4.
95285         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95286         m4/ulonglong.m4.
95287         * modules/strtoumax (Files): Likewise.
95289 2007-10-30  Bruno Haible  <bruno@clisp.org>
95291         * modules/xvasprintf-posix: New file.
95292         Suggested by Eric Blake.
95294 2007-10-30  Bruno Haible  <bruno@clisp.org>
95296         * modules/xprintf-posix-tests: New file.
95297         * tests/test-xprintf-posix.sh: New file.
95298         * tests/test-xprintf-posix.c: New file.
95299         * tests/test-xfprintf-posix.c: New file.
95301         * modules/xprintf-posix: New file.
95303 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95305         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95306         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95307         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95309 2007-10-29  Bruno Haible  <bruno@clisp.org>
95311         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95312         contain the special marker '_cv_'.
95313         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95314         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95315         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95316         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95317         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95318         Reported by Ralf Wildenhues.
95320 2007-10-29  Bruno Haible  <bruno@clisp.org>
95322         * gnulib-tool (func_import): When --lgpl is not specified, set
95323         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95324         GPLv3.
95325         Reported by Simon Josefsson.
95327 2007-10-28  Bruno Haible  <bruno@clisp.org>
95329         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95330         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95331         HAVE_DECL_ISFINITE.
95332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95333         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95334         HAVE_DECL_ISFINITE.
95336 2007-10-28  Bruno Haible  <bruno@clisp.org>
95338         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95339         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95341 2007-10-28  Bruno Haible  <bruno@clisp.org>
95343         Fix link errors with Sun C 5.0 on Solaris 10.
95344         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95345         function is declared but not present in the compiler's libm.
95346         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95347         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95348         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95349         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95350         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95351         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95352         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95354         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95355         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95356         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95357         HAVE_DECL_FLOORL.
95359 2007-10-28  Bruno Haible  <bruno@clisp.org>
95361         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95362         gl_FUNC_FLOORL. Cache the result.
95363         (gl_FUNC_FLOORL): Use it.
95364         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95365         gl_FUNC_CEILL. Cache the result.
95366         (gl_FUNC_CEILL): Use it.
95368         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95369         gl_FUNC_FLOOR. Cache the result.
95370         (gl_FUNC_FLOOR): Use it.
95371         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95372         gl_FUNC_CEIL. Cache the result.
95373         (gl_FUNC_CEIL): Use it.
95375         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95376         gl_FUNC_FLOORF. Cache the result.
95377         (gl_FUNC_FLOORF): Use it.
95378         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95379         gl_FUNC_CEILF. Cache the result.
95380         (gl_FUNC_CEILF): Use it.
95382 2007-10-28  Bruno Haible  <bruno@clisp.org>
95384         * gnulib-tool: Allow specifying the LGPL version number through
95385         --lgpl=2 or --lgpl=3.
95386         (func_usage): Document --lgpl with argument.
95387         Handle --lgpl=... arguments.
95388         (func_import): Recognize also gl_LGPL calls with an argument. When
95389         --lgpl=2 is used and the module's license is just LGPL, report an
95390         error. Set sed_transform_lib_file according to the lgpl variable. In
95391         the generated files, use --lgpl or gl_LGPL invocations with argument,
95392         if necessary.
95393         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95394         an LGPv2+ license.
95395         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95396         gl_LGPL macro.
95398 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95399             Bruno Haible  <bruno@clisp.org>
95401         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95402         (u16_uctomb_aux): Likewise.
95403         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95404         !HAVE_INLINE.
95405         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95407 2007-10-28  Bruno Haible  <bruno@clisp.org>
95409         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95410         Invoke AM_GETTEXT_OPTION if it exists.
95411         * modules/vasprintf: Likewise.
95412         * modules/verror: Likewise.
95413         * modules/xprintf: Likewise.
95414         * modules/xvasprintf: Likewise.
95416 2007-10-27  Ben Pfaff  <blp@gnu.org>
95418         * lib/math.in.h: Define isfinite macro and prototypes for
95419         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95420         implementations.
95421         * m4/math_h.m4: New substitutions for isfinite module.
95422         * lib/isfinite.c: New file.
95423         * m4/isfinite.m4: New file.
95424         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95425         * modules/isfinite: New file.
95426         * modules/isfinite-tests: New file.
95427         * tests/tests-isfinite.c: New file.
95428         * doc/functions/isfinite.texi: Mention isfinite module.
95429         * MODULES.html.sh: Mention new module.
95431 2007-10-27  Ben Pfaff  <blp@gnu.org>
95433         Ralf Wildenhues reported that Tru64 4.0D declares the round
95434         functions but does not have definitions.
95435         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95436         cannot be found in any library, set the output variable to
95437         "missing" instead of "".
95438         * m4/round.m4: Also use our substitute if we cannot find round in
95439         any library, even if it is declared.
95440         * m4/roundf.m4: Likewise for roundf.
95441         * m4/roundl.m4: Likewise for roundl.
95442         * lib/math.in.h: Undefine roundf, round, roundl before defining
95443         their replacements, to allow for hypothetical systems where these
95444         may be defined as macros but not available in libraries.
95446 2007-10-27  Bruno Haible  <bruno@clisp.org>
95448         * doc/gnulib.texi: Invoke @firstparagraphindent.
95449         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95450         changes in gnulib.
95451         (Source changes): New section.
95453 2007-10-26  Bruno Haible  <bruno@clisp.org>
95455         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95456         borrowed from autoconf.
95458 2007-10-26  Bruno Haible  <bruno@clisp.org>
95460         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95461         strerror returned the empty string. Needed on HP-UX 11.00.
95463 2007-10-24  Micah Cowan  <micah@cowan.name>
95465         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95466         * build-aux/bootstrap: Remove support for now-unnecessary option,
95467         --cvs-user, and envvars CVS_USER, CVS_RSH.
95469 2007-10-24  Jim Meyering  <meyering@redhat.com>
95471         Avoid diagnostics from sha1sum when there is no cached checksum.
95472         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95473         if the po.s1 file hasn't been created yet.
95475         * build-aux/bootstrap: Sync from coreutils:
95476         2007-10-24  Jim Meyering  <meyering@redhat.com>
95477         Get gnulib from the git repository, not from an obsolete cvs one.
95478         * build-aux/bootstrap: Suggestion from Micah Cowan.
95479         2007-10-04  Jim Meyering  <jim@meyering.net>
95480         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95481         (update_po_files): Work also when there are no .po files in po/.
95483 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95485         * README: Append ".git" to git and cg examples.
95486         Problem reported by Benoit Sigoure.
95488 2007-10-23  Micah Cowan  <micah@cowan.name>
95490         * users.txt: Add wget.
95492 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95494         Fix linking of some unistdio tests on FreeBSD.
95495         * modules/unistdio/u16-vsnprintf-tests
95496         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95497         * modules/unistdio/u16-vsprintf-tests
95498         (test_u16_vsnprintf1_LDADD): Likewise.
95499         * modules/unistdio/u32-vsnprintf-tests
95500         (test_u32_vsnprintf1_LDADD): Likewise.
95501         * modules/unistdio/u32-vsprintf-tests
95502         (test_u32_vsprintf1_LDADD): Likewise.
95503         * modules/unistdio/u8-vsnprintf-tests
95504         (test_u8_vsnprintf1_LDADD): Likewise.
95505         * modules/unistdio/u8-vsprintf-tests
95506         (test_u8_vsprintf1_LDADD): Likewise.
95507         * modules/unistdio/ulc-vsnprintf-tests
95508         (test_ulc_vsnprintf1_LDADD): Likewise.
95509         * modules/unistdio/ulc-vsprintf-tests
95510         (test_ulc_vsprintf1_LDADD): Likewise.
95512         Fix linking of some uniconv tests on FreeBSD.
95513         * modules/uniconv/u16-conv-from-enc-tests
95514         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95515         * modules/uniconv/u16-conv-to-enc-tests
95516         (test_u16_conv_to_enc_LDADD): Likewise.
95517         * modules/uniconv/u16-strconv-from-enc-tests
95518         (test_u16_strconv_from_enc_LDADD): Likewise.
95519         * modules/uniconv/u16-strconv-to-enc-tests
95520         (test_u16_strconv_to_enc_LDADD): Likewise.
95521         * modules/uniconv/u32-conv-from-enc-tests
95522         (test_u32_conv_from_enc_LDADD): Likewise.
95523         * modules/uniconv/u32-conv-to-enc-tests
95524         (test_u32_conv_to_enc_LDADD): Likewise.
95525         * modules/uniconv/u32-strconv-from-enc-tests
95526         (test_u32_strconv_from_enc_LDADD): Likewise.
95527         * modules/uniconv/u32-strconv-to-enc-tests
95528         (test_u32_strconv_to_enc_LDADD): Likewise.
95529         * modules/uniconv/u8-conv-from-enc-tests
95530         (test_u8_conv_from_enc_LDADD): Likewise.
95531         * modules/uniconv/u8-conv-to-enc-tests
95532         (test_u8_conv_to_enc_LDADD): Likewise.
95533         * modules/uniconv/u8-strconv-from-enc-tests
95534         (test_u8_strconv_from_enc_LDADD): Likewise.
95535         * modules/uniconv/u8-strconv-to-enc-tests
95536         (test_u8_strconv_to_enc_LDADD): Likewise.
95538 2007-10-22  Bruno Haible  <bruno@clisp.org>
95540         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95541         size.
95543 2007-10-22  Eric Blake  <ebb9@byu.net>
95545         Tweak x*printf documentation.
95546         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95547         variable name and comments.
95548         Suggested by Bruno Haible.
95550 2007-10-22  Bruno Haible  <bruno@clisp.org>
95552         * lib/acl.c (copy_acl): Fix file name in comment.
95554 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95556         Fix Tru64 problem with stdbool.h.
95557         * lib/stdbool.in.h (false, true):
95558         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95559         Don't declare as an enum in this situation; it runs afoul of Tru64.
95560         Problem reported by Steven M. Schweda in
95561         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95563 2007-10-22  Eric Blake  <ebb9@byu.net>
95565         Also wrap vf?printf.
95566         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95567         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95568         (xvprintf, xvfprintf): New functions.
95570 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95572         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95573         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95575         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95576         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95578 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95580         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95581         by Bruno Haible.
95583 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95585         * lib/getloadavg.c
95586         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95587         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95589         * tests/test-i-ring.c: Work for C89.
95591 2007-10-22  Bruno Haible  <bruno@clisp.org>
95593         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95594         -1u, in preprocessor expression, so that we don't test for the bug
95595         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95596         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95598 2007-10-22  Eric Blake  <ebb9@byu.net>
95600         * tests/test-yesno.sh: Silence stderr during test.
95602 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95604         * modules/crypto/gc-camellia: New file.
95606         * m4/gc-camellia.m4: New file.
95608         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95610         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95612 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95614         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95615         --help to stdout.  Reported by sms@antinode.org (Steven
95616         M. Schweda).
95618 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95620         * users.txt: Fix link to libksba.
95622 2007-10-21  Ben Pfaff  <blp@gnu.org>
95624         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95625         round.c roundf implementation that depends on floorf and ceilf to
95626         be tested unconditionally.
95628 2007-10-21  Ben Pfaff  <blp@gnu.org>
95630         * m4/check-libm-func.m4: Removed.
95631         * m4/check-math-lib.m4: New file.
95632         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95633         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95634         definition and lack of AC_LIBOBJ([roundf]).
95635         * m4/roundl.m4: Ditto, and similarly for roundl.
95636         * modules/round: Reference new m4 file.
95637         * modules/roundf: Ditto.
95638         * modules/roundl: Ditto.
95639         * tests/test-round2.c (main): Use ROUND instead of round.
95640         Bug report from Bruno Haible.
95642 2007-10-21  Bruno Haible  <bruno@clisp.org>
95644         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95645         context.
95647 2007-10-21  Bruno Haible  <bruno@clisp.org>
95649         * tests/test-wcwidth.c (main): Allow negative result for some control
95650         characters.
95652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95653         Needed on OSF/1 5.1.
95655 2007-10-21  Bruno Haible  <bruno@clisp.org>
95657         * tests/test-floorf1.c: Include isnanf.h.
95658         (main): Use isnanf() instead of isnan().
95659         * tests/test-ceilf1.c: Include isnanf.h.
95660         (main): Use isnanf() instead of isnan().
95661         * tests/test-truncf1.c: Include isnanf.h.
95662         (main): Use isnanf() instead of isnan().
95663         * tests/test-roundf1.c: Include isnanf.h.
95664         (main): Use isnanf() instead of isnan().
95666 2007-10-21  Eric Blake  <ebb9@byu.net>
95668         * users.txt: Update URL for m4.
95670 2007-10-21  Bruno Haible  <bruno@clisp.org>
95672         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95674 2007-10-21  Bruno Haible  <bruno@clisp.org>
95676         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95677         Git's management files if the CVS files are not present.
95679 2007-10-20  Bruno Haible  <bruno@clisp.org>
95681         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95682         gcc-3.4.x.
95684 2007-10-20  Ben Pfaff  <blp@gnu.org>
95686         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95687         implementations.
95688         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95689         * lib/round.c: New file.
95690         * lib/roundf.c: New file.
95691         * lib/roundl.c: New file.
95692         * m4/round.m4: New file.
95693         * m4/roundf.m4: New file.
95694         * m4/roundl.m4: New file.
95695         * m4/check-libm-func-m4: New file.
95696         * modules/math: Replace round, roundf, roundl related @VARS@ in
95697         math.in.h.
95698         * modules/round: New file.
95699         * modules/round-tests: New file.
95700         * modules/roundf: New file.
95701         * modules/roundf-tests: New file.
95702         * modules/roundl: New file.
95703         * modules/roundl-tests: New file.
95704         * tests/test-round1.c: New file.
95705         * tests/test-round2.c: New file.
95706         * tests/test-roundf1.c: New file.
95707         * tests/test-roundf2.c: New file.
95708         * tests/test-roundl.c: New file.
95709         * doc/functions/round.texi: Mention round module.
95710         * doc/functions/roundf.texi: Mention roundf module.
95711         * doc/functions/roundl.texi: Mention roundl module.
95712         * MODULES.html.sh: Mention new modules.
95713         Thanks to Bruno Haible for suggestions.
95715 2007-10-20  Jim Meyering  <meyering@redhat.com>
95717         * lib/xprintf.c: Include <config.h> unconditionally.
95719         Change xprintf's license to GPL.
95720         * modules/xprintf (License): s/LGPL/GPL/, since this module
95721         depends on modules (exit and exitfail) which are GPL.
95722         Suggestion from Bruno Haible.
95724         xprintf fixes.
95725         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
95726         Use a clearer diagnostic.
95727         Patch from Bruno Haible.
95729 2007-10-20  Bruno Haible  <bruno@clisp.org>
95731         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
95732         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
95733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95735 2007-10-20  Bruno Haible  <bruno@clisp.org>
95737         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
95738         precision in the comparison result > x - 1 or similar.
95739         * tests/test-ceilf2.c (correct_result_p): Likewise.
95740         * tests/test-truncf2.c (correct_result_p): Likewise.
95741         * tests/test-trunc2.c (correct_result_p): Likewise.
95742         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95744 2007-10-20  Bruno Haible  <bruno@clisp.org>
95746         * modules/ceil: New file.
95747         * m4/ceil.m4: New file.
95748         * doc/functions/ceil.texi: Mention the 'ceil' module.
95750 2007-10-20  Bruno Haible  <bruno@clisp.org>
95752         * modules/floor: New file.
95753         * m4/floor.m4: New file.
95754         * doc/functions/floor.texi: Mention the 'floor' module.
95756 2007-10-20  Bruno Haible  <bruno@clisp.org>
95758         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
95759         of %a.
95760         * modules/floorf-tests (Depends-on): Likewise.
95761         * modules/truncf-tests (Depends-on): Likewise.
95762         * modules/trunc-tests (Depends-on): Likewise.
95763         Reported by Ben Pfaff.
95765 2007-10-19  Jim Meyering  <meyering@redhat.com>
95767         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
95768         Don't bother testing specific errno values.  Just test ferror.
95770         New module: xprintf
95771         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
95773 2007-10-19  Bruno Haible  <bruno@clisp.org>
95775         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
95776         syntax.
95777         * modules/javaexec (Makefile.am): Likewise.
95778         * modules/relocatable-prog (Makefile.am): Likewise.
95779         Suggested by Jim Meyering.
95781 2007-10-18  Bruno Haible  <bruno@clisp.org>
95783         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
95784         Reported by Jim Meyering.
95786 2007-10-18  Eric Blake  <ebb9@byu.net>
95788         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
95790 2007-10-18  Bruno Haible  <bruno@clisp.org>
95792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
95793         the format string into writable memory. Needed in Fortify conditions.
95795 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
95796             Bruno Haible  <bruno@clisp.org>
95798         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
95799         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
95800         * modules/trim (Depends-on): Add mbchar.
95801         (configure.ac): Add gl_FUNC_MBRTOWC.
95802         (Makefile.am): Augment lib_SOURCES.
95804 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95806         Modify glob.c to use fstatat and dirfd, to simplify it.
95807         Suggested by Eric Blake.
95808         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
95809         Don't include <stdbool.h>; not used.
95810         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
95811         (link_exists_p): Simplify implementation, since we can now assume
95812         dirfd and fstatat.
95813         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
95815 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95817         * gnulib-tool (func_get_dependencies): Fix sed script to
95818         match only tests.
95820 2007-10-17  Bruno Haible  <bruno@clisp.org>
95822         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
95823         allow locale names without encoding suffix.
95824         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95827 2007-10-16  Bruno Haible  <bruno@clisp.org>
95829         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
95830         * lib/getgroups.c (getgroups): Likewise.
95831         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
95833 2007-10-16  Bruno Haible  <bruno@clisp.org>
95835         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
95836         * modules/malloc-posix (License): Likewise.
95837         * modules/realloc-posix (License): Likewise.
95838         * modules/calloc-posix (License): Likewise.
95839         * modules/intprops (License): Change from GPL to LGPL, with
95840         Paul Eggert's approval.
95842 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95844         Merge glibc changes into lib/glob.c.
95846         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
95847         2007-10-15 04:59:03 UTC.  Here are the changes:
95849         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
95851         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
95853         * lib/glob.c: Add some branch prediction throughout.
95855         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
95857         [BZ #5103]
95858         * lib/glob.c (glob): Recognize patterns starting \/.
95860         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
95862         [BZ #3996]
95863         * lib/glob.c (attribute_hidden): Define if not defined.
95864         (glob): Unescape dirname, filename or username when needed and not
95865         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
95866         is NULL.  Handle unescaped [ in pattern without closing ].
95867         Don't pass GLOB_CHECK down to recursive glob for directories.
95868         (__glob_pattern_type): New function.
95869         (__glob_pattern_p): Implement using __glob_pattern_type.
95870         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
95871         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
95872         Remove unreachable code.
95874         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
95876         * lib/glob.c (glob_in_dir): Add some comments and asserts to
95877         explain why there are no leaks.
95879         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
95881         [BZ #3253]
95882         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
95883         time, rather allocate increasingly bigger arrays of pointers, if
95884         possible with alloca, if too large with malloc.
95886 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95888         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
95889         Problem reported by H.Merijn Brand in
95890         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
95891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
95892         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
95894 2007-10-15  Bruno Haible  <bruno@clisp.org>
95896         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
95897         with explicit rpl_ prefix.
95898         * lib/fopen.c (fopen): Likewise.
95899         * lib/freopen.c (freopen): Likewise.
95900         * lib/iconv.c (iconv): Likewise.
95901         * lib/iconv_close.c (iconv_close): Likewise.
95903 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95905         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
95907 2007-10-15  Bruno Haible  <bruno@clisp.org>
95909         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
95910         <stddef.h> instead of <stdlib.h> since we only need NULL.
95911         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95913 2007-10-15  Bruno Haible  <bruno@clisp.org>
95915         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
95916         Replace paragraph talking about LIBOBJS.
95917         Reported by Colin Watson <cjwatson@debian.org>.
95919 2007-10-15  Bruno Haible  <bruno@clisp.org>
95921         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
95922         <stdlib.h> before using NULL.
95924 2007-10-15  Simon Josefsson  <simon@josefsson.org>
95926         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
95927         Reported by Albert Chin <china@thewrittenword.com>.
95929 2007-10-14  Bruno Haible  <bruno@clisp.org>
95931         * modules/iconv_open-utf-tests: New file.
95932         * tests/test-iconv-utf.c: New file.
95934         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
95935         * modules/iconv_open-utf: New file.
95936         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
95937         (iconv, iconv_close): New declarations.
95938         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
95939         be defined.
95940         (iconv_open): Add special handling of conversion between UTF-8 and
95941         UTF-{16,32}{BE,LE}.
95942         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
95943         * lib/iconv_close.c: New file.
95944         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
95945         gl_FUNC_ICONV_OPEN.
95946         (gl_FUNC_ICONV_OPEN): Use it.
95947         (gl_FUNC_ICONV_OPEN_UTF): New macro.
95948         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
95949         and REPLACE_ICONV_UTF.
95950         * modules/iconv_open (Depends-on): Add c-strcase.
95951         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
95952         ICONV_CONST.
95953         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
95955 2007-10-13  Albert Chin  <china@thewrittenword.com>
95956             Bruno Haible  <bruno@clisp.org>
95958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
95959         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
95961 2007-10-13  Bruno Haible  <bruno@clisp.org>
95963         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
95964         defined, use the ISO C99 inline semantics.
95965         * lib/argp.h (ARGP_EI): Likewise.
95967 2007-10-13  Bruno Haible  <bruno@clisp.org>
95969         Handle 'inline' change in gcc 4.3.0.
95970         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
95971         argp_fmtstream_write, argp_fmtstream_set_lmargin,
95972         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
95973         argp_fmtstream_point): Disable 'extern' declaration if the function
95974         definition is going to be provided inline.
95975         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
95976         semantics, not the ISO C99 inline semantics.
95977         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
95978         'extern' declaration if the function definition is going to be provided
95979         inline.
95980         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
95981         the GNU C inline semantics, not the ISO C99 inline semantics. With
95982         GCC 4.2, avoid a warning.
95984 2007-10-13  Bruno Haible  <bruno@clisp.org>
95986         * lib/freading.h (freading): Enable the use of __freading for
95987         glibc >= 2.7.
95988         * lib/freading.c (freading): Likewise.
95990 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95992         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
95993         "warning: C99 inline functions are not supported; using GNU89".
95995 2007-10-12  Bruno Haible  <bruno@clisp.org>
95997         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
95998         of 2.
95999         * tests/test-ceilf2.c: New file.
96000         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96002         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96003         * modules/ceilf-tests: Update.
96005 2007-10-12  Bruno Haible  <bruno@clisp.org>
96007         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96008         of 2.
96009         * tests/test-floorf2.c: New file.
96010         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96012         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96013         * modules/floorf-tests: Update.
96015 2007-10-12  Bruno Haible  <bruno@clisp.org>
96017         * tests/test-trunc2.c: New file.
96018         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96020         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96021         * modules/trunc-tests: Update.
96023 2007-10-12  Bruno Haible  <bruno@clisp.org>
96025         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96026         of 2.
96027         * tests/test-truncf2.c: New file.
96028         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96030         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96031         * modules/truncf-tests: Update.
96033 2007-10-11  Eric Blake  <ebb9@byu.net>
96035         Don't claim strerror is broken on Interix.
96036         * doc/functions/strerror.texi (strerror): Known broken systems are
96037         now Solaris 8, and not Interix.
96038         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96039         Interix on cross-compile.
96040         Reported by Martin Koeppe in
96041         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96043 2007-10-11  Bruno Haible  <bruno@clisp.org>
96045         * modules/i-ring-tests: New file.
96046         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96047         instead of assert.
96049 2007-10-11  Bruno Haible  <bruno@clisp.org>
96051         * modules/filenamecat-tests: New file.
96052         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96053         * lib/filenamecat.c: Remove test code.
96055 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96057         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96059         * lib/strerror.c: Include <string.h> always, to test interface,
96060         and to remove the need for the dummy.
96061         Include intprops.h to compute width instead of doing it ourselves
96062         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96063         (strerror): Define it to return NULL if there's no system strerror.
96064         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96065         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96066         ancient pre-strerror Unix systems well any more.  Saying "unknown
96067         system error" is enough.
96068         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96069         simpler strerror.c implementation.
96070         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96071         Simplify the tests to reflect the simpler strerror implementation.
96072         * modules/strerror (Depends-on): Add intprops.
96074 2007-10-09  Eric Blake  <ebb9@byu.net>
96076         Silence test-fpending.
96077         * modules/fpending-tests (Files): Add wrapper script.
96078         * tests/test-fpending.sh: New file.
96080 2007-10-09  Bruno Haible  <bruno@clisp.org>
96082         * MODULES.html.sh (func_module): Don't create a hyperlink for
96083         function names like 'printf_frexp'.
96084         (Misc): Add crc, memxor.
96085         (Characteristics of floating types): New section.
96086         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96087         isnanf-nolibm, signbit, trunc, truncf, truncl.
96088         (Enhancements for ISO C 99 functions): New subsection Input/output.
96089         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96090         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96091         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96092         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96093         (Enhancements for POSIX:2001 functions): Add chdir-long.
96094         (File system functions): Add areadlink, chdir-safer, read-file.
96095         Remove cycle-check.
96096         (File system as inode set): New section.
96097         (Date and time): Add gethrxtime.
96098         (Multithreading): Add openmp.
96099         (Internationalization functions): Add localename.
96100         (Unicode string functions): Add unistr/u*-mbsnlen.
96101         (Support for maintaining and releasing projects): Add git-version-gen.
96102         (Lone files): Remove directories.
96104 2007-10-08  Ben Pfaff  <blp@gnu.org>
96106         * lib/xmalloca.h: Fix typo in comment.
96108 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96110         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96111         when avoiding problems with integer overflow.  Use a portable test
96112         instead.
96114 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96116         * modules/dummy (License): Change to LGPLv2+.
96117         * modules/float (License): Likewise
96118         * modules/realloc (License): Likewise
96119         * modules/stdlib (License): Likewise
96121 2007-10-07  Bruno Haible  <bruno@clisp.org>
96123         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96124         * floor.c (TWO_MANT_DIG): Likewise.
96125         * ceil.c (TWO_MANT_DIG): Likewise.
96126         Reported by Ben Pfaff.
96128 2007-10-07  Bruno Haible  <bruno@clisp.org>
96130         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96131         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96132         * lib/frexp.c (FUNC): Likewise.
96133         * lib/printf-frexp.h (printf_frexp): Likewise.
96134         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96135         * lib/printf-frexp.c (FUNC): Likewise.
96136         Suggested by Jim Meyering.
96138 2007-10-07  Jim Meyering  <meyering@redhat.com>
96140         Make xnanosleep's integer overflow test more robust.
96141         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96142         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96144 2007-10-07  Bruno Haible  <bruno@clisp.org>
96146         * NEWS: Mention the license change.
96148         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96149         abbreviations in the modules files.
96151         Change copyright notice from GPLv2+ to GPLv3+.
96152         * README: Change copyright notice.
96153         * MODULES.html.sh: Likewise.
96154         * build-aux/bootstrap.conf: Likewise.
96155         * build-aux/config.libpath: Likewise.
96156         * build-aux/csharpcomp.sh.in: Likewise.
96157         * build-aux/csharpexec.sh.in: Likewise.
96158         * build-aux/install-reloc: Likewise.
96159         * build-aux/javacomp.sh.in: Likewise.
96160         * build-aux/javaexec.sh.in: Likewise.
96161         * build-aux/ldd.sh.in: Likewise.
96162         * build-aux/reloc-ldflags: Likewise.
96163         * build-aux/relocatable.sh.in: Likewise.
96164         * build-aux/x-to-1.in: Likewise.
96165         * check-module: Likewise.
96166         * config/srclistvars.sh: Likewise.
96167         * gnulib-tool: Likewise.
96168         * lib/acl-internal.h: Likewise.
96169         * lib/acl.c: Likewise.
96170         * lib/acl.h: Likewise.
96171         * lib/acl_entries.c: Likewise.
96172         * lib/areadlink-with-size.c: Likewise.
96173         * lib/areadlink.c: Likewise.
96174         * lib/areadlink.h: Likewise.
96175         * lib/argmatch.c: Likewise.
96176         * lib/argmatch.h: Likewise.
96177         * lib/argp-ba.c: Likewise.
96178         * lib/argp-eexst.c: Likewise.
96179         * lib/argp-fmtstream.c: Likewise.
96180         * lib/argp-fmtstream.h: Likewise.
96181         * lib/argp-fs-xinl.c: Likewise.
96182         * lib/argp-help.c: Likewise.
96183         * lib/argp-namefrob.h: Likewise.
96184         * lib/argp-parse.c: Likewise.
96185         * lib/argp-pin.c: Likewise.
96186         * lib/argp-pv.c: Likewise.
96187         * lib/argp-pvh.c: Likewise.
96188         * lib/argp-xinl.c: Likewise.
96189         * lib/argp.h: Likewise.
96190         * lib/at-func.c: Likewise.
96191         * lib/atanl.c: Likewise.
96192         * lib/backupfile.c: Likewise.
96193         * lib/backupfile.h: Likewise.
96194         * lib/basename.c: Likewise.
96195         * lib/binary-io.h: Likewise.
96196         * lib/byteswap.in.h: Likewise.
96197         * lib/c-stack.c: Likewise.
96198         * lib/c-stack.h: Likewise.
96199         * lib/c-strcasestr.c: Likewise.
96200         * lib/c-strcasestr.h: Likewise.
96201         * lib/c-strstr.c: Likewise.
96202         * lib/c-strstr.h: Likewise.
96203         * lib/c-strtod.c: Likewise.
96204         * lib/calloc.c: Likewise.
96205         * lib/canon-host.c: Likewise.
96206         * lib/canon-host.h: Likewise.
96207         * lib/canonicalize-lgpl.c: Likewise.
96208         * lib/canonicalize.c: Likewise.
96209         * lib/canonicalize.h: Likewise.
96210         * lib/ceil.c: Likewise.
96211         * lib/ceilf.c: Likewise.
96212         * lib/ceill.c: Likewise.
96213         * lib/chdir-long.c: Likewise.
96214         * lib/chdir-long.h: Likewise.
96215         * lib/chdir-safer.c: Likewise.
96216         * lib/chdir-safer.h: Likewise.
96217         * lib/chown.c: Likewise.
96218         * lib/classpath.c: Likewise.
96219         * lib/classpath.h: Likewise.
96220         * lib/clean-temp.c: Likewise.
96221         * lib/clean-temp.h: Likewise.
96222         * lib/cloexec.c: Likewise.
96223         * lib/close-stream.c: Likewise.
96224         * lib/closein.c: Likewise.
96225         * lib/closein.h: Likewise.
96226         * lib/closeout.c: Likewise.
96227         * lib/closeout.h: Likewise.
96228         * lib/concat-filename.c: Likewise.
96229         * lib/copy-file.c: Likewise.
96230         * lib/copy-file.h: Likewise.
96231         * lib/count-one-bits.h: Likewise.
96232         * lib/crc.c: Likewise.
96233         * lib/crc.h: Likewise.
96234         * lib/creat-safer.c: Likewise.
96235         * lib/csharpcomp.c: Likewise.
96236         * lib/csharpcomp.h: Likewise.
96237         * lib/csharpexec.c: Likewise.
96238         * lib/csharpexec.h: Likewise.
96239         * lib/cycle-check.c: Likewise.
96240         * lib/cycle-check.h: Likewise.
96241         * lib/diacrit.c: Likewise.
96242         * lib/diacrit.h: Likewise.
96243         * lib/diffseq.h: Likewise.
96244         * lib/dirchownmod.c: Likewise.
96245         * lib/dirent.in.h: Likewise.
96246         * lib/dirfd.c: Likewise.
96247         * lib/dirfd.h: Likewise.
96248         * lib/dirname.c: Likewise.
96249         * lib/dirname.h: Likewise.
96250         * lib/dummy.c: Likewise.
96251         * lib/dup-safer.c: Likewise.
96252         * lib/dup2.c: Likewise.
96253         * lib/eealloc.h: Likewise.
96254         * lib/error.c: Likewise.
96255         * lib/error.h: Likewise.
96256         * lib/euidaccess.c: Likewise.
96257         * lib/exclude.c: Likewise.
96258         * lib/exclude.h: Likewise.
96259         * lib/execute.c: Likewise.
96260         * lib/execute.h: Likewise.
96261         * lib/exitfail.c: Likewise.
96262         * lib/exitfail.h: Likewise.
96263         * lib/expl.c: Likewise.
96264         * lib/fatal-signal.c: Likewise.
96265         * lib/fatal-signal.h: Likewise.
96266         * lib/fbufmode.c: Likewise.
96267         * lib/fbufmode.h: Likewise.
96268         * lib/fchdir.c: Likewise.
96269         * lib/fchmodat.c: Likewise.
96270         * lib/fchownat.c: Likewise.
96271         * lib/fcntl--.h: Likewise.
96272         * lib/fcntl-safer.h: Likewise.
96273         * lib/fcntl.in.h: Likewise.
96274         * lib/fd-safer.c: Likewise.
96275         * lib/fflush.c: Likewise.
96276         * lib/file-has-acl.c: Likewise.
96277         * lib/file-set.c: Likewise.
96278         * lib/file-type.c: Likewise.
96279         * lib/file-type.h: Likewise.
96280         * lib/fileblocks.c: Likewise.
96281         * lib/filemode.c: Likewise.
96282         * lib/filemode.h: Likewise.
96283         * lib/filename.h: Likewise.
96284         * lib/filenamecat.c: Likewise.
96285         * lib/filenamecat.h: Likewise.
96286         * lib/findprog.c: Likewise.
96287         * lib/findprog.h: Likewise.
96288         * lib/float.in.h: Likewise.
96289         * lib/floor.c: Likewise.
96290         * lib/floorf.c: Likewise.
96291         * lib/floorl.c: Likewise.
96292         * lib/fopen-safer.c: Likewise.
96293         * lib/fopen.c: Likewise.
96294         * lib/fpending.c: Likewise.
96295         * lib/fpending.h: Likewise.
96296         * lib/fprintf.c: Likewise.
96297         * lib/fprintftime.h: Likewise.
96298         * lib/fpucw.h: Likewise.
96299         * lib/fpurge.c: Likewise.
96300         * lib/fpurge.h: Likewise.
96301         * lib/freadable.c: Likewise.
96302         * lib/freadable.h: Likewise.
96303         * lib/freadahead.c: Likewise.
96304         * lib/freadahead.h: Likewise.
96305         * lib/freading.c: Likewise.
96306         * lib/freading.h: Likewise.
96307         * lib/free.c: Likewise.
96308         * lib/freopen.c: Likewise.
96309         * lib/frexp.c: Likewise.
96310         * lib/frexpl.c: Likewise.
96311         * lib/fseek.c: Likewise.
96312         * lib/fseterr.c: Likewise.
96313         * lib/fseterr.h: Likewise.
96314         * lib/fstatat.c: Likewise.
96315         * lib/fstrcmp.c: Likewise.
96316         * lib/fstrcmp.h: Likewise.
96317         * lib/fsusage.c: Likewise.
96318         * lib/fsusage.h: Likewise.
96319         * lib/ftell.c: Likewise.
96320         * lib/ftello.c: Likewise.
96321         * lib/fts-cycle.c: Likewise.
96322         * lib/fts.c: Likewise.
96323         * lib/fts_.h: Likewise.
96324         * lib/full-read.c: Likewise.
96325         * lib/full-read.h: Likewise.
96326         * lib/full-write.c: Likewise.
96327         * lib/full-write.h: Likewise.
96328         * lib/fwritable.c: Likewise.
96329         * lib/fwritable.h: Likewise.
96330         * lib/fwriteerror.c: Likewise.
96331         * lib/fwriteerror.h: Likewise.
96332         * lib/fwriting.c: Likewise.
96333         * lib/fwriting.h: Likewise.
96334         * lib/gcd.c: Likewise.
96335         * lib/gcd.h: Likewise.
96336         * lib/getcwd.c: Likewise.
96337         * lib/getdate.h: Likewise.
96338         * lib/getdate.y: Likewise.
96339         * lib/getdomainname.c: Likewise.
96340         * lib/getdomainname.h: Likewise.
96341         * lib/getgroups.c: Likewise.
96342         * lib/gethostname.c: Likewise.
96343         * lib/gethrxtime.c: Likewise.
96344         * lib/gethrxtime.h: Likewise.
96345         * lib/getloadavg.c: Likewise.
96346         * lib/getndelim2.c: Likewise.
96347         * lib/getndelim2.h: Likewise.
96348         * lib/getnline.c: Likewise.
96349         * lib/getnline.h: Likewise.
96350         * lib/getopt.c: Likewise.
96351         * lib/getopt.in.h: Likewise.
96352         * lib/getopt1.c: Likewise.
96353         * lib/getopt_int.h: Likewise.
96354         * lib/getpagesize.h: Likewise.
96355         * lib/getsubopt.c: Likewise.
96356         * lib/gettime.c: Likewise.
96357         * lib/getugroups.c: Likewise.
96358         * lib/getugroups.h: Likewise.
96359         * lib/getusershell.c: Likewise.
96360         * lib/gl_anyavltree_list1.h: Likewise.
96361         * lib/gl_anyavltree_list2.h: Likewise.
96362         * lib/gl_anyhash_list1.h: Likewise.
96363         * lib/gl_anyhash_list2.h: Likewise.
96364         * lib/gl_anylinked_list1.h: Likewise.
96365         * lib/gl_anylinked_list2.h: Likewise.
96366         * lib/gl_anyrbtree_list1.h: Likewise.
96367         * lib/gl_anyrbtree_list2.h: Likewise.
96368         * lib/gl_anytree_list1.h: Likewise.
96369         * lib/gl_anytree_list2.h: Likewise.
96370         * lib/gl_anytree_oset.h: Likewise.
96371         * lib/gl_anytreehash_list1.h: Likewise.
96372         * lib/gl_anytreehash_list2.h: Likewise.
96373         * lib/gl_array_list.c: Likewise.
96374         * lib/gl_array_list.h: Likewise.
96375         * lib/gl_array_oset.c: Likewise.
96376         * lib/gl_array_oset.h: Likewise.
96377         * lib/gl_avltree_list.c: Likewise.
96378         * lib/gl_avltree_list.h: Likewise.
96379         * lib/gl_avltree_oset.c: Likewise.
96380         * lib/gl_avltree_oset.h: Likewise.
96381         * lib/gl_avltreehash_list.c: Likewise.
96382         * lib/gl_avltreehash_list.h: Likewise.
96383         * lib/gl_carray_list.c: Likewise.
96384         * lib/gl_carray_list.h: Likewise.
96385         * lib/gl_linked_list.c: Likewise.
96386         * lib/gl_linked_list.h: Likewise.
96387         * lib/gl_linkedhash_list.c: Likewise.
96388         * lib/gl_linkedhash_list.h: Likewise.
96389         * lib/gl_list.c: Likewise.
96390         * lib/gl_list.h: Likewise.
96391         * lib/gl_oset.c: Likewise.
96392         * lib/gl_oset.h: Likewise.
96393         * lib/gl_rbtree_list.c: Likewise.
96394         * lib/gl_rbtree_list.h: Likewise.
96395         * lib/gl_rbtree_oset.c: Likewise.
96396         * lib/gl_rbtree_oset.h: Likewise.
96397         * lib/gl_rbtreehash_list.c: Likewise.
96398         * lib/gl_rbtreehash_list.h: Likewise.
96399         * lib/gl_sublist.c: Likewise.
96400         * lib/gl_sublist.h: Likewise.
96401         * lib/group-member.c: Likewise.
96402         * lib/group-member.h: Likewise.
96403         * lib/hard-locale.c: Likewise.
96404         * lib/hard-locale.h: Likewise.
96405         * lib/hash-pjw.c: Likewise.
96406         * lib/hash-pjw.h: Likewise.
96407         * lib/hash-triple.c: Likewise.
96408         * lib/hash.c: Likewise.
96409         * lib/hash.h: Likewise.
96410         * lib/human.c: Likewise.
96411         * lib/human.h: Likewise.
96412         * lib/i-ring.c: Likewise.
96413         * lib/i-ring.h: Likewise.
96414         * lib/idcache.c: Likewise.
96415         * lib/imaxabs.c: Likewise.
96416         * lib/imaxdiv.c: Likewise.
96417         * lib/inet_pton.c: Likewise.
96418         * lib/inet_pton.h: Likewise.
96419         * lib/intprops.h: Likewise.
96420         * lib/inttostr.c: Likewise.
96421         * lib/inttostr.h: Likewise.
96422         * lib/inttypes.in.h: Likewise.
96423         * lib/isapipe.c: Likewise.
96424         * lib/isdir.c: Likewise.
96425         * lib/isnan.c: Likewise.
96426         * lib/isnan.h: Likewise.
96427         * lib/isnanf.c: Likewise.
96428         * lib/isnanf.h: Likewise.
96429         * lib/isnanl-nolibm.h: Likewise.
96430         * lib/isnanl.c: Likewise.
96431         * lib/isnanl.h: Likewise.
96432         * lib/javacomp.c: Likewise.
96433         * lib/javacomp.h: Likewise.
96434         * lib/javaexec.c: Likewise.
96435         * lib/javaexec.h: Likewise.
96436         * lib/javaversion.c: Likewise.
96437         * lib/javaversion.h: Likewise.
96438         * lib/javaversion.java: Likewise.
96439         * lib/lbrkprop.h: Likewise.
96440         * lib/lchmod.h: Likewise.
96441         * lib/lchown.c: Likewise.
96442         * lib/ldexpl.c: Likewise.
96443         * lib/linebreak.c: Likewise.
96444         * lib/linebreak.h: Likewise.
96445         * lib/linebuffer.c: Likewise.
96446         * lib/linebuffer.h: Likewise.
96447         * lib/locale.in.h: Likewise.
96448         * lib/logl.c: Likewise.
96449         * lib/long-options.c: Likewise.
96450         * lib/long-options.h: Likewise.
96451         * lib/lstat.c: Likewise.
96452         * lib/lstat.h: Likewise.
96453         * lib/math.in.h: Likewise.
96454         * lib/mbchar.c: Likewise.
96455         * lib/mbchar.h: Likewise.
96456         * lib/mbfile.h: Likewise.
96457         * lib/mbiter.h: Likewise.
96458         * lib/mbscasecmp.c: Likewise.
96459         * lib/mbscasestr.c: Likewise.
96460         * lib/mbschr.c: Likewise.
96461         * lib/mbscspn.c: Likewise.
96462         * lib/mbslen.c: Likewise.
96463         * lib/mbsncasecmp.c: Likewise.
96464         * lib/mbsnlen.c: Likewise.
96465         * lib/mbspbrk.c: Likewise.
96466         * lib/mbspcasecmp.c: Likewise.
96467         * lib/mbsrchr.c: Likewise.
96468         * lib/mbssep.c: Likewise.
96469         * lib/mbsspn.c: Likewise.
96470         * lib/mbsstr.c: Likewise.
96471         * lib/mbstok_r.c: Likewise.
96472         * lib/mbswidth.c: Likewise.
96473         * lib/mbswidth.h: Likewise.
96474         * lib/mbuiter.h: Likewise.
96475         * lib/memcasecmp.c: Likewise.
96476         * lib/memcasecmp.h: Likewise.
96477         * lib/memchr.c: Likewise.
96478         * lib/memcmp.c: Likewise.
96479         * lib/memcoll.c: Likewise.
96480         * lib/memcoll.h: Likewise.
96481         * lib/memcpy.c: Likewise.
96482         * lib/memrchr.c: Likewise.
96483         * lib/mkancesdirs.c: Likewise.
96484         * lib/mkdir-p.c: Likewise.
96485         * lib/mkdir-p.h: Likewise.
96486         * lib/mkdir.c: Likewise.
96487         * lib/mkdirat.c: Likewise.
96488         * lib/mkdtemp.c: Likewise.
96489         * lib/mkstemp-safer.c: Likewise.
96490         * lib/mkstemp.c: Likewise.
96491         * lib/modechange.c: Likewise.
96492         * lib/modechange.h: Likewise.
96493         * lib/mountlist.c: Likewise.
96494         * lib/mountlist.h: Likewise.
96495         * lib/mpsort.c: Likewise.
96496         * lib/nanosleep.c: Likewise.
96497         * lib/obstack.c: Likewise.
96498         * lib/obstack.h: Likewise.
96499         * lib/open-safer.c: Likewise.
96500         * lib/open.c: Likewise.
96501         * lib/openat-die.c: Likewise.
96502         * lib/openat-priv.h: Likewise.
96503         * lib/openat-proc.c: Likewise.
96504         * lib/openat.c: Likewise.
96505         * lib/openat.h: Likewise.
96506         * lib/pagealign_alloc.c: Likewise.
96507         * lib/pagealign_alloc.h: Likewise.
96508         * lib/physmem.c: Likewise.
96509         * lib/physmem.h: Likewise.
96510         * lib/pipe-safer.c: Likewise.
96511         * lib/pipe.c: Likewise.
96512         * lib/pipe.h: Likewise.
96513         * lib/posixtm.c: Likewise.
96514         * lib/posixtm.h: Likewise.
96515         * lib/posixver.c: Likewise.
96516         * lib/printf-frexp.c: Likewise.
96517         * lib/printf-frexp.h: Likewise.
96518         * lib/printf-frexpl.c: Likewise.
96519         * lib/printf-frexpl.h: Likewise.
96520         * lib/printf.c: Likewise.
96521         * lib/progname.c: Likewise.
96522         * lib/progname.h: Likewise.
96523         * lib/progreloc.c: Likewise.
96524         * lib/putenv.c: Likewise.
96525         * lib/quote.c: Likewise.
96526         * lib/quote.h: Likewise.
96527         * lib/quotearg.c: Likewise.
96528         * lib/quotearg.h: Likewise.
96529         * lib/raise.c: Likewise.
96530         * lib/readline.c: Likewise.
96531         * lib/readline.h: Likewise.
96532         * lib/readlink.c: Likewise.
96533         * lib/readtokens.c: Likewise.
96534         * lib/readtokens.h: Likewise.
96535         * lib/readtokens0.c: Likewise.
96536         * lib/readtokens0.h: Likewise.
96537         * lib/readutmp.c: Likewise.
96538         * lib/readutmp.h: Likewise.
96539         * lib/realloc.c: Likewise.
96540         * lib/relocwrapper.c: Likewise.
96541         * lib/rename-dest-slash.c: Likewise.
96542         * lib/rename.c: Likewise.
96543         * lib/rmdir.c: Likewise.
96544         * lib/rpmatch.c: Likewise.
96545         * lib/safe-read.c: Likewise.
96546         * lib/safe-read.h: Likewise.
96547         * lib/safe-write.c: Likewise.
96548         * lib/safe-write.h: Likewise.
96549         * lib/same-inode.h: Likewise.
96550         * lib/same.c: Likewise.
96551         * lib/same.h: Likewise.
96552         * lib/save-cwd.c: Likewise.
96553         * lib/save-cwd.h: Likewise.
96554         * lib/savedir.c: Likewise.
96555         * lib/savedir.h: Likewise.
96556         * lib/savewd.c: Likewise.
96557         * lib/savewd.h: Likewise.
96558         * lib/search.in.h: Likewise.
96559         * lib/setenv.c: Likewise.
96560         * lib/setenv.h: Likewise.
96561         * lib/settime.c: Likewise.
96562         * lib/sh-quote.c: Likewise.
96563         * lib/sh-quote.h: Likewise.
96564         * lib/sig2str.c: Likewise.
96565         * lib/sig2str.h: Likewise.
96566         * lib/signal.in.h: Likewise.
96567         * lib/signbitd.c: Likewise.
96568         * lib/signbitf.c: Likewise.
96569         * lib/signbitl.c: Likewise.
96570         * lib/sigprocmask.c: Likewise.
96571         * lib/sincosl.c: Likewise.
96572         * lib/sleep.c: Likewise.
96573         * lib/sprintf.c: Likewise.
96574         * lib/sqrtl.c: Likewise.
96575         * lib/stat-time.h: Likewise.
96576         * lib/stdio--.h: Likewise.
96577         * lib/stdio-safer.h: Likewise.
96578         * lib/stdlib--.h: Likewise.
96579         * lib/stdlib-safer.h: Likewise.
96580         * lib/stdlib.in.h: Likewise.
96581         * lib/stpcpy.c: Likewise.
96582         * lib/stpncpy.c: Likewise.
96583         * lib/strchrnul.c: Likewise.
96584         * lib/strcspn.c: Likewise.
96585         * lib/strerror.c: Likewise.
96586         * lib/strftime.c: Likewise.
96587         * lib/strftime.h: Likewise.
96588         * lib/striconveh.c: Likewise.
96589         * lib/striconveh.h: Likewise.
96590         * lib/striconveha.c: Likewise.
96591         * lib/striconveha.h: Likewise.
96592         * lib/stripslash.c: Likewise.
96593         * lib/strnlen1.c: Likewise.
96594         * lib/strnlen1.h: Likewise.
96595         * lib/strtod.c: Likewise.
96596         * lib/strtoimax.c: Likewise.
96597         * lib/strtok_r.c: Likewise.
96598         * lib/strtol.c: Likewise.
96599         * lib/strtoll.c: Likewise.
96600         * lib/strtoul.c: Likewise.
96601         * lib/strtoull.c: Likewise.
96602         * lib/sysexits.in.h: Likewise.
96603         * lib/tempname.c: Likewise.
96604         * lib/tempname.h: Likewise.
96605         * lib/timespec.h: Likewise.
96606         * lib/tls.c: Likewise.
96607         * lib/tls.h: Likewise.
96608         * lib/tmpdir.c: Likewise.
96609         * lib/tmpdir.h: Likewise.
96610         * lib/tmpfile-safer.c: Likewise.
96611         * lib/tmpfile.c: Likewise.
96612         * lib/trigl.c: Likewise.
96613         * lib/trigl.h: Likewise.
96614         * lib/trim.c: Likewise.
96615         * lib/trim.h: Likewise.
96616         * lib/trunc.c: Likewise.
96617         * lib/truncf.c: Likewise.
96618         * lib/truncl.c: Likewise.
96619         * lib/tsearch.c: Likewise.
96620         * lib/unicodeio.c: Likewise.
96621         * lib/unicodeio.h: Likewise.
96622         * lib/unistd--.h: Likewise.
96623         * lib/unistd-safer.h: Likewise.
96624         * lib/unistdio/ulc-fprintf.c: Likewise.
96625         * lib/unistdio/ulc-vfprintf.c: Likewise.
96626         * lib/unlinkdir.c: Likewise.
96627         * lib/unlinkdir.h: Likewise.
96628         * lib/unlocked-io.h: Likewise.
96629         * lib/unsetenv.c: Likewise.
96630         * lib/userspec.c: Likewise.
96631         * lib/utime.c: Likewise.
96632         * lib/utimecmp.c: Likewise.
96633         * lib/utimecmp.h: Likewise.
96634         * lib/utimens.c: Likewise.
96635         * lib/verify.h: Likewise.
96636         * lib/verror.c: Likewise.
96637         * lib/verror.h: Likewise.
96638         * lib/version-etc-fsf.c: Likewise.
96639         * lib/version-etc.c: Likewise.
96640         * lib/version-etc.h: Likewise.
96641         * lib/vfprintf.c: Likewise.
96642         * lib/vprintf.c: Likewise.
96643         * lib/vsprintf.c: Likewise.
96644         * lib/w32spawn.h: Likewise.
96645         * lib/wait-process.c: Likewise.
96646         * lib/wait-process.h: Likewise.
96647         * lib/wcwidth.c: Likewise.
96648         * lib/write-any-file.c: Likewise.
96649         * lib/xalloc-die.c: Likewise.
96650         * lib/xalloc.h: Likewise.
96651         * lib/xasprintf.c: Likewise.
96652         * lib/xgetcwd.c: Likewise.
96653         * lib/xgetcwd.h: Likewise.
96654         * lib/xgetdomainname.c: Likewise.
96655         * lib/xgetdomainname.h: Likewise.
96656         * lib/xgethostname.c: Likewise.
96657         * lib/xmalloc.c: Likewise.
96658         * lib/xmalloca.c: Likewise.
96659         * lib/xmalloca.h: Likewise.
96660         * lib/xmemcoll.c: Likewise.
96661         * lib/xnanosleep.c: Likewise.
96662         * lib/xreadlink.c: Likewise.
96663         * lib/xreadlink.h: Likewise.
96664         * lib/xsetenv.c: Likewise.
96665         * lib/xsetenv.h: Likewise.
96666         * lib/xstriconv.c: Likewise.
96667         * lib/xstriconv.h: Likewise.
96668         * lib/xstrndup.c: Likewise.
96669         * lib/xstrndup.h: Likewise.
96670         * lib/xstrtod.c: Likewise.
96671         * lib/xstrtod.h: Likewise.
96672         * lib/xstrtol-error.c: Likewise.
96673         * lib/xstrtol.c: Likewise.
96674         * lib/xstrtol.h: Likewise.
96675         * lib/xtime.h: Likewise.
96676         * lib/xvasprintf.c: Likewise.
96677         * lib/xvasprintf.h: Likewise.
96678         * lib/yesno.c: Likewise.
96679         * lib/yesno.h: Likewise.
96680         * posix-modules: Likewise.
96681         * tests/test-alloca-opt.c: Likewise.
96682         * tests/test-arcfour.c: Likewise.
96683         * tests/test-arctwo.c: Likewise.
96684         * tests/test-argmatch.c: Likewise.
96685         * tests/test-argp-2.sh: Likewise.
96686         * tests/test-argp.c: Likewise.
96687         * tests/test-arpa_inet.c: Likewise.
96688         * tests/test-array_list.c: Likewise.
96689         * tests/test-array_oset.c: Likewise.
96690         * tests/test-atexit.c: Likewise.
96691         * tests/test-avltree_list.c: Likewise.
96692         * tests/test-avltree_oset.c: Likewise.
96693         * tests/test-avltreehash_list.c: Likewise.
96694         * tests/test-base64.c: Likewise.
96695         * tests/test-binary-io.c: Likewise.
96696         * tests/test-byteswap.c: Likewise.
96697         * tests/test-c-ctype.c: Likewise.
96698         * tests/test-c-strcasecmp.c: Likewise.
96699         * tests/test-c-strcasestr.c: Likewise.
96700         * tests/test-c-strncasecmp.c: Likewise.
96701         * tests/test-c-strstr.c: Likewise.
96702         * tests/test-canonicalize-lgpl.c: Likewise.
96703         * tests/test-canonicalize.c: Likewise.
96704         * tests/test-carray_list.c: Likewise.
96705         * tests/test-ceilf.c: Likewise.
96706         * tests/test-ceill.c: Likewise.
96707         * tests/test-count-one-bits.c: Likewise.
96708         * tests/test-crc.c: Likewise.
96709         * tests/test-dirname.c: Likewise.
96710         * tests/test-fbufmode.c: Likewise.
96711         * tests/test-fcntl.c: Likewise.
96712         * tests/test-fflush.c: Likewise.
96713         * tests/test-floorf.c: Likewise.
96714         * tests/test-floorl.c: Likewise.
96715         * tests/test-fopen.c: Likewise.
96716         * tests/test-fprintf-posix.c: Likewise.
96717         * tests/test-fprintf-posix.h: Likewise.
96718         * tests/test-fpurge.c: Likewise.
96719         * tests/test-freadable.c: Likewise.
96720         * tests/test-freadahead.c: Likewise.
96721         * tests/test-freading.c: Likewise.
96722         * tests/test-freopen.c: Likewise.
96723         * tests/test-frexp.c: Likewise.
96724         * tests/test-frexpl.c: Likewise.
96725         * tests/test-fseek.c: Likewise.
96726         * tests/test-fseeko.c: Likewise.
96727         * tests/test-fseterr.c: Likewise.
96728         * tests/test-fstrcmp.c: Likewise.
96729         * tests/test-ftell.c: Likewise.
96730         * tests/test-ftello.c: Likewise.
96731         * tests/test-fwritable.c: Likewise.
96732         * tests/test-fwriting.c: Likewise.
96733         * tests/test-getaddrinfo.c: Likewise.
96734         * tests/test-getpass.c: Likewise.
96735         * tests/test-gettimeofday.c: Likewise.
96736         * tests/test-hmac-md5.c: Likewise.
96737         * tests/test-hmac-sha1.c: Likewise.
96738         * tests/test-iconv.c: Likewise.
96739         * tests/test-iconvme.c: Likewise.
96740         * tests/test-inttypes.c: Likewise.
96741         * tests/test-isnan.c: Likewise.
96742         * tests/test-isnanf.c: Likewise.
96743         * tests/test-isnanl-nolibm.c: Likewise.
96744         * tests/test-isnanl.c: Likewise.
96745         * tests/test-isnanl.h: Likewise.
96746         * tests/test-ldexpl.c: Likewise.
96747         * tests/test-linked_list.c: Likewise.
96748         * tests/test-linkedhash_list.c: Likewise.
96749         * tests/test-locale.c: Likewise.
96750         * tests/test-localename.c: Likewise.
96751         * tests/test-lock.c: Likewise.
96752         * tests/test-lseek.c: Likewise.
96753         * tests/test-malloca.c: Likewise.
96754         * tests/test-math.c: Likewise.
96755         * tests/test-mbscasecmp.c: Likewise.
96756         * tests/test-mbscasestr1.c: Likewise.
96757         * tests/test-mbscasestr2.c: Likewise.
96758         * tests/test-mbscasestr3.c: Likewise.
96759         * tests/test-mbscasestr4.c: Likewise.
96760         * tests/test-mbschr.c: Likewise.
96761         * tests/test-mbscspn.c: Likewise.
96762         * tests/test-mbsncasecmp.c: Likewise.
96763         * tests/test-mbspbrk.c: Likewise.
96764         * tests/test-mbspcasecmp.c: Likewise.
96765         * tests/test-mbsrchr.c: Likewise.
96766         * tests/test-mbsspn.c: Likewise.
96767         * tests/test-mbsstr1.c: Likewise.
96768         * tests/test-mbsstr2.c: Likewise.
96769         * tests/test-mbsstr3.c: Likewise.
96770         * tests/test-md5.c: Likewise.
96771         * tests/test-memmem.c: Likewise.
96772         * tests/test-netinet_in.c: Likewise.
96773         * tests/test-open.c: Likewise.
96774         * tests/test-printf-frexp.c: Likewise.
96775         * tests/test-printf-frexpl.c: Likewise.
96776         * tests/test-printf-posix.c: Likewise.
96777         * tests/test-printf-posix.h: Likewise.
96778         * tests/test-rbtree_list.c: Likewise.
96779         * tests/test-rbtree_oset.c: Likewise.
96780         * tests/test-rbtreehash_list.c: Likewise.
96781         * tests/test-read-file.c: Likewise.
96782         * tests/test-rijndael.c: Likewise.
96783         * tests/test-search.c: Likewise.
96784         * tests/test-signbit.c: Likewise.
96785         * tests/test-sleep.c: Likewise.
96786         * tests/test-snprintf-posix.c: Likewise.
96787         * tests/test-snprintf-posix.h: Likewise.
96788         * tests/test-snprintf.c: Likewise.
96789         * tests/test-sprintf-posix.c: Likewise.
96790         * tests/test-sprintf-posix.h: Likewise.
96791         * tests/test-stat-time.c: Likewise.
96792         * tests/test-stdbool.c: Likewise.
96793         * tests/test-stdint.c: Likewise.
96794         * tests/test-stdio.c: Likewise.
96795         * tests/test-stdlib.c: Likewise.
96796         * tests/test-stpncpy.c: Likewise.
96797         * tests/test-strcasestr.c: Likewise.
96798         * tests/test-striconv.c: Likewise.
96799         * tests/test-striconveh.c: Likewise.
96800         * tests/test-striconveha.c: Likewise.
96801         * tests/test-string.c: Likewise.
96802         * tests/test-sys_select.c: Likewise.
96803         * tests/test-sys_socket.c: Likewise.
96804         * tests/test-sys_stat.c: Likewise.
96805         * tests/test-sys_time.c: Likewise.
96806         * tests/test-sysexits.c: Likewise.
96807         * tests/test-time.c: Likewise.
96808         * tests/test-tls.c: Likewise.
96809         * tests/test-trunc.c: Likewise.
96810         * tests/test-truncf.c: Likewise.
96811         * tests/test-truncl.c: Likewise.
96812         * tests/test-unistd.c: Likewise.
96813         * tests/test-vasnprintf-posix.c: Likewise.
96814         * tests/test-vasnprintf-posix2.c: Likewise.
96815         * tests/test-vasnprintf.c: Likewise.
96816         * tests/test-vasprintf-posix.c: Likewise.
96817         * tests/test-vasprintf.c: Likewise.
96818         * tests/test-verify.c: Likewise.
96819         * tests/test-vfprintf-posix.c: Likewise.
96820         * tests/test-vprintf-posix.c: Likewise.
96821         * tests/test-vsnprintf-posix.c: Likewise.
96822         * tests/test-vsnprintf.c: Likewise.
96823         * tests/test-vsprintf-posix.c: Likewise.
96824         * tests/test-wchar.c: Likewise.
96825         * tests/test-wctype.c: Likewise.
96826         * tests/test-wcwidth.c: Likewise.
96827         * tests/test-xstrtol.c: Likewise.
96828         * tests/test-xvasprintf.c: Likewise.
96829         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
96830         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
96831         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
96832         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
96833         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
96834         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
96835         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
96836         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
96837         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
96838         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
96839         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
96840         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
96841         * tests/uniname/test-uninames.c: Likewise.
96842         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
96843         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
96844         * tests/unistdio/test-u16-printf1.h: Likewise.
96845         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
96846         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
96847         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
96848         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
96849         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
96850         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
96851         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
96852         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
96853         * tests/unistdio/test-u32-printf1.h: Likewise.
96854         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
96855         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
96856         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
96857         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
96858         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
96859         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
96860         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
96861         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
96862         * tests/unistdio/test-u8-printf1.h: Likewise.
96863         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
96864         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
96865         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
96866         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
96867         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
96868         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
96869         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
96870         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
96871         * tests/unistdio/test-ulc-printf1.h: Likewise.
96872         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
96873         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
96874         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
96875         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
96876         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
96877         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
96878         * tests/uniwidth/test-u16-strwidth.c: Likewise.
96879         * tests/uniwidth/test-u16-width.c: Likewise.
96880         * tests/uniwidth/test-u32-strwidth.c: Likewise.
96881         * tests/uniwidth/test-u32-width.c: Likewise.
96882         * tests/uniwidth/test-u8-strwidth.c: Likewise.
96883         * tests/uniwidth/test-u8-width.c: Likewise.
96884         * tests/uniwidth/test-uc_width.c: Likewise.
96885         * config/srclist-update: Likewise.
96886         (fixlicense): Update to GPLv3+.
96888         Change copyright notice from LGPLv2.1+ to LGPLv3+.
96889         * tests/test-tsearch.c: Change copyright notice.
96891         Change copyright notice from LGPLv2.0+ to LGPLv3+.
96892         * lib/c-strcaseeq.h: Change copyright notice.
96893         * lib/streq.h: Likewise.
96894         * lib/uniconv.h: Likewise.
96895         * lib/uniconv/u-conv-from-enc.h: Likewise.
96896         * lib/uniconv/u-conv-to-enc.h: Likewise.
96897         * lib/uniconv/u-strconv-from-enc.h: Likewise.
96898         * lib/uniconv/u-strconv-to-enc.h: Likewise.
96899         * lib/uniconv/u16-conv-from-enc.c: Likewise.
96900         * lib/uniconv/u16-conv-to-enc.c: Likewise.
96901         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
96902         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
96903         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
96904         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
96905         * lib/uniconv/u32-conv-from-enc.c: Likewise.
96906         * lib/uniconv/u32-conv-to-enc.c: Likewise.
96907         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
96908         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
96909         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
96910         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
96911         * lib/uniconv/u8-conv-from-enc.c: Likewise.
96912         * lib/uniconv/u8-conv-to-enc.c: Likewise.
96913         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
96914         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
96915         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
96916         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
96917         * lib/uniname.h: Likewise.
96918         * lib/uniname/uniname.c: Likewise.
96919         * lib/unistdio.h: Likewise.
96920         * lib/unistdio/u-asnprintf.h: Likewise.
96921         * lib/unistdio/u-asprintf.h: Likewise.
96922         * lib/unistdio/u-printf-args.c: Likewise.
96923         * lib/unistdio/u-printf-args.h: Likewise.
96924         * lib/unistdio/u-printf-parse.h: Likewise.
96925         * lib/unistdio/u-snprintf.h: Likewise.
96926         * lib/unistdio/u-sprintf.h: Likewise.
96927         * lib/unistdio/u-vasprintf.h: Likewise.
96928         * lib/unistdio/u-vsnprintf.h: Likewise.
96929         * lib/unistdio/u-vsprintf.h: Likewise.
96930         * lib/unistdio/u16-asnprintf.c: Likewise.
96931         * lib/unistdio/u16-asprintf.c: Likewise.
96932         * lib/unistdio/u16-printf-parse.c: Likewise.
96933         * lib/unistdio/u16-snprintf.c: Likewise.
96934         * lib/unistdio/u16-sprintf.c: Likewise.
96935         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
96936         * lib/unistdio/u16-u16-asprintf.c: Likewise.
96937         * lib/unistdio/u16-u16-snprintf.c: Likewise.
96938         * lib/unistdio/u16-u16-sprintf.c: Likewise.
96939         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
96940         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
96941         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
96942         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
96943         * lib/unistdio/u16-vasnprintf.c: Likewise.
96944         * lib/unistdio/u16-vasprintf.c: Likewise.
96945         * lib/unistdio/u16-vsnprintf.c: Likewise.
96946         * lib/unistdio/u16-vsprintf.c: Likewise.
96947         * lib/unistdio/u32-asnprintf.c: Likewise.
96948         * lib/unistdio/u32-asprintf.c: Likewise.
96949         * lib/unistdio/u32-printf-parse.c: Likewise.
96950         * lib/unistdio/u32-snprintf.c: Likewise.
96951         * lib/unistdio/u32-sprintf.c: Likewise.
96952         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
96953         * lib/unistdio/u32-u32-asprintf.c: Likewise.
96954         * lib/unistdio/u32-u32-snprintf.c: Likewise.
96955         * lib/unistdio/u32-u32-sprintf.c: Likewise.
96956         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
96957         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
96958         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
96959         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
96960         * lib/unistdio/u32-vasnprintf.c: Likewise.
96961         * lib/unistdio/u32-vasprintf.c: Likewise.
96962         * lib/unistdio/u32-vsnprintf.c: Likewise.
96963         * lib/unistdio/u32-vsprintf.c: Likewise.
96964         * lib/unistdio/u8-asnprintf.c: Likewise.
96965         * lib/unistdio/u8-asprintf.c: Likewise.
96966         * lib/unistdio/u8-printf-parse.c: Likewise.
96967         * lib/unistdio/u8-snprintf.c: Likewise.
96968         * lib/unistdio/u8-sprintf.c: Likewise.
96969         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
96970         * lib/unistdio/u8-u8-asprintf.c: Likewise.
96971         * lib/unistdio/u8-u8-snprintf.c: Likewise.
96972         * lib/unistdio/u8-u8-sprintf.c: Likewise.
96973         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
96974         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
96975         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
96976         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
96977         * lib/unistdio/u8-vasnprintf.c: Likewise.
96978         * lib/unistdio/u8-vasprintf.c: Likewise.
96979         * lib/unistdio/u8-vsnprintf.c: Likewise.
96980         * lib/unistdio/u8-vsprintf.c: Likewise.
96981         * lib/unistdio/ulc-asnprintf.c: Likewise.
96982         * lib/unistdio/ulc-asprintf.c: Likewise.
96983         * lib/unistdio/ulc-printf-parse.c: Likewise.
96984         * lib/unistdio/ulc-snprintf.c: Likewise.
96985         * lib/unistdio/ulc-sprintf.c: Likewise.
96986         * lib/unistdio/ulc-vasnprintf.c: Likewise.
96987         * lib/unistdio/ulc-vasprintf.c: Likewise.
96988         * lib/unistdio/ulc-vsnprintf.c: Likewise.
96989         * lib/unistdio/ulc-vsprintf.c: Likewise.
96990         * lib/unistr.h: Likewise.
96991         * lib/unistr/u-cpy-alloc.h: Likewise.
96992         * lib/unistr/u-cpy.h: Likewise.
96993         * lib/unistr/u-endswith.h: Likewise.
96994         * lib/unistr/u-move.h: Likewise.
96995         * lib/unistr/u-set.h: Likewise.
96996         * lib/unistr/u-startswith.h: Likewise.
96997         * lib/unistr/u-stpcpy.h: Likewise.
96998         * lib/unistr/u-stpncpy.h: Likewise.
96999         * lib/unistr/u-strcat.h: Likewise.
97000         * lib/unistr/u-strcpy.h: Likewise.
97001         * lib/unistr/u-strcspn.h: Likewise.
97002         * lib/unistr/u-strdup.h: Likewise.
97003         * lib/unistr/u-strlen.h: Likewise.
97004         * lib/unistr/u-strncat.h: Likewise.
97005         * lib/unistr/u-strncpy.h: Likewise.
97006         * lib/unistr/u-strnlen.h: Likewise.
97007         * lib/unistr/u-strpbrk.h: Likewise.
97008         * lib/unistr/u-strspn.h: Likewise.
97009         * lib/unistr/u-strstr.h: Likewise.
97010         * lib/unistr/u-strtok.h: Likewise.
97011         * lib/unistr/u16-check.c: Likewise.
97012         * lib/unistr/u16-chr.c: Likewise.
97013         * lib/unistr/u16-cmp.c: Likewise.
97014         * lib/unistr/u16-cpy-alloc.c: Likewise.
97015         * lib/unistr/u16-cpy.c: Likewise.
97016         * lib/unistr/u16-endswith.c: Likewise.
97017         * lib/unistr/u16-mblen.c: Likewise.
97018         * lib/unistr/u16-mbsnlen.c: Likewise.
97019         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97020         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97021         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97022         * lib/unistr/u16-mbtouc.c: Likewise.
97023         * lib/unistr/u16-mbtoucr.c: Likewise.
97024         * lib/unistr/u16-move.c: Likewise.
97025         * lib/unistr/u16-next.c: Likewise.
97026         * lib/unistr/u16-prev.c: Likewise.
97027         * lib/unistr/u16-set.c: Likewise.
97028         * lib/unistr/u16-startswith.c: Likewise.
97029         * lib/unistr/u16-stpcpy.c: Likewise.
97030         * lib/unistr/u16-stpncpy.c: Likewise.
97031         * lib/unistr/u16-strcat.c: Likewise.
97032         * lib/unistr/u16-strchr.c: Likewise.
97033         * lib/unistr/u16-strcmp.c: Likewise.
97034         * lib/unistr/u16-strcpy.c: Likewise.
97035         * lib/unistr/u16-strcspn.c: Likewise.
97036         * lib/unistr/u16-strdup.c: Likewise.
97037         * lib/unistr/u16-strlen.c: Likewise.
97038         * lib/unistr/u16-strmblen.c: Likewise.
97039         * lib/unistr/u16-strmbtouc.c: Likewise.
97040         * lib/unistr/u16-strncat.c: Likewise.
97041         * lib/unistr/u16-strncmp.c: Likewise.
97042         * lib/unistr/u16-strncpy.c: Likewise.
97043         * lib/unistr/u16-strnlen.c: Likewise.
97044         * lib/unistr/u16-strpbrk.c: Likewise.
97045         * lib/unistr/u16-strrchr.c: Likewise.
97046         * lib/unistr/u16-strspn.c: Likewise.
97047         * lib/unistr/u16-strstr.c: Likewise.
97048         * lib/unistr/u16-strtok.c: Likewise.
97049         * lib/unistr/u16-to-u32.c: Likewise.
97050         * lib/unistr/u16-to-u8.c: Likewise.
97051         * lib/unistr/u16-uctomb-aux.c: Likewise.
97052         * lib/unistr/u16-uctomb.c: Likewise.
97053         * lib/unistr/u32-check.c: Likewise.
97054         * lib/unistr/u32-chr.c: Likewise.
97055         * lib/unistr/u32-cmp.c: Likewise.
97056         * lib/unistr/u32-cpy-alloc.c: Likewise.
97057         * lib/unistr/u32-cpy.c: Likewise.
97058         * lib/unistr/u32-endswith.c: Likewise.
97059         * lib/unistr/u32-mblen.c: Likewise.
97060         * lib/unistr/u32-mbsnlen.c: Likewise.
97061         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97062         * lib/unistr/u32-mbtouc.c: Likewise.
97063         * lib/unistr/u32-mbtoucr.c: Likewise.
97064         * lib/unistr/u32-move.c: Likewise.
97065         * lib/unistr/u32-next.c: Likewise.
97066         * lib/unistr/u32-prev.c: Likewise.
97067         * lib/unistr/u32-set.c: Likewise.
97068         * lib/unistr/u32-startswith.c: Likewise.
97069         * lib/unistr/u32-stpcpy.c: Likewise.
97070         * lib/unistr/u32-stpncpy.c: Likewise.
97071         * lib/unistr/u32-strcat.c: Likewise.
97072         * lib/unistr/u32-strchr.c: Likewise.
97073         * lib/unistr/u32-strcmp.c: Likewise.
97074         * lib/unistr/u32-strcpy.c: Likewise.
97075         * lib/unistr/u32-strcspn.c: Likewise.
97076         * lib/unistr/u32-strdup.c: Likewise.
97077         * lib/unistr/u32-strlen.c: Likewise.
97078         * lib/unistr/u32-strmblen.c: Likewise.
97079         * lib/unistr/u32-strmbtouc.c: Likewise.
97080         * lib/unistr/u32-strncat.c: Likewise.
97081         * lib/unistr/u32-strncmp.c: Likewise.
97082         * lib/unistr/u32-strncpy.c: Likewise.
97083         * lib/unistr/u32-strnlen.c: Likewise.
97084         * lib/unistr/u32-strpbrk.c: Likewise.
97085         * lib/unistr/u32-strrchr.c: Likewise.
97086         * lib/unistr/u32-strspn.c: Likewise.
97087         * lib/unistr/u32-strstr.c: Likewise.
97088         * lib/unistr/u32-strtok.c: Likewise.
97089         * lib/unistr/u32-to-u16.c: Likewise.
97090         * lib/unistr/u32-to-u8.c: Likewise.
97091         * lib/unistr/u32-uctomb.c: Likewise.
97092         * lib/unistr/u8-check.c: Likewise.
97093         * lib/unistr/u8-chr.c: Likewise.
97094         * lib/unistr/u8-cmp.c: Likewise.
97095         * lib/unistr/u8-cpy-alloc.c: Likewise.
97096         * lib/unistr/u8-cpy.c: Likewise.
97097         * lib/unistr/u8-endswith.c: Likewise.
97098         * lib/unistr/u8-mblen.c: Likewise.
97099         * lib/unistr/u8-mbsnlen.c: Likewise.
97100         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97101         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97102         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97103         * lib/unistr/u8-mbtouc.c: Likewise.
97104         * lib/unistr/u8-mbtoucr.c: Likewise.
97105         * lib/unistr/u8-move.c: Likewise.
97106         * lib/unistr/u8-next.c: Likewise.
97107         * lib/unistr/u8-prev.c: Likewise.
97108         * lib/unistr/u8-set.c: Likewise.
97109         * lib/unistr/u8-startswith.c: Likewise.
97110         * lib/unistr/u8-stpcpy.c: Likewise.
97111         * lib/unistr/u8-stpncpy.c: Likewise.
97112         * lib/unistr/u8-strcat.c: Likewise.
97113         * lib/unistr/u8-strchr.c: Likewise.
97114         * lib/unistr/u8-strcmp.c: Likewise.
97115         * lib/unistr/u8-strcpy.c: Likewise.
97116         * lib/unistr/u8-strcspn.c: Likewise.
97117         * lib/unistr/u8-strdup.c: Likewise.
97118         * lib/unistr/u8-strlen.c: Likewise.
97119         * lib/unistr/u8-strmblen.c: Likewise.
97120         * lib/unistr/u8-strmbtouc.c: Likewise.
97121         * lib/unistr/u8-strncat.c: Likewise.
97122         * lib/unistr/u8-strncmp.c: Likewise.
97123         * lib/unistr/u8-strncpy.c: Likewise.
97124         * lib/unistr/u8-strnlen.c: Likewise.
97125         * lib/unistr/u8-strpbrk.c: Likewise.
97126         * lib/unistr/u8-strrchr.c: Likewise.
97127         * lib/unistr/u8-strspn.c: Likewise.
97128         * lib/unistr/u8-strstr.c: Likewise.
97129         * lib/unistr/u8-strtok.c: Likewise.
97130         * lib/unistr/u8-to-u16.c: Likewise.
97131         * lib/unistr/u8-to-u32.c: Likewise.
97132         * lib/unistr/u8-uctomb-aux.c: Likewise.
97133         * lib/unistr/u8-uctomb.c: Likewise.
97134         * lib/unitypes.h: Likewise.
97135         * lib/uniwidth.h: Likewise.
97136         * lib/uniwidth/cjk.h: Likewise.
97137         * lib/uniwidth/u16-strwidth.c: Likewise.
97138         * lib/uniwidth/u16-width.c: Likewise.
97139         * lib/uniwidth/u32-strwidth.c: Likewise.
97140         * lib/uniwidth/u32-width.c: Likewise.
97141         * lib/uniwidth/u8-strwidth.c: Likewise.
97142         * lib/uniwidth/u8-width.c: Likewise.
97143         * lib/uniwidth/width.c: Likewise.
97145 2007-10-07  Bruno Haible  <bruno@clisp.org>
97147         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97148         The file is still under LGPL (see modules/inttypes).
97150 2007-10-06  Bruno Haible  <bruno@clisp.org>
97152         * modules/trunc (Dependencies): Add 'extensions'.
97153         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97154         Reported by Ben Pfaff <blp@gnu.org>.
97156 2007-10-06  Bruno Haible  <bruno@clisp.org>
97158         * modules/freopen-tests: New file.
97159         * tests/test-freopen.c: New file.
97161         * modules/fopen-tests: New file.
97162         * tests/test-fopen.c: New file.
97164         * modules/fopen: New file.
97165         * lib/fopen.c: New file.
97166         * m4/fopen.m4: New file.
97167         * modules/freopen: New file.
97168         * lib/freopen.c: New file.
97169         * m4/freopen.m4: New file.
97170         * lib/stdio.in.h (fopen, freopen): New declarations.
97171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97172         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97173         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97174         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97175         * doc/functions/fopen.texi: Mention the 'fopen' module.
97176         * doc/functions/freopen.texi: Mention the 'freopen' module.
97178 2007-10-06  Bruno Haible  <bruno@clisp.org>
97180         * modules/open-tests: New file.
97181         * tests/test-open.c: New file.
97183         * modules/open: New file.
97184         * lib/open.c: New file.
97185         * m4/open.m4: New file.
97186         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97187         lib/open.c does.
97188         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97189         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97190         macros.
97191         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97192         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97193         REPLACE_OPEN.
97194         * doc/functions/open.texi: Mention the 'open' module.
97196 2007-10-04  Bruno Haible  <bruno@clisp.org>
97198         * modules/ceill-tests: New file.
97199         * tests/test-ceill.c: New file.
97201         * modules/ceill: New file.
97202         * lib/ceill.c: Replace entire file.
97203         * m4/ceill.m4: New file.
97204         * lib/math.in.h (ceill): Replace declaration.
97205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97206         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97207         * doc/functions/ceill.texi: Mention the 'ceill' module.
97208         * modules/mathl (Files): Remove lib/ceill.c.
97209         (Depends-on): Add ceill.
97211 2007-10-04  Bruno Haible  <bruno@clisp.org>
97213         * modules/ceilf-tests: New file.
97214         * tests/test-ceilf.c: New file.
97216         * modules/ceilf: New file.
97217         * lib/ceil.c: New file.
97218         * lib/ceilf.c: New file.
97219         * m4/ceilf.m4: New file.
97220         * lib/math.in.h (ceilf): New declaration.
97221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97222         HAVE_DECL_CEILF.
97223         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97224         HAVE_DECL_CEILF.
97225         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97227 2007-10-04  Bruno Haible  <bruno@clisp.org>
97229         * modules/floorl-tests: New file.
97230         * tests/test-floorl.c: New file.
97232         * modules/floorl: New file.
97233         * lib/floorl.c: Replace entire file.
97234         * m4/floorl.m4: New file.
97235         * lib/math.in.h (floorl): Replace declaration.
97236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97237         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97238         * doc/functions/floorl.texi: Mention the 'floorl' module.
97239         * modules/mathl (Files): Remove lib/floorl.c.
97240         (Depends-on): Add floorl.
97242 2007-10-04  Bruno Haible  <bruno@clisp.org>
97244         * modules/floorf-tests: New file.
97245         * tests/test-floorf.c: New file.
97247         * modules/floorf: New file.
97248         * lib/floor.c: New file.
97249         * lib/floorf.c: New file.
97250         * m4/floorf.m4: New file.
97251         * lib/math.in.h (floorf): New declaration.
97252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97253         HAVE_DECL_FLOORF.
97254         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97255         HAVE_DECL_FLOORF.
97256         * doc/functions/floorf.texi: Mention the 'floorf' module.
97258 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97259             Bruno Haible  <bruno@clisp.org>
97261         Advertise for the Git server instead of the CVS server.
97262         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97263         repository instead of the CVS one.
97264         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97265         about all VCS systems generically.
97266         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97268 2007-10-04  Bruno Haible  <bruno@clisp.org>
97270         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97271         means.
97272         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97274 2007-10-04  Bruno Haible  <bruno@clisp.org>
97276         * modules/truncl-tests: New file.
97277         * tests/test-truncl.c: New file.
97279         * modules/truncl: New file.
97280         * lib/truncl.c: New file.
97281         * m4/truncl.m4: New file.
97282         * lib/math.in.h (truncl): New declaration.
97283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97284         HAVE_DECL_TRUNCL.
97285         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97286         HAVE_DECL_TRUNCL.
97287         * doc/functions/truncl.texi: Mention the 'truncl' module.
97289 2007-10-04  Bruno Haible  <bruno@clisp.org>
97291         * modules/truncf-tests: New file.
97292         * tests/test-truncf.c: New file.
97294         * modules/truncf: New file.
97295         * lib/trunc.c: Make paramerizable through USE_* macros.
97296         * lib/truncf.c: New file.
97297         * m4/truncf.m4: New file.
97298         * lib/math.in.h (truncf): New declaration.
97299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97300         HAVE_DECL_TRUNCF.
97301         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97302         HAVE_DECL_TRUNCF.
97303         * doc/functions/truncf.texi: Mention the 'truncf' module.
97305 2007-10-03  Bruno Haible  <bruno@clisp.org>
97307         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97308         augmentation also for tests modules.
97309         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97310         * modules/atexit-tests (Makefile.am): Likewise.
97311         * modules/binary-io-tests (Makefile.am): Likewise.
97312         * modules/c-strcase-tests (Makefile.am): Likewise.
97313         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97314         * modules/canonicalize-tests (Makefile.am): Likewise.
97315         * modules/closein-tests (Makefile.am): Likewise.
97316         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97317         * modules/freadahead-tests (Makefile.am): Likewise.
97318         * modules/fseek-tests (Makefile.am): Likewise.
97319         * modules/fseeko-tests (Makefile.am): Likewise.
97320         * modules/ftell-tests (Makefile.am): Likewise.
97321         * modules/ftello-tests (Makefile.am): Likewise.
97322         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97323         * modules/isnanl-tests (Makefile.am): Likewise.
97324         * modules/lseek-tests (Makefile.am): Likewise.
97325         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97326         * modules/mbscasestr-tests (Makefile.am): Likewise.
97327         * modules/mbschr-tests (Makefile.am): Likewise.
97328         * modules/mbscspn-tests (Makefile.am): Likewise.
97329         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97330         * modules/mbspbrk-tests (Makefile.am): Likewise.
97331         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97332         * modules/mbsrchr-tests (Makefile.am): Likewise.
97333         * modules/mbsspn-tests (Makefile.am): Likewise.
97334         * modules/mbsstr-tests (Makefile.am): Likewise.
97335         * modules/printf-posix-tests (Makefile.am): Likewise.
97336         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97337         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97338         * modules/tsearch-tests (Makefile.am): Likewise.
97339         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97340         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97341         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97342         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97343         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97344         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97345         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97346         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97347         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97348         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97349         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97350         * modules/xstrtol-tests (Makefile.am): Likewise.
97351         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97352         * modules/yesno-tests (Makefile.am): Likewise.
97354 2007-10-03  Bruno Haible  <bruno@clisp.org>
97356         * modules/trunc-tests: New file.
97357         * tests/test-trunc.c: New file.
97359         * modules/trunc: New file.
97360         * lib/trunc.c: New file.
97361         * m4/trunc.m4: New file.
97362         * lib/math.in.h (trunc): New declaration.
97363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97364         HAVE_DECL_TRUNC.
97365         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97366         HAVE_DECL_TRUNC.
97367         * doc/functions/trunc.texi: Mention the 'trunc' module.
97369 2007-10-03  Bruno Haible  <bruno@clisp.org>
97371         * tests/test-fpending.c: New file, mostly copied
97372         from coreutils/lib/t-fpending.c.
97373         * modules/fpending-tests: New file.
97375 2007-10-03  Bruno Haible  <bruno@clisp.org>
97377         Port the stdio extensions to QNX (untested).
97378         * lib/fseterr.c (fseterr): Add support for QNX.
97379         * lib/fbufmode.c (fbufmode): Likewise.
97380         * lib/freadable.c (freadable): Likewise.
97381         * lib/fwritable.c (fwritable): Likewise.
97382         * lib/freading.c (freading): Likewise.
97383         * lib/fwriting.c (fwriting): Likewise.
97384         * lib/freadahead.c (freadahed): Likewise.
97385         * lib/fpurge.c (fpurge): Likewise.
97386         * lib/fseeko.c (rpl_fseeko): Likewise.
97388 2007-10-03  Bruno Haible  <bruno@clisp.org>
97389             Jim Meyering  <jim@meyering.net>
97390             Eric Blake  <ebb9@byu.net>
97392         * doc/relocatable.texi: Use @command instead of @program.
97394 2007-10-02  Jim Meyering  <jim@meyering.net>
97396         Perform one more "_.h" -> ".in.h" substitution.
97397         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97398         instead of unistd_.h here, too.
97400 2007-10-01  Bruno Haible  <bruno@clisp.org>
97402         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97403         Needed for the alloca-opt module.
97405 2007-09-30  Bruno Haible  <bruno@clisp.org>
97407         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97408         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97409         alloca_.h.
97410         * lib/argz.in.h: Renamed from lib/argz_.h.
97411         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97412         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97413         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97414         byteswap_.h.
97415         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97416         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97417         dirent_.h.
97418         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97419         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97420         fcntl_.h.
97421         * lib/float.in.h: Renamed from lib/float_.h.
97422         * modules/float (Files, Makefile.am): Use float.in.h instead of
97423         float_.h.
97424         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97425         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97426         fnmatch_.h.
97427         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97428         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97429         getopt_.h.
97430         * lib/glob.in.h: Renamed from lib/glob_.h.
97431         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97432         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97433         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97434         iconv_.h.
97435         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97436         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97437         inttypes_.h.
97438         * lib/locale.in.h: Renamed from lib/locale_.h.
97439         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97440         locale_.h.
97441         * lib/math.in.h: Renamed from lib/math_.h.
97442         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97443         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97444         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97445         of netinet_in_.h. Add dependency.
97446         * lib/poll.in.h: Renamed from lib/poll_.h.
97447         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97448         * lib/search.in.h: Renamed from lib/search_.h.
97449         * modules/search (Files, Makefile.am): Use search.in.h instead of
97450         search_.h.
97451         * lib/signal.in.h: Renamed from lib/signal_.h.
97452         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97453         _signal.h.
97454         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97455         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97456         stdbool_.h.
97457         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97458         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97459         stdint_.h.
97460         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97461         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97462         stdio_.h.
97463         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97464         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97465         stdlib_.h.
97466         * lib/string.in.h: Renamed from lib/string_.h.
97467         * modules/string (Files, Makefile.am): Use string.in.h instead of
97468         string_.h.
97469         * doc/gnulib-tool.texi (Initial import): Update.
97470         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97471         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97472         of sys_select_.h. Add dependency.
97473         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97474         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97475         of sys_socket_.h.
97476         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97477         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97478         sys_stat_.h.
97479         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97480         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97481         sys_time_.h.
97482         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97483         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97484         sysexits_.h.
97485         * lib/time.in.h: Renamed from lib/time_.h.
97486         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97487         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97488         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97489         unistd_.h.
97490         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97491         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97492         wchar_.h.
97493         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97494         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97495         wctype_.h.
97496         * build-aux/bootstrap (slurp): Update.
97497         * lib/.cppi-disable: Update.
97499 2007-09-30  Bruno Haible  <bruno@clisp.org>
97501         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97502         Needed on BeOS.
97504 2007-09-30  Bruno Haible  <bruno@clisp.org>
97506         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97508 2007-09-29  Bruno Haible  <bruno@clisp.org>
97510         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97512 2007-09-29  Bruno Haible  <bruno@clisp.org>
97514         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97515         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97516         * build-aux/install-reloc: Compile also areadlink.c.
97517         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97519 2007-09-29  Bruno Haible  <bruno@clisp.org>
97521         * gnulib-tool (func_emit_initmacro_done): Indentation.
97523 2007-09-29  Bruno Haible  <bruno@clisp.org>
97525         * README: Add CVS checkout update instructions.
97526         Info from Bob Proulx <bob@proulx.com>.
97528 2007-09-28  Eric Blake  <ebb9@byu.net>
97530         Provide move-if-change.
97531         * build-aux/move-if-change: New file, based on best practice
97532         rather than any canonical upstream location.
97534 2007-09-28  Jim Meyering  <jim@meyering.net>
97536         Fix canonicalize loop-detection corner case.
97537         Do not attempt to stat the symlink values stored via seen_triple.
97538         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97539         on linux-2.6.18, (but not 2.6.22).
97540         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97541         triple_compare.  The former compares dev,ino,filename, while the latter
97542         would actually stat dirname(filename) when dev and ino were equal.
97543         * lib/hash-triple.c: Install <string.h>.
97544         (STREQ): Define.
97545         (triple_compare_ino_str): New function.
97546         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97548 2007-09-28  Eric Blake  <ebb9@byu.net>
97550         Enforce that AC_REPLACE_FUNCS files exist.
97551         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97552         override check for typos.
97554         Fix test-closein on Solaris 10.
97555         * tests/test-closein.c (main): Don't assume stdin can be inherited
97556         closed on all systems.
97557         * tests/test-closein.sh: Likewise.
97558         Reported by Piotr Tarnowski.
97560 2007-09-28  Jim Meyering  <jim@meyering.net>
97562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97564 2007-09-27  Jim Meyering  <jim@meyering.net>
97566         canonicalize: Avoid a false-positive cycle failure.
97567         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97568         Sort.  Remove cycle-check.
97569         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97570         not cycle-check.h.
97571         (seen_triple): New function.
97572         (canonicalize_filename_mode): Use it instead of cycle-check.
97573         * tests/test-canonicalize.c: Add a test for this bug.
97574         * tests/test-canonicalize.sh: Set up and run the test.
97576         New module, file-set, from coreutils.
97577         * modules/file-set: Define it.
97578         * lib/file-set.c, lib/file-set.h: Implement.
97580         New module, hash-triple, from coreutils.
97581         * modules/hash-triple: Define it.
97582         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97584 2007-09-25  Eric Blake  <ebb9@byu.net>
97586         Fix strerror on Interix.
97587         * lib/string_.h (strerror): Declare replacement.
97588         * doc/functions/strerror.texi (strerror): Document the Interix
97589         shortcoming.
97590         * modules/string (Makefile.am): Support new hooks.
97591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97592         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97593         gl_FUNC_STRERROR_SEPARATE.
97594         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97595         * lib/strerror.c (rpl_strerror): Provide replacement.
97596         * modules/strerror (Depends-on): Add string.
97597         (configure.ac): Detect use of module.
97598         * tests/test-strerror.c: New file.
97599         * modules/strerror-tests: New test module.
97600         * modules/argp (Depends-on): Add strerror.
97601         * modules/error (Depends-on): Likewise.
97602         Reported by Martin Koeppe.
97604 2007-09-24  Bruno Haible  <bruno@clisp.org>
97606         * README: Update git instructions.
97608 2007-09-24  Eric Blake  <ebb9@byu.net>
97610         Revert fpending breakage from 2007-09-08.
97611         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97612         __fpending.c.
97614 2007-09-24  Jim Meyering  <jim@meyering.net>
97616         filenamecat.c: Add a test.
97617         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97618         showing how the function works when DIR is the empty string.
97620 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97622         * tests/test-canonicalize.sh: Turn on executable bit.
97624 2007-09-19  Eric Blake  <ebb9@byu.net>
97626         * README: Update CVS instructions.
97628 2007-09-18  Bruno Haible  <bruno@clisp.org>
97630         * modules/areadlink: New file.
97631         * lib/areadlink.h (areadlink): New declaration.
97632         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97634 2007-09-17  Jim Meyering  <jim@meyering.net>
97636         * lib/savewd.c (ESTALE) [!defined]: Define.
97637         Reported to be required on Interix by Martin Koeppe.
97639 2007-09-17  Bruno Haible  <bruno@clisp.org>
97641         * gnulib-tool (func_version): Use $version.
97643 2007-09-16  Bruno Haible  <bruno@clisp.org>
97645         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97646         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97647         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97648         Reported by Greg Schafer <gschafer@zip.com.au>.
97650 2007-09-15  Bruno Haible  <bruno@clisp.org>
97652         * gnulib-tool (sed): Try a little harder to make bash understand the
97653         alias.
97654         Reported by Bruce Korb <bruce.korb@gmail.com>.
97656 2007-09-13  Eric Blake  <ebb9@byu.net>
97658         * ChangeLog: Remove conflict markers.
97660 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97662         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97663         Reported by Bruno Haible <bruno@clisp.org>.
97665 2007-09-12  Bruno Haible  <bruno@clisp.org>
97667         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97668         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97669         is not defined.
97671 2007-09-12  Eric Blake  <ebb9@byu.net>
97673         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97674         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97675         Autoconf definition.
97676         * modules/euidaccess (Depends-on): Add extensions, for
97677         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97678         * modules/fnmatch (Depends-on): Likewise.
97679         * modules/getaddrinfo (Depends-on): Likewise.
97680         * modules/getdelim (Depends-on): Likewise.
97681         * modules/getline (Depends-on): Likewise.
97682         * modules/getsubopt (Depends-on): Likewise.
97683         * modules/gettext (Depends-on): Likewise.
97684         * modules/group-member (Depends-on): Likewise.
97685         * modules/mbchar (Depends-on): Likewise.
97686         * modules/memmem (Depends-on): Likewise.
97687         * modules/mempcpy (Depends-on): Likewise.
97688         * modules/memrchr (Depends-on): Likewise.
97689         * modules/pagealign_alloc (Depends-on): Likewise.
97690         * modules/readutmp (Depends-on): Likewise.
97691         * modules/stpcpy (Depends-on): Likewise.
97692         * modules/stpncpy (Depends-on): Likewise.
97693         * modules/strchrnul (Depends-on): Likewise.
97694         * modules/strndup (Depends-on): Likewise.
97695         * modules/strsep (Depends-on): Likewise.
97696         * modules/strverscmp (Depends-on): Likewise.
97697         * modules/vasprintf (Depends-on): Likewise.
97698         * modules/wcwidth (Depends-on): Likewise.
97699         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97700         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97701         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97702         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97703         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97704         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97705         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97706         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97707         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97708         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97709         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97711         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97712         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97713         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97714         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97715         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97716         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97717         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97718         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97719         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97720         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97721         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97722         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
97723         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
97724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
97725         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
97726         so that lock.m4 can be used in gettext without extensions module.
97728 2007-09-11  Bruno Haible  <bruno@clisp.org>
97730         * m4/isc-posix.m4: Remove file.
97731         Suggested by Eric Blake.
97733 2007-09-11  Eric Blake  <ebb9@byu.net>
97735         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
97737 2007-09-10  Bruno Haible  <bruno@clisp.org>
97739         * posix-modules: Fix typo in error message.
97740         Reported by Matt <mkraai@beckman.com>.
97742 2007-09-09  Bruno Haible  <bruno@clisp.org>
97744         * doc/functions/getdelim.texi: Update list of platforms lacking the
97745         function.
97746         * doc/functions/getline.texi: Likewise.
97748 2007-09-09  Jim Meyering  <jim@meyering.net>
97750         * lib/hash.c (hash_initialize): Detect calloc failure.
97751         Reported by Bruno Haible.
97753 2007-09-09  Bruno Haible  <bruno@clisp.org>
97755         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
97756         malloc or realloc fails.
97758 2007-09-09  Bruno Haible  <bruno@clisp.org>
97760         * modules/getcwd (Depends-on): Add malloc-posix.
97761         * modules/glob (Depends-on): Likewise.
97762         * modules/putenv (Depends-on): Likewise.
97763         * modules/strdup (Depends-on): Likewise.
97764         * modules/getdelim (Depends-on): Add realloc-posix.
97765         * modules/read-file (Depends-on): Likewise.
97767 2007-09-09  Bruno Haible  <bruno@clisp.org>
97769         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
97770         (gl_FUNC_MALLOC_POSIX): Require it.
97771         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
97772         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
97773         * modules/realloc (Files): Add m4/malloc.m4.
97774         * modules/calloc (Files): Likewise.
97776 2007-09-09  Bruno Haible  <bruno@clisp.org>
97778         * modules/malloc-posix: New file.
97779         * modules/malloc (Depends-on): Add malloc-posix.
97780         * lib/malloc.c: Include errno.h.
97781         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
97782         and a POSIX-compatible malloc into a single function. Set ENOMEM
97783         when returning NULL.
97784         * m4/malloc.m4: New file.
97785         * doc/functions/malloc.texi: Mention the malloc-posix module.
97786         * lib/stdlib_.h (malloc): New declaration.
97787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97788         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
97789         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
97790         and HAVE_MALLOC_POSIX.
97792 2007-09-09  Bruno Haible  <bruno@clisp.org>
97794         * modules/realloc-posix: New file.
97795         * modules/realloc (Depends-on): Add realloc-posix.
97796         * lib/realloc.c: Include errno.h.
97797         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
97798         and a POSIX-compatible realloc into a single function. Set ENOMEM
97799         when returning NULL.
97800         * m4/realloc.m4: New file.
97801         * doc/functions/realloc.texi: Mention the realloc-posix module.
97802         * lib/stdlib_.h (realloc): New declaration.
97803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97804         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
97805         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
97806         and HAVE_REALLOC_POSIX.
97808 2007-09-09  Bruno Haible  <bruno@clisp.org>
97810         * modules/calloc-posix: New file.
97811         * modules/calloc (Depends-on): Add calloc-posix.
97812         * lib/calloc.c: Include errno.h.
97813         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
97814         and a POSIX-compatible calloc into a single function. Set ENOMEM
97815         when returning NULL.
97816         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
97817         * doc/functions/calloc.texi: Mention the calloc-posix module.
97818         * lib/stdlib_.h (calloc): New declaration.
97819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97820         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
97821         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
97822         and HAVE_CALLOC_POSIX.
97824 2007-09-09  Bruno Haible  <bruno@clisp.org>
97826         Allow for modules to show an arbitrary notice.
97827         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
97828         * gnulib-tool: New option --extract-notice.
97829         (func_usage): Document it.
97830         (sed_extract_prog): Update.
97831         (func_get_notice): New function.
97832         (func_modules_notice): New function.
97833         (func_import, func_create_testdir): Invoke it.
97834         Suggested by Jim Meyering.
97836 2007-09-09  Bruno Haible  <bruno@clisp.org>
97838         * gnulib-tool: New options --verbose, --quiet.
97839         (func_usage): Document them.
97840         (verbose): New variable.
97841         (func_execute_command): New function.
97842         (func_import): Don't show the module list and the file list if
97843         $verbose < 0.
97844         (func_create_testdir): Likewise. Use func_execute_command.
97845         (func_create_megatestdir): Use func_execute_command.
97847 2007-09-08  Bruno Haible  <bruno@clisp.org>
97849         * gnulib-tool (func_import): Prefer rsync over wget when available,
97850         for fetching the PO files.
97852 2007-09-08  Bruno Haible  <bruno@clisp.org>
97854         * posix-modules: New file. Portions copied from gnulib-tool.
97855         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
97857 2007-09-08  Jim Meyering  <jim@meyering.net>
97859         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
97860         * lib/fpending.h: Rename from __fpending.h.
97861         * lib/fpending.c: Rename from __fpending.c.
97862         Include "fpending.h", not "__fpending.h".
97863         * lib/__fpending.h, lib/__fpending.c: Remove files.
97864         * modules/fpending (Files): Reflect new file names.
97865         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
97867 2007-09-08  Bruno Haible  <bruno@clisp.org>
97869         * m4/inttypes-h.m4: Remove stub file.
97871 2007-09-07  Simon Josefsson  <simon@josefsson.org>
97873         * doc/headers/stdint.texi: Discuss #include_next issue.
97875 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
97877         * build-aux/bootstrap: Remove obsolete comment about wget --help.
97879 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97881         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
97882         in variable name.
97884 2007-09-03  Jim Meyering  <jim@meyering.net>
97886         New module: git-version-gen.
97887         * modules/git-version-gen: New file.
97889         Import changes from coreutils for bootstrap script.
97891         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
97893         bootstrap: uses rsync to download the .po files
97894         * build-aux/bootstrap (po_download_command_format): New global.
97895         (download_po_files): Use rsync.
97896         (update_po_files): Don't remove .po files after download,
97897         so future rsync runs can take advantage of the copies.
97899         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
97901         Solve the unnecessary-.po-file-regeneration problem once and for all.
97902         * build-aux/bootstrap (download_po_files): New function, renamed from
97903         get_translations.  Now, downloads, but doesn't update LINGUAS.
97904         (update_po_files): New function.
97906         bootstrap: Ignore more.
97907         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
97908         uniwidth to e.g., lib/.gitignore.
97909         (slurp): Handle the sys_stat_.h -> sys mapping, too.
97911         * build-aux/bootstrap: New setting: vc_ignore.
97912         (insert_sorted_if_absent): Create $file if absent.
97913         Adapt to new, possibly empty, list: $vc_ignore.
97915         bootstrap: generate more ignorable names
97916         * build-aux/bootstrap (slurp): When generating ignorable names,
97917         also map .sin to .sed, .gperf to .c, and .y to .c.
97919 2007-09-03  Jim Meyering  <jim@meyering.net>
97921         * build-aux/git-version-gen: New file, from coreutils.  For details, see
97922         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
97924 2007-09-02  Bruno Haible  <bruno@clisp.org>
97926         Fix mis-recognition of 'mcs' on QNX 6.
97927         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
97928         output contains the string "Mono".
97929         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
97930         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
97932 2007-09-01  Bruno Haible  <bruno@clisp.org>
97934         Fix collision between uniwidth/* and linebreak modules.
97935         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
97936         u32_width): Remove declarations.
97937         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
97938         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
97939         streq3, streq2, streq1, streq0): Remove functions.
97940         (STREQ): Remove macro.
97941         (is_cjk_encoding): Remove function.
97942         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
97943         (uc_width, u8_width, u16_width, u32_width): Remove functions.
97944         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
97945         * NEWS: Document the change.
97947 2007-09-01  Bruno Haible  <bruno@clisp.org>
97949         * lib/streq.h: Add double-inclusion guard.
97951 2007-09-01  Karl Berry  <karl@gnu.org>
97953         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
97955 2007-08-28  Jim Meyering  <jim@meyering.net>
97957         Rename mreadlink_with_size to areadlink_with_size.
97958         * NEWS: Document the change.
97959         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
97960         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
97961         * lib/mreadlink.h: Rename this to...
97962         * lib/areadlink.h: ...this.
97963         * modules/mreadlink-with-size: Rename this to...
97964         * modules/areadlink-with-size: ...this.
97965         * lib/canonicalize.c: Reflect the renaming.
97966         * modules/canonicalize: Likewise.
97968 2007-08-26  Bruno Haible  <bruno@clisp.org>
97970         * gnulib-tool (func_import): When deciding which files to remove,
97971         consider also dangling symbolic links.
97972         Reported by Eric Blake.
97974 2007-08-26  Bruno Haible  <bruno@clisp.org>
97976         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
97978 2007-08-23  Simon Josefsson  <simon@josefsson.org>
97980         * lib/readline.c: Don't include getline.h, the prototype is now
97981         found in stdio.h.
97983 2007-08-23  Jim Meyering  <jim@meyering.net>
97985         Getdelim touchup.
97986         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
97987         around the funlockfile call, since funlockfile never sets errno.
97988         Don't set errno upon failed realloc.
97990 2007-08-22  Eric Blake  <ebb9@byu.net>
97992         Getline touchups.
97993         * lib/getdelim.c (getdelim): Revert regression that required *n to
97994         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
97995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
97996         getdelim, rather than whether implementation is missing.
97997         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
97998         * lib/stdio_.h (getline): Also declare if replacement is
97999         required.
98000         * doc/functions/getdelim.texi: New file.
98001         * doc/functions/getline.texi: Likewise.
98002         * doc/gnulib.texi (Function Substitutes): Add new files.
98003         Reported by Bruno Haible.
98005 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98007         * users.txt: Add Guile.
98009 2007-08-22  Eric Blake  <ebb9@byu.net>
98011         * tests/test-getdelim.c (main): Use remove, not unlink.
98012         * tests/test-getline.c (main): Likewise.
98014         Move getline and getdelim into stdio.h, per POSIX 200x.
98015         * modules/getline (Files): Remove getline.h.
98016         (Depends-on): Add stdio.
98017         (configure.ac): Add module indicator.
98018         * modules/getdelim (Files): Remove getdelim.h.
98019         (Depends-on): Add stdio.
98020         (configure.ac): Add module indicator.
98021         * modules/stdio (Makefile.am): Work with new indicators.
98022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98023         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98024         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98025         * lib/getdelim.h: Delete.
98026         * lib/getline.h: Delete.
98027         * lib/stdio_.h (getdelim, getline): Declare.
98028         * modules/getdelim-tests: New module.
98029         * modules/getline-tests: Likewise.
98030         * tests/test-getdelim.c: New file.
98031         * tests/test-getline.c: Likewise.
98032         * NEWS: Document the change.
98033         * lib/getline.c: Update choice of header.
98034         * lib/csharpcomp.c: Likewise.
98035         * lib/getpass.c: Likewise.
98036         * lib/javacomp.c: Likewise.
98037         * lib/javaversion.c: Likewise.
98038         * lib/yesno.c: Likewise.
98039         * lib/getdelim.c: Likewise.
98040         (getdelim): Set errno on failure, and avoid memory leak.
98042 2007-08-19  Bruno Haible  <bruno@clisp.org>
98044         * modules/closein (Depends-on): Add freadahead.
98045         * lib/closein.c: Include freadahead.h.
98046         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98047         is zero.
98049 2007-08-19  Bruno Haible  <bruno@clisp.org>
98051         * modules/freadahead-tests: New file.
98052         * tests/test-freadahead.sh: New file.
98053         * tests/test-freadahead.c: New file.
98055         * modules/freadahead: New file.
98056         * lib/freadahead.h: New file.
98057         * lib/freadahead.c: New file.
98058         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98059         fbufmode, fpurge, freadable, fwritable.
98061 2007-08-19  Eric Blake  <ebb9@byu.net>
98063         Test yesno in combination with closein.
98064         * lib/yesno.c (yesno): Document use of stdin.
98065         * modules/yesno-tests (Files): New module.
98066         * tests/test-yesno.c (main): New file.
98067         * tests/test-yesno.sh: Likewise.
98069 2007-08-19  Bruno Haible  <bruno@clisp.org>
98071         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98072         * lib/fseeko.c (rpl_fseeko): Likewise.
98073         * lib/fseterr.c (fseterr): Likewise.
98075 2007-08-19  Bruno Haible  <bruno@clisp.org>
98077         * tests/test-lseek.c (main): Disable a test for BeOS.
98078         * doc/functions/lseek.texi: Document the BeOS bug.
98080 2007-08-19  Bruno Haible  <bruno@clisp.org>
98081             Eric Blake  <ebb9@byu.net>
98083         * lib/lseek.c: Include <sys/stat.h>.
98084         (rpl_lseek): Add workaround code also for Unix platforms.
98085         Needed for BeOS.
98086         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98087         * doc/functions/lseek.texi: Document BeOS definiency.
98089 2007-08-18  Bruno Haible  <bruno@clisp.org>
98091         * modules/fstrcmp-tests: New file.
98092         * tests/test-fstrcmp.c: New file.
98094 2007-08-18  Bruno Haible  <bruno@clisp.org>
98096         * modules/fstrcmp: New file, from GNU gettext with modifications.
98097         * lib/fstrcmp.h: New file, from GNU gettext.
98098         * lib/fstrcmp.c: New file, from GNU gettext.
98099         * MODULES.html.sh (String handling): Add fstrcmp.
98101 2007-08-18  Bruno Haible  <bruno@clisp.org>
98103         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98104         'bool'.
98105         (diag, compareseq): Remove const from the ctxt argument.
98106         (USE_HEURISTIC): Undefine at the end.
98108 2007-08-18  Jim Meyering  <jim@meyering.net>
98110         New file: lib/idcache.h
98111         * NEWS: Mention the addition.
98112         * modules/idcache (Files): Add lib/idcache.h
98113         * lib/idcache.c: Include "idcache.h".
98114         Don't include <sys/types.h>.
98115         Add a FIXME comment.
98116         Move file-scoped "static" declarations to the top.
98117         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98119 2007-08-17  Bruno Haible  <bruno@clisp.org>
98120         and Paul Eggert  <eggert@cs.ucla.edu>
98122         * MODULES.html.sh: Add diffseq.
98123         * modules/diffseq: New file.
98124         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98125         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98127 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98129         Import changes from coreutils for bootstrap script.
98131         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98133         * build-aux/bootstrap (slurp): Work even in environments where
98134         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98135         current code does not slurp files whose names start with ".", and
98136         this looks like it might be a troublesome area.
98138         2007-07-11  Jim Meyering  <jim@meyering.net>
98140         If there's a GPL vN copyright comment, require that N == 3.
98142         2007-07-08  Jim Meyering  <jim@meyering.net>
98144         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98145         * build-aux/bootstrap (mam_template): Move definition out of loop.
98147         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98149         * build-aux/bootstrap (symlink_to_dir): Rename function from
98150         symlink_to_gnulib.  Add a directory parameter.  Update all
98151         callers.
98152         (cp_mark_as_generated): Also check for -- and link to -- files in
98153         gl/.
98155         2007-07-08  Jim Meyering  <jim@meyering.net>
98157         Adapt to deeper hierarchy in gnulib.
98158         * build-aux/bootstrap (symlink_to_dir): If the destination
98159         directory doesn't exist, create it. This is required at least for
98160         "lib/uniwidth/cjk.h".
98162         2007-05-15  Jim Meyering  <jim@meyering.net>
98164         * build-aux/bootstrap: Now that generated Makefile.am files
98165         are no longer under version control, they must be created at
98166         bootstrap time.
98168 2007-08-14  Ben Pfaff  <blp@gnu.org>
98170         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98172 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98174         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98175         given the changes below.
98176         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98177         even on hosts that have padding bits beyond the supported 64.
98179 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98181         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98182         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98183         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98184         depends on it.
98185         (xstrtol_error): Remove.
98186         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98187         but with a different signature.
98188         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98189         * lib/xstrtol-error.c: Include exitfail.h.
98190         (xstrtol_fatal): New function, with a different signature from the
98191         old xstrtol_error, so that the caller need not worry about passing
98192         in an exit status, or about storage management of the option argument.
98193         (xstrtol_error): Now a static function.  Redo signature to
98194         implement xstrtol_fatal.  Output the correct number of hyphens in
98195         front of the option so that the caller need not worry about
98196         storage management.
98197         (N_): New macro.
98198         (_): Remove; not used now.
98199         * modules/xstrtol: Depend on getopt.
98200         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98201         of old STRTOL_FATAL_ERROR macro.
98202         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98203         of test program.
98204         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98205         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98207 2007-08-08  Eric Blake  <ebb9@byu.net>
98209         * lib/xstrtol-error.c: Add missing include.
98211         Move xstrtol messages into gnulib domain, when --pobase is used.
98212         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98213         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98214         * modules/xstrtol (Files): Distribute new file.
98215         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98216         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98217         * tests/test-xstrtol.c: ...into new file.
98218         * tests/test-xstrtoul.c: Also test xstrtoul.
98219         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98220         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98221         * tests/test-xstrtol.sh: Drive the tests.
98222         * tests/test-xstrtoimax.sh: Likewise.
98223         * tests/test-xstrtoumax.sh: Likewise.
98224         * modules/xstrtol-tests: New module.
98225         * modules/xstrtoimax-tests: Likewise.
98226         * modules/xstrtoumax-tests: Likewise.
98228 2007-08-08  Jim Meyering  <jim@meyering.net>
98230         New function: mfile_name_concat.
98231         * lib/filenamecat.c (mfile_name_concat): New function, just like
98232         file_name_concat, but return NULL upon failure rather than exiting
98233         with a diagnostic.
98234         * lib/filenamecat.h: Declare it.
98236 2007-08-07  Bruno Haible  <bruno@clisp.org>
98238         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98239         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98240         warning from gcc.
98241         Reported by Eric Blake.
98243 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98245         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98246         * modules/crypto/arcfour (License): Likewise.
98247         * modules/crypto/des-tests (License): Likewise.
98248         * modules/crypto/gc-arctwo-tests (License): Likewise.
98249         * modules/crypto/gc-des-tests (License): Likewise.
98250         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98251         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98252         * modules/crypto/gc-md2-tests (License): Likewise.
98253         * modules/crypto/gc-md4-tests (License): Likewise.
98254         * modules/crypto/gc-md5-tests (License): Likewise.
98255         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98256         * modules/crypto/gc-rijndael-tests (License): Likewise.
98257         * modules/crypto/gc-sha1-tests (License): Likewise.
98258         * modules/crypto/gc-tests (License): Likewise.
98259         * modules/crypto/hmac-md5 (License): Likewise.
98260         * modules/crypto/hmac-sha1 (License): Likewise.
98261         * modules/crypto/md2-tests (License): Likewise.
98262         * modules/crypto/md4-tests (License): Likewise.
98263         * modules/crypto/md5 (License): Likewise.
98264         * modules/crypto/rijndael (License): Likewise.
98265         * modules/crypto/sha1 (License): Likewise.
98266         * modules/memxor (License): Likewise.
98268 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98269         and Bruno Haible  <bruno@clisp.org>
98271         * NEWS: Describe interface changes to human, xstrtol.
98272         * lib/human.h: Include <xstrtol.h>.
98273         (human_options): Return enum strtol_error, not int.  Remove
98274         bool arg; take int * instead.
98275         * lib/human.c: Don't include "gettext.h".
98276         (_): Remove; no longer used.
98277         Don't include <xstrtol.h>, since human.h does it.
98278         (human_options): Adjust to abovementioned interface changes.
98279         Do not report error to stderr; that's now the caller's
98280         responsibility.
98281         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98282         interface change.
98283         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98284         Str, Argument_type_string.  All uses changed.  Put " argument"
98285         in diagnostics to make them clearer.  Change wording of suffix
98286         message for clarity.
98287         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98288         Argument_type_string.
98289         (STRTOL_FATAL_WARN): Remove; no longer used.
98290         * modules/human (Depends-on): Remove gettext-h.
98292 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98294         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98296 2007-07-31  Bruno Haible  <bruno@clisp.org>
98298         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98299         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98300         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98302 2007-07-31  Bruno Haible  <bruno@clisp.org>
98304         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98305         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98307 2007-07-30  Bruno Haible  <bruno@clisp.org>
98309         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98310         * modules/c-ctype (License): Likewise.
98311         * modules/c-strcase (License): Likewise.
98312         * modules/check-version (License): Likewise.
98313         * modules/iconv (License): Likewise.
98314         * modules/iconv_open (License): Likewise.
98315         * modules/read-file (License): Likewise.
98316         * modules/striconv (License): Likewise.
98317         * modules/strverscmp (License): Likewise.
98318         * modules/vasprintf (License): Likewise.
98319         * modules/crypto/des (License): Likewise.
98320         * modules/crypto/gc (License): Likewise.
98321         * modules/crypto/gc-arcfour (License): Likewise.
98322         * modules/crypto/gc-arctwo (License): Likewise.
98323         * modules/crypto/gc-des (License): Likewise.
98324         * modules/crypto/gc-hmac-md5 (License): Likewise.
98325         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98326         * modules/crypto/gc-md2 (License): Likewise.
98327         * modules/crypto/gc-md4 (License): Likewise.
98328         * modules/crypto/gc-md5 (License): Likewise.
98329         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98330         * modules/crypto/gc-random (License): Likewise.
98331         * modules/crypto/gc-rijndael (License): Likewise.
98332         * modules/crypto/gc-sha1 (License): Likewise.
98333         * modules/crypto/md2 (License): Likewise.
98334         * modules/crypto/md4 (License): Likewise.
98336 2007-07-30  Jim Meyering  <jim@meyering.net>
98338         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98339         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98340         it has valid stat data.  This bug would cause du not to count the
98341         sizes of inaccessible directories.
98342         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98343         in <http://bugzilla.redhat.com/250077>.
98345 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98346             Bruno Haible  <bruno@clisp.org>
98348         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98349         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98350         #include_next, gives a diagnostic about it, but reports no error in
98351         the exit code.
98352         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98354 2007-07-24  Ben Pfaff  <blp@gnu.org>
98356         Improve name: "count-one-bits" is better than "popcount".
98357         * MODULES.html.sh: Update name.
98358         * lib/popcount.h: Renamed lib/count-one-bits.h.
98359         (popcount): Renamed count_one_bits.
98360         (popcountl): Renamed count_one_bits_l.
98361         (popcountll): Renamed count_one_bits_ll.
98362         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98363         * modules/popcount: Renamed module/count-one-bits.
98364         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98365         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98367 2007-07-23  Ben Pfaff  <blp@gnu.org>
98369         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98370         better code generation, and add U to large constants to avoid
98371         warnings, in non-GCC case.
98372         Suggested by Bruno Haible.
98374 2007-07-23  Ben Pfaff  <blp@gnu.org>
98376         * lib/popcount.h: Use verify_true instead of if...abort.
98377         * modules/popcount: Depend on verify module.
98378         Suggested by Jim Meyering.
98380 2007-07-23  Bruno Haible  <bruno@clisp.org>
98382         * gnulib-tool (func_import): Create a .cvsignore file also when the
98383         directory is not yet in CVS but the toplevel directory is. When
98384         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98385         Reported by Karl Berry.
98387 2007-07-22  Ben Pfaff  <blp@gnu.org>
98389         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98390         case.
98391         Suggested by Eric Blake.
98393 2007-07-22  Ben Pfaff  <blp@gnu.org>
98395         New module: popcount.
98396         * MODULES.html.sh: Add popcount.
98397         * modules/popcount: New file.
98398         * modules/popcount-tests: New file.
98399         * tests/test-popcount.c: New file.
98400         * lib/popcount.h: New file.
98401         * m4/popcount.m4: New file.
98403 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98405         * build-aux/announce-gen: Update to GPLv3.
98407         * build-aux/config.guess: Update from config.
98409 2007-07-21  Bruno Haible  <bruno@clisp.org>
98411         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98412         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98414 2007-07-20  Jim Meyering  <jim@meyering.net>
98416         * check-module: Diagnose a self-dependency.
98418 2007-07-19  Bruno Haible  <bruno@clisp.org>
98420         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98421         empty.
98422         Reported by Eric Blake.
98424 2007-07-18  Bruno Haible  <bruno@clisp.org>
98426         * gnulib-tool: New options --po-base, --po-domain.
98427         (func_usage): Document them.
98428         (pobase, po_domain): New variables.
98429         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98430         DEFAULT_TEXT_DOMAIN.
98431         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98432         (func_import): Consider pobase and po_domain. Create a po/ directory.
98433         (func_create_testdir): Set pobase and po_domain to empty.
98434         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98435         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98437 2007-07-18  Bruno Haible  <bruno@clisp.org>
98439         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98440         EXTRA_DIST augmentation for files in build-aux/.
98442 2007-07-16  Bruno Haible  <bruno@clisp.org>
98444         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98445         * modules/getdelim (License): Likewise.
98447 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98449         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98450         * modules/d-type (License): Likewise.
98451         * modules/extensions (License): Likewise.
98452         * modules/fnmatch (License): Likewise.
98453         * modules/fseeko (License): Likewise.
98454         * modules/getaddrinfo (License): Likewise.
98455         * modules/getline (License): Likewise.
98456         * modules/getlogin_r (License): Likewise.
98457         * modules/getpass (License): Likewise.
98458         * modules/gettimeofday (License): Likewise.
98459         * modules/glob (License): Likewise.
98460         * modules/inet_ntop (License): Likewise.
98461         * modules/malloc (License): Likewise.
98462         * modules/malloca (License): Likewise.
98463         * modules/memmem (License): Likewise.
98464         * modules/mempcpy (License): Likewise.
98465         * modules/memset (License): Likewise.
98466         * modules/minmax (License): Likewise.
98467         * modules/mktime (License): Likewise.
98468         * modules/netinet_in (License): Likewise.
98469         * modules/pathmax (License): Likewise.
98470         * modules/poll (License): Likewise.
98471         * modules/regex (License): Likewise.
98472         * modules/snprintf (License): Likewise.
98473         * modules/stdbool (License): Likewise.
98474         * modules/stdint (License): Likewise.
98475         * modules/stdio (License): Likewise.
98476         * modules/strcase (License): Likewise.
98477         * modules/strcasestr (License): Likewise.
98478         * modules/strdup (License): Likewise.
98479         * modules/string (License): Likewise.
98480         * modules/strndup (License): Likewise.
98481         * modules/strnlen (License): Likewise.
98482         * modules/strpbrk (License): Likewise.
98483         * modules/strptime (License): Likewise.
98484         * modules/strsep (License): Likewise.
98485         * modules/sys_select (License): Likewise.
98486         * modules/sys_socket (License): Likewise.
98487         * modules/sys_stat (License): Likewise.
98488         * modules/sys_time (License): Likewise.
98489         * modules/time (License): Likewise.
98490         * modules/time_r (License): Likewise.
98491         * modules/timegm (License): Likewise.
98492         * modules/unistd (License): Likewise.
98493         * modules/vsnprintf (License): Likewise.
98494         * modules/wctype (License): Likewise.
98496 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98498         * modules/argz (License): LGPLv2+.
98500 2007-07-15  Karl Berry  <karl@gnu.org>
98502         * doc/gnulib.texi: revise node structure per new fdl.texi.
98504 2007-07-14  Bruno Haible  <bruno@clisp.org>
98506         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98507         the output file.
98508         * lib/uniname/uninames.h: Regenerated.
98510 2007-07-14  Karl Berry  <karl@gnu.org>
98512         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98513         omitting sectioning and index commands.
98515 2007-07-13  Bruno Haible  <bruno@clisp.org>
98517         New gnulib-tool option --more-symlinks.
98518         * gnulib-tool (func_usage): Document --more-symlinks.
98519         (do_copyrights): New variable.
98520         Recognize option --more-symlinks.
98521         (func_import): Don't add a copyright notice transform to
98522         sed_transform_lib_file if do_copyrights is empty.
98524 2007-07-13  Bruno Haible  <bruno@clisp.org>
98526         * lib/vasnprintf.c (decimal_point_char): Define also if
98527         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98528         && !NEED_PRINTF_DIRECTIVE_A.
98529         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98530         Gary V. Vaughan <gary@gnu.org>.
98532 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98534         * lib/inttypes_.h: Undo previous change, since it was fixed
98535         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98537 2007-07-13  Bruno Haible  <bruno@clisp.org>
98539         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98540         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98542 2007-07-13  Jim Meyering  <jim@meyering.net>
98544         df: Don't fail for Tru64's "file-on-file mount".
98545         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98546         so we fall through and use statfs instead.  Details here:
98547         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98548         Reported by Albert Chin.
98550 2007-07-13  Bruno Haible  <bruno@clisp.org>
98552         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98553         * modules/configmake (License): Likewise.
98554         * modules/gettext (License): Likewise.
98555         * modules/gettext-h (License): Likewise.
98556         * modules/include_next (License): Likewise.
98557         * modules/link-warning (License): Likewise.
98558         * modules/localcharset (License): Likewise.
98559         * modules/localename (License): Likewise.
98560         * modules/lock (License): Likewise.
98561         * modules/relocatable-lib-lgpl (License): Likewise.
98562         * modules/size_max (License): Likewise.
98563         * modules/vasnprintf (License): Likewise.
98564         * modules/wchar (License): Likewise.
98565         * modules/xsize (License): Likewise.
98567 2007-07-13  Bruno Haible  <bruno@clisp.org>
98569         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98570         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98572 2007-07-12  Bruno Haible  <bruno@clisp.org>
98574         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98575         in the modules files.
98577 2007-07-11  Karl Berry  <karl@gnu.org>
98579         * MODULES.html.sh (func_module): use
98580          sed -e '\|^'"${includefile}"'$|d'
98581          instead of /.../d, to avoid errors on $includefile's containing /.
98583 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98585         * gnulib-tool (func_import): Avoid duplication of --avoid
98586         statements
98587         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98588         names to `_' in variable names.
98590 2007-07-10  Eric Blake  <ebb9@byu.net>
98592         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98593         * NEWS: Document this change.
98595 2007-07-08  Bruno Haible  <bruno@clisp.org>
98597         Update to Unicode 5.0.
98598         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98599         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98600         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98601         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98602         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98603         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98604         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98605         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98606         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98607         U+10A3F, U+1D242..U+1D244.
98608         (nonspacing_table_ind): Update.
98609         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98610         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98612 2007-07-08  Bruno Haible  <bruno@clisp.org>
98614         Update to Unicode 5.0.
98615         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98616         code transform. Extend the name index field of unicode_name_to_code and
98617         unicode_code_to_name from 16 to 24 bits.
98618         * lib/uniname/uniname.c (unicode_character_name,
98619         unicode_name_character): Add the range 0x12xxx to the code transform.
98620         * lib/uniname/uninames.h: Regenerated.
98621         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98623 2007-07-07  Bruno Haible  <bruno@clisp.org>
98625         * modules/wcwidth-tests: New file.
98626         * tests/test-wcwidth.c: New file.
98628         Work around MacOS X wcwidth() bug.
98629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98630         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98631         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98632         original wcwidth in non-UTF-8 locales.
98633         * modules/wcwidth (Depends-on): Add localcharset, streq,
98634         uniwidth/width.
98635         * doc/functions/wcwidth.texi: Update.
98637 2007-07-07  Bruno Haible  <bruno@clisp.org>
98639         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98640         (wcwidth): New declaration.
98641         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98642         macros.
98643         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98644         here. Prepare for creating <wchar.h> unconditionally.
98645         * modules/wchar (Depends-on): Add link-warning.
98646         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98647         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98648         * lib/wcwidth.h: Remove file.
98649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98650         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98651         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98652         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98653         (Include): Replace wcwidth.h with <wchar.h>.
98654         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98655         * lib/mbchar.h: Don't include wcwidth.h.
98656         * lib/mbswidth.c: Likewise.
98657         * NEWS: Mention the change.
98659 2007-07-07  Bruno Haible  <bruno@clisp.org>
98661         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98662         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98663         definition with an external declaration.
98664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98665         defined as a function. Remove AC_C_INLINE requirement.
98666         * modules/wcwidth (Files): Add lib/wcwidth.c.
98667         (Makefile.am): Remove redundant statement.
98669 2007-07-07  Bruno Haible  <bruno@clisp.org>
98671         * MODULES.html.sh (Unicode string functions): Add the new modules.
98673         * tests/uniwidth/test-u32-strwidth.c: New file.
98674         * modules/uniwidth/u32-strwidth-tests: New file.
98676         * lib/uniwidth/u32-strwidth.c: New file.
98677         * modules/uniwidth/u32-strwidth: New file.
98679         * tests/uniwidth/test-u16-strwidth.c: New file.
98680         * modules/uniwidth/u16-strwidth-tests: New file.
98682         * lib/uniwidth/u16-strwidth.c: New file.
98683         * modules/uniwidth/u16-strwidth: New file.
98685         * tests/uniwidth/test-u8-strwidth.c: New file.
98686         * modules/uniwidth/u8-strwidth-tests: New file.
98688         * lib/uniwidth/u8-strwidth.c: New file.
98689         * modules/uniwidth/u8-strwidth: New file.
98691         * tests/uniwidth/test-u32-width.c: New file.
98692         * modules/uniwidth/u32-width-tests: New file.
98694         * lib/uniwidth/u32-width.c: New file.
98695         * modules/uniwidth/u32-width: New file.
98697         * tests/uniwidth/test-u16-width.c: New file.
98698         * modules/uniwidth/u16-width-tests: New file.
98700         * lib/uniwidth/u16-width.c: New file.
98701         * modules/uniwidth/u16-width: New file.
98703         * tests/uniwidth/test-u8-width.c: New file.
98704         * modules/uniwidth/u8-width-tests: New file.
98706         * lib/uniwidth/u8-width.c: New file.
98707         * modules/uniwidth/u8-width: New file.
98709         * tests/uniwidth/test-uc_width.c: New file.
98710         * modules/uniwidth/width-tests: New file.
98712         * lib/uniwidth/width.c: New file, from GNU libiconv.
98713         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98714         * modules/uniwidth/width: New file.
98716         * lib/uniwidth.h: New file, from GNU libiconv.
98717         * modules/uniwidth/base: New file.
98719 2007-07-07  Bruno Haible  <bruno@clisp.org>
98721         * lib/uniname.h: New file, from GNU gettext.
98722         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
98723         * lib/uniname/uninames.h: New file, from GNU gettext.
98724         * lib/uniname/uniname.c: New file, from GNU gettext.
98725         * tests/uniname/test-uninames.sh: New file.
98726         * tests/uniname/test-uninames.c: New file, from GNU gettext.
98727         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
98728         * modules/uniname/base: New file.
98729         * modules/uniname/uniname: New file.
98730         * modules/uniname/uniname-tests: New file.
98731         * MODULES.html.sh (Unicode string functions): Add the new modules.
98733 2007-07-06  Bruno Haible  <bruno@clisp.org>
98735         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
98737 2007-07-06  Bruno Haible  <bruno@clisp.org>
98739         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
98740         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
98741         includes <cygwin/sys_time.h> which includes <sys/select.h> which
98742         include <sys/time.h>.
98743         Reported by Eric Blake.
98745 2007-07-06  Eric Blake  <ebb9@byu.net>
98747         Fix testing canonicalize on cygwin.
98748         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
98749         Revert patch from 2007-06-19.
98750         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
98751         canonicalize module is also in use.
98752         * tests/test-canonicalize.c: New file.
98753         * tests/test-canonicalize.sh: Likewise.
98754         * modules/canonicalize-tests: Likewise.
98756 2007-07-06  Jim Meyering  <jim@meyering.net>
98758         * lib/getugroups.c (getugroups): Detect getgrent failure.
98759         Adjust comment to reflect reality: this function may return -1.
98761 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
98763         * build-aux/bootstrap (TP_URL,get_translations): Update to use
98764         the new TP address.
98765         (usage): Fix typo
98766         (gnulib_mk): New variable.
98768 2007-07-05  Jim Meyering  <jim@meyering.net>
98770         Don't let endgrent clobber errno, no matter how improbable.
98771         * lib/getugroups.c (getugroups): Save and restore errno around
98772         endgrent call.
98774         Close the group DB even when failing with 2^31 or more members.
98775         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
98777 2007-07-04  Jim Meyering  <jim@meyering.net>
98779         * lib/getugroups.h: New file.
98780         * lib/getugroups.c: Include "getugroups.h".
98781         Remove uses of "register" keyword.
98782         Move local variable, "cp", down into scope where used.
98783         Give "username" parameter the "const" attribute.
98784         * modules/getugroups (Files): Add lib/getugroups.h
98786 2007-07-04  Karl Berry  <karl@gnu.org>
98788         * MODULES.html.sh (func_all_modules): Complete rename of
98789         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
98791 2007-07-02  Bruno Haible  <bruno@clisp.org>
98793         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
98794         mode, when inttypes.h comes from gnulib.
98795         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98797 2007-07-02  Simon Josefsson  <simon@josefsson.org>
98799         * NEWS: Mention lgpl module name change.
98801         * modules/lgpl-2.1: Renamed from lgpl.
98803         * NEWS: Mention gpl module name change.
98805         * modules/gpl-3.0: New file, based on gpl-2.0.
98807         * modules/gpl-2.0: Renamed from gpl.
98809         * modules/gpl: Fix filename, doc/gpl.texi is now found at
98810         doc/gpl-2.0.texi.
98812 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98814         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
98815         #define __STDC_LIMIT_MACROS temporarily while including
98816         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
98817         Problem reported by Joel E. Denny in
98818         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
98820 2007-07-01  Bruno Haible  <bruno@clisp.org>
98822         * lib/unistdio.h: New file.
98823         * lib/unistdio/u-asnprintf.h: New file.
98824         * lib/unistdio/u-asprintf.h: New file.
98825         * lib/unistdio/u-printf-args.c: New file.
98826         * lib/unistdio/u-printf-args.h: New file.
98827         * lib/unistdio/u-printf-parse.h: New file.
98828         * lib/unistdio/u-snprintf.h: New file.
98829         * lib/unistdio/u-sprintf.h: New file.
98830         * lib/unistdio/u-vasprintf.h: New file.
98831         * lib/unistdio/u-vsnprintf.h: New file.
98832         * lib/unistdio/u-vsprintf.h: New file.
98833         * lib/unistdio/ulc-asnprintf.c: New file.
98834         * lib/unistdio/ulc-asprintf.c: New file.
98835         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
98836         * lib/unistdio/ulc-printf-parse.c: New file.
98837         * lib/unistdio/ulc-snprintf.c: New file.
98838         * lib/unistdio/ulc-sprintf.c: New file.
98839         * lib/unistdio/ulc-vasnprintf.c: New file.
98840         * lib/unistdio/ulc-vasprintf.c: New file.
98841         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
98842         * lib/unistdio/ulc-vsnprintf.c: New file.
98843         * lib/unistdio/ulc-vsprintf.c: New file.
98844         * lib/unistdio/u8-asnprintf.c: New file.
98845         * lib/unistdio/u8-asprintf.c: New file.
98846         * lib/unistdio/u8-printf-parse.c: New file.
98847         * lib/unistdio/u8-snprintf.c: New file.
98848         * lib/unistdio/u8-sprintf.c: New file.
98849         * lib/unistdio/u8-vasnprintf.c: New file.
98850         * lib/unistdio/u8-vasprintf.c: New file.
98851         * lib/unistdio/u8-vsnprintf.c: New file.
98852         * lib/unistdio/u8-vsprintf.c: New file.
98853         * lib/unistdio/u8-u8-asnprintf.c: New file.
98854         * lib/unistdio/u8-u8-asprintf.c: New file.
98855         * lib/unistdio/u8-u8-snprintf.c: New file.
98856         * lib/unistdio/u8-u8-sprintf.c: New file.
98857         * lib/unistdio/u8-u8-vasnprintf.c: New file.
98858         * lib/unistdio/u8-u8-vasprintf.c: New file.
98859         * lib/unistdio/u8-u8-vsnprintf.c: New file.
98860         * lib/unistdio/u8-u8-vsprintf.c: New file.
98861         * lib/unistdio/u16-asnprintf.c: New file.
98862         * lib/unistdio/u16-asprintf.c: New file.
98863         * lib/unistdio/u16-printf-parse.c: New file.
98864         * lib/unistdio/u16-snprintf.c: New file.
98865         * lib/unistdio/u16-sprintf.c: New file.
98866         * lib/unistdio/u16-vasnprintf.c: New file.
98867         * lib/unistdio/u16-vasprintf.c: New file.
98868         * lib/unistdio/u16-vsnprintf.c: New file.
98869         * lib/unistdio/u16-vsprintf.c: New file.
98870         * lib/unistdio/u16-u16-asnprintf.c: New file.
98871         * lib/unistdio/u16-u16-asprintf.c: New file.
98872         * lib/unistdio/u16-u16-snprintf.c: New file.
98873         * lib/unistdio/u16-u16-sprintf.c: New file.
98874         * lib/unistdio/u16-u16-vasnprintf.c: New file.
98875         * lib/unistdio/u16-u16-vasprintf.c: New file.
98876         * lib/unistdio/u16-u16-vsnprintf.c: New file.
98877         * lib/unistdio/u16-u16-vsprintf.c: New file.
98878         * lib/unistdio/u32-asnprintf.c: New file.
98879         * lib/unistdio/u32-asprintf.c: New file.
98880         * lib/unistdio/u32-printf-parse.c: New file.
98881         * lib/unistdio/u32-snprintf.c: New file.
98882         * lib/unistdio/u32-sprintf.c: New file.
98883         * lib/unistdio/u32-vasnprintf.c: New file.
98884         * lib/unistdio/u32-vasprintf.c: New file.
98885         * lib/unistdio/u32-vsnprintf.c: New file.
98886         * lib/unistdio/u32-vsprintf.c: New file.
98887         * lib/unistdio/u32-u32-asnprintf.c: New file.
98888         * lib/unistdio/u32-u32-asprintf.c: New file.
98889         * lib/unistdio/u32-u32-snprintf.c: New file.
98890         * lib/unistdio/u32-u32-sprintf.c: New file.
98891         * lib/unistdio/u32-u32-vasnprintf.c: New file.
98892         * lib/unistdio/u32-u32-vasprintf.c: New file.
98893         * lib/unistdio/u32-u32-vsnprintf.c: New file.
98894         * lib/unistdio/u32-u32-vsprintf.c: New file.
98895         * tests/unistdio/test-ulc-asnprintf1.c: New file.
98896         * tests/unistdio/test-ulc-asnprintf1.h: New file.
98897         * tests/unistdio/test-ulc-printf1.h: New file.
98898         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
98899         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
98900         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
98901         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
98902         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
98903         * tests/unistdio/test-ulc-vasprintf1.c: New file.
98904         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
98905         * tests/unistdio/test-ulc-vsprintf1.c: New file.
98906         * tests/unistdio/test-u8-asnprintf1.c: New file.
98907         * tests/unistdio/test-u8-asnprintf1.h: New file.
98908         * tests/unistdio/test-u8-printf1.h: New file.
98909         * tests/unistdio/test-u8-vasnprintf1.c: New file.
98910         * tests/unistdio/test-u8-vasnprintf2.c: New file.
98911         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
98912         * tests/unistdio/test-u8-vasnprintf3.c: New file.
98913         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
98914         * tests/unistdio/test-u8-vasprintf1.c: New file.
98915         * tests/unistdio/test-u8-vsnprintf1.c: New file.
98916         * tests/unistdio/test-u8-vsprintf1.c: New file.
98917         * tests/unistdio/test-u16-asnprintf1.c: New file.
98918         * tests/unistdio/test-u16-asnprintf1.h: New file.
98919         * tests/unistdio/test-u16-printf1.h: New file.
98920         * tests/unistdio/test-u16-vasnprintf1.c: New file.
98921         * tests/unistdio/test-u16-vasnprintf2.c: New file.
98922         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
98923         * tests/unistdio/test-u16-vasnprintf3.c: New file.
98924         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
98925         * tests/unistdio/test-u16-vasprintf1.c: New file.
98926         * tests/unistdio/test-u16-vsnprintf1.c: New file.
98927         * tests/unistdio/test-u16-vsprintf1.c: New file.
98928         * tests/unistdio/test-u32-asnprintf1.c: New file.
98929         * tests/unistdio/test-u32-asnprintf1.h: New file.
98930         * tests/unistdio/test-u32-printf1.h: New file.
98931         * tests/unistdio/test-u32-vasnprintf1.c: New file.
98932         * tests/unistdio/test-u32-vasnprintf2.c: New file.
98933         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
98934         * tests/unistdio/test-u32-vasnprintf3.c: New file.
98935         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
98936         * tests/unistdio/test-u32-vasprintf1.c: New file.
98937         * tests/unistdio/test-u32-vsnprintf1.c: New file.
98938         * tests/unistdio/test-u32-vsprintf1.c: New file.
98939         * modules/unistdio/base: New file.
98940         * modules/unistdio/u-printf-args: New file.
98941         * modules/unistdio/ulc-asnprintf: New file.
98942         * modules/unistdio/ulc-asprintf: New file.
98943         * modules/unistdio/ulc-fprintf: New file.
98944         * modules/unistdio/ulc-printf-parse: New file.
98945         * modules/unistdio/ulc-snprintf: New file.
98946         * modules/unistdio/ulc-sprintf: New file.
98947         * modules/unistdio/ulc-vasnprintf: New file.
98948         * modules/unistdio/ulc-vasprintf: New file.
98949         * modules/unistdio/ulc-vfprintf: New file.
98950         * modules/unistdio/ulc-vsnprintf: New file.
98951         * modules/unistdio/ulc-vsprintf: New file.
98952         * modules/unistdio/u8-asnprintf: New file.
98953         * modules/unistdio/u8-asprintf: New file.
98954         * modules/unistdio/u8-printf-parse: New file.
98955         * modules/unistdio/u8-snprintf: New file.
98956         * modules/unistdio/u8-sprintf: New file.
98957         * modules/unistdio/u8-vasnprintf: New file.
98958         * modules/unistdio/u8-vasprintf: New file.
98959         * modules/unistdio/u8-vsnprintf: New file.
98960         * modules/unistdio/u8-vsprintf: New file.
98961         * modules/unistdio/u8-u8-asnprintf: New file.
98962         * modules/unistdio/u8-u8-asprintf: New file.
98963         * modules/unistdio/u8-u8-snprintf: New file.
98964         * modules/unistdio/u8-u8-sprintf: New file.
98965         * modules/unistdio/u8-u8-vasnprintf: New file.
98966         * modules/unistdio/u8-u8-vasprintf: New file.
98967         * modules/unistdio/u8-u8-vsnprintf: New file.
98968         * modules/unistdio/u8-u8-vsprintf: New file.
98969         * modules/unistdio/u16-asnprintf: New file.
98970         * modules/unistdio/u16-asprintf: New file.
98971         * modules/unistdio/u16-printf-parse: New file.
98972         * modules/unistdio/u16-snprintf: New file.
98973         * modules/unistdio/u16-sprintf: New file.
98974         * modules/unistdio/u16-vasnprintf: New file.
98975         * modules/unistdio/u16-vasprintf: New file.
98976         * modules/unistdio/u16-vsnprintf: New file.
98977         * modules/unistdio/u16-vsprintf: New file.
98978         * modules/unistdio/u16-u16-asnprintf: New file.
98979         * modules/unistdio/u16-u16-asprintf: New file.
98980         * modules/unistdio/u16-u16-snprintf: New file.
98981         * modules/unistdio/u16-u16-sprintf: New file.
98982         * modules/unistdio/u16-u16-vasnprintf: New file.
98983         * modules/unistdio/u16-u16-vasprintf: New file.
98984         * modules/unistdio/u16-u16-vsnprintf: New file.
98985         * modules/unistdio/u16-u16-vsprintf: New file.
98986         * modules/unistdio/u32-asnprintf: New file.
98987         * modules/unistdio/u32-asprintf: New file.
98988         * modules/unistdio/u32-printf-parse: New file.
98989         * modules/unistdio/u32-snprintf: New file.
98990         * modules/unistdio/u32-sprintf: New file.
98991         * modules/unistdio/u32-vasnprintf: New file.
98992         * modules/unistdio/u32-vasprintf: New file.
98993         * modules/unistdio/u32-vsnprintf: New file.
98994         * modules/unistdio/u32-vsprintf: New file.
98995         * modules/unistdio/u32-u32-asnprintf: New file.
98996         * modules/unistdio/u32-u32-asprintf: New file.
98997         * modules/unistdio/u32-u32-snprintf: New file.
98998         * modules/unistdio/u32-u32-sprintf: New file.
98999         * modules/unistdio/u32-u32-vasnprintf: New file.
99000         * modules/unistdio/u32-u32-vasprintf: New file.
99001         * modules/unistdio/u32-u32-vsnprintf: New file.
99002         * modules/unistdio/u32-u32-vsprintf: New file.
99003         * modules/unistdio/ulc-asnprintf-tests: New file.
99004         * modules/unistdio/ulc-vasnprintf-tests: New file.
99005         * modules/unistdio/ulc-vasprintf-tests: New file.
99006         * modules/unistdio/ulc-vsnprintf-tests: New file.
99007         * modules/unistdio/ulc-vsprintf-tests: New file.
99008         * modules/unistdio/u8-asnprintf-tests: New file.
99009         * modules/unistdio/u8-vasnprintf-tests: New file.
99010         * modules/unistdio/u8-vasprintf-tests: New file.
99011         * modules/unistdio/u8-vsnprintf-tests: New file.
99012         * modules/unistdio/u8-vsprintf-tests: New file.
99013         * modules/unistdio/u16-asnprintf-tests: New file.
99014         * modules/unistdio/u16-vasnprintf-tests: New file.
99015         * modules/unistdio/u16-vasprintf-tests: New file.
99016         * modules/unistdio/u16-vsnprintf-tests: New file.
99017         * modules/unistdio/u16-vsprintf-tests: New file.
99018         * modules/unistdio/u32-asnprintf-tests: New file.
99019         * modules/unistdio/u32-vasnprintf-tests: New file.
99020         * modules/unistdio/u32-vasprintf-tests: New file.
99021         * modules/unistdio/u32-vsnprintf-tests: New file.
99022         * modules/unistdio/u32-vsprintf-tests: New file.
99023         * MODULES.html.sh (Unicode string functions): Add the new modules.
99025 2007-07-01  Bruno Haible  <bruno@clisp.org>
99027         * lib/sprintf.c (sprintf): Limit the available length estimation,
99028         to avoid address wraparound.
99029         * lib/vsprintf.c (vsprintf): Likewise.
99030         * modules/sprintf-posix (Dependencies): Add stdint.
99031         * modules/vsprintf-posix (Dependencies): Likewise.
99033 2007-07-01  Bruno Haible  <bruno@clisp.org>
99035         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99036         Windows PATH as well. Conservative double-quoting. Comments.
99038 2007-07-01  Bruno Haible  <bruno@clisp.org>
99039             Eric Blake  <ebb9@byu.net>
99040             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99042         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99043         empty components in $PATH, denoting '.'.
99045 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99047         * gnulib-tool: Fix indentation.
99048         (func_create_megatestdir): Likewise.
99049         Report by Bruno Haible.
99051 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99053         Sync from Automake.
99054         * build-aux/gnupload: Fix shell portability issues with for loops.
99055         Report by Karl Berry.
99057 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99059         * build-aux/maint.mk (POURL): Use translationproject.org.
99061 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99062             Bruno Haible  <bruno@clisp.org>
99064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99065         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99066         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99067         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99068         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99070 2007-06-27  Bruno Haible  <bruno@clisp.org>
99072         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99073         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99075 2007-06-26  Karl Berry  <karl@gnu.org>
99077         * MODULES.html.sh: remove xreadlink-with-size.
99079 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99081         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99082         method that I hope also handles the double-include problem noted
99083         by Bruno Haible in
99084         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99086 2007-06-23  Bruno Haible  <bruno@clisp.org>
99088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99089         Don't let the 'mostlyclean' target fail if the last subdirectory could
99090         not be removed.
99091         Reported by Karl Berry.
99093 2007-06-23  Bruno Haible  <bruno@clisp.org>
99095         * gnulib-tool (echo): Add a speedier workaround for ksh.
99096         * tests/test-echo.sh: Likewise.
99098 2007-06-23  Bruno Haible  <bruno@clisp.org>
99100         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99101         * tests/test-echo.sh: Likewise.
99103 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99105         * gnulib-tool (IFS): Initialize early, so we don't set it to
99106         empty later.
99107         (self_abspathname): Rewrite algorithm to set it, reindent.
99108         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99109         (func_create_megatestdir): Merge some sed scripts.
99111 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99113         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99114         exposed by Sun Studio 11 cc on Solaris 8.
99116 2007-06-22  Bruno Haible  <bruno@clisp.org>
99118         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99119         backslashes.
99120         * tests/test-echo.sh: New file.
99122 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99124         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99125         simplify `sed_replace_build_aux' scripts, they are portable but
99126         echoing them with `echo' is not.
99127         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99129 2007-06-21  Karl Berry  <karl@gnu.org>
99131         * config/srclist.txt: guess we can't handle the licenses via
99132         srclist at the moment.
99134 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99136         * MODULES.html.sh: Add include_next.
99137         * modules/include_next: New file.
99139 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99141         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99142         INCLUDE_NEXT.
99143         (gl_CHECK_NEXT_HEADERS): New macro.
99144         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99145         the obsolescent gl_ABSOLUTE_HEADER.
99146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99147         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99148         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99149         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99150         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99151         * m4/math_h.m4 (gl_MATH_H): Likewise.
99152         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99153         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99154         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99155         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99156         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99157         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99158         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99161         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99162         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99163         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99164         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99165         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99166         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99167         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99168         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99169         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99170         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99171         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99172         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99173         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99174         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99175         * lib/float_.h: Likewise.
99176         * lib/inttypes_.h: Likewise.
99177         * lib/math_.h: Likewise.
99178         * lib/search_.h: Likewise.
99179         * lib/signal_.h: Likewise.
99180         * lib/stdint_.h: Likewise.
99181         * lib/stdio_.h: Likewise.
99182         * lib/stdlib_.h: Likewise.
99183         * lib/string_.h: Likewise.
99184         * lib/sys_stat_.h: Likewise.
99185         * lib/sys_time_.h: Likewise.
99186         * lib/time_.h: Likewise.
99187         * lib/unistd_.h: Likewise.
99188         * lib/wchar_.h: Likewise.
99189         * lib/wctype_.h: Likewise.
99190         * lib/dirent_.h: Likewise.
99191         * lib/iconv_.h: Likewise.
99192         * lib/locale_.h: Likewise.
99193         * lib/netinet_in_.h: Likewise.
99194         * lib/sys_select_.h: Likewise.
99195         * lib/sys_socket_.h: Likewise.
99196         * lib/sysexits_.h: Likewise.
99197         * modules/fcntl (Depends-on): Depend on include_next, not
99198         absolute_header.
99199         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99200         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99201         * modules/fchdir: Likewise.
99202         * modules/float: Likewise.
99203         * modules/iconv_open: Likewise.
99204         * modules/inttypes: Likewise.
99205         * modules/locale: Likewise.
99206         * modules/math: Likewise.
99207         * modules/netinet_in: Likewise.
99208         * modules/search: Likewise.
99209         * modules/signal: Likewise.
99210         * modules/stdint: Likewise.
99211         * modules/stdio: Likewise.
99212         * modules/stdlib: Likewise.
99213         * modules/string: Likewise.
99214         * modules/sys_select: Likewise.
99215         * modules/sys_socket: Likewise.
99216         * modules/sys_stat: Likewise.
99217         * modules/sys_time: Likewise.
99218         * modules/sysexits: Likewise.
99219         * modules/time: Likewise.
99220         * modules/unistd: Likewise.
99221         * modules/wchar: Likewise.
99222         * modules/wctype: Likewise.
99223         * modules/sys_stat: Change maintainer to "all".
99224         * modules/unistd: Likewise.
99226 2007-06-20  Karl Berry  <karl@gnu.org>
99228         * config/srclist.txt: track www changes in license files.
99230 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99232         * build-aux/bootstrap: Remove stray dot.
99233         Make sure build_aux settings are honored when linking
99234         gnulib_extra_files.
99236 2007-06-19  Eric Blake  <ebb9@byu.net>
99238         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99239         Allow compilation on cygwin.
99241 2007-06-19  Jim Meyering  <jim@meyering.net>
99243         xreadlink-with-size: Remove module.  No longer used.
99244         Ex-callers now use xreadlink or mreadlink-with-size.
99245         * modules/xreadlink-with-size: Remove module.
99246         * lib/xreadlink-with-size.c: Remove file.
99247         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99248         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99249         just before the function definition *is* accurate.
99251         Eliminate one way canonicalize_filename_mode could exit.
99252         * lib/canonicalize.c (canonicalize_filename_mode):
99253         Use mreadlink_with_size, not xreadlink_with_size.
99255 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99257         Detect porting problems to FreeBSD/arm, which has time_t wider than
99258         long int.  Original problem reported for GNU diff by Xin Li in
99259         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99260         * modules/getdate (Depends-on): Add intprops, verify.
99261         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99262         is an integer type no wider than long int.
99264 2007-06-18  Jim Meyering  <jim@meyering.net>
99266         New module: mreadlink-with-size.
99267         * MODULES.html.sh: Add mreadlink-with-size.
99268         * modules/mreadlink-with-size: New module
99269         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99270         not xreadlink-with-size.
99271         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99273 2007-06-16  Bruno Haible  <bruno@clisp.org>
99275         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99276         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99277         Reported by Gary V. Vaughan <gary@gnu.org>.
99279 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99281         Revamp lchown so that it lives in unistd.h where it belongs.
99282         * lib/lchown.h: Remove.
99283         * lib/dirchownmod.c: Don't include lib/lchown.h.
99284         * lib/fchownat.c: Likewise.
99285         * lib/openat.c: Likewise.
99286         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99287         does not follow symlinks.
99288         (EOPNOTSUPP): Define if not defined.
99289         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99290         is defined to 0.
99291         (lchown): New decl.
99292         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99293         Do not check for lchown decl.
99294         Set REPLACE_LCHOWN.
99295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99296         REPLACE_LCHOWN.
99297         * modules/chown: Make it clear it follows symlinks.
99298         * modules/lchown: Make it clear it doesn't follow symlinks.
99299         (Files): Remove lib/lchown.h
99300         (Depends-on): Add unistd.
99301         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99302         (Include): Include <unistd.h>, not "lchown.h".
99303         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99304         REPLACE_LCHOWN.
99306 2007-06-15  Jim Meyering  <jim@meyering.net>
99308         Change license (GPL to LGPL) of fsusage and dependents.
99309         * modules/fsusage (License): Change to LGPL.
99310         * modules/full-read (License): Likewise.
99311         * modules/full-write (License): Likewise.
99312         * modules/safe-read (License): Likewise.
99313         * modules/safe-write (License): Likewise.
99315 2007-06-14  Ben Pfaff  <blp@gnu.org>
99317         Missing part of allocsa -> malloca transition.
99318         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99319         gl_MALLOCA.
99321 2007-06-12  Bruno Haible  <bruno@clisp.org>
99323         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99324         to ia64, x86_64, i386.
99325         Reported by Eric Blake.
99327 2007-06-12  Bruno Haible  <bruno@clisp.org>
99329         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99330         cross-compiling to x86_64.
99332 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99334         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99335         glitch reported by Ralf Wildenhues in
99336         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99338         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99339         Vin Shelton.
99341 2007-06-11  Bruno Haible  <bruno@clisp.org>
99343         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99344         replacement string.
99345         Reported by Eric Blake.
99347 2007-06-10  Bruno Haible  <bruno@clisp.org>
99349         Prepare vasnprintf code for use with Unicode strings.
99350         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99351         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99352         TYPE_U32_STRING.
99353         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99354         a_u32_string variants.
99355         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99356         * lib/printf-args.c: Don't include config.h and the specification
99357         header if PRINTF_FETCHARGS is already defined.
99358         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99359         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99360         TYPE_U16_STRING, TYPE_U32_STRING.
99361         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99362         u16_directive, u16_directives, u32_directive, u32_directives): New
99363         types.
99364         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99365         New declarations.
99366         * lib/printf-parse.c: Don't include config.h and the specification
99367         header if PRINTF_PARSE is already defined. Eliminate the set of
99368         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99369         them now. Include c-ctype.h.
99370         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99371         directive and CHAR_T_ONLY_ASCII.
99372         * lib/vasnprintf.c: Don't include config.h and the specification header
99373         if VASNPRINTF is already defined.
99374         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99375         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99376         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99377         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99378         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99379         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99380         code accordingly.
99381         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99382         pad_ourselves also in this case, with the 'c' and 's' directives, and
99383         with a different notion of "width".
99384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99386 2007-06-10  Bruno Haible  <bruno@clisp.org>
99388         * modules/unistr/u32-mbsnlen: New file.
99389         * lib/unistr/u32-mbsnlen.c: New file.
99391         * modules/unistr/u16-mbsnlen: New file.
99392         * lib/unistr/u16-mbsnlen.c: New file.
99394         * modules/unistr/u8-mbsnlen: New file.
99395         * lib/unistr/u8-mbsnlen.c: New file.
99397         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99398         declarations.
99400 2007-06-10  Bruno Haible  <bruno@clisp.org>
99402         * lib/string_.h (mbsnlen): New declaration.
99403         * lib/mbsnlen.c: New file.
99404         * m4/mbsnlen.m4: New file.
99405         * modules/mbsnlen: New file.
99406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99407         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99408         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99410 2007-06-10  Bruno Haible  <bruno@clisp.org>
99412         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99414 2007-06-10  Bruno Haible  <bruno@clisp.org>
99416         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99417         * lib/mbuiter.h: Likewise.
99419 2007-06-10  Bruno Haible  <bruno@clisp.org>
99421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99422         declaration.
99424 2007-06-10  Karl Berry  <karl@gnu.org>
99426         * config/srclist.txt: remove gettext entries, Bruno prefers
99427         to update individually.
99429 2007-06-10  Bruno Haible  <bruno@clisp.org>
99431         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99432         'maxlen'. Ensure only length + width bytes are allocated, not
99433         length + 1 + width.
99435 2007-06-09  Bruno Haible  <bruno@clisp.org>
99437         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99438         (CHAR_T): Remove macro.
99439         (VASNPRINTF): Update.
99441 2007-06-09  Bruno Haible  <bruno@clisp.org>
99443         * MODULES.html.sh (Unicode string functions): Add the new modules.
99445         * modules/uniconv/u32-conv-to-enc: New file.
99446         * lib/uniconv/u32-conv-to-enc.c: New file.
99447         * modules/uniconv/u32-conv-to-enc-tests: New file.
99448         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99450         * modules/uniconv/u16-conv-to-enc: New file.
99451         * lib/uniconv/u16-conv-to-enc.c: New file.
99452         * lib/uniconv/u-conv-to-enc.h: New file.
99453         * modules/uniconv/u16-conv-to-enc-tests: New file.
99454         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99456         * modules/uniconv/u8-conv-to-enc: New file.
99457         * lib/uniconv/u8-conv-to-enc.c: New file.
99458         * modules/uniconv/u8-conv-to-enc-tests: New file.
99459         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99461         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99462         u32_conv_to_encoding): New declarations.
99464 2007-06-09  Bruno Haible  <bruno@clisp.org>
99466         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99468 2007-06-09  Bruno Haible  <bruno@clisp.org>
99470         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99471         * modules/malloca: Renamed from modules/allocsa, updated.
99472         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99473         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99474         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99475         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99476         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99477         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99478         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99479         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99480         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99481         * modules/c-strcasestr (Depends-on): Update.
99482         * lib/c-strcasestr.c: Update.
99483         * modules/c-strstr (Depends-on): Update.
99484         * lib/c-strstr.c: Update.
99485         * modules/canonicalize-lgpl (Depends-on): Update.
99486         * lib/canonicalize-lgpl.c: Update.
99487         * modules/clean-temp (Depends-on): Update.
99488         * lib/clean-temp.c: Update.
99489         * modules/csharpcomp (Depends-on): Update.
99490         * lib/csharpcomp.c: Update.
99491         * modules/csharpexec (Depends-on): Update.
99492         * lib/csharpexec.c: Update.
99493         * modules/javacomp (Depends-on): Update.
99494         * lib/javacomp.c: Update.
99495         * modules/javaexec (Depends-on): Update.
99496         * lib/javaexec.c: Update.
99497         * modules/mbscasestr (Depends-on): Update.
99498         * lib/mbscasestr.c: Update.
99499         * modules/mbsstr (Depends-on): Update.
99500         * lib/mbsstr.c: Update.
99501         * modules/setenv (Depends-on): Update.
99502         * lib/setenv.c: Update.
99503         * modules/strcasestr (Depends-on): Update.
99504         * lib/strcasestr.c: Update.
99505         * modules/striconveha (Depends-on): Update.
99506         * lib/striconveha.c: Update.
99507         * modules/relocatable-prog-wrapper (Files): Update.
99508         * lib/relocwrapper.c: Update.
99509         * build-aux/install-reloc: Update.
99510         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99512 2007-06-08  Bruno Haible  <bruno@clisp.org>
99514         Port to uClibc.
99515         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99516         * lib/fpurge.c (fpurge): Likewise.
99517         * lib/freading.c (freading): Likewise.
99518         * lib/fseeko.c (rpl_fseeko): Likewise.
99519         * lib/fseterr.c (fseterr): Likewise.
99520         * lib/fwriting.c (fwriting): Likewise.
99521         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99523 2007-06-08  Bruno Haible  <bruno@clisp.org>
99525         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99526         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99527         * modules/gettext (Files): Add m4/intlmacosx.m4.
99529 2007-06-07  Bruno Haible  <bruno@clisp.org>
99531         * modules/localename-tests: New file.
99532         * tests/test-localename.c: New file.
99534         New module 'localename'.
99535         * lib/localename.h: New file.
99536         * lib/localename.c: New file, from GNU gettext.
99537         * m4/localename.m4: New file.
99538         * modules/localename: New file.
99540 2007-06-07  Bruno Haible  <bruno@clisp.org>
99542         Work around the lack of <wchar.h> on some builds of uClibc.
99543         * doc/headers/wchar.texi: Update.
99544         * lib/wchar_.h: Include <wchar.h> only if it exists.
99545         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99546         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99547         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99548         doesn't exist.
99549         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99550         * modules/mbfile (Depends-on): Add wchar.
99551         * modules/mbiter (Depends-on): Likewise.
99552         * modules/mbuiter (Depends-on): Likewise.
99553         Reported by Simon Josefsson.
99555 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99557         Work around problem reported by Steven M. Schweda in
99558         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99559         Tru64 5.1B with the Compaq compiler environment installed declares
99560         an 'isblank' function but does not define it in the C library.
99561         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99562         * lib/regex_internal.h (isblank): Likewise.
99563         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99564         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99566 2007-06-05  Bruno Haible  <bruno@clisp.org>
99568         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99569         ia64.
99570         * modules/printf-safe: New file.
99571         * modules/fprintf-posix (Depends-on): Add printf-safe.
99572         * modules/printf-posix (Depends-on): Likewise.
99573         * modules/snprintf-posix (Depends-on): Likewise.
99574         * modules/sprintf-posix (Depends-on): Likewise.
99575         * modules/vasnprintf-posix (Depends-on): Likewise.
99576         * modules/vasprintf-posix (Depends-on): Likewise.
99577         * modules/vfprintf-posix (Depends-on): Likewise.
99578         * modules/vprintf-posix (Depends-on): Likewise.
99579         * modules/vsnprintf-posix (Depends-on): Likewise.
99580         * modules/vsprintf-posix (Depends-on): Likewise.
99581         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99582         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99583         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99584         "no" on i386, x86_64, ia64.
99585         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99586         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99587         on i386, x86_64, ia64.
99588         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99589         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99590         on i386, x86_64, ia64.
99591         * tests/test-vasnprintf-posix.c: Include float.h.
99592         (LDBL80_WORDS): New macro.
99593         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99594         on i386, x86_64, ia64.
99595         * tests/test-vasprintf-posix.c: Include float.h.
99596         (LDBL80_WORDS): New macro.
99597         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99598         on i386, x86_64, ia64.
99599         * tests/test-snprintf-posix.c: Include float.h.
99600         * tests/test-sprintf-posix.c: Likewise.
99601         * tests/test-vsnprintf-posix.c: Likewise.
99602         * tests/test-vsprintf-posix.c: Likewise.
99604 2007-06-05  Bruno Haible  <bruno@clisp.org>
99606         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99607         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99608         non-IEEE numbers on i386, x86_64, ia64.
99609         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99610         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99611         * tests/test-isnanl.h: Include float.h.
99612         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99614 2007-06-05  Bruno Haible  <bruno@clisp.org>
99616         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99617         also the %a / %A. Handle the %a / %A code before this extra handling.
99619 2007-06-05  Bruno Haible  <bruno@clisp.org>
99621         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99622         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99624 2007-06-05  Bruno Haible  <bruno@clisp.org>
99626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99627         typo in variable name.
99629 2007-06-05  Eric Blake  <ebb9@byu.net>
99631         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99632         Reported by Simon Josefsson.
99634 2007-06-04  Bruno Haible  <bruno@clisp.org>
99636         Avoid test failures on some PowerPC platforms.
99637         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99638         Define differently for PowerPC.
99639         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99640         Reported by Gary V. Vaughan <gary@gnu.org>.
99642 2007-06-02  Bruno Haible  <bruno@clisp.org>
99644         Fix test-stdint failure on FreeBSD/ia64.
99645         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99646         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99647         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99648         * doc/headers/stdint.texi: Update.
99650 2007-06-01  Bruno Haible  <bruno@clisp.org>
99652         * tests/test-binary-io.c (main): Pass a third argument to open().
99653         Reported by Gary V. Vaughan <gary@gnu.org>.
99655 2007-06-01  Bruno Haible  <bruno@clisp.org>
99657         * doc/functions/frexpl.texi: Update for mingw.
99659 2007-06-01  Bruno Haible  <bruno@clisp.org>
99661         * tests/test-lseek.c (main): Disable test of errno for invalid third
99662         argument.
99663         * doc/functions/lseek.texi: Update.
99664         Reported by Gary V. Vaughan <gary@gnu.org>.
99666 2007-05-28  Bruno Haible  <bruno@clisp.org>
99668         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99670 2007-05-31  Eric Blake  <ebb9@byu.net>
99672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99673         cross compiling.
99675 2007-05-30  Eric Blake  <ebb9@byu.net>
99676         and Bruno Haible  <bruno@clisp.org>
99678         Work around mingw test failures exposed by m4-1.4.9b.
99679         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99680         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99681         moment.
99683 2007-05-30  Bruno Haible  <bruno@clisp.org>
99685         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99686         assuming that they are closed. Needed on HP-UX 11.
99688 2007-05-29  Bruno Haible  <bruno@clisp.org>
99690         Fix a problem with #include_next.
99691         * lib/dirent_.h: Split the double-inclusion guard.
99692         * lib/fcntl_.h: Likewise.
99693         * lib/float_.h: Likewise.
99694         * lib/iconv_.h: Likewise.
99695         * lib/inttypes_.h: Likewise.
99696         * lib/locale_.h: Likewise.
99697         * lib/math_.h: Likewise.
99698         * lib/netinet_in_.h: Likewise.
99699         * lib/search_.h: Likewise.
99700         * lib/signal_.h: Likewise.
99701         * lib/stdint_.h: Likewise.
99702         * lib/stdio_.h: Likewise.
99703         * lib/stdlib_.h: Likewise.
99704         * lib/string_.h: Likewise.
99705         * lib/sys_select_.h: Likewise.
99706         * lib/sys_socket_.h: Likewise.
99707         * lib/sys_stat_.h: Likewise.
99708         * lib/sys_time_.h: Likewise.
99709         * lib/sysexits_.h: Likewise.
99710         * lib/time_.h: Likewise.
99711         * lib/unistd_.h: Likewise.
99712         * lib/wchar_.h: Likewise.
99713         * lib/wctype_.h: Likewise.
99715 2007-05-29  Bruno Haible  <bruno@clisp.org>
99717         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99718         for the moment.
99720 2007-05-29  Bruno Haible  <bruno@clisp.org>
99722         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
99723         invocation.
99724         Reported by Eric Blake.
99726 2007-05-29  Bruno Haible  <bruno@clisp.org>
99728         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
99729         compiling case.
99731 2007-05-29  Eric Blake  <ebb9@byu.net>
99732             Bruno Haible  <bruno@clisp.org>
99734         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
99735         cross compiles.
99737 2007-05-28  Eric Blake  <ebb9@byu.net>
99739         * modules/closein-tests (test_closein_LDADD): Support test on
99740         cygwin with libtool.
99742 2007-05-28  Bruno Haible  <bruno@clisp.org>
99744         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
99745         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99746         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99747         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99748         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99749         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99750         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99751         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99752         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99754 2007-05-28  Eric Blake  <ebb9@byu.net>
99756         Unconditionally include <config.h> in unit tests.
99757         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
99758         * tests/test-allocsa.c, tests/test-arcfour.c,
99759         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
99760         tests/test-array_list.c, tests/test-array_oset.c,
99761         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
99762         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
99763         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
99764         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
99765         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
99766         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
99767         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
99768         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
99769         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
99770         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
99771         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
99772         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
99773         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
99774         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
99775         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
99776         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
99777         test-md5.c, test-memmem.c, test-printf-posix.c,
99778         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
99779         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
99780         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
99781         test-strcasestr.c, test-striconv.c, test-striconveh.c,
99782         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
99783         test-vasnprintf-posix2.c, test-vasnprintf.c,
99784         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
99785         test-vfprintf-posix.c, test-vprintf-posix.c,
99786         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
99787         test-xvasprintf.c: Likewise.
99789 2007-05-28  Bruno Haible  <bruno@clisp.org>
99791         * gnulib-tool (func_import): Remember the --with-tests command-line
99792         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
99793         Reported by Eric Blake.
99795 2007-05-28  Bruno Haible  <bruno@clisp.org>
99797         * modules/ftell-tests: New file.
99798         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
99799         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
99801         * lib/ftell.c: New file.
99802         * modules/ftell: New file.
99803         * m4/ftell.m4: New file.
99804         * doc/functions/ftell.texi: Update.
99805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
99806         REPLACE_FTELL.
99807         * lib/stdio_.h (rpl_ftell): New declaration.
99808         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
99809         REPLACE_FTELL.
99811 2007-05-28  Eric Blake  <ebb9@byu.net>
99813         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
99815 2007-05-28  Bruno Haible  <bruno@clisp.org>
99817         * modules/fseek-tests: New file.
99818         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
99819         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
99821         * lib/fseek.c: New file.
99822         * modules/fseek: New file.
99823         * m4/fseek.m4: New file.
99824         * doc/functions/fseek.texi: Update.
99825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
99826         REPLACE_FSEEK.
99827         * lib/stdio_.h (rpl_fseek): New declaration.
99828         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
99829         REPLACE_FSEEK.
99831 2007-05-28  Bruno Haible  <bruno@clisp.org>
99833         * lib/stdio_.h (fflush): More comments.
99835 2007-05-28  Bruno Haible  <bruno@clisp.org>
99837         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
99838         runtime test.
99840 2007-05-28  Eric Blake  <ebb9@byu.net>
99842         Improve lseek module.
99843         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
99844         * lib/unistd_.h (lseek): Scale back link warning message.
99845         * tests/test-lseek.c: Beef up test.
99846         * tests/test-lseek.sh: Exercise more facets of lseek.
99847         Reported by Bruno Haible.
99849 2007-05-28  Bruno Haible  <bruno@clisp.org>
99851         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
99852         to define.
99854 2007-05-27  Bruno Haible  <bruno@clisp.org>
99856         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
99858 2007-05-27  Bruno Haible  <bruno@clisp.org>
99860         * modules/openmp: New file.
99861         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
99862         Noah Misch.
99864 2007-05-26  Bruno Haible  <bruno@clisp.org>
99866         * modules/chdir-long (Depends-on): Add fchdir.
99867         * modules/chdir-safer (Depends-on): Likewise.
99868         * modules/fts (Depends-on): Likewise.
99869         * modules/fts-lgpl (Depends-on): Likewise.
99870         * modules/openat (Depends-on): Likewise.
99871         * modules/savewd (Depends-on): Likewise.
99873 2007-05-24  Eric Blake  <ebb9@byu.net>
99875         Fix lseek on mingw.
99876         * modules/lseek: New module.
99877         * m4/lseek.m4: New file.
99878         * lib/lseek.c: New file.
99879         * modules/lseek-tests: New file.
99880         * tests/test-lseek.c: New file.
99881         * tests/test-lseek.sh: New file.
99882         * MODULES.html.sh: Document lseek module.
99883         * modules/fflush (Depends-on): Add lseek, fseeko.
99884         * modules/fseeko (Depends-on): Likewise.
99885         * modules/ftello (Depends-on): Likewise.
99886         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
99887         broken.
99888         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
99889         broken.
99890         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
99891         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
99892         * lib/ftello.c (rpl_ftello): Likewise.
99893         * tests/test-fseeko.c (main): Test this.
99894         * tests/test-fseeko.sh: Likewise.
99895         * tests/test-ftello.c (main): Likewise.
99896         * tests/test-ftello.sh: Likewise.
99897         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
99898         implies replacing fseek.
99899         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
99900         HAVE_FTELLO.
99901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
99902         * modules/unistd (Makefile.am): Likewise.
99903         * lib/unistd_.h (lseek): Declare a replacement.
99904         * doc/functions/lseek.texi (lseek): Document this fix.
99905         * doc/functions/fseek.texi (fseek): Likewise.
99906         * doc/functions/ftell.texi (ftell): Likewise.
99908 2007-05-24  Bruno Haible  <bruno@clisp.org>
99910         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
99911         in the printed representation of a NaN.
99912         * tests/test-vasprintf-posix.c (test_function): Likewise.
99913         * tests/test-snprintf-posix.h (test_function): Likewise.
99914         * tests/test-sprintf-posix.h (test_function): Likewise.
99915         Reported by Eric Blake.
99917 2007-05-23  Eric Blake  <ebb9@byu.net>
99919         Fix fseeko/ftello on cygwin 1.5.24.
99920         * doc/functions/fseeko.texi (fseeko): Document the fix.
99921         * doc/functions/ftello.texi (ftello): Document the fix.
99922         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
99923         * doc/functions/stdout.text (stdout): New file.
99924         * doc/functions/stderr.text (stderr): New file.
99925         * doc/gnulib.texi (Function Substitutes): Use new files.
99926         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
99927         prior to 1.7.0.
99928         * tests/test-ftello.c (main): Likewise for ftello.
99929         * tests/test-fseeko.sh: New file.
99930         * tests/test-ftello.sh: New file.
99931         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
99932         with seekable stdin.
99933         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
99934         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
99935         (gl_REPLACE_FSEEKO): New macro.
99936         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
99937         * modules/fseeko (Files): Distribute fseeko.c.
99938         * modules/ftello (Files): Distribute ftello.c.
99939         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
99940         mode.
99941         * lib/ftello.c (rpl_ftello): New file.
99942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
99943         fseeko, ftello.
99944         (gl_STDIN_LARGE_OFFSET): New macro.
99945         * modules/stdio (Makefile.am): Perform the replacement.
99946         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
99948 2007-05-23  Bruno Haible  <bruno@clisp.org>
99950         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
99951         GNULIB_POSIXCHECK is defined.
99953 2007-05-21  Bruno Haible  <bruno@clisp.org>
99955         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
99956         Check also the output for NaN arguments. When cross-compiling, guess
99957         no on IRIX.
99958         * lib/vasnprintf.c: Update comments.
99959         * tests/test-vasnprintf-posix.c (strisnan): New function.
99960         (test_function): Use it.
99961         * tests/test-vasprintf-posix.c (strisnan): New function.
99962         (test_function): Use it.
99963         * tests/test-snprintf-posix.h (strisnan): New function.
99964         (test_function): Use it.
99965         * tests/test-sprintf-posix.h (strisnan): New function.
99966         (test_function): Use it.
99967         Reported by Eric Blake.
99969 2007-05-20  Bruno Haible  <bruno@clisp.org>
99971         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
99972         numbers that fails on BeOS.
99973         * doc/functions/frexpl.texi: Update.
99975 2007-05-20  Jim Meyering  <jim@meyering.net>
99977         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
99978         forced upon us by glibc-2.6.
99980 2007-05-20  Bruno Haible  <bruno@clisp.org>
99982         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
99983         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
99984         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
99985         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
99986         NEED_PRINTF_INFINITE.
99987         (is_infinitel): New function.
99988         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
99989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
99990         gl_PREREQ_VASNPRINTF_INFINITE.
99991         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
99992         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99993         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
99994         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
99995         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
99996         gl_PREREQ_VASNPRINTF_INFINITE.
99997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100004         * doc/functions/fprintf.texi: Update.
100005         * doc/functions/printf.texi: Update.
100006         * doc/functions/snprintf.texi: Update.
100007         * doc/functions/sprintf.texi: Update.
100008         * doc/functions/vfprintf.texi: Update.
100009         * doc/functions/vprintf.texi: Update.
100010         * doc/functions/vsnprintf.texi: Update.
100011         * doc/functions/vsprintf.texi: Update.
100013 2007-05-20  Bruno Haible  <bruno@clisp.org>
100015         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100016         was not found in libc.
100017         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100019 2007-05-20  Bruno Haible  <bruno@clisp.org>
100021         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100022         printed as "-nan" instead of "nan".
100023         * tests/test-vasprintf-posix.c (test_function): Likewise.
100024         * tests/test-snprintf-posix.h (test_function): Likewise.
100025         * tests/test-sprintf-posix.h (test_function): Likewise.
100026         Needed for HP-UX 11.
100028 2007-05-20  Jim Meyering  <jim@meyering.net>
100030         Fix buggy test for the fchownat-deref bug.
100031         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100032         symlink required for the run-test.  Without it, this test would
100033         always declare that fchownat doesn't work, and client code would
100034         unnecessarily use the replacement function with fixed libc.
100035         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100036         Reported by Greg Schafer.
100038 2007-05-19  Bruno Haible  <bruno@clisp.org>
100040         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100041         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100042         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100043         Needed for IRIX 6.5 and Solaris 2.5.1.
100045 2007-05-19  Bruno Haible  <bruno@clisp.org>
100047         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100048         (test_function): Skip tests involving -0.0 on platforms where
100049         -0.0 = 0.0.
100050         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100051         (test_function): Skip tests involving -0.0 on platforms where
100052         -0.0 = 0.0.
100053         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100054         (test_function): Skip tests involving -0.0 on platforms where
100055         -0.0 = 0.0.
100056         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100057         (test_function): Skip tests involving -0.0 on platforms where
100058         -0.0 = 0.0.
100059         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100060         tests.
100061         * tests/test-printf-posix.h (test_function): Likewise.
100062         * tests/test-printf-posix.output: Remove all -0.0 related results.
100063         Needed for IRIX 6.5.
100065 2007-05-19  Bruno Haible  <bruno@clisp.org>
100067         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100068         printed as "nan0x7fffffff" instead of "nan".
100069         * tests/test-vasprintf-posix.c (test_function): Likewise.
100070         * tests/test-snprintf-posix.h (test_function): Likewise.
100071         * tests/test-sprintf-posix.h (test_function): Likewise.
100072         * tests/test-fprintf-posix.h (NaN): Remove macro.
100073         (test_function): Remove all NaN related tests.
100074         * tests/test-printf-posix.h (NaN): Remove macro.
100075         (test_function): Remove all NaN related tests.
100076         * tests/test-printf-posix.output: Remove all NaN related results.
100077         Needed for IRIX 6.5.
100079 2007-05-19  Bruno Haible  <bruno@clisp.org>
100081         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100084 2007-05-19  Bruno Haible  <bruno@clisp.org>
100086         * lib/float_.h: New file.
100087         * m4/float_h.m4: New file.
100088         * modules/float: New file.
100089         * modules/isnanl (Dependencies): Add float.
100090         * modules/isnanl-nolibm (Dependencies): Likewise.
100091         * modules/mathl (Dependencies): Likewise.
100092         * modules/printf-frexpl (Dependencies): Likewise.
100093         * modules/signbit (Dependencies): Likewise.
100094         * modules/vasnprintf (Dependencies): Likewise.
100095         * doc/headers/float.texi: Update.
100097 2007-05-19  Jim Meyering  <jim@meyering.net>
100099         * lib/utimens.c (gl_futimens): Rename from futimens,
100100         now that glibc-2.6 declares futimens.
100101         * lib/utimens.h: Likewise.
100103 2007-05-19  Bruno Haible  <bruno@clisp.org>
100105         Avoid test failures on mingw.
100106         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100107         * tests/test-printf-posix.sh: Likewise.
100108         * tests/test-vfprintf-posix.sh: Likewise.
100109         * tests/test-vprintf-posix.sh: Likewise.
100111 2007-05-19  Bruno Haible  <bruno@clisp.org>
100113         Fix *printf result for NaN, Inf, -0.0 on mingw.
100114         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100115         * lib/vasnprintf.c: Include math.h and isnan.h.
100116         (is_infinite_or_zero): New function.
100117         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100118         values in the %f, %F, %e, %E, %g, %G directives.
100119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100121         gl_PRINTF_INFINITE and test its result. Invoke
100122         gl_PREREQ_VASNPRINTF_INFINITE.
100123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100130         * doc/functions/fprintf.texi: Update.
100131         * doc/functions/printf.texi: Update.
100132         * doc/functions/snprintf.texi: Update.
100133         * doc/functions/sprintf.texi: Update.
100134         * doc/functions/vfprintf.texi: Update.
100135         * doc/functions/vprintf.texi: Update.
100136         * doc/functions/vsnprintf.texi: Update.
100137         * doc/functions/vsprintf.texi: Update.
100139 2007-05-19  Bruno Haible  <bruno@clisp.org>
100141         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100142         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100143         Instead of multiplying with 10^k, set extra_zeroes to k.
100144         (scale10_round_long_double): Remove function.
100146 2007-05-18  Bruno Haible  <bruno@clisp.org>
100148         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100149         introduced on 2007-05-06.
100151 2007-05-18  Bruno Haible  <bruno@clisp.org>
100153         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100154         %g directives.
100155         * tests/test-vasprintf-posix.c (test_function): Likewise.
100156         * tests/test-snprintf-posix.h (test_function): Likewise.
100157         * tests/test-sprintf-posix.h (test_function): Likewise.
100159 2007-05-18  Bruno Haible  <bruno@clisp.org>
100161         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100162         (strmatch): New function.
100163         (test_function): Test the %f directive on numbers of various exponents.
100164         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100165         (strmatch): New function.
100166         (test_function): Test the %f directive on numbers of various exponents.
100167         * tests/test-snprintf-posix.h (strmatch): New function.
100168         (test_function): Test the %f directive on numbers of various exponents.
100169         * tests/test-sprintf-posix.h (strmatch): New function.
100170         (test_function): Test the %f directive on numbers of various exponents.
100171         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100172         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100173         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100174         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100176 2007-05-18  Bruno Haible  <bruno@clisp.org>
100178         Add support for 'long double' number output.
100179         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100180         * lib/vasnprintf.c: Include math.h and float+.h.
100181         (mp_limb_t): New type.
100182         (GMP_LIMB_BITS): New macro.
100183         (mp_twolimb_t): New type.
100184         (GMP_TWOLIMB_BITS): New macro.
100185         (mpn_t): New type.
100186         (multiply, divide, convert_to_decimal, decode_long_double,
100187         scale10_round_long_double, scale10_round_decimal_long_double,
100188         floorlog10l): New functions.
100189         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100190         for the %f, %F, %e, %E, %g, %G directives.
100191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100193         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100194         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100197         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100198         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100199         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100201         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100202         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100203         * modules/snprintf-posix (Depends-on): Likewise.
100204         * modules/sprintf-posix (Depends-on): Likewise.
100205         * modules/vasnprintf-posix (Depends-on): Likewise.
100206         * modules/vasprintf-posix (Depends-on): Likewise.
100207         * modules/vfprintf-posix (Depends-on): Likewise.
100208         * modules/vsnprintf-posix (Depends-on): Likewise.
100209         * modules/vsprintf-posix (Depends-on): Likewise.
100210         * modules/vasnprintf (Files): Add lib/float+.h.
100211         * doc/functions/fprintf.texi: Update.
100212         * doc/functions/printf.texi: Update.
100213         * doc/functions/snprintf.texi: Update.
100214         * doc/functions/sprintf.texi: Update.
100215         * doc/functions/vfprintf.texi: Update.
100216         * doc/functions/vprintf.texi: Update.
100217         * doc/functions/vsnprintf.texi: Update.
100218         * doc/functions/vsprintf.texi: Update.
100220 2007-05-18  Bruno Haible  <bruno@clisp.org>
100222         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100224 2007-05-18  Bruno Haible  <bruno@clisp.org>
100226         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100227         for printing 64-bit integers. Needed for mingw.
100229 2007-05-18  Bruno Haible  <bruno@clisp.org>
100231         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100232         gl_FUNC_FREXPL_WORKS.
100233         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100235 2007-05-18  Bruno Haible  <bruno@clisp.org>
100237         * modules/frexpl-nolibm-tests: New file.
100239         * modules/frexpl-nolibm: New file.
100240         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100242 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100244         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100245         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100246         GCC 4.2, which otherwise issues a lot of warnings.
100247         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100248         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100249         Likewise.
100250         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100251         * modules/iconv_open (iconv.h): Likewise.
100252         * modules/locale (locale.h): Likewise.
100253         * modules/netinet_in (netinet/in.h): Likewise.
100254         * modules/sys_select (sys_select.h): Likewise.
100255         * modules/sys_socket (sys/socket.h): Likewise.
100256         * modules/sys_stat (sys/stat.h): Likewise.
100257         * modules/sysexits (sysexits.h): Likewise.
100258         * modules/unistd (unistd.h): Likewise.
100260 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100262         * modules/closein-tests (Makefile.am): Distribute
100263         `test-closein.sh'.
100265 2007-05-17  Bruno Haible  <bruno@clisp.org>
100267         * tests/test-printf-posix.output: Renamed from
100268         tests/test-fprintf-posix.out.
100269         * modules/fprintf-posix-tests: Update.
100270         * modules/printf-posix-tests: Update.
100271         * modules/vfprintf-posix-tests: Update.
100272         * modules/vprintf-posix-tests: Update.
100273         * tests/test-fprintf-posix.sh: Update.
100274         * tests/test-printf-posix.sh: Update.
100275         * tests/test-vfprintf-posix.sh: Update.
100276         * tests/test-vprintf-posix.sh: Update.
100277         Reported by Ralf Wildenhues.
100279 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100281         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100282         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100283         GCC 4.2, which otherwise issues a lot of warnings.
100284         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100285         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100286         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100287         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100288         it should no longer be needed.
100289         * lib/string_.h: Likewise.
100290         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100291         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100292         * modules/inttypes (inttypes.h): Likewise.
100293         * modules/math (math.h): Likewise.
100294         * modules/search (search.h): Likewise.
100295         * modules/signal (signal.h): Likewise.
100296         * modules/stdint (stdint.h): Likewise.
100297         * modules/stdio (stdio.h): Likewise.
100298         * modules/stdlib (stdlib.h): Likewise.
100299         * modules/string (string.h): Likewise.
100300         * modules/sys_time (sys/time.h): Likewise.
100301         * modules/time (time.h): Likewise.
100302         * modules/wchar (wchar.h): Likewise.
100303         * modules/wctype (wtype.h): Likewise.
100305 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100307         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100309 2007-05-13  Bruno Haible  <bruno@clisp.org>
100311         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100312         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100313         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100314         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100315         (gl_PREREQ_STRTOK_R): Don't require it here.
100317 2007-05-13  Bruno Haible  <bruno@clisp.org>
100319         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100320         when used in C++ mode.
100322 2007-05-12  Bruno Haible  <bruno@clisp.org>
100324         * lib/linebuffer.h: Tweak doc.
100325         * lib/linebuffer.c: Likewise.
100327 2007-05-12  James Youngman  <jay@gnu.org>
100329         * lib/linebuffer.c (readlinebuffer_delim): New function,
100330         like readlinebuffer, but use a caller-specified delimiter.
100331         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100332         as the delimiter.
100333         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100335 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100337         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100338         * modules/openat (Files): Remove openat-die.c.
100339         (Depends-on): Add openat-die.
100340         * modules/openat-die: New module.
100342 2007-05-06  Bruno Haible  <bruno@clisp.org>
100344         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100345         Update with info about Cygwin.
100346         * doc/functions/fprintf.texi: Update.
100347         * doc/functions/printf.texi: Update.
100348         * doc/functions/snprintf.texi: Update.
100349         * doc/functions/sprintf.texi: Update.
100350         * doc/functions/vfprintf.texi: Update.
100351         * doc/functions/vprintf.texi: Update.
100352         * doc/functions/vsnprintf.texi: Update.
100353         * doc/functions/vsprintf.texi: Update.
100354         Reported by Eric Blake.
100356 2007-05-06  Bruno Haible  <bruno@clisp.org>
100358         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100359         padding ourselves for the floating-point directives.
100360         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100363         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100364         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100365         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100368         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100372         * tests/test-snprintf-posix.h (test_function): Also check the width
100373         and some flags in the %f directive.
100374         * tests/test-sprintf-posix.h (test_function): Likewise.
100375         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100376         * tests/test-vasprintf-posix.c (test_function): Likewise.
100377         * doc/functions/fprintf.texi: Update.
100378         * doc/functions/printf.texi: Update.
100379         * doc/functions/snprintf.texi: Update.
100380         * doc/functions/sprintf.texi: Update.
100381         * doc/functions/vfprintf.texi: Update.
100382         * doc/functions/vprintf.texi: Update.
100383         * doc/functions/vsnprintf.texi: Update.
100384         * doc/functions/vsprintf.texi: Update.
100386 2007-05-06  Bruno Haible  <bruno@clisp.org>
100388         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100389         pass the ' flag character to sprintf or snprintf.
100390         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100393         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100394         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100395         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100396         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100402         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100403         flag.
100404         * tests/test-sprintf-posix.h (test_function): Likewise.
100405         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100406         * tests/test-vasprintf-posix.c (test_function): Likewise.
100407         * doc/functions/fprintf.texi: Update.
100408         * doc/functions/printf.texi: Update.
100409         * doc/functions/snprintf.texi: Update.
100410         * doc/functions/sprintf.texi: Update.
100411         * doc/functions/vfprintf.texi: Update.
100412         * doc/functions/vprintf.texi: Update.
100413         * doc/functions/vsnprintf.texi: Update.
100414         * doc/functions/vsprintf.texi: Update.
100416 2007-05-01  Bruno Haible  <bruno@clisp.org>
100418         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100420 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100422         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100423         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100425 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100427         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100428         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100429         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100431 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100433         * lib/argp-help.c (struct hol_entry): New member `ord'.
100434         (HOL_ENTRY_PTRCMP): Use ord for comparison
100435         (hol_sort): Initialize ord.
100437 2007-05-01  Bruno Haible  <bruno@clisp.org>
100439         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100440         Reported by Eric Blake.
100441         * doc/gnulib.texi (Function Substitutes): Update.
100443 2007-05-01  Bruno Haible  <bruno@clisp.org>
100445         * doc/functions.texi: Remove file, now redundant through
100446         doc/functions/*.texi.
100448 2007-05-01  Bruno Haible  <bruno@clisp.org>
100450         * modules/argp (Depends-on): Add sleep.
100452 2007-05-01  Bruno Haible  <bruno@clisp.org>
100454         * modules/sleep-tests: New file.
100455         * tests/test-sleep.c: New file.
100457         * modules/sleep: New file.
100458         * lib/sleep.c: New file.
100459         * m4/sleep.m4: New file.
100460         * lib/unistd_.h (sleep): New declaration.
100461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100462         HAVE_SLEEP.
100463         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100464         * doc/functions/sleep.texi: Document the sleep module.
100466 2007-05-01  Bruno Haible  <bruno@clisp.org>
100468         * lib/sigprocmask.h: Remove file.
100469         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100470         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100471         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100472         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100473         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100474         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100475         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100476         HAVE_SIGSET_T as a shell variable.
100477         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100478         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100479         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100480         (Depends-on): Add signal. Remove verify.
100481         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100482         (Include): Mention <signal.h> instead of sigprocmask.h.
100483         * NEWS: Mention the change.
100484         * lib/fatal-signal.c: Don't include sigprocmask.h.
100486 2007-05-01  Bruno Haible  <bruno@clisp.org>
100488         * modules/signal: New file.
100489         * lib/signal_.h: New file.
100490         * m4/signal_h.m4: New file.
100492 2007-05-01  Bruno Haible  <bruno@clisp.org>
100494         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100495         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100496         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100497         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100499 2007-05-01  Bruno Haible  <bruno@clisp.org>
100501         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100502         configure time.
100503         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100504         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100505         * modules/sys_stat (Makefile.am): Substitute their values into
100506         sys/stat.h.
100508 2007-05-01  Bruno Haible  <bruno@clisp.org>
100510         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100511         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100512         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100514 2007-05-01  Bruno Haible  <bruno@clisp.org>
100516         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100517         'assert' module here.
100519 2007-05-01  Bruno Haible  <bruno@clisp.org>
100521         * doc/functions/*.texi: New files.
100522         * doc/functions/google-ranking.txt: New file.
100523         * doc/gnulib.texi (Function Substitutes): New chapter.
100524         (ctime, inet_ntoa): Remove sections.
100525         * doc/ctime.texi: Remove file.
100526         * doc/inet_ntoa.texi: Remove file.
100527         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100528         dependencies.
100529         (%.info): New rule, specifying a --reference-limit.
100531 2007-05-01  Bruno Haible  <bruno@clisp.org>
100533         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100535 2007-05-01  Bruno Haible  <bruno@clisp.org>
100537         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100538         the portability of 'mkdir' to mingw systems.
100540 2007-05-01  Bruno Haible  <bruno@clisp.org>
100542         * doc/headers/google-ranking.txt: New file.
100544 2007-04-30  Eric Blake  <ebb9@byu.net>
100546         Prefer fseeko to fseek.
100547         * modules/getpass (Depends-on): Add fseeko.
100548         * lib/getpass.c (getpass): Use fseeko, not fseek.
100550 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100552         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100553         assumes the sorting is stable, while most qsort implementations
100554         are not.  Use argument addresses to ensure they never compare as
100555         equal.
100557         * tests/test-argp-2.sh (usage-indent test): Fix output
100558         (func_compare): Restore diff options
100559         * tests/test-argp.c: Restore #include "progname.h"
100561 2007-04-29  Bruno Haible  <bruno@clisp.org>
100563         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100565         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100567         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100568         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100569         (TESTS, check_PROGRAMS): Add test-snprintf.
100570         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100571         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100572         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100573         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100574         assertions that fail on HP-UX, OSF/1, or IRIX.
100575         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100577 2007-04-29  Bruno Haible  <bruno@clisp.org>
100579         * MODULES.html.sh (posix_functions): Remove 'contents'.
100581 2007-04-29  Karl Berry  <karl@gnu.org>
100583         * config/srclist.txt (gendocs_template_min): new entry.
100585 2007-04-29  Bruno Haible  <bruno@clisp.org>
100587         Work around fpurge bug on BSD systems.
100588         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100589         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100590         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100591         fpurge to rpl_fpurge if the system already has this function.
100592         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100593         the case where the system already has this function. Correct invariants
100594         on BSD systems.
100595         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100596         BSD systems.
100598 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100600         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100601         proposed by Sven Verdoolaege.
100603         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100604         options.
100605         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100606         (usage and help tests): Update
100608 2007-04-29  Bruno Haible  <bruno@clisp.org>
100610         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100611         Print more information in case of failure. Disable a test on BeOS.
100613 2007-04-29  Bruno Haible  <bruno@clisp.org>
100615         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100616         This helps debugging on systems on which no gdb is available.
100618 2007-04-29  Bruno Haible  <bruno@clisp.org>
100620         * lib/freading.h: Improve comments.
100621         * lib/fwriting.h: Likewise.
100622         * tests/test-freading.c (main): Don't check freading immediately after
100623         repositioning. Needed for glibc.
100625 2007-04-29  Bruno Haible  <bruno@clisp.org>
100627         * lib/freading.c (freading): Trivial simplification.
100629 2007-04-28  Bruno Haible  <bruno@clisp.org>
100631         * tests/test-fwriting.c (main): Also test the interaction between
100632         fflush and fwriting.
100633         * modules/fwriting-tests (Depends-on): Add fflush.
100635         * tests/test-freading.c (main): Also test the interaction between
100636         fflush and freading.
100637         * modules/freading-tests (Depends-on): Add fflush.
100639 2007-04-28  Bruno Haible  <bruno@clisp.org>
100641         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100642         fseeko and ftello.
100643         Suggested by Eric Blake.
100645 2007-04-28  Jim Meyering  <jim@meyering.net>
100647         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100648         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100649         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100651 2007-04-27  Eric Blake  <ebb9@byu.net>
100653         * doc/headers/assert.texi (assert.h): Document assert module use.
100655 2007-04-27  Bruno Haible  <bruno@clisp.org>
100657         * doc/headers/*.texi: New files.
100658         * doc/gnulib.texi (Header File Substitutes): New chapter.
100659         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100660         dependencies.
100661         (standards.info ,standards.html, standards.dvi): Update dependencies.
100662         (mostlyclean, clean): New targets.
100664 2007-04-27  Bruno Haible  <bruno@clisp.org>
100666         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100667         * modules/sysexits (Files, Makefile.am): Update.
100669         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100670         * modules/sys_socket (Files, Makefile.am): Update.
100672         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100673         * modules/sys_stat (Files, Makefile.am): Update.
100675 2007-04-27  Eric Blake  <ebb9@byu.net>
100677         * lib/freading.h: Improve comments.
100678         * lib/fwriting.h: Likewise.
100679         * lib/fflush.c: Likewise.
100681         Fix closein for mingw.
100682         * modules/closein-tests: Add tests for closein.
100683         * tests/test-closein.c: New file.
100684         * tests/test-closein.sh: Likewise.
100685         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100686         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100688 2007-04-27  Bruno Haible  <bruno@clisp.org>
100690         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100691         version is < 6.
100692         * lib/math_.h [__DECC]: Likewise.
100693         * lib/stdio_.h [__DECC]: Likewise.
100694         * lib/stdlib_.h [__DECC]: Likewise.
100695         * lib/string_.h [__DECC]: Likewise.
100696         * lib/time_.h [__DECC]: Likewise.
100697         * lib/wchar_.h [__DECC]: Likewise.
100698         * lib/wctype_.h [__DECC]: Likewise.
100700 2007-04-27  Bruno Haible  <bruno@clisp.org>
100702         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100704 2007-04-27  Bruno Haible  <bruno@clisp.org>
100706         * lib/fflush.c: Add comments.
100707         * modules/fpurge-tests (Depends-on): Add fflush.
100708         * modules/freadable-tests (Depends-on): Likewise.
100709         * modules/fwritable-tests (Depends-on): Likewise.
100711 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100713         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100714         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100715         Report by Bruno Haible <bruno@clisp.org>.
100717 2007-04-26  Eric Blake  <ebb9@byu.net>
100719         Fix fflush on mingw.
100720         * modules/fflush (Depends-on): Add freading.
100721         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
100722         but unread data.
100724 2007-04-26  Eric Blake  <ebb9@byu.net>
100725         and Bruno Haible  <bruno@clisp.org>
100727         Implement freading and fwriting.
100728         * lib/freading.c: New file.
100729         * lib/freading.h: Likewise.
100730         * m4/freading.m4: Likewise.
100731         * modules/freading: Likewise.
100732         * modules/freading-tests: Likewise.
100733         * tests/test-freading.c: Likewise.
100734         * lib/fwriting.c: New file.
100735         * lib/fwriting.h: Likewise.
100736         * m4/fwriting.m4: Likewise.
100737         * modules/fwriting: Likewise.
100738         * modules/fwriting-tests: Likewise.
100739         * tests/test-fwriting.c: Likewise.
100740         * MODULES.html.sh (File stream based Input/Output): Mention them.
100742 2007-04-26  Bruno Haible  <bruno@clisp.org>
100744         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
100745         'long' when we assume it.
100746         Suggested by Eric Blake.
100748 2007-04-26  Bruno Haible  <bruno@clisp.org>
100750         Ensure fseeko, ftello are declared on glibc systems.
100751         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
100752         * modules/fseeko (configure.ac-early): Likewise.
100753         * modules/ftello (configure.ac-early): Likewise.
100754         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
100755         AC_FUNC_FSEEKO for this.
100756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
100757         (gl_CHECK_FSEEKO): Remove macro.
100759 2007-04-26  Bruno Haible  <bruno@clisp.org>
100761         * tests/test-fflush.c (main): Also check the ftell result after
100762         fflush and fseek/fseeko.
100763         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
100764         file descriptor position cache in the stream.
100765         * lib/fseeko.c (rpl_fseeko): Likewise.
100767 2007-04-26  Bruno Haible  <bruno@clisp.org>
100769         * modules/fflush-tests (Depends-on): Add fseeko.
100771 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
100772             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100774         * lib/argz_.h: ensure error_t definition is obtained in same
100775         mechanism system argz.h would have.
100776         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
100777         argz facilities are known bad.  Err on the side of caution if
100778         cross-compiling.
100780 2007-04-25  Eric Blake  <ebb9@byu.net>
100782         * lib/fpurge.c (includes): Use stdlib.h for free.
100783         * tests/test-fflush.c (main): Also test fflush-fseeko.
100785 2007-04-25  Bruno Haible  <bruno@clisp.org>
100787         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
100788         * lib/fseeko.c: New file.
100789         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
100790         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
100791         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
100792         gl_FUNC_FSEEKO.
100793         (gl_FUNC_FSEEKO): Invoke it.
100794         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
100795         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
100796         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
100798 2007-04-25  Bruno Haible  <bruno@clisp.org>
100800         * modules/fflush (Depends-on): Add ftello.
100802 2007-04-25  Bruno Haible  <bruno@clisp.org>
100804         * modules/ftello-tests: New file.
100805         * tests/test-ftello.c: New file.
100807         * modules/ftello: New file.
100808         * m4/ftello.m4: New file.
100809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
100810         HAVE_FTELLO.
100811         * lib/stdio_.h (ftello): New declaration.
100812         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
100813         HAVE_FTELLO.
100815 2007-04-25  Bruno Haible  <bruno@clisp.org>
100817         * modules/fseeko-tests: New file.
100818         * tests/test-fseeko.c: New file.
100820         * modules/fseeko: New file.
100821         * m4/fseeko.m4: New file.
100822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
100823         HAVE_FSEEKO.
100824         * lib/stdio_.h (fseeko): New declaration.
100825         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
100826         HAVE_FSEEKO.
100828 2007-04-25  Bruno Haible  <bruno@clisp.org>
100830         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
100832 2007-04-25  Bruno Haible  <bruno@clisp.org>
100834         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
100835         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
100836         * tests/test-unistd.c: Likewise.
100837         * tests/test-fcntl.c: Likewise.
100839 2007-04-23  Eric Blake  <ebb9@byu.net>
100841         * lib/fflush.c: Fix missing include.
100842         Reported by Bruno Haible.
100844 2007-04-23  Bruno Haible  <bruno@clisp.org>
100846         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
100847         Reported by Eric Blake.
100849 2007-04-23  Bruno Haible  <bruno@clisp.org>
100851         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
100853 2007-04-23  Bruno Haible  <bruno@clisp.org>
100855         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
100857 2007-04-23  Bruno Haible  <bruno@clisp.org>
100859         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
100860         Needed on HP-UX 11.
100862 2007-04-16  Eric Blake  <ebb9@byu.net>
100864         Make fflush rely on fpurge.
100865         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
100866         open coding all variants.
100867         * modules/fflush (Depends-on): Add fpurge and unistd.
100868         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
100869         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
100871         Fix --with-tests compilation on cygwin.
100872         * modules/argmatch-tests (Makefile.am): List gnulib library first
100873         in LDADD.
100874         * modules/argp-tests (Makefile.am): Likewise.
100875         * modules/array-list-tests (Makefile.am): Likewise.
100876         * modules/array-oset-tests (Makefile.am): Likewise.
100877         * modules/avltree-list-tests (Makefile.am): Likewise.
100878         * modules/avltree-oset-tests (Makefile.am): Likewise.
100879         * modules/avltreehash-list-tests (Makefile.am): Likewise.
100880         * modules/carray-list-tests (Makefile.am): Likewise.
100881         * modules/dirname-tests (Makefile.am): Likewise.
100882         * modules/frexp-tests (Makefile.am): Likewise.
100883         * modules/isnanl-tests (Makefile.am): Likewise.
100884         * modules/linked-list-tests (Makefile.am): Likewise.
100885         * modules/linkedhash-list-tests (Makefile.am): Likewise.
100886         * modules/lock-tests (Makefile.am): Likewise.
100887         * modules/rbtree-list-tests (Makefile.am): Likewise.
100888         * modules/rbtree-oset-tests (Makefile.am): Likewise.
100889         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
100890         * modules/tls-tests (Makefile.am): Likewise.
100891         * modules/tsearch-tests (Makefile.am): Likewise.
100892         * modules/xvasprintf-tests (Makefile.am): Likewise.
100894         Fix fpurge for cygwin.
100895         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
100896         value.
100897         * modules/fpurge-tests (Depends-on): Clean up trash.
100899 2007-04-16  Simon Josefsson  <simon@josefsson.org>
100901         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
100903         * m4/autobuild.m4: Re-indent.
100905 2007-04-13  Bruno Haible  <bruno@clisp.org>
100907         * modules/fpurge-tests: New file.
100908         * tests/test-fpurge.c: New file.
100910         * modules/fpurge: New file.
100911         * lib/fpurge.h: New file.
100912         * lib/fpurge.c: New file.
100913         * m4/fpurge.m4: New file.
100915 2007-04-13  Bruno Haible  <bruno@clisp.org>
100917         * modules/fbufmode-tests: New file.
100918         * tests/test-fbufmode.c: New file.
100920         * modules/fbufmode: New file.
100921         * lib/fbufmode.h: New file.
100922         * lib/fbufmode.c: New file.
100923         * m4/fbufmode.m4: New file.
100925 2007-04-13  Bruno Haible  <bruno@clisp.org>
100927         * modules/fwritable-tests: New file.
100928         * tests/test-fwritable.c: New file.
100930         * modules/fwritable: New file.
100931         * lib/fwritable.h: New file.
100932         * lib/fwritable.c: New file.
100933         * m4/fwritable.m4: New file.
100935 2007-04-13  Bruno Haible  <bruno@clisp.org>
100937         * modules/freadable-tests: New file.
100938         * tests/test-freadable.c: New file.
100940         * modules/freadable: New file.
100941         * lib/freadable.h: New file.
100942         * lib/freadable.c: New file.
100943         * m4/freadable.m4: New file.
100945 2007-04-13  Bruno Haible  <bruno@clisp.org>
100947         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
100948         MOSTLYCLEANFILES.
100950 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100952         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
100953         gzip bootstrap.conf to avoid dragging in i18n machinery.
100954         (gnulib_tool_option): Use it.
100956 2007-04-13  Bruno Haible  <bruno@clisp.org>
100958         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
100959         %F directives.
100960         * tests/test-vasprintf-posix.c (test_function): Likewise.
100961         * tests/test-snprintf-posix.h (test_function): Likewise.
100962         * tests/test-sprintf-posix.h (test_function): Likewise.
100963         * tests/test-fprintf-posix.h (test_function): Likewise.
100964         * tests/test-printf-posix.h (test_function): Likewise.
100965         * tests/test-fprintf-posix.out: Likewise.
100967 2007-04-13  Bruno Haible  <bruno@clisp.org>
100969         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
100970         * modules/tls-tests (configure.ac): Likewise.
100971         Reported by Arto C. Nirkko <anirkko@insel.ch>.
100973 2007-04-13  Bruno Haible  <bruno@clisp.org>
100975         * lib/tls.c (glthread_tls_get): Fix return type.
100976         Patch by Arto C. Nirkko <anirkko@insel.ch>.
100978 2007-04-12  Eric Blake  <ebb9@byu.net>
100980         * modules/gettime (Depends-on): Remove gettime.
100981         Reported by Dmitry V. Levin.
100983 2007-04-12  Bruno Haible  <bruno@clisp.org>
100985         * modules/fflush (Include): Mention <stdio.h>.
100986         * modules/strtoimax (Include): Mention <inttypes.h>.
100987         * modules/strtoumax (Include): Likewise.
100989 2007-04-12  Eric Blake  <ebb9@byu.net>
100991         * .cvsignore: New file.
100992         * .gitignore: Likewise.
100994 2007-04-12  Bruno Haible  <bruno@clisp.org>
100996         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
100997         not before, since $(LDADD) often contains libgnu.a.
100998         * modules/striconv-tests (test_striconv_LDADD): Likewise.
100999         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101000         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101001         Needed on Cygwin.
101003 2007-04-12  Eric Blake  <ebb9@byu.net>
101005         Work around glibc's failure to flush stdin on fclose.
101006         * lib/closein.c (close_stdin): Flush stdin before closing.
101008         Work around glibc's failure to reset seekable stdin on exit.
101009         * modules/closein: New module.
101010         * lib/closein.c: New file.
101011         * lib/closein.h: Likewise.
101012         * m4/closein.m4: Likewise.
101013         * MODULES.html.sh (File stream based Input/Output): Document it.
101015 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101017         * gnulib-tool: Rename generated 'autobuild' script to
101018         'do-autobuild' in --create-megatestdir output.
101020         * doc/gnulib.texi (Build robot for gnulib): Fix.
101022 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101024         * modules/sysexits (Depends-on): Add absolute-header.
101026 2007-04-12  Eric Blake  <ebb9@byu.net>
101028         No need to preserve errno on success.
101029         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101030         Reported by Bruno Haible.
101032 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101034         * MODULES.html.sh (Support for maintaining and releasing
101035         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101037 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101039         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101041 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101043         * modules/autobuild: New module.
101045         * m4/autobuild.m4: New file.
101047 2007-04-11  Bruno Haible  <bruno@clisp.org>
101049         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101050         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101051         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101053         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101054         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101055         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101057         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101058         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
101060         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101061         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
101063         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101064         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101065         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101066         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101067         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101069         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101070         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101072         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101073         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101075         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101076         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101077         Reported by Eric Blake.
101079 2007-04-11  Bruno Haible  <bruno@clisp.org>
101081         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101083 2007-04-10  Bruno Haible  <bruno@clisp.org>
101085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101086         for NaN and Infinity. Needed on FreeBSD 6.1.
101087         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101088         regarding results for "%010a" of Infinity and NaN.
101089         * tests/test-vasprintf-posix.c (test_function): Likewise.
101090         * tests/test-snprintf-posix.h (test_function): Likewise.
101091         * tests/test-sprintf-posix.h (test_function): Likewise.
101092         * tests/test-fprintf-posix.h (test_function): Likewise.
101093         * tests/test-printf-posix.h (test_function): Likewise.
101094         * tests/test-fprintf-posix.out: Likewise.
101096 2007-04-10  Bruno Haible  <bruno@clisp.org>
101098         * modules/locale-tests: New file.
101099         * tests/test-locale.c: New file.
101101         * modules/locale: New file.
101102         * lib/locale_.h: New file.
101103         * m4/locale_h.m4: New file.
101105 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101106             Bruno Haible  <bruno@clisp.org>
101108         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101109         be determined, test for availability of the copysignf, copysign,
101110         copysignl functions.
101111         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101112         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101113         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101115 2007-04-09  Eric Blake  <ebb9@byu.net>
101117         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101118         * modules/stdio (Makefile.am): Support fflush.
101119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101120         * modules/fflush: New file.
101121         * lib/fflush.c: Likewise.
101122         * m4/fflush.m4: Likewise.
101123         * modules/fflush-tests: New test.
101124         * tests/test-fflush.c: Likewise.
101125         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101127 2007-04-06  Bruno Haible  <bruno@clisp.org>
101129         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101130         (VASNPRINTF): Use signbit for faster determination whether to print a
101131         minus sign.
101132         * modules/vasnprintf (Files): Remove lib/float+.h.
101133         * modules/fprintf-posix (Depends-on): Add signbit.
101134         * modules/snprintf-posix (Depends-on): Likewise.
101135         * modules/sprintf-posix (Depends-on): Likewise.
101136         * modules/vasnprintf-posix (Depends-on): Likewise.
101137         * modules/vasprintf-posix (Depends-on): Likewise.
101138         * modules/vfprintf-posix (Depends-on): Likewise.
101139         * modules/vsnprintf-posix (Depends-on): Likewise.
101140         * modules/vsprintf-posix (Depends-on): Likewise.
101142 2007-04-06  Bruno Haible  <bruno@clisp.org>
101144         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101145         * tests/test-frexpl.c (main): Likewise.
101146         * tests/test-ldexpl.c (main): Likewise.
101147         * modules/frexp-tests (Depends-on): Add signbit.
101148         * modules/frexpl-tests (Depdends-on): Likewise.
101149         * modules/ldexpl-tests (Depdends-on): Likewise.
101151 2007-04-06  Bruno Haible  <bruno@clisp.org>
101153         * modules/signbit-tests: New file.
101154         * tests/test-signbit.c: New file.
101156         * modules/signbit: New file.
101157         * lib/signbitf.c: New file.
101158         * lib/signbitd.c: New file.
101159         * lib/signbitl.c: New file.
101160         * m4/signbit.m4: New file.
101161         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101162         (signbit): New macro.
101163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101164         REPLACE_SIGNBIT.
101165         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101166         REPLACE_FREXPL into math.h.
101168 2007-04-06  Bruno Haible  <bruno@clisp.org>
101170         * modules/isnanf-nolibm-tests: New file.
101171         * tests/test-isnanf.c: New file.
101173         * modules/isnanf-nolibm: New file.
101174         * lib/isnanf.h: New file.
101175         * lib/isnanf.c: New file.
101176         * lib/isnan.c: Consider the USE_FLOAT macro.
101177         * m4/isnanf.m4: New file.
101179 2007-04-06  Bruno Haible  <bruno@clisp.org>
101181         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101182         (Link): New section.
101184         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101186 2007-04-06  Bruno Haible  <bruno@clisp.org>
101188         Assume the 'long double' type.
101189         * m4/longdouble.m4: Remove file.
101190         * config/srclist.txt: Don't mention longdouble.m4.
101191         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101192         * lib/float+.h: Likewise.
101193         * lib/frexp.c: Likewise.
101194         * lib/printf-args.h: Likewise.
101195         * lib/printf-args.c: Likewise.
101196         * lib/printf-frexp.c: Likewise.
101197         * lib/printf-parse.c: Likewise.
101198         * lib/vasnprintf.c: Likewise.
101199         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101200         * m4/intl.m4: Likewise.
101201         * m4/isnanl.m4: Likewise.
101202         * m4/printf.m4: Likewise.
101203         * m4/printf-frexpl.m4: Likewise.
101204         * m4/vasnprintf.m4: Likewise.
101205         * modules/allocsa (Files): Remove m4/longdouble.m4.
101206         * modules/gettext (Files): Likewise.
101207         * modules/relocatable-prog-wrapper (Files): Likewise.
101208         * modules/vasnprintf (Files): Likewise.
101209         * modules/isnanl (Files): Likewise.
101210         (Include): Simplify.
101211         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101212         (Include): Simplify.
101213         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101214         (Include): Simplify.
101215         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101216         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101217         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101219         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101221         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101222         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101223         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101224         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101225         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101226         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101227         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101228         * tests/test-isnanl.c: Likewise.
101229         * tests/test-snprintf-posix.h: Likewise.
101230         * tests/test-sprintf-posix.h: Likewise.
101231         * tests/test-vasnprintf-posix.c: Likewise.
101232         * tests/test-vasnprintf-posix2.c: Likewise.
101233         * tests/test-vasprintf-posix.c: Likewise.
101235 2007-04-06  Bruno Haible  <bruno@clisp.org>
101237         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101238         * lib/math_.h [__DECC]: Include the overridden include file through
101239         #include_next, outside the double-inclusion guard.
101240         * lib/stdio_.h [__DECC]: Likewise.
101241         * lib/stdlib_.h [__DECC]: Likewise.
101242         * lib/string_.h [__DECC]: Likewise.
101243         * lib/time_.h [__DECC]: Likewise.
101244         * lib/wchar_.h [__DECC]: Likewise.
101245         * lib/wctype_.h [__DECC]: Likewise.
101246         * lib/inttypes_.h [__DECC]: Likewise.
101247         Reported by Albert Chin <china@thewrittenword.com> in
101248         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101250 2007-04-04  Eric Blake  <ebb9@byu.net>
101252         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101253         1.5.x.
101255 2007-04-04  Bruno Haible  <bruno@clisp.org>
101257         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101258         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101260 2007-04-04  Bruno Haible  <bruno@clisp.org>
101262         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101263         results for "%010a" of Infinity and NaN.
101264         * tests/test-vasprintf-posix.c (test_function): Likewise.
101265         * tests/test-snprintf-posix.h (test_function): Likewise.
101266         * tests/test-sprintf-posix.h (test_function): Likewise.
101267         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101268         * tests/test-printf-posix.h (test_function): Likewise.
101269         * tests/test-fprintf-posix.out: Update.
101270         Needed for FreeBSD 6.1.
101272 2007-04-04  Bruno Haible  <bruno@clisp.org>
101274         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101275         directly used by the gnulib modules nor by gnulib-tool.
101277 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101279         * DEPENDENCIES: Give overall description of version dependency
101280         desirability.  Use more-typical names for apps.
101281         Add shell, coreutils, diffutils, grep, tar, gzip.
101283 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101285         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101287 2007-04-04  Karl Berry  <karl@gnu.org>
101289         * MODULES.html.sh (func_module): missing '.
101291 2007-04-03  Bruno Haible  <bruno@clisp.org>
101293         * modules/argmatch-tests (Makefile.am): New variable
101294         test_argmatch_LDADD.
101295         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101296         * modules/array-list-tests (Makefile.am): New variable
101297         test_array_list_LDADD.
101298         * modules/array-oset-tests (Makefile.am): New variable
101299         test_array_oset_LDADD.
101300         * modules/avltree-list-tests (Makefile.am): New variable
101301         test_avltree_list_LDADD.
101302         * modules/avltree-oset-tests (Makefile.am): New variable
101303         test_avltree_oset_LDADD.
101304         * modules/avltreehash-list-tests (Makefile.am): New variable
101305         test_avltreehash_list_LDADD.
101306         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101307         test_canonicalize_lgpl_LDADD.
101308         * modules/carray-list-tests (Makefile.am): New variable
101309         test_carray_list_LDADD.
101310         * modules/dirname-tests (Makefile.am): New variable
101311         test_dirname_LDADD.
101312         * modules/linked-list-tests (Makefile.am): New variable
101313         test_linked_list_LDADD.
101314         * modules/linkedhash-list-tests (Makefile.am): New variable
101315         test_linkedhash_list_LDADD.
101316         * modules/rbtree-list-tests (Makefile.am): New variable
101317         test_rbtree_list_LDADD.
101318         * modules/rbtree-oset-tests (Makefile.am): New variable
101319         test_rbtree_oset_LDADD.
101320         * modules/rbtreehash-list-tests (Makefile.am): New variable
101321         test_rbtreehash_list_LDADD.
101322         * modules/xvasprintf-tests (Makefile.am): New variable
101323         test_xvasprintf_LDADD.
101324         Reported by Eric Blake.
101326 2007-04-03  Eric Blake  <ebb9@byu.net>
101328         * DEPENDENCIES: Weaken m4 requirements.
101330 2007-04-03  Bruno Haible  <bruno@clisp.org>
101332         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101333         * modules/isnanl-tests (configure.ac): Likewise.
101335 2007-04-03  Ben Pfaff  <blp@gnu.org>
101337         * modules/iconv_open: Add $(srcdir)/ to source directory
101338         references in Makefile fragments that call gperf, to fix VPATH
101339         builds.
101341 2007-04-03  Bruno Haible  <bruno@clisp.org>
101343         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101344         * lib/ldexpl.c: Undo last change.
101346 2007-04-03  Bruno Haible  <bruno@clisp.org>
101348         * modules/printf-frexpl (Depends-on): Undo last change.
101349         (Files): Add m4/ldexpl.m4.
101351 2007-04-03  Bruno Haible  <bruno@clisp.org>
101353         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101354         * modules/isnanl (Link): New section.
101356         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101357         * modules/frexp (Link): New section.
101359         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101360         * modules/frexpl (Link): New section.
101362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101363         * modules/ldexpl (Link): New section.
101365 2007-04-03  Bruno Haible  <bruno@clisp.org>
101367         * modules/TEMPLATE-EXTENDED: New file.
101368         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101370 2007-04-03  Bruno Haible  <bruno@clisp.org>
101372         * DEPENDENCIES: New file.
101373         Suggested by Simon Josefsson.
101375 2007-04-03  Bruno Haible  <bruno@clisp.org>
101377         * doc/gnulib.texi: Escape @.
101379 2007-04-03  James Youngman  <jay@gnu.org>
101380         and Paul Eggert  <eggert@cs.ucla.edu>
101382         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101383         birthtime on all systems that have birthtime, not just those which
101384         use st_birthtimensec rather than st_birthtim.  Putting zero in
101385         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101386         that the birth time is not available for files on an NFS mount.
101388 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101390         * modules/memxor: Move back from crypto/, suggested by Bruno.
101391         * modules/crypto/hmac-sha1: Fix memxor dependency.
101393         * modules/crypto/gc: Moved from ../.
101395 2007-04-02  Eric Blake  <ebb9@byu.net>
101397         * lib/ldexpl.c (includes): Avoid libm.
101399         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101401 2007-04-02  Bruno Haible  <bruno@clisp.org>
101403         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101404         on IRIX.
101406 2007-04-02  Bruno Haible  <bruno@clisp.org>
101408         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101409         x86 or x86_64 platforms running MacOS X.
101410         Reported by Ryan Schmidt <@ryandesign.com>.
101412 2007-04-02  Bruno Haible  <bruno@clisp.org>
101414         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101415         i386.
101417 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101419         * modules/crypto/arcfour: Moved from ../.
101420         * modules/crypto/arcfour-tests: Moved from ../.
101421         * modules/crypto/arctwo: Moved from ../.
101422         * modules/crypto/arctwo-tests: Moved from ../.
101423         * modules/crypto/des: Moved from ../.
101424         * modules/crypto/des-tests: Moved from ../.
101425         * modules/crypto/gc-arcfour: Moved from ../.
101426         * modules/crypto/gc-arcfour-tests: Moved from ../.
101427         * modules/crypto/gc-arctwo: Moved from ../.
101428         * modules/crypto/gc-arctwo-tests: Moved from ../.
101429         * modules/crypto/gc-des: Moved from ../.
101430         * modules/crypto/gc-des-tests: Moved from ../.
101431         * modules/crypto/gc-hmac-md5: Moved from ../.
101432         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101433         * modules/crypto/gc-hmac-sha1: Moved from ../.
101434         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101435         * modules/crypto/gc-md2: Moved from ../.
101436         * modules/crypto/gc-md2-tests: Moved from ../.
101437         * modules/crypto/gc-md4: Moved from ../.
101438         * modules/crypto/gc-md4-tests: Moved from ../.
101439         * modules/crypto/gc-md5: Moved from ../.
101440         * modules/crypto/gc-md5-tests: Moved from ../.
101441         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101442         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101443         * modules/crypto/gc-random: Moved from ../.
101444         * modules/crypto/gc-rijndael: Moved from ../.
101445         * modules/crypto/gc-rijndael-tests: Moved from ../.
101446         * modules/crypto/gc-sha1: Moved from ../.
101447         * modules/crypto/gc-sha1-tests: Moved from ../.
101448         * modules/crypto/gc-tests: Moved from ../.
101449         * modules/crypto/hmac-md5: Moved from ../.
101450         * modules/crypto/hmac-md5-tests: Moved from ../.
101451         * modules/crypto/hmac-sha1: Moved from ../.
101452         * modules/crypto/hmac-sha1-tests: Moved from ../.
101453         * modules/crypto/md2: Moved from ../.
101454         * modules/crypto/md2-tests: Moved from ../.
101455         * modules/crypto/md4: Moved from ../.
101456         * modules/crypto/md4-tests: Moved from ../.
101457         * modules/crypto/md5: Moved from ../.
101458         * modules/crypto/md5-tests: Moved from ../.
101459         * modules/crypto/memxor: Moved from ../.
101460         * modules/crypto/rijndael: Moved from ../.
101461         * modules/crypto/rijndael-tests: Moved from ../.
101462         * modules/crypto/sha1: Moved from ../.
101464 2007-03-30  James Youngman  <jay@gnu.org>
101466         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101467         rename() to change the ctime of a file (because ctime is unaffected
101468         by rename on jfs2 on AIX 5.1).
101469         (main): Start by doing cleanup, in case a previous run failed leaving
101470         test files behind.
101472 2007-03-31  Bruno Haible  <bruno@clisp.org>
101474         Support old proprietary implementations of iconv.
101475         * modules/iconv_open: New file.
101476         * lib/iconv_.h: New file.
101477         * m4/iconv_h.m4: New file.
101478         * lib/iconv_open.c: New file.
101479         * lib/iconv_open-aix.gperf: New file.
101480         * lib/iconv_open-hpux.gperf: New file.
101481         * lib/iconv_open-irix.gperf: New file.
101482         * lib/iconv_open-osf.gperf: New file.
101483         * m4/iconv_open.m4: New file.
101484         * modules/linebreak (Depends-on): Add iconv_open.
101485         * modules/striconv (Depends-on): Likewise.
101486         * modules/striconveh (Depends-on): Likewise.
101487         * modules/unicodeio (Depends-on): Likewise.
101488         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101489         (iconv_t)(-1).
101490         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101491         conversion if cd is (iconv_t)(-1).
101492         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101493         is not possible.
101495 2007-03-31  Bruno Haible  <bruno@clisp.org>
101497         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101498         work on Solaris either. Protect also second use of "autodetect_jp".
101500 2007-03-31  Bruno Haible  <bruno@clisp.org>
101502         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101503         the function is not present.
101505 2007-03-31  Bruno Haible  <bruno@clisp.org>
101507         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101508         the function is not present.
101510 2007-03-31  Bruno Haible  <bruno@clisp.org>
101512         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101513         a bug in HP-UX iconv_open().
101515 2007-03-31  Bruno Haible  <bruno@clisp.org>
101517         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101518         (Mathematics <math.h>): New section, add fpieee.
101519         (Input/output <stdio.h>): Add fseterr.
101520         (Mathematics <math.h>): New section, add printf-frexp.
101521         (Container data structures): Add sublist.
101522         (Core language properties): Add fpucw, inline.
101523         (Functions for greatest-width integer types <inttypes.h>): Add
101524         imaxabs, imaxdiv, inttypes.
101525         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101526         isnanl-nolibm, ldexp.
101527         (Mathematics <math.h>): New section, add printf-frexpl.
101528         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101529         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101530         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101531         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101532         (Unicode string functions): Add unistr/u*-mbtoucr.
101533         (Java): Add javacomp-script, javaexec-script.
101534         (C#): Add csharpcomp-script, csharpexec-script.
101535         (Support for building libraries and executables): Add havelib,
101536         relocatable-*.
101537         (Support for maintaining and releasing projects): Renamed from
101538         'Support for maintaining and release projects'. Add announce-gen.
101540 2007-03-31  Bruno Haible  <bruno@clisp.org>
101542         * README: Talk primarily about git.
101543         (git and CVS): Renamed from CVS.
101544         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101545         gnulib is available through git.
101546         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101548 2007-03-30  Bruno Haible  <bruno@clisp.org>
101550         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101551         * lib/poll_.h: Likewise.
101552         * lib/stat_.h: Likewise.
101553         * lib/sys_time_.h: Likewise.
101554         * lib/sysexit_.h: Likewise.
101555         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101556         * lib/stdbool_.h: Likewise.
101557         * lib/byteswap_.h: Add double-inclusion guard.
101559 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101561         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101563 2007-03-30  Karl Berry  <karl@gnu.org>
101565         * config/srclist-update: double space after USA in the license
101566         substitution, since that's how it's usually (?) written.
101568 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101570         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101571         reported by Bruno Haible.
101573 2007-03-29  Bruno Haible  <bruno@clisp.org>
101575         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101576         a bug in AIX iconv().
101578 2007-03-29  Bruno Haible  <bruno@clisp.org>
101580         * modules/ldexpl-tests: New file.
101581         * tests/test-ldexpl.c: New file.
101583 2007-03-29  Bruno Haible  <bruno@clisp.org>
101585         * lib/ldexpl.c: Include fpucw.h.
101586         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101587         multiplication.
101588         * modules/ldexpl (Depends-on): Add fpucw.
101590 2007-03-29  Bruno Haible  <bruno@clisp.org>
101592         * modules/ldexpl: New file.
101593         * m4/ldexpl.m4: New file.
101594         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101595         set.
101596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101597         REPLACE_LDEXPL.
101598         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101599         REPLACE_LDEXPL.
101600         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101601         gl_FUNC_LDEXPL_WORKS.
101602         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101603         * modules/mathl (Files): Remove lib/ldexpl.c.
101604         (Depends-on): Add ldexpl.
101606 2007-03-29  Bruno Haible  <bruno@clisp.org>
101608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101610 2007-03-29  Bruno Haible  <bruno@clisp.org>
101612         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101613         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101614         and possibly also HP-UX.
101615         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101616         work on AIX, IRIX, HP-UX, OSF/1.
101617         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101618         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101619         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101620         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101621         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101622         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101624 2007-03-29  Bruno Haible  <bruno@clisp.org>
101626         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101628 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101630         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101631         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101633 2007-03-29  Eric Blake  <ebb9@byu.net>
101635         * lib/acl-internal.h: Remove redundant include.
101636         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101637         Cygwin when a file is locked.
101639 2007-03-29  Bruno Haible  <bruno@clisp.org>
101641         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101642         file.
101643         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101645 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101647         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101648         try to remove a parent directory if the child couldn't be removed
101649         (except for the first rmdir, which could fail because the child
101650         doesn't exist).  Problem reported by Jeff Blaine in
101651         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101653 2007-03-28  Bruno Haible  <bruno@clisp.org>
101655         * lib/striconveh.c (utf8conv_carefully): New function.
101656         (mem_cd_iconveh_internal): Invoke it.
101658 2007-03-28  Bruno Haible  <bruno@clisp.org>
101660         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101661         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101662         input.
101663         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101664         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101665         unistr/u8-uctomb.
101667 2007-03-28  Bruno Haible  <bruno@clisp.org>
101669         * modules/unistr/u8-mbtoucr: New file.
101670         * lib/unistr/u8-mbtoucr.c: New file.
101671         * modules/unistr/u16-mbtoucr: New file.
101672         * lib/unistr/u16-mbtoucr.c: New file.
101673         * modules/unistr/u16-mbtoucr: New file.
101674         * lib/unistr/u16-mbtoucr.c: New file.
101675         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101677 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101678             Bruno Haible  <bruno@clisp.org>
101680         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101681         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101682         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101684         * m4/stdio_h.m4: Add stubs for vasprintf too.
101686         * modules/stdio: Support vasprintf in sed command.
101688         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101689         vasprintf.h.  Add stdio module indicator.
101691         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101692         vasprintf.h.
101694         * lib/vasprintf.h: File removed.
101696         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101697         * lib/vasprintf.c: Ditto.
101698         * lib/xvasprintf.c: Ditto.
101699         * tests/test-vasprintf-posix.c: Ditto.
101700         * tests/test-vasprintf.c: Ditto.
101702 2007-03-27  Bruno Haible  <bruno@clisp.org>
101704         Make vasnprintf multithread-safe.
101705         * lib/vasnprintf.c (decimal_point_char): New function.
101706         (VASNPRINTF): Use it.
101707         Suggested by Simon Josefsson.
101709 2007-03-27  Eric Blake  <ebb9@byu.net>
101711         Support sub-second birthtime on cygwin.
101712         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101713         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101714         (get_stat_birthtime): Also work with st_birthtim.
101716 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101718         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101719         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
101720         (get_stat_birthtime_ns): Do not try to use "spare" fields.
101721         (get_stat_birthtime_ns): Simplify compile-time tests.
101722         (get_stat_birthtime): Change the API to look like
101723         get_stat_mtime etc., except return a negative tv_nsec on error.
101724         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
101725         Don't check for "spare" fields.
101726         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
101727         or for struct stat.st_birthtime, as these tests aren't used.
101728         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
101730 2007-03-27  Bruno Haible  <bruno@clisp.org>
101732         * lib/stat-time.h: Include <sys/stat.h>.
101734 2007-03-27  James Youngman  <jay@gnu.org>
101736         * lib/stat-time.h (get_stat_birthtime): New function for
101737           retrieving st_birthtime as provided by UFS2 (hence *BSD).
101738         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
101739           and its variants.
101740         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
101741         * modules/stat-time-test: New file.
101742         * tests/test-stat-time.c: New test, devised by Bruno Haible.
101744 2007-03-26  Bruno Haible  <bruno@clisp.org>
101746         Better support of signalling NaNs.
101747         * lib/atanl.c: Include isnanl.h.
101748         (atanl): Perform test for NaN at the beginning of the function and
101749         through a call to isnanl.
101750         * lib/cosl.c: Include isnanl.h.
101751         (cosl): Perform test for NaN at the beginning of the function and
101752         through a call to isnanl.
101753         * lib/ldexpl.c: Include isnanl.h.
101754         (ldexpl): Perform test for NaN through a call to isnanl.
101755         * lib/logl.c: Include isnanl.h.
101756         (logl): Perform test for NaN at the beginning of the function and
101757         through a call to isnanl.
101758         * lib/sinl.c: Include isnanl.h.
101759         (sinl): Perform test for NaN at the beginning of the function and
101760         through a call to isnanl.
101761         * lib/sqrtl.c: Include isnanl.h.
101762         (sqrtl): Perform test for NaN at the beginning of the function and
101763         through a call to isnanl.
101764         * lib/tanl.c: Include isnanl.h.
101765         (tanl): Perform test for NaN at the beginning of the function and
101766         through a call to isnanl.
101767         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
101768         * modules/mathl (Depends-on): Add isnanl.
101770 2007-03-26  Eric Blake  <ebb9@byu.net>
101772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
101773         regression in logic sense of previous patch.
101775 2007-03-26  Bruno Haible  <bruno@clisp.org>
101777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
101778         unportable shell command "if ! ...".
101779         Reported by Ralf Wildenhues.
101781 2007-03-25  Bruno Haible  <bruno@clisp.org>
101783         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
101784         <sysexits.h> file, and only add EX_CONFIG.
101785         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
101786         absolute file name and whether it is sufficient. Substitute also
101787         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
101788         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
101789         ABSOLUTE_SYSEXITS_H into sysexits.h.
101791 2007-03-25  Bruno Haible  <bruno@clisp.org>
101793         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
101794         hints is NULL.
101796 2007-03-25  Bruno Haible  <bruno@clisp.org>
101798         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
101799         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
101801 2007-03-25  Bruno Haible  <bruno@clisp.org>
101803         * lib/vasnprintf.c: Include langinfo.h.
101804         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
101805         multithread-safe.
101806         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
101807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
101808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101811         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101812         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
101814         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101815         Reported by Simon Josefsson.
101817 2007-03-25  Bruno Haible  <bruno@clisp.org>
101819         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
101820         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
101821         * modules/vasnprintf (Depends-on): Add stdint.
101823 2007-03-25  Bruno Haible  <bruno@clisp.org>
101825         * modules/fpieee: New file.
101826         * m4/fpieee.m4: New file.
101827         * modules/isnan-nolibm (Depends-on): Add fpieee.
101828         * modules/isnanl-nolibm (Depends-on): Add fpieee.
101829         * modules/isnanl (Depends-on): Add fpieee.
101831 2007-03-25  Bruno Haible  <bruno@clisp.org>
101833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
101835 2007-03-25  Bruno Haible  <bruno@clisp.org>
101837         Avoid test failures on IRIX 6.5.
101838         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
101839         (main): Use it.
101840         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
101841         macros.
101842         (main): Use them.
101844 2007-03-25  Bruno Haible  <bruno@clisp.org>
101846         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
101847         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
101848         exists but doesn't work.
101849         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
101850         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
101851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
101852         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
101853         math.h.
101855 2007-03-25  Bruno Haible  <bruno@clisp.org>
101857         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
101858         returns inf. Needed on IRIX 6.5.
101860 2007-03-25  Bruno Haible  <bruno@clisp.org>
101862         * tests/test-frexpl.c: Include isnanl-nolibm.h.
101863         (main): Use isnanl instead of x != x idiom.
101864         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
101866         * tests/test-frexp.c: Include isnan.h.
101867         (main): Use isnan instead of x != x idiom.
101868         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
101870 2007-03-25  Bruno Haible  <bruno@clisp.org>
101872         * tests/test-frexp.c (NaN): New function/macro.
101873         (main): Use it instead of 0.0 / 0.0.
101874         * tests/test-isnan.c (NaN): New function/macro.
101875         (main): Use it instead of 0.0 / 0.0.
101876         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
101877         (test_function): Use it instead of 0.0 / 0.0.
101878         * tests/test-vasprintf-posix.c (NaN): New function/macro.
101879         (test_function): Use it instead of 0.0 / 0.0.
101880         * tests/test-snprintf-posix.h (NaN): New function/macro.
101881         (test_function): Use it instead of 0.0 / 0.0.
101882         * tests/test-sprintf-posix.h (NaN): New function/macro.
101883         (test_function): Use it instead of 0.0 / 0.0.
101884         * tests/test-fprintf-posix.h (NaN): New function/macro.
101885         (test_function): Use it instead of 0.0 / 0.0.
101886         * tests/test-printf-posix.h (NaN): New function/macro.
101887         (test_function): Use it instead of 0.0 / 0.0.
101889         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
101891 2007-03-25  Bruno Haible  <bruno@clisp.org>
101893         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
101895 2007-03-25  Bruno Haible  <bruno@clisp.org>
101897         * lib/regexec.c (merge_state_with_log): Make static.
101899 2007-03-25  Bruno Haible  <bruno@clisp.org>
101901         * lib/trigl.c (kernel_rem_pio2): Make static.
101903 2007-03-25  Bruno Haible  <bruno@clisp.org>
101905         * lib/sincosl.c (sincosl_table): Make static.
101907 2007-03-25  Bruno Haible  <bruno@clisp.org>
101909         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
101910         if the compiler does not support C99.
101912 2007-03-25  Bruno Haible  <bruno@clisp.org>
101914         * modules/time (Makefile.am): Ensure all rule action lines start with a
101915         tab.
101917 2007-03-24  Bruno Haible  <bruno@clisp.org>
101919         * modules/tsearch-tests: New file.
101920         * tests/test-tsearch.sh: New file.
101921         * tests/test-tsearch.c: New file, mostly copied from glibc.
101923         * modules/search-tests: New file.
101924         * tests/test-search.c: New file.
101926         * modules/search: New file.
101927         * lib/search_.h: New file, incorporating lib/tsearch.h.
101928         * m4/search_h.m4: New file.
101929         * lib/tsearch.h: Remove file.
101930         * lib/tsearch.c: Include search.h instead of tsearch.h.
101931         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
101932         HAVE_TSEARCH.
101933         * modules/tsearch (Files): Remove lib/tsearch.h.
101934         (Depends-on): Add search.
101935         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
101936         (Include): Change tsearch.h into search.h.
101938 2007-03-24  Bruno Haible  <bruno@clisp.org>
101940         * modules/fpucw: New file.
101941         * lib/fpucw.h: New file.
101942         * lib/frexp.c: Include fpucw.h.
101943         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101944         (FUNC): Use them.
101945         * lib/printf-frexp.c: Include fpucw.h.
101946         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
101947         (FUNC): Use them.
101948         * lib/vasnprintf.c: Include fpucw.h.
101949         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
101950         'long double' calculations.
101951         * tests/test-frexpl.c: Include fpucw.h.
101952         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
101953         * tests/test-printf-frexpl.c: Include fpucw.h.
101954         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
101955         * modules/frexpl (Depends-on): Add fpucw.
101956         * modules/printf-frexpl (Depends-on): Likewise.
101957         * modules/fprintf-posix (Depends-on): Likewise.
101958         * modules/snprintf-posix (Depends-on): Likewise.
101959         * modules/sprintf-posix (Depends-on): Likewise.
101960         * modules/vasnprintf-posix (Depends-on): Likewise.
101961         * modules/vasprintf-posix (Depends-on): Likewise.
101962         * modules/vfprintf-posix (Depends-on): Likewise.
101963         * modules/vsnprintf-posix (Depends-on): Likewise.
101964         * modules/vsprintf-posix (Depends-on): Likewise.
101965         * modules/frexpl-tests (Depends-on): Likewise.
101966         * modules/printf-frexpl-tests (Depends-on): Likewise.
101968 2007-03-24  Bruno Haible  <bruno@clisp.org>
101970         * lib/float+.h: New file.
101971         * lib/isnan.c: Include float+.h.
101972         (SIZE): New macro.
101973         (FUNC): Compare only SIZE bytes of the value.
101974         * lib/vasnprintf.c: Include float+.h.
101975         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
101976         SIZEOF_LDBL or SIZEOF_DBL bytes.
101977         * modules/isnan-nolibm (Files): Add lib/float+.h.
101978         * modules/isnanl-nolibm (Files): Add lib/float+.h.
101979         * modules/isnanl (Files): Add lib/float+.h.
101980         * modules/vasnprintf (Files): Add lib/float+.h.
101982 2007-03-24  Bruno Haible  <bruno@clisp.org>
101984         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
101985         include isnanl-nolibm.h.
101987 2007-03-24  Bruno Haible  <bruno@clisp.org>
101989         * tests/test-read-file.c (main): Don't produce spurious output for
101990         expected situations. Make the test fail if it encountered unexpected
101991         results.
101993 2007-03-24  Bruno Haible  <bruno@clisp.org>
101995         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
101996         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
101998 2007-03-24  Bruno Haible  <bruno@clisp.org>
102000         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102002 2007-03-24  Bruno Haible  <bruno@clisp.org>
102004         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102005         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102007         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102008         * modules/utf8-ucs4: Turn into a symbolic link to module
102009         unistr/u8-mbtouc.
102011         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102012         utf8-ucs4-unsafe.
102013         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102014         unistr/u8-mbtouc-unsafe.
102016         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102017         * modules/utf16-ucs4: Turn into a symbolic link to module
102018         unistr/u16-mbtouc.
102020         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102021         utf16-ucs4-unsafe.
102022         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102023         unistr/u16-mbtouc-unsafe.
102025         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102026         * modules/ucs4-utf8: Turn into a symbolic link to module
102027         unistr/u8-ubtomb.
102029         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102030         * modules/ucs4-utf16: Turn into a symbolic link to module
102031         unistr/u16-ubtomb.
102033 2007-03-24  Bruno Haible  <bruno@clisp.org>
102035         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102036         Enable the function only if HAVE_INLINE.
102037         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102038         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102039         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102040         Enable the function only if HAVE_INLINE.
102041         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102042         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102043         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102044         Enable the function only if HAVE_INLINE.
102045         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102046         Enable the function only if HAVE_INLINE.
102047         * modules/utf8-ucs4: Update.
102048         * modules/utf8-ucs4-unsafe: Update.
102049         * modules/utf16-ucs4: Update.
102050         * modules/utf16-ucs4-unsafe: Update.
102051         * modules/ucs4-utf8: Update.
102052         * modules/ucs4-utf16: Update.
102054 2007-03-24  Bruno Haible  <bruno@clisp.org>
102056         * lib/utf8-ucs4.h: Remove file.
102057         * lib/utf8-ucs4-unsafe.h: Remove file.
102058         * lib/utf16-ucs4.h: Remove file.
102059         * lib/utf16-ucs4-unsafe.h: Remove file.
102060         * lib/ucs4-utf8.h: Remove file.
102061         * lib/ucs4-utf16.h: Remove file.
102062         * lib/unistr.h: Include their previous contents.
102063         * m4/utf-ucs4.m4: Remove file.
102064         * m4/ucs4-utf.m4: Remove file.
102065         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102066         (Depends-on): Add unistr/base.
102067         (configure.ac): Remove gl_UTF_UCS4.
102068         (Makefile.am): Update.
102069         (Include): Change to unistr.h.
102070         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102071         (Depends-on): Add unistr/base.
102072         (configure.ac): Remove gl_UTF_UCS4.
102073         (Makefile.am): Update.
102074         (Include): Change to unistr.h.
102075         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102076         (Depends-on): Add unistr/base.
102077         (configure.ac): Remove gl_UTF_UCS4.
102078         (Makefile.am): Update.
102079         (Include): Change to unistr.h.
102080         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102081         (Depends-on): Add unistr/base.
102082         (configure.ac): Remove gl_UTF_UCS4.
102083         (Makefile.am): Update.
102084         (Include): Change to unistr.h.
102085         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102086         (Depends-on): Add unistr/base.
102087         (configure.ac): Remove gl_UCS4_UTF.
102088         (Makefile.am): Update.
102089         (Include): Change to unistr.h.
102090         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102091         (Depends-on): Add unistr/base.
102092         (configure.ac): Remove gl_UCS4_UTF.
102093         (Makefile.am): Update.
102094         (Include): Change to unistr.h.
102095         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102096         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102097         utf8-ucs4-unsafe.h.
102098         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102099         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102100         utf16-ucs4-unsafe.h.
102101         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102102         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102103         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102104         * lib/unistr/u8-strchr.c: Likewise.
102105         * lib/unistr/u8-strrchr.c: Likewise.
102106         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102107         * lib/unistr/u16-strchr.c: Likewise.
102108         * lib/unistr/u16-strrchr.c: Likewise.
102109         * lib/striconveh.c: Update.
102110         * lib/linebreak.c: Update.
102112 2007-03-24  Bruno Haible  <bruno@clisp.org>
102114         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102115         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102117 2007-03-22  Bruno Haible  <bruno@clisp.org>
102119         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102121 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102123         * MODULES.html.sh (File system functions): New module write-any-file.
102124         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102125         * m4/write-any-file.m4: New files.
102127 2007-03-23  Eric Blake  <ebb9@byu.net>
102129         * gnulib-tool: Rearrange space-tab sequences, since some editors
102130         like to eat them.
102132 2007-03-23  Eric Blake  <ebb9@byu.net>
102134         * lib/version-etc.c (version_etc_va): Update license wording to
102135         be more concise.  Recommended by Richard Stallman.
102137 2007-03-22  Bruno Haible  <bruno@clisp.org>
102139         * lib/poll.c (MSG_PEEK): New fallback definition.
102141 2007-03-22  Bruno Haible  <bruno@clisp.org>
102143         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102144         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102145         (main): Update.
102146         Fixes a compilation error on BeOS.
102148 2007-03-22  Bruno Haible  <bruno@clisp.org>
102150         * modules/frexpl-tests: New file.
102151         * tests/test-frexpl.c: New file.
102153         * modules/frexpl: New file.
102154         * m4/frexpl.m4: New file.
102155         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102156         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102158         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102159         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102160         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102162 2007-03-22  Bruno Haible  <bruno@clisp.org>
102164         * lib/frexpl.c: Share code with lib/frexp.c.
102165         * modules/mathl (Files): Add lib/frexp.c.
102166         (Depends-on): Add isnanl-nolibm.
102168 2007-03-22  Bruno Haible  <bruno@clisp.org>
102170         * modules/printf-frexp (Files): Add m4/frexp.m4.
102171         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102172         only if the found frexp function actually works.
102174 2007-03-22  Bruno Haible  <bruno@clisp.org>
102176         * lib/frexp.c: Remove older implementation that uses divisions.
102178 2007-03-21  Bruno Haible  <bruno@clisp.org>
102180         * modules/frexp-tests: New file.
102181         * tests/test-frexp.c: New file.
102183         * modules/frexp: New file.
102184         * lib/frexp.c: New file.
102185         * m4/frexp.m4: New file.
102186         * lib/math_.h (frexp): New declaration.
102187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102188         REPLACE_FREXP.
102189         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102191 2007-03-21  Bruno Haible  <bruno@clisp.org>
102193         * modules/isnanl-tests: New file.
102194         * tests/test-isnanl.c: New file.
102196         * modules/isnanl: New file.
102197         * lib/isnanl.h: New file.
102198         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102199         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102200         gl_FUNC_ISNANL_WORKS.
102201         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102202         New macros.
102204 2007-03-21  Bruno Haible  <bruno@clisp.org>
102206         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102207         lib/isnanl.h.
102208         (Include): Update.
102209         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102210         * lib/vasnprintf.c: Update.
102211         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102212         tests/test-isnanl.h, remove tests/test-isnanl.c.
102213         (Makefile.am): Update.
102214         * tests/test-isnanl-nolibm.c: New file.
102215         * tests/test-isnanl.h: New file.
102216         * tests/test-isnanl.c: Remove file.
102218 2007-03-21  Jim Meyering  <jim@meyering.net>
102220         When trying to open ".", treat ESTALE like EACCES.
102221         * lib/savewd.c (savewd_save): Resort to forking not just upon
102222         failure with EACCES, but also when errno is ESTALE.
102224 2007-03-20  Bruno Haible  <bruno@clisp.org>
102226         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102227         Needed on AIX 5.1. Reported by Matthew Woehlke.
102229 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102231         Suggestions by Bruno Haible:
102232         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102233         our own.
102234         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102235         * modules/acl (Depends-on): Add gettext.
102237 2007-03-19  Bruno Haible  <bruno@clisp.org>
102239         * modules/iconvme: Remove file.
102240         * lib/iconvme.h: Remove file.
102241         * lib/iconvme.c: Remove file.
102242         * m4/iconvme.m4: Remove file.
102244 2007-03-19  Bruno Haible  <bruno@clisp.org>
102246         * doc/relocatable-maint.texi: Break long shell script line.
102247         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102249 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102251         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102252         handle file_has_acl.
102253         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102254         * lib/acl.c: Move header inclusions and related macro defns into
102255         lib/acl-internal.h.
102256         (S_ISLNK): Remove defn, since that's now done for us.
102257         (file_has_acl): Move to lib/file-has-acl.c.
102258         Call acl_trivial if available.  This is the crucial part of the fix.
102259         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102260         shared within the library.  Rewrite a bit, partly to make it compatible
102261         with the GNU coding style.
102262         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102263         Remove unnecessary double-quotes.
102264         Don't test for acl_to_text; the build will catch that.
102265         Replace acl_entries if it doesn't exist and it is needed.
102266         Check for -lsec and acl_trivial (as used on Solaris 10).
102267         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102268         lib/file-has-acl.c.
102269         (Depends-on): Add sys_stat, for S_ISLNK.
102271 2007-03-19  Ben Pfaff  <blp@gnu.org>
102273         * doc/gnulib.texi: Fix typos.
102274         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102276 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102278         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102279         If size is zero here, buf must be zero.
102281 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102283         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102284         <bruno@clisp.org>.
102286 2007-03-18  Bruno Haible  <bruno@clisp.org>
102288         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102289         Suggested by Eric Blake.
102291 2007-03-18  Ben Pfaff  <blp@gnu.org>
102293         * doc/relocatable.texi: Recommend using as prefix a directory
102294         that does not exist and will never be created.  Based on
102295         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102296         and others.
102298 2007-03-17  Bruno Haible  <bruno@clisp.org>
102300         * lib/fchownat.c: Include lchown.h.
102302 2007-03-17  Bruno Haible  <bruno@clisp.org>
102304         Fix endless loop when the given allocated size was > INT_MAX.
102305         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102306         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102307         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102308         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102309         * lib/sprintf.c (sprintf): Likewise.
102311 2007-03-17  Bruno Haible  <bruno@clisp.org>
102313         * tests/test-argp-2.sh (func_compare): Output a context diff.
102315 2007-03-17  Bruno Haible  <bruno@clisp.org>
102317         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102318         locale's decimal-point character.
102320 2007-03-17  Bruno Haible  <bruno@clisp.org>
102322         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102323         before comparing it. Needed because on some platforms (e.g. x86) a
102324         'long double' occupies less bytes than sizeof (long double).
102326 2007-03-17  Bruno Haible  <bruno@clisp.org>
102328         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102329         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102330         * tests/test-getaddrinfo.c (simple): Likewise.
102331         * tests/test-read-file.c (main): Likewise.
102333 2007-03-17  Bruno Haible  <bruno@clisp.org>
102335         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102337 2007-03-17  Bruno Haible  <bruno@clisp.org>
102339         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102340         unused variable.
102342 2007-03-17  Bruno Haible  <bruno@clisp.org>
102344         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102345         * tests/test-c-strncasecmp.c: Likewise.
102347 2007-03-17  Bruno Haible  <bruno@clisp.org>
102349         * modules/stdlib (Depends-on): Add unistd.
102350         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102351         Needed for MacOS X 10.3.
102353 2007-03-17  Bruno Haible  <bruno@clisp.org>
102355         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102357 2007-03-17  Bruno Haible  <bruno@clisp.org>
102359         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102361 2007-03-17  Bruno Haible  <bruno@clisp.org>
102363         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102364         to reflect files copied from gnulib (with or without modifications).
102365         Suggested by Jim Meyering.
102367 2007-03-17  Eric Blake  <ebb9@byu.net>
102369         * NEWS: Document stdlib change from 2007-02-18.
102371 2007-03-17  Jim Meyering  <jim@meyering.net>
102373         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102374         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102375         someone uses a name containing shell meta-characters.
102376         Reported by Alfred M. Szmidt.
102378         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102380 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102382         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102383         and copy gettext configuration files only if configure.ac contains
102384         a use of AM_GNU_GETTEXT_VERSION.
102386 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102388         * build-aux/bootstrap (gnulib_name): New variable.
102389         (gnulib_tool_options): Use it.
102391 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102393         * tests/test-des.c: Use new namespace.
102395 2007-03-15  Bruno Haible  <bruno@clisp.org>
102397         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102398         Reported by James Youngman <jay@gnu.org>.
102400 2007-03-15  Bruno Haible  <bruno@clisp.org>
102402         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102403         declared prototype. Needed with cc on OSF/1 5.1.
102405 2007-03-15  Bruno Haible  <bruno@clisp.org>
102407         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102408         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102409         (struct gl_list_implementation): Add dispose_fn argument to the
102410         'create_empty', 'create' methods.
102411         (struct gl_list_impl_base): Add field 'dispose_fn'.
102412         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102413         argument.
102414         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102415         dispose_fn argument.
102416         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102417         dispose_fn on the dropped values.
102418         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102419         dispose_fn argument.
102420         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102421         dropped values.
102422         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102423         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102424         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102425         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102426         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102427         argument.
102428         (gl_tree_list_free): Call dispose_fn on the dropped values.
102429         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102430         the dropped values.
102431         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102432         Add dispose_fn argument.
102433         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102434         Call dispose_fn on the dropped values.
102435         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102436         Add dispose_fn argument.
102437         (gl_sublist_create): Initialize the 'dispose_fn' field.
102438         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102439         * tests/test-array_list.c (main): Update.
102440         * tests/test-carray_list.c (main): Update.
102441         * tests/test-avltree_list.c (main): Update.
102442         * tests/test-rbtree_list.c (main): Update.
102443         * tests/test-avltreehash_list.c (main): Update.
102444         * tests/test-rbtreehash_list.c (main): Update.
102445         * tests/test-linked_list.c (main): Update.
102446         * tests/test-linkedhash_list.c (main): Update.
102447         * tests/test-array_oset.c (main): Update.
102449 2007-03-15  Bruno Haible  <bruno@clisp.org>
102451         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102452         (gl_oset_create_empty): Add dispose_fn argument.
102453         (struct gl_oset_implementation): Add dispose_fn argument to
102454         'create_empty' method.
102455         (struct gl_oset_impl_base): Add dispose_fn field.
102456         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102457         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102458         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102459         values.
102460         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102461         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102462         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102463         dropped value.
102464         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102465         dropped value.
102466         * tests/test-array_oset.c (main): Update.
102467         * tests/test-avltree_oset.c (main): Update.
102468         * tests/test-rbtree_oset.c (main): Update.
102469         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102471 2007-03-13  Bruno Haible  <bruno@clisp.org>
102473         * tests/test-stdbool.c (i): Update after last patch.
102475 2007-03-12  Bruno Haible  <bruno@clisp.org>
102477         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102478         the iswprint macro. Needed on Solaris 2.5.1.
102480 2007-03-12  Bruno Haible  <bruno@clisp.org>
102482         * tests/test-printf-frexp.c (main): Declare x as volatile.
102484 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102486         * doc/gnulib.texi (Build robot for gnulib): New section.
102488 2007-03-12  Jim Meyering  <jim@meyering.net>
102490         * build-aux/bootstrap: New file.
102491         * build-aux/bootstrap.conf: New file, from coreutils.
102493 2007-03-11  Bruno Haible  <bruno@clisp.org>
102495         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102497 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102499         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102500         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102501         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102503 2007-03-11  Bruno Haible  <bruno@clisp.org>
102505         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102506         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102508 2007-03-11  Bruno Haible  <bruno@clisp.org>
102510         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102511         formula. Needed for SunPRO C 5.0.
102513 2007-03-11  Bruno Haible  <bruno@clisp.org>
102515         * modules/long-options (Depends-on): Add getopt.
102517 2007-03-11  Bruno Haible  <bruno@clisp.org>
102519         * modules/modechange (Depends-on): Add stdbool.
102521 2007-03-11  Bruno Haible  <bruno@clisp.org>
102523         * modules/i-ring (Depends-on): Add stdbool.
102525 2007-03-11  Bruno Haible  <bruno@clisp.org>
102527         * modules/gc-des (Depends-on): Add stdbool.
102529 2007-03-11  Bruno Haible  <bruno@clisp.org>
102531         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102533 2007-03-11  Bruno Haible  <bruno@clisp.org>
102535         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102537 2007-03-11  Bruno Haible  <bruno@clisp.org>
102539         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102541 2007-03-11  Bruno Haible  <bruno@clisp.org>
102543         * lib/vasnprintf.c (sprintf): Undefine.
102545 2007-03-11  Bruno Haible  <bruno@clisp.org>
102547         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102548         initializers in SunPRO C and Compaq C compilers.
102550 2007-03-11  Bruno Haible  <bruno@clisp.org>
102552         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102553         decrementing code ANSI C compliant.
102555 2007-03-11  Bruno Haible  <bruno@clisp.org>
102557         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102558         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102560 2007-03-11  Bruno Haible  <bruno@clisp.org>
102562         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102563         <stdbool.h> substitute doesn't pass.
102565 2007-03-11  Bruno Haible  <bruno@clisp.org>
102567         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102569 2007-03-11  Bruno Haible  <bruno@clisp.org>
102571         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102572         script, for submission to autobuild.josefsson.org.
102574 2007-03-10  Bruno Haible  <bruno@clisp.org>
102576         * modules/canonicalize-lgpl-tests: New file.
102577         * tests/test-canonicalize-lgpl.sh: New file.
102578         * tests/test-canonicalize-lgpl.c: New file.
102580         * modules/c-strcase-tests: New file.
102581         * tests/test-c-strcase.sh: New file.
102582         * tests/test-c-strcasecmp.c: New file.
102583         * tests/test-c-strncasecmp.c: New file.
102585         * modules/atexit-tests: New file.
102586         * tests/test-atexit.sh: New file.
102587         * tests/test-atexit.c: New file.
102589 2007-03-10  Bruno Haible  <bruno@clisp.org>
102591         * tests/test-binary-io.sh: Use temporary filenames that are not so
102592         likely to clash with those of other tests (in a parallel make).
102593         * tests/test-binary-io.c: Likewise.
102595 2007-03-10  Bruno Haible  <bruno@clisp.org>
102597         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102598         fallback; use #error instead.
102599         Suggested by Simon Josefsson.
102601 2007-03-10  Bruno Haible  <bruno@clisp.org>
102603         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102604         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102605         first and the last.
102607 2007-03-10  Bruno Haible  <bruno@clisp.org>
102609         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102611 2007-03-10  Bruno Haible  <bruno@clisp.org>
102613         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102614         "make distcheck".
102615         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102616         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102617         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102619 2007-03-10  Bruno Haible  <bruno@clisp.org>
102621         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102622         variable.
102623         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102624         variable.
102626 2007-03-09  Eric Blake  <ebb9@byu.net>
102627         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102629         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102630         types are not being provided by gnulib.
102631         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102632         types are supported.
102634 2007-03-10  Bruno Haible  <bruno@clisp.org>
102636         * lib/stdio_.h (__attribute__): New macro.
102637         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102638         vsprintf): Specify __attribute__ __format__ for GCC.
102639         Suggested by Eric Blake.
102641 2007-03-09  Bruno Haible  <bruno@clisp.org>
102643         * modules/printf-posix-tests: New file.
102644         * tests/test-printf-posix.sh: New file.
102645         * tests/test-printf-posix.c: New file.
102647         * modules/printf-posix: New file.
102648         * lib/printf.c: New file.
102649         * m4/printf-posix-rpl.m4: New file.
102650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102651         REPLACE_PRINTF.
102652         * lib/stdio_.h (printf): New declaration.
102653         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102654         ____strfmon____): New macros.
102655         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102656         REPLACE_PRINTF.
102658 2007-03-09  Bruno Haible  <bruno@clisp.org>
102660         * tests/test-vasnprintf-posix2.sh: New file.
102661         * tests/test-vasnprintf-posix2.c: New file.
102662         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102663         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102664         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102666         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102667         a locale dependent decimal point, rather than always '.'.
102669 2007-03-09  Eric Blake  <ebb9@byu.net>
102671         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102672         spite of platforms like Tandem/NSK that define it to -1.
102674 2007-03-08  Bruno Haible  <bruno@clisp.org>
102676         * modules/vprintf-posix-tests: New file.
102677         * tests/test-vprintf-posix.sh: New file.
102678         * tests/test-vprintf-posix.c: New file.
102679         * tests/test-printf-posix.h: New file.
102681         * modules/vprintf-posix: New file.
102682         * lib/vprintf.c: New file.
102683         * m4/vprintf-posix.m4: New file.
102684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102685         REPLACE_VPRINTF.
102686         * lib/stdio_.h (vprintf): New declaration.
102687         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102688         REPLACE_VPRINTF.
102690 2007-03-08  Bruno Haible  <bruno@clisp.org>
102692         * modules/fprintf-posix-tests: New file.
102693         * tests/test-fprintf-posix.sh: New file.
102694         * tests/test-fprintf-posix.c: New file.
102696         * modules/fprintf-posix: New file.
102697         * lib/fprintf.c: New file.
102698         * m4/fprintf-posix.m4: New file.
102699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102700         REPLACE_FPRINTF.
102701         * lib/stdio_.h (fprintf): New declaration.
102702         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102703         REPLACE_FPRINTF.
102705 2007-03-08  Bruno Haible  <bruno@clisp.org>
102707         * modules/vfprintf-posix-tests: New file.
102708         * tests/test-vfprintf-posix.sh: New file.
102709         * tests/test-vfprintf-posix.c: New file.
102710         * tests/test-fprintf-posix.h: New file.
102711         * tests/test-fprintf-posix.out: New file.
102713         * modules/vfprintf-posix: New file.
102714         * lib/vfprintf.c: New file.
102715         * m4/vfprintf-posix.m4: New file.
102716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102717         REPLACE_VFPRINTF.
102718         * lib/stdio_.h (vfprintf): New declaration.
102719         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
102720         REPLACE_VFPRINTF.
102722 2007-03-08  Bruno Haible  <bruno@clisp.org>
102724         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
102726 2007-03-08  Bruno Haible  <bruno@clisp.org>
102728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
102729         instead of 'expr' invocations.
102730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102732         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102735         Suggested by Paul Eggert.
102737 2007-03-08  Bruno Haible  <bruno@clisp.org>
102739         * modules/fseterr-tests: New file.
102740         * tests/test-fseterr.c: New file.
102742         * modules/fseterr: New file.
102743         * lib/fseterr.h: New file.
102744         * lib/fseterr.c: New file.
102746 2007-03-08  Bruno Haible  <bruno@clisp.org>
102748         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
102749         * lib/getopt_.h: Likewise.
102750         * lib/mbswidth.h: Likewise.
102751         * lib/setenv.h: Likewise.
102752         * lib/vasnprintf.h: Likewise.
102753         * lib/vasprintf.h: Likewise.
102754         * lib/verror.h: Likewise.
102755         * lib/xsetenv.h: Likewise.
102756         * lib/xvasprintf.h: Likewise.
102758 2007-03-08  Jim Meyering  <jim@meyering.net>
102760         * users.txt: Add parted.
102762         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
102764 2007-03-07  Bruno Haible  <bruno@clisp.org>
102766         * m4/printf.m4: Make the shell script snippets copy&pastable.
102768 2007-03-02  Bruno Haible  <bruno@clisp.org>
102770         * lib/netinet_in_.h: New file.
102771         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
102772         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
102773         * modules/netinet_in (Files): Add lib/netinet_in_.h.
102774         (Depends-on): Add absolute-header.
102775         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
102776         into netinet/in.h.
102778 2007-03-03  Bruno Haible  <bruno@clisp.org>
102780         * lib/sys_select_.h: New file.
102781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
102782         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
102783         * modules/sys_select (Files): Add lib/sys_select_.h.
102784         (Depends-on): Add absolute-header.
102785         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
102786         into sys/select.h.
102788 2007-03-02  Bruno Haible  <bruno@clisp.org>
102790         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
102791         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
102792         values.
102793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
102794         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
102795         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
102796         * modules/sys_socket (Depends-on): Add absolute-header.
102797         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
102798         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
102799         (Include): Remove requirement of inclusion of <sys/types.h>.
102801 2007-03-02  Bruno Haible  <bruno@clisp.org>
102803         * lib/byteswap_.h (bswap_32): Fix formula.
102805 2007-03-06  Bruno Haible  <bruno@clisp.org>
102807         * modules/sprintf-posix-tests: New file.
102808         * tests/test-sprintf-posix.c: New file.
102810         * modules/sprintf-posix: New file.
102811         * lib/sprintf.c: New file.
102812         * m4/sprintf-posix.m4: New file.
102813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
102814         REPLACE_SPRINTF.
102815         * lib/stdio_.h (sprintf): New declaration.
102816         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
102817         REPLACE_SPRINTF.
102819 2007-03-06  Bruno Haible  <bruno@clisp.org>
102821         * modules/vsprintf-posix-tests: New file.
102822         * tests/test-vsprintf-posix.c: New file.
102823         * tests/test-sprintf-posix.h: New file.
102825         * modules/vsprintf-posix: New file.
102826         * lib/vsprintf.c: New file.
102827         * m4/vsprintf-posix.m4: New file.
102828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
102829         REPLACE_VSPRINTF.
102830         * lib/stdio_.h (vsprintf): New declaration.
102831         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
102832         REPLACE_VSPRINTF.
102834 2007-03-06  Bruno Haible  <bruno@clisp.org>
102836         * modules/vsnprintf (Depend-on): Remove minmax.
102838 2007-03-06  Bruno Haible  <bruno@clisp.org>
102840         * modules/snprintf-posix-tests: New file.
102841         * tests/test-snprintf-posix.c: New file.
102843         * modules/snprintf-posix: New file.
102844         * m4/snprintf-posix.m4: New file.
102845         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
102846         gl_FUNC_SNPRINTF.
102847         (gl_FUNC_SNPRINTF): Invoke it.
102848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
102849         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
102850         is set.
102851         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
102853 2007-03-06  Bruno Haible  <bruno@clisp.org>
102855         * modules/vsnprintf-posix-tests: New file.
102856         * tests/test-vsnprintf-posix.c: New file.
102857         * tests/test-snprintf-posix.h: New file.
102859         * modules/vsnprintf-posix: New file.
102860         * m4/vsnprintf-posix.m4: New file.
102861         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
102862         gl_FUNC_VSNPRINTF.
102863         (gl_FUNC_VSNPRINTF): Invoke it.
102864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
102865         * lib/stdio_.h (vsnprintf): Define as a replacement if
102866         REPLACE_VSNPRINTF is set.
102867         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
102869 2007-03-06  Bruno Haible  <bruno@clisp.org>
102871         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
102872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
102874 2007-03-06  Bruno Haible  <bruno@clisp.org>
102876         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
102877         (asinl): Declare also if HAVE_DECL_ASINL is set.
102878         (atanl): Declare also if HAVE_DECL_ATANL is set.
102879         (ceill): Declare also if HAVE_DECL_CEILL is set.
102880         (cosl): Declare also if HAVE_DECL_COSL is set.
102881         (expl): Declare also if HAVE_DECL_EXPL is set.
102882         (floorl): Declare also if HAVE_DECL_FLOORL is set.
102883         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
102884         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
102885         (logl): Declare also if HAVE_DECL_LOGL is set.
102886         (sinl): Declare also if HAVE_DECL_SINL is set.
102887         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
102888         (tanl): Declare also if HAVE_DECL_TANL is set.
102889         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
102890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
102891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
102892         declaration of frexpl, ldexpl.
102893         * modules/printf-frexpl (Depends-on): Add math.
102894         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
102896 2007-03-05  Bruno Haible  <bruno@clisp.org>
102898         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
102899         frexpl and ldexpl are declared.
102900         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
102902 2007-03-05  Bruno Haible  <bruno@clisp.org>
102904         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
102905         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
102907 2007-03-05  Bruno Haible  <bruno@clisp.org>
102909         * lib/stdio_.h: Include <stddef.h>.
102911 2007-03-05  Bruno Haible  <bruno@clisp.org>
102913         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
102915 2007-03-05  Bruno Haible  <bruno@clisp.org>
102917         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
102918         NetBSD 4, from Ralf Wildenhues.
102920 2007-03-04  Bruno Haible  <bruno@clisp.org>
102922         * lib/vasprintf.h: Update #if logic for the case when the functions
102923         exist but are overridden.
102925 2007-03-04  Bruno Haible  <bruno@clisp.org>
102927         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
102928         implementations: glibc-2.4 and MacOS X 10.3.
102929         * tests/test-vasnprintf-posix.c (test_function): Test also the case
102930         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
102931         * tests/test-vasprintf-posix.c (test_function): Likewise.
102933 2007-03-04  Bruno Haible  <bruno@clisp.org>
102935         * modules/vasprintf-posix-tests: New file.
102936         * tests/test-vasprintf-posix.c: New file.
102938         * modules/vasprintf-posix: New file.
102939         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
102940         defined.
102941         * m4/vasprintf-posix.m4: New file.
102942         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
102943         gl_FUNC_VASPRINTF.
102944         (gl_FUNC_VASPRINTF): Invoke it.
102945         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
102946         here.
102947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
102949 2007-03-04  Bruno Haible  <bruno@clisp.org>
102951         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
102952         REPLACE_GETTIMEOFDAY.
102953         * modules/sys_time (Makefile.am): Likewise.
102954         * m4/sys_time_h.m4: Likewise.
102955         * m4/gettimeofday.m4: Likewise.
102957 2007-03-04  Bruno Haible  <bruno@clisp.org>
102959         * modules/vasnprintf-posix-tests: New file.
102960         * tests/test-vasnprintf-posix.c: New file.
102962         * modules/vasnprintf-posix: New file.
102963         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
102964         printf-frexpl.h.
102965         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
102966         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
102967         REPLACE_VASNPRINTF is defined.
102968         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
102969         gl_FUNC_VASNPRINTF.
102970         (gl_FUNC_VASNPRINTF): Invoke it.
102971         * m4/vasnprintf-posix.m4: New file.
102972         * m4/printf.m4: New file.
102974 2007-03-04  Bruno Haible  <bruno@clisp.org>
102976         Compile progreloc.c only if --enable-relocatable is specified.
102977         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
102978         if --enable-relocatable was specified.
102979         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
102980         lib_SOURCES.
102982 2007-03-04  Jim Meyering  <jim@meyering.net>
102984         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
102985         Use it consistently, rather than enumerating errno constants.
102987 2007-03-04  Bruno Haible  <bruno@clisp.org>
102989         * modules/xvasprintf-tests: New file.
102990         * tests/test-xvasprintf.c: New file.
102992         * modules/vasprintf-tests: New file.
102993         * tests/test-vasprintf.c: New file.
102995         * modules/vasnprintf-tests: New file.
102996         * tests/test-vasnprintf.c: New file.
102998         * modules/vsnprintf-tests: New file.
102999         * tests/test-vsnprintf.c: New file.
103001         * modules/snprintf-tests: New file.
103002         * tests/test-snprintf.c: New file.
103004 2007-03-04  Bruno Haible  <bruno@clisp.org>
103006         Compile relocatable.c only if --enable-relocatable is specified.
103007         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103008         gl_RELOCATABLE_LIBRARY.
103009         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103010         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103011         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103012         gl_RELOCATABLE_LIBRARY.
103013         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103014         (Makefile.am): Remove lib_SOURCES.
103015         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103016         gl_RELOCATABLE_LIBRARY.
103017         (Makefile.am): Remove lib_SOURCES.
103018         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103019         always.
103020         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103021         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103023 2007-03-04  Bruno Haible  <bruno@clisp.org>
103025         * modules/argmatch-tests: New file.
103026         * tests/test-argmatch.c: New file.
103028         * tests/test-allocsa.c (main): Halve the number of loop runs.
103030         * modules/alloca-opt-tests: New file.
103031         * tests/test-alloca-opt.c: New file.
103033 2007-03-04  Jim Meyering  <jim@meyering.net>
103035         Work around difference between Linux ACLs and Solaris 10 ZFS.
103036         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103037         for EINVAL.
103039 2007-03-03  Bruno Haible  <bruno@clisp.org>
103041         * modules/relocatable-prog (Depends-on): Add back progreloc's
103042         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103044 2007-03-03  Bruno Haible  <bruno@clisp.org>
103046         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103047         * modules/relocatable-lib: New file.
103049 2007-03-03  Bruno Haible  <bruno@clisp.org>
103051         * modules/relocatable-prog: Renamed from modules/relocatable.
103052         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103054 2007-03-03  Bruno Haible  <bruno@clisp.org>
103056         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103057         m4/relocatable-lib.m4.
103058         (Depends-on): Remove 'relocatable'.
103059         (configure.ac): Add gl_RELOCATABLE_NOP.
103061 2007-03-03  Bruno Haible  <bruno@clisp.org>
103063         * modules/relocatable-prog-wrapper: New file.
103064         * modules/relocatable (Depends-on): Add it. Remove all other
103065         dependencies except progname.
103066         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103068         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103069         (gl_FUNC_STRERROR): Nop.
103070         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103073         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103075         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103076         (gl_FUNC_READLINK): Update.
103078         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103080 2007-03-03  Bruno Haible  <bruno@clisp.org>
103082         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103083         * modules/xreadlink (Depends-on): Add unistd.
103084         * modules/xreadlink-with-size (Depends-on): Likewise.
103086 2007-03-03  Bruno Haible  <bruno@clisp.org>
103088         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103089         extracted from gt_FUNC_SETENV.
103090         (gt_FUNC_SETENV): Remove macro.
103091         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103092         remove gt_FUNC_SETENV.
103094 2007-03-03  Bruno Haible  <bruno@clisp.org>
103096         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103097         ENABLE_RELOCATABLE here.
103098         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103100 2007-03-03  Bruno Haible  <bruno@clisp.org>
103102         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103103         * tests/test-rbtreehash_list.c: Include progname.h.
103104         (main): Call set_program_name.
103106         * modules/rbtree-oset-tests (Depends-on): Add progname.
103107         * tests/test-rbtree_oset.c: Include progname.h.
103108         (main): Call set_program_name.
103110         * modules/rbtree-list-tests (Depends-on): Add progname.
103111         * tests/test-rbtree_list.c: Include progname.h.
103112         (main): Call set_program_name.
103114         * modules/linked-list-tests (Depends-on): Add progname.
103115         * tests/test-linked_list.c: Include progname.h.
103116         (main): Call set_program_name.
103118 2007-03-03  Bruno Haible  <bruno@clisp.org>
103120         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103121         All uses of __restrict changed to _Restrict_.
103122         * lib/glob_.h (__restrict): Remove macro.
103124 2007-03-02  Bruno Haible  <bruno@clisp.org>
103126         * modules/gettext (configure.ac): Require gettext infrastructure
103127         from version 0.16.1.
103129 2007-03-02  Bruno Haible  <bruno@clisp.org>
103131         * modules/linkedhash-list-tests (Depends-on): Add progname.
103132         * tests/test-linkedhash_list.c: Include progname.h.
103133         (main): Call set_program_name.
103135         * modules/carray-list-tests (Depends-on): Add progname.
103136         * tests/test-carray_list.c: Include progname.h.
103137         (main): Call set_program_name.
103139         * modules/avltreehash-list-tests (Depends-on): Add progname.
103140         * tests/test-avltreehash_list.c: Include progname.h.
103141         (main): Call set_program_name.
103143         * modules/avltree-oset-tests (Depends-on): Add progname.
103144         * tests/test-avltree_oset.c: Include progname.h.
103145         (main): Call set_program_name.
103147         * modules/avltree-list-tests (Depends-on): Add progname.
103148         * tests/test-avltree_list.c: Include progname.h.
103149         (main): Call set_program_name.
103151         * modules/array-oset-tests (Depends-on): Add progname.
103152         * tests/test-array_oset.c: Include progname.h.
103153         (main): Call set_program_name.
103155         * modules/array-list-tests (Depends-on): Add progname.
103156         * tests/test-array_list.c: Include progname.h.
103157         (main): Call set_program_name.
103159         * modules/argp-tests (Depends-on): Add progname.
103160         * tests/test-argp.c: Include argp.h first. Include progname.h.
103161         (main): Call set_program_name.
103163 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103165         * doc/gnulib-tool.texi (Initial import): Reword description of
103166         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103167         limited effect even if defined after the first system include.
103169 2007-03-01  Bruno Haible  <bruno@clisp.org>
103171         * build-aux/config.libpath: Update to libtool-1.5.22.
103172         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103174 2007-03-01  Bruno Haible  <bruno@clisp.org>
103176         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103177         foo_CFLAGS.
103178         Reported by Ralf Wildenhues.
103180 2007-03-01  Bruno Haible  <bruno@clisp.org>
103182         * build-aux/install-reloc: Remove object files left over by some
103183         compilers.
103184         Reported by Ralf Wildenhues.
103186 2007-03-01  Bruno Haible  <bruno@clisp.org>
103188         * build-aux/install-reloc: Break long lines.
103190 2007-03-01  Bruno Haible  <bruno@clisp.org>
103192         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103193         Reported by Ralf Wildenhues.
103195 2007-03-01  Bruno Haible  <bruno@clisp.org>
103197         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103198         include ordering constraints.
103200 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103202         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103203         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103204         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103205         as another example.
103206         * lib/time_.h: Fix misspelling.
103207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103208         Require gl_HEADER_TIME_H_DEFAULTS.
103209         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103210         * m4/time_r.m4 (gl_TIME_R): Likewise.
103211         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103213 2007-03-01  Bruno Haible  <bruno@clisp.org>
103215         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103216         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103218 2007-03-01  Jim Meyering  <jim@meyering.net>
103220         * modules/xreadlink (Maintainer): Add my name.
103221         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103223 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103224             Bruno Haible  <bruno@clisp.org>
103226         * build-aux/install-reloc: Compile also c-ctype.c.
103227         * build-aux/relocatable.sh.in: New file.
103228         * doc/relocatable.texi: New file.
103229         * doc/relocatable-maint.texi: New file.
103230         * doc/gnulib.texi: Include relocatable-maint.texi.
103231         * lib/progreloc.c: Include unistd.h unconditionally.
103232         * lib/relocwrapper.c: Include unistd.h unconditionally.
103233         Include c-ctype.h.
103234         (add_dotbin): Use c_tolower.
103235         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103236         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103237         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103238         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103239         to m4/relocatable-lib.m4.
103240         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103241         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103242         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103243         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103244         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103245         * modules/relocatable: New file.
103246         * modules/relocatable-lib: New file.
103247         * modules/relocatable-script: New file.
103249 2007-02-28  Bruno Haible  <bruno@clisp.org>
103251         Import --enable-relocatable infrastructure.
103252         * build-aux/config.libpath: New file, from GNU gettext.
103253         * build-aux/install-reloc: New file, from GNU gettext.
103254         * build-aux/reloc-ldflags: New file, from GNU gettext.
103255         * lib/relocatable.h: New file, from GNU gettext.
103256         * lib/relocatable.c: New file, from GNU gettext.
103257         * lib/relocwrapper.c: New file, from GNU gettext.
103258         * m4/relocatable.m4: New file, from GNU gettext.
103260 2007-02-28  Bruno Haible  <bruno@clisp.org>
103262         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103264         * modules/xreadlink: New file, from GNU gettext with modifications.
103265         * lib/xreadlink.c: New file, from GNU gettext.
103266         * lib/xreadlink.h: Add comments.
103267         (xreadlink): New declaration.
103269         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103270         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103271         lib/xreadlink-with-size.c.
103272         (configure.ac): Remove gl_XREADLINK invocation.
103273         (Makefile.am): Augment lib_SOURCES.
103274         * m4/xreadlink.m4: Remove file.
103275         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103276         (xreadlink_with_size): Renamed from xreadink.
103277         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103278         * modules/canonicalize (Depends-on): Replace xreadlink with
103279         xreadlink-with-size.
103280         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103282 2007-02-25  Jim Meyering  <jim@meyering.net>
103284         * build-aux/announce-gen: When complaining about excess arguments,
103285         list them.
103287 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103289         * README: Document signed integer overflow situation more
103290         accurately.
103292 2007-02-25  Bruno Haible  <bruno@clisp.org>
103294         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103295         'a' or 'A' conversion.
103297 2007-02-25  Bruno Haible  <bruno@clisp.org>
103299         * modules/filename: Renamed from modules/pathname.
103300         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103301         lib/concatpath.c with lib/concat-filename.c.
103302         (Makefile.am): Update.
103303         (Include): Replace pathname.h with filename.h.
103304         * lib/filename.h: Renamed from lib/pathname.h.
103305         (concatenated_filename): Renamed from concatenated_pathname.
103306         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103307         (concatenated_filename): Renamed from concatenated_pathname.
103308         * lib/findprog.c: Include filename.h instead of pathname.h.
103309         (find_in_path): Update.
103310         * lib/javacomp.c: Include filename.h instead of pathname.h.
103311         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103312         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103313         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103314         is_oldgcj_14_13_usable, is_javac_usable): Update.
103315         * lib/javaexec.c: Include filename.h instead of pathname.h.
103316         (execute_java_class): Update.
103317         * modules/findprog: Update.
103318         * modules/javacomp: Update.
103319         * modules/javaexec: Update.
103320         * MODULES.html.sh (File system functions): Add 'filename', remove
103321         'pathname'.
103323 2007-02-25  Bruno Haible  <bruno@clisp.org>
103325         * modules/printf-frexpl-tests: New file.
103326         * tests/test-printf-frexpl.c: New file.
103328         * modules/printf-frexpl: New file.
103329         * lib/printf-frexpl.h: New file.
103330         * lib/printf-frexpl.c: New file.
103331         * m4/printf-frexpl.m4: New file.
103333 2007-02-25  Bruno Haible  <bruno@clisp.org>
103335         * modules/printf-frexp-tests: New file.
103336         * tests/test-printf-frexp.c: New file.
103338         * modules/printf-frexp: New file.
103339         * lib/printf-frexp.h: New file.
103340         * lib/printf-frexp.c: New file.
103341         * m4/printf-frexp.m4: New file.
103343 2007-02-25  Bruno Haible  <bruno@clisp.org>
103345         Assume automake >= 1.10 for the tests.
103346         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103347         * modules/arctwo-tests: Likewise.
103348         * modules/argp-tests: Likewise.
103349         * modules/avltree-list-tests: Likewise.
103350         * modules/avltree-oset-tests: Likewise.
103351         * modules/avltreehash-list-tests: Likewise.
103352         * modules/carray-list-tests: Likewise.
103353         * modules/crc-tests: Likewise.
103354         * modules/des-tests: Likewise.
103355         * modules/gc-arcfour-tests: Likewise.
103356         * modules/gc-arctwo-tests: Likewise.
103357         * modules/gc-des-tests: Likewise.
103358         * modules/gc-hmac-md5-tests: Likewise.
103359         * modules/gc-hmac-sha1-tests: Likewise.
103360         * modules/gc-md2-tests: Likewise.
103361         * modules/gc-md4-tests: Likewise.
103362         * modules/gc-md5-tests: Likewise.
103363         * modules/gc-pbkdf2-sha1-tests: Likewise.
103364         * modules/gc-rijndael-tests: Likewise.
103365         * modules/gc-sha1-tests: Likewise.
103366         * modules/gc-tests: Likewise.
103367         * modules/getaddrinfo-tests: Likewise.
103368         * modules/hmac-md5-tests: Likewise.
103369         * modules/hmac-sha1-tests: Likewise.
103370         * modules/linked-list-tests: Likewise.
103371         * modules/linkedhash-list-tests: Likewise.
103372         * modules/lock-tests: Likewise.
103373         * modules/md2-tests: Likewise.
103374         * modules/md4-tests: Likewise.
103375         * modules/md5-tests: Likewise.
103376         * modules/rbtree-list-tests: Likewise.
103377         * modules/rbtree-oset-tests: Likewise.
103378         * modules/rbtreehash-list-tests: Likewise.
103379         * modules/read-file-tests: Likewise.
103380         * modules/rijndael-tests: Likewise.
103381         * modules/stdint-tests: Likewise.
103382         * modules/tls-tests: Likewise.
103384 2007-02-24  Bruno Haible  <bruno@clisp.org>
103386         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103387         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103388         function; instead check whether isnan with a double argument links.
103389         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103390         function; instead check whether isnan with a 'long double' argument
103391         links.
103392         Reported by Eric Blake <ebb9@byu.net>.
103394 2007-02-24  Bruno Haible  <bruno@clisp.org>
103396         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103397         defined.
103398         * lib/isnanl.c: Remove all code. Just include isnan.c.
103399         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103401 2007-02-25  Jim Meyering  <jim@meyering.net>
103403         Avoid conflicting types for 'unsetenv' on FreeBSD.
103404         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103405         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103406         in stdlib.h.
103408 2007-02-24  Bruno Haible  <bruno@clisp.org>
103410         * modules/isnanl-nolibm-tests: New file.
103411         * tests/test-isnanl.c: New file.
103413         * modules/isnanl-nolibm: New file.
103414         * lib/isnanl.h: New file.
103415         * lib/isnanl.c: New file.
103416         * m4/isnanl.m4: New file.
103418 2007-02-24  Bruno Haible  <bruno@clisp.org>
103420         * modules/isnan-nolibm-tests: New file.
103421         * tests/test-isnan.c: New file.
103423         * modules/isnan-nolibm: New file.
103424         * lib/isnan.h: New file.
103425         * lib/isnan.c: New file.
103426         * m4/isnan.m4: New file.
103428 2007-02-24  Bruno Haible  <bruno@clisp.org>
103430         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103431         assume that an exponent fits in 20 bits.
103433 2007-02-24  Jim Meyering  <jim@meyering.net>
103435         * m4/regex.m4: Update the description of the configure-time option,
103436         --without-included-regex, to state accurately what the defaults are,
103437         and perhaps to give people an idea why using this option is risky.
103439 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103442         loops on small arguments.  This attempts to avoid the problem
103443         Bruno Haible reported for AIX 4.3.2 in
103444         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103446 2007-02-23  Bruno Haible  <bruno@clisp.org>
103448         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103449         Needed for help2man.
103451 2007-02-23  Karl Berry  <karl@gnu.org>
103453         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103454         exists, foo.h should be cvs-ignored, not committed.
103456 2007-02-23  Eric Blake  <ebb9@byu.net>
103458         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103459         * lib/stat-time.h (includes): Likewise.
103460         * lib/utimecmp.c (includes): Likewise.
103461         * lib/utimens.h (includes): Likewise.
103462         * lib/getdate.y (includes): Also include "timespec.h" for use
103463         internal to the module.
103464         * modules/utimens (Depends-on): Revert yesterday's patch.
103465         * modules/nanosleep (Depends-on): Add missing dependency.
103467 2007-02-22  Bruno Haible  <bruno@clisp.org>
103469         * lib/glob.c: Don't include getlogin_r.h.
103471 2007-02-22  Jim Meyering  <jim@meyering.net>
103473         * modules/utimens (Depends-on): Add timespec, required for
103474         utimens.h's inclusion of timespec.h.
103476 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103478         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103479         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103480         Schwab in
103481         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103482         I'll try to think of a better way to fix the Solaris problem.
103484         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103485         like glibc; on Solaris 10, it fails with errno == EINVAL.
103486         POSIX says the behavior is unspecified if the first argument is NULL,
103487         so play it safe and never pass NULL to the system getcwd.
103489 2007-02-21  Jim Meyering  <jim@meyering.net>
103491         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103492         of gettimeofday.  It would conflict with the one now always
103493         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103494         an IRIX 6.5 build failure.
103496 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103498         Minor fixups to port to Solaris 10 with Sun C 5.8.
103499         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103500         * modules/getcwd (Depends-on): Add dirfd.
103501         * lib/putenv.c (putenv): #undef it.
103502         (rpl_putenv): New decl.
103503         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103505 2007-02-20  Bruno Haible  <bruno@clisp.org>
103507         * modules/stdio-tests: New file.
103508         * tests/test-stdio.c: New file.
103510         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103511         (Depends-on): Add stdio.
103512         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103513         (Include): Use <stdio.h> instead of vsnprintf.h.
103514         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103515         HAVE_DECL_VSNPRINTF.
103516         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103518         * modules/snprintf (Files): Remove lib/snprintf.h.
103519         (Depends-on): Add stdio.
103520         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103521         (Include): Use <stdio.h> instead of snprintf.h.
103522         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103523         HAVE_DECL_SNPRINTF.
103524         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103525         * lib/getaddrinfo.c: Likewise.
103527         * modules/stdio: New file.
103528         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103529         * lib/snprintf.h: Remove file.
103530         * lib/vsnprintf.h: Remove file.
103531         * lib/.cppi-disable: Remove snprintf.h.
103532         * m4/stdio_h.m4: New file.
103533         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103535 2007-02-20  Jim Meyering  <jim@meyering.net>
103537         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103538         used by e.g., mingw.  From Bruno Haible.
103540 2007-02-19  Bruno Haible  <bruno@clisp.org>
103542         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103543         warnings.
103544         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103546 2007-02-19  Bruno Haible  <bruno@clisp.org>
103548         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103549         from mingw users.
103551 2007-02-19  Bruno Haible  <bruno@clisp.org>
103553         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103554         warnings.
103555         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103557 2007-02-19  Jim Meyering  <jim@meyering.net>
103559         Don't use FD after a successful "fdopendir (fd)".
103560         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103561         Reset it by calling dirfd on the just-obtained DIR*.
103563         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103564         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103566 2007-02-18  Bruno Haible  <bruno@clisp.org>
103568         * lib/readlink.c: Include <unistd.h>.
103569         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103570         HAVE_READLINK.
103571         * modules/readlink (Depends-on): Add unistd.
103572         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103573         (Include): Add <unistd.h>.
103575         * lib/getlogin_r.h: Remove file.
103576         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103577         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103578         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103579         HAVE_DECL_GETLOGIN_R.
103580         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103581         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103582         (Include): Use <unistd.h> instead of getlogin_r.h.
103584         * lib/getcwd.h: Remove file.
103585         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103586         * lib/xgetcwd.c: Likewise.
103587         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103588         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103589         * modules/getcwd (Files): Remove lib/getcwd.h.
103590         (Depends-on): Add unistd.
103591         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103592         (Include): Use <unistd.h> instad of getcwd.h.
103594         * lib/ftruncate.c: Include <unistd.h> first.
103595         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103596         Set HAVE_FTRUNCATE.
103597         * modules/ftruncate (Depends-on): Add unistd.
103598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103600         * lib/fchdir.c: Include <unistd.h> first.
103601         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103603         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103604         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103605         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103607         * lib/dup2.c: Include <unistd.h> first.
103608         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103609         HAVE_DUP2.
103610         * modules/dup2 (Depends-on): Add unistd.
103611         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103613         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103614         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103615         REPLACE_CHOWN. Don't define chown as a macro here.
103616         * modules/chown (Depends-on): Add unistd.
103617         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103619         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103620         Add definition for GL_LINK_WARNING.
103621         (chown, dup2): New declarations.
103622         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103623         link warning.
103624         (ftruncate): New declaration.
103625         (getcwd): New declaration, taken from old getcwd.h.
103626         (getlogin_r): New declaration, taken from old getlogin_r.h.
103627         (readlink): New declaration.
103628         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103629         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103630         (gl_PREREQ_UNISTD): Remove macro.
103631         (gl_UNISTD_MODULE_INDICATOR): New macro.
103632         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103633         many new variables. Don't set UNISTD_H.
103634         * modules/unistd (Description): Change.
103635         (Depends-on): Add link-warning.
103636         (configure.ac): Update.
103637         (Makefile.am): Create unistd.h always. Substitute many new variables
103638         into it.
103640 2007-02-18  Bruno Haible  <bruno@clisp.org>
103642         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103643         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103644         HAVE_GETSUBOPT.
103645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103646         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103647         * lib/getsubopt.h: Remove file.
103648         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103649         (Depends-on): Add stdlib.
103650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103651         (Includes): Use <stdlib.h> instead of getsubopt.h.
103652         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103653         Set HAVE_GETSUBOPT.
103654         * lib/getsubopt.c: Don't include getsubopt.h.
103656 2007-02-18  Bruno Haible  <bruno@clisp.org>
103658         * modules/fchdir (Depends-on): Add dup2.
103660 2007-02-18  Bruno Haible  <bruno@clisp.org>
103662         * lib/stdlib_.h: Handle glibc's special invocation convention
103663         specially.
103665 2007-02-18  Bruno Haible  <bruno@clisp.org>
103667         * modules/stdlib-tests: New file.
103668         * tests/test-stdlib.c: New file.
103670         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103671         (Depends-on): Add stdlib.
103672         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103673         (Includes): Use <stdlib.h> instead of mkstemp.h.
103674         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103675         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103676         * lib/mkstemp.c: Don't include mkstemp.h.
103677         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103678         * lib/stdlib--.h: Don't include mkstemp.h.
103680         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103681         (Depends-on): Add stdlib.
103682         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103683         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103684         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103685         HAVE_MKDTEMP.
103686         * lib/mkdtemp.c: Don't include mkdtemp.h.
103687         * lib/clean-temp.c: Don't include mkdtemp.h.
103689         * modules/exit (Files): Remove lib/exit.h.
103690         (Depends-on): Add stdlib.
103691         (Makefile.am): Remove lib_SOURCES.
103692         (Include): Use <stdlib.h> instead of exit.h.
103693         * lib/argmatch.c: Don't include exit.h.
103694         * lib/execute.c: Likewise.
103695         * lib/pagealign_alloc.c: Likewise.
103696         * lib/pipe.c: Likewise.
103697         * lib/wait-process.c: Likewise.
103698         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103699         * lib/exitfail.c: Likewise.
103700         * lib/savewd.c: Likewise.
103701         * lib/xsetenv.c: Likewise.
103703         * modules/stdlib: New file.
103704         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103705         and extra comments about mkstemp().
103706         * lib/exit.h: Remove file.
103707         * lib/mkdtemp.h: Remove file.
103708         * lib/mkstemp.h: Remove file.
103709         * m4/stdlib_h.m4: New file.
103710         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103712 2007-02-18  Bruno Haible  <bruno@clisp.org>
103714         * modules/math-tests: New file.
103715         * tests/test-math.c: New file.
103717         * modules/math: New file.
103718         * modules/mathl (Files): Remove lib/mathl.h.
103719         (Depends-on): Add math.
103720         (Makefile.am): Don't mention mathl.h.
103721         (Include): Use <math.h> instead of mathl.h.
103722         * lib/math_.h: New file.
103723         * lib/mathl.h: Remove file.
103724         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
103725         mathl.h.
103726         * lib/asinl.c: Likewise.
103727         * lib/atanl.c: Likewise.
103728         * lib/ceill.c: Likewise.
103729         * lib/cosl.c: Likewise.
103730         * lib/expl.c: Likewise.
103731         * lib/floorl.c: Likewise.
103732         * lib/frexpl.c: Likewise.
103733         * lib/ldexpl.c: Likewise.
103734         * lib/logl.c: Likewise.
103735         * lib/sincosl.c: Likewise.
103736         * lib/sinl.c: Likewise.
103737         * lib/sqrtl.c: Likewise.
103738         * lib/tanl.c: Likewise.
103739         * lib/trigl.c: Likewise.
103740         * m4/math_h.m4: New file.
103741         * MODULES.html.sh (Mathematics): Add math.
103743 2007-02-17  Bruno Haible  <bruno@clisp.org>
103745         * modules/wctype-tests: New file.
103746         * tests/test-wctype.c: New file.
103748         * modules/wchar-tests: New file.
103749         * tests/test-wchar.c: New file.
103751         * modules/unistd-tests: New file.
103752         * tests/test-unistd.c: New file.
103754         * modules/time-tests: New file.
103755         * tests/test-time.c: New file.
103757         * modules/sysexits-tests: New file.
103758         * tests/test-sysexits.c: New file.
103760         * modules/sys_time-tests: New file.
103761         * tests/test-sys_time.c: New file.
103763         * modules/sys_stat-tests: New file.
103764         * tests/test-sys_stat.c: New file.
103766         * modules/sys_socket-tests: New file.
103767         * tests/test-sys_socket.c: New file.
103769         * modules/sys_select-tests: New file.
103770         * tests/test-sys_select.c: New file.
103772         * modules/string-tests: New file.
103773         * tests/test-string.c: New file.
103775         * modules/stdbool-tests: New file.
103776         * tests/test-stdbool.c: New file.
103778         * modules/netinet_in-tests: New file.
103779         * tests/test-netinet_in.c: New file.
103781         * modules/inttypes-tests: New file.
103782         * tests/test-inttypes.c: New file.
103784         * modules/fcntl-tests: New file.
103785         * tests/test-fcntl.c: New file.
103787         * modules/byteswap-tests: New file.
103788         * tests/test-byteswap.c: New file.
103790         * modules/arpa_inet-tests: New file.
103791         * tests/test-arpa_inet.c: New file.
103793 2007-02-17  Bruno Haible  <bruno@clisp.org>
103795         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
103796         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
103797         if the corresponding module is not enabled. Emit link warnings if
103798         the function is used nevertheless.
103799         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
103800         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
103801         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
103802         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
103803         * modules/inttypes (Depends-on): Add link-warning.
103804         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103805         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
103806         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
103807         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
103808         * modules/imaxdiv (configure.ac): Likewise.
103809         * modules/strtoimax (configure.ac): Likewise.
103810         * modules/strtoumax (configure.ac): Likewise.
103812 2007-02-17  Bruno Haible  <bruno@clisp.org>
103814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
103815         gl_STRING_MODULE_INDICATOR_DEFAULTS.
103816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
103817         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
103819 2007-02-17  Bruno Haible  <bruno@clisp.org>
103821         * modules/link-warning: New file.
103822         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
103823         * lib/string_.h (GL_LINK_WARNING): Remove definition.
103824         * modules/string (Depends-on): Add link-warning.
103825         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103826         string.h.
103827         * MODULES.html.sh (Support for building libraries and executables): Add
103828         link-warning.
103830 2007-02-17  Bruno Haible  <bruno@clisp.org>
103832         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
103833         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
103834         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
103835         long lines.
103837 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
103838             Bruno Haible  <bruno@clisp.org>
103840         * modules/tmpfile: New file.
103841         * lib/tmpfile.c: New file.
103842         * m4/tmpfile.m4: New file.
103843         * MODULES.html.sh (func_all_modules): New section "Input/output".
103845 2007-02-15  Bruno Haible  <bruno@clisp.org>
103847         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
103848         (supports_delete_on_close): New function.
103849         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
103851 2007-02-14  Bruno Haible  <bruno@clisp.org>
103853         * modules/mbspcasecmp-tests: New file.
103854         * tests/test-mbspcasecmp.sh: New file.
103855         * tests/test-mbspcasecmp.c: New file.
103857         New module mbspcasecmp.
103858         * modules/mbspcasecmp: New file.
103859         * lib/mbspcasecmp.c: New file.
103860         * lib/string_.h (strncasecmp): Change warning message.
103861         (mbspcasecmp): New declaration.
103862         * m4/mbspcasecmp.m4: New file.
103863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103864         GNULIB_MBSPCASECMP.
103865         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
103866         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
103868 2007-02-14  Bruno Haible  <bruno@clisp.org>
103870         * modules/mbsncasecmp-tests: New file.
103871         * tests/test-mbsncasecmp.sh: New file.
103872         * tests/test-mbsncasecmp.c: New file.
103874         New module mbsncasecmp.
103875         * modules/mbsncasecmp: New file.
103876         * lib/mbsncasecmp.c: New file.
103877         * lib/string_.h (mbsncasecmp): New declaration.
103878         * m4/mbsncasecmp.m4: New file.
103879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
103880         GNULIB_MBSNCASECMP.
103881         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
103882         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
103884 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
103886         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
103887         Verify that it doesn't overlap with our flags.
103888         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
103889         do not have the desired effect in multibyte locales; instead, use
103890         mbscasecmp.
103891         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
103892         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
103893         we don't require GNU fnmatch ourselves (if our users require it, they
103894         should do so explicitly).
103896         Fix regex code so it doesn't rely on strcasecmp.
103897         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
103898         Otherwise, include gnulib's langinfo.h.
103899         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
103900         undesirable behavior in non-C locales.  Instead, rely on localecharset.
103901         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
103902         * modules/regex (FILES): Remove m4/codeset.m4.
103903         (Depends-on): Add localcharset.  Remove strcase.
103905 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103907         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
103908         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
103910 2007-02-13  Bruno Haible  <bruno@clisp.org>
103912         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
103913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103915 2007-02-12  Bruno Haible  <bruno@clisp.org>
103917         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
103918         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
103919         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
103920         time warning rather than a link error.
103922 2007-02-12  Bruno Haible  <bruno@clisp.org>
103924         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
103925         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
103926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103928 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
103930         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
103931         args, not 2.
103933 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
103935         New module 'time', so that apps can include <time.h> as per
103936         POSIX and GNU instead of separate include files like time_r.h
103937         and timegm.h.  This implementation tries out a simpler approach
103938         for replacing decls in standard include files (as compared to
103939         the string module), somewhat as an experiment.
103941         * config/srclist.txt: Comment out mktime.c for now.
103942         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
103943         since it doesn't apply any more.  Use generic wording instead.
103944         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
103945         'time'.
103946         * lib/time_.h, m4/time_h.m4, modules/time: New files.
103947         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
103948         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
103949         Don't include <sys/types.h>; no longer needed since we assume C89.
103950         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
103951         * lib/strftime.c: Likewise.
103952         * lib/time_r.c: Likewise.
103953         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
103954         * lib/nanosleep.c: Include <time.h> first, to check interface.
103955         * lib/strptime.c: Likewise.
103956         * lib/time_r.c: Likewise.
103957         * lib/timegm.c: Likewise.
103958         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
103959         needed.
103960         * lib/timegm.c: Don't include timegm.h; no longer needed.
103961         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
103962         time.h now handles any problems in that area.
103963         (struct timespec, nanosleep): Remove; time.h now arranges for these.
103964         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
103965         that time.h defines struct timespec.
103966         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
103967         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
103968         handles that.
103969         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
103970         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
103971         needed.  Set REPLACE_LOCALTIME.
103972         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
103973         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
103974         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
103975         nanosleep; time_h.m4 now does that.  Don't require
103976         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
103977         module handles this now.
103978         * modules/getdate (Depends-on): Remove timespec.  Add time.
103979         * modules/nanosleep (Depends-on): Likewise.
103980         * modules/stat-time (Depends-on): Likewise.
103981         * modules/nanosleep (Include): Include time.h, not timespec.h.
103982         * modules/strptime (Files): Remove lib/strptime.h.
103983         (Depends-on): Add extensions, time.
103984         (Include): Include time.h, not strptime.h.
103985         * modules/time_r (Files): Remove lib/time_r.h.
103986         (Depends-on): Add time.
103987         (Include): Include time.h, not time_r.h.
103988         * modules/timegm: Likewise.
103989         * modules/timespec (Description): Now does timespec-related decls
103990         of our own, instead of struct timespec itself.
103991         (Depends-on): Add time; remove extensions.
103992         (Maintainer): Add self.
103993         * modules/utimecmp (Depends-on): Add time; remove timespec.
103994         * modules/utimens (Depends-on): Likewise.
103995         * modules/xnanosleep (Depends-on): Likewise.
103997 2007-02-11  Bruno Haible  <bruno@clisp.org>
103999         * lib/c-strstr.c: Include allocsa.h.
104000         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104001         * lib/c-strcasestr.c: Include allocsa.h.
104002         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104003         * lib/strcasestr.c: Include allocsa.h.
104004         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104005         * lib/mbsstr.c: Include allocsa.h.
104006         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104007         allocsa/freesa instead of malloc/free.
104008         * lib/mbscasestr.c: Include allocsa.h.
104009         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104010         allocsa/freesa instead of malloc/free.
104011         * modules/c-strstr (Depends-on): Add allocsa.
104012         * modules/c-strcasestr (Depends-on): Likewise.
104013         * modules/strcasestr (Depends-on): Likewise.
104014         * modules/mbsstr (Depends-on): Likewise.
104015         * modules/mbscasestr (Depends-on): Likewise.
104017 2007-02-11  Bruno Haible  <bruno@clisp.org>
104019         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104021         * modules/mbsspn-tests: New file.
104022         * tests/test-mbsspn.sh: New file.
104023         * tests/test-mbsspn.c: New file.
104025 2007-02-11  Bruno Haible  <bruno@clisp.org>
104027         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104029         * modules/mbspbrk-tests: New file.
104030         * tests/test-mbspbrk.sh: New file.
104031         * tests/test-mbspbrk.c: New file.
104033 2007-02-11  Bruno Haible  <bruno@clisp.org>
104035         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104036         unneeded cast.
104038         * modules/mbscspn-tests: New file.
104039         * tests/test-mbscspn.sh: New file.
104040         * tests/test-mbscspn.c: New file.
104042 2007-02-11  Bruno Haible  <bruno@clisp.org>
104044         * modules/mbscasecmp-tests: New file.
104045         * tests/test-mbscasecmp.sh: New file.
104046         * tests/test-mbscasecmp.c: New file.
104048 2007-02-11  Bruno Haible  <bruno@clisp.org>
104050         Ensure O(n) worst-case complexity of mbscasestr.
104051         * lib/mbscasestr.c: Include stdbool.h.
104052         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104053         functions.
104054         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104055         the bookkeeping indicates that it's worth it.
104056         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104058         * modules/mbscasestr-tests: New file.
104059         * tests/test-mbscasestr1.c: New file.
104060         * tests/test-mbscasestr2.sh: New file.
104061         * tests/test-mbscasestr2.c: New file.
104062         * tests/test-mbscasestr3.sh: New file.
104063         * tests/test-mbscasestr3.c: New file.
104064         * tests/test-mbscasestr4.sh: New file.
104065         * tests/test-mbscasestr4.c: New file.
104066         * m4/locale-tr.m4: New file.
104068 2007-02-11  Bruno Haible  <bruno@clisp.org>
104070         Ensure O(n) worst-case complexity of mbsstr.
104071         * lib/mbsstr.c: Include stdbool.h.
104072         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104073         functions.
104074         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104075         bookkeeping indicates that it's worth it.
104076         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104078         * modules/mbsstr-tests: New file.
104079         * tests/test-mbsstr1.c: New file.
104080         * tests/test-mbsstr2.sh: New file.
104081         * tests/test-mbsstr2.c: New file.
104082         * tests/test-mbsstr3.sh: New file.
104083         * tests/test-mbsstr3.c: New file.
104084         * m4/locale-fr.m4: New file.
104086 2007-02-11  Bruno Haible  <bruno@clisp.org>
104088         * lib/mbsrchr.c (mbsrchr): Fix bug.
104090         * modules/mbsrchr-tests: New file.
104091         * tests/test-mbsrchr.sh: New file.
104092         * tests/test-mbsrchr.c: New file.
104094 2007-02-11  Bruno Haible  <bruno@clisp.org>
104096         * lib/mbschr.c (mbschr): Fix bug.
104098         * modules/mbschr-tests: New file.
104099         * tests/test-mbschr.sh: New file.
104100         * tests/test-mbschr.c: New file.
104101         * m4/locale-zh.m4: New file.
104103 2007-02-11  Bruno Haible  <bruno@clisp.org>
104105         Support for copying multibyte string iterators.
104106         * lib/mbiter.h: Include <string.h>.
104107         (mbiter_multi_copy): New function.
104108         (mbi_copy): New macro.
104109         * lib/mbuiter.h: Include <string.h>.
104110         (mbuiter_multi_copy): New function.
104111         (mbui_copy): New macro.
104113 2007-02-11  Bruno Haible  <bruno@clisp.org>
104115         New module mbslen.
104116         * modules/mbslen: New file.
104117         * lib/mbslen.c: New file.
104118         * lib/string_.h (mbslen): New declaration.
104119         * m4/mbslen.m4: New file.
104120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104121         GNULIB_MBSLEN.
104122         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104123         * MODULES.html.sh (Internationalization functions): Add mbslen.
104125 2007-02-11  Bruno Haible  <bruno@clisp.org>
104127         Ensure O(n) worst-case complexity of strcasestr substitute.
104128         * lib/strcasestr.c: Include stdbool.h.
104129         (knuth_morris_pratt): New function.
104130         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104131         bookkeeping indicates that it's worth it.
104132         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104134         * modules/strcasestr-tests: New file.
104135         * tests/test-strcasestr.c: New file.
104137 2007-02-11  Bruno Haible  <bruno@clisp.org>
104139         Ensure O(n) worst-case complexity of c_strcasestr.
104140         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104141         (knuth_morris_pratt): New function.
104142         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104143         the bookkeeping indicates that it's worth it.
104144         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104146         * modules/c-strcasestr-tests: New file.
104147         * tests/test-c-strcasestr.c: New file.
104149 2007-02-11  Bruno Haible  <bruno@clisp.org>
104151         Ensure O(n) worst-case complexity of c_strstr.
104152         * lib/c-strstr.c: Include stdbool.h, string.h.
104153         (knuth_morris_pratt): New function.
104154         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104155         bookkeeping indicates that it's worth it.
104156         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104158         * lib/c-strstr.c: Complete rewrite for maintainability.
104160         * modules/c-strstr-tests: New file.
104161         * tests/test-c-strstr.c: New file.
104163 2007-02-11  Bruno Haible  <bruno@clisp.org>
104165         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104166         5.2.1 and earlier, whereby \055 was treated just like the range
104167         delimiter '-'.
104168         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104170 2007-02-08  Bruno Haible  <bruno@clisp.org>
104172         * modules/regex (Depends-on): Add stdbool.
104173         Reported by Dalibor Topic <robilad@kaffe.org>.
104175 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104177         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104178         Prefer returning from main to exiting from it.
104179         Remove unnecessary parens after sizeof.
104181 2007-02-05  Bruno Haible  <bruno@clisp.org>
104183         New module mbssep.
104184         * modules/mbssep: New file.
104185         * lib/mbssep.c: New file.
104186         * lib/string_.h (strsep): Add a conditional link warning.
104187         (mbssep): New declaration.
104188         * m4/mbssep.m4: New file.
104189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104190         GNULIB_MBSSEP.
104191         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104192         * MODULES.html.sh (Internationalization functions): Add mbssep.
104194 2007-02-05  Bruno Haible  <bruno@clisp.org>
104196         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104197         Optimize search in case of 1 delimiter.
104199 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104201         * lib/acl.h: Include sys/types.h before sys/acl.h.
104203 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104205         Merge upstream fix for glibc bugzilla #3957:
104207         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104209         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104210         bit for RE_HAT_LISTS_NOT_NEWLINE.
104211         (build_charclass_op): Remove bogus comment.
104213 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104215         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104217 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104219         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104220         * lib/memmem.c [!defined _LIBC]: Include config.h.
104222 2007-02-04  Bruno Haible  <bruno@clisp.org>
104224         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104225         warning message.
104227 2007-02-04  Bruno Haible  <bruno@clisp.org>
104229         New module mbstok_r.
104230         * modules/mbstok_r: New file.
104231         * lib/mbstok_r.c: New file.
104232         * lib/string_.h (strtok_r): Change argument names to match the
104233         comments. Add a conditional link warning.
104234         (mbstok_r): New declaration.
104235         * m4/mbstok_r.m4: New file.
104236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104237         GNULIB_MBSTOK_R.
104238         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104239         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104241 2007-02-04  Bruno Haible  <bruno@clisp.org>
104243         New module mbsspn.
104244         * modules/mbsspn: New file.
104245         * lib/mbsspn.c: New file.
104246         * lib/string_.h (strspn): Add a conditional link warning.
104247         (mbsspn): New declaration.
104248         * m4/mbsspn.m4: New file.
104249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104250         GNULIB_MBSSPN.
104251         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104252         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104254 2007-02-04  Bruno Haible  <bruno@clisp.org>
104256         New module mbspbrk.
104257         * modules/mbspbrk: New file.
104258         * lib/mbspbrk.c: New file.
104259         * lib/string_.h (strpbrk): Add a conditional link warning.
104260         (mbspbrk): New declaration.
104261         * m4/mbspbrk.m4: New file.
104262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104263         GNULIB_MBSPBRK.
104264         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104265         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104267 2007-02-04  Bruno Haible  <bruno@clisp.org>
104269         New module mbscspn.
104270         * modules/mbscspn: New file.
104271         * lib/mbscspn.c: New file.
104272         * lib/string_.h (strcspn): Add a conditional link warning.
104273         (mbscspn): New declaration.
104274         * m4/mbscspn.m4: New file.
104275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104276         GNULIB_MBSCSPN.
104277         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104278         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104280 2007-02-04  Bruno Haible  <bruno@clisp.org>
104282         New module mbscasestr, reduced goal of strcasestr.
104283         * modules/mbscasestr: New file.
104284         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104285         (mbscasestr): Renamed from strcasestr.
104286         * lib/strcasestr.c: Don't include mbuiter.h.
104287         (strcasestr): Remove support for multibyte locales.
104288         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104289         Change the conditional link warning.
104290         (mbscasestr): New declaration.
104291         * m4/mbscasestr.m4: New file.
104292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104293         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104294         REPLACE_STRCASESTR.
104295         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104297         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104298         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104299         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104300         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104301         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104302         (Depends-on): Remove mbuiter.
104303         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104305 2007-02-04  Bruno Haible  <bruno@clisp.org>
104307         Simplify handling of strncasecmp.
104308         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104309         the conditional link warning.
104310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104311         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104312         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104313         * modules/strcase (configure.ac): Don't invoke
104314         gl_STRING_MODULE_INDICATOR.
104315         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104317 2007-02-04  Bruno Haible  <bruno@clisp.org>
104319         New module mbscasecmp, reduced goal of strcasecmp.
104320         * modules/mbscasecmp: New file.
104321         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104322         (mbscasecmp): Renamed from strcasecmp.
104323         * lib/strcasecmp.c: Don't include mbuiter.h.
104324         (strcasecmp): Remove support for multibyte locales.
104325         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104326         Change the conditional link warning.
104327         (mbscasecmp): New declaration.
104328         * m4/mbscasecmp.m4: New file.
104329         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104330         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104331         REPLACE_STRCASECMP.
104332         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104334         GNULIB_MBSCASECMP.
104335         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104336         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104337         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104338         (Depends-on): Remove mbuiter.
104339         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104341 2007-02-04  Bruno Haible  <bruno@clisp.org>
104343         New module mbsstr. Remove module strstr.
104344         * modules/mbsstr: New file.
104345         * modules/strstr: Remove file.
104346         * lib/mbsstr.c: Renamed from lib/strstr.c.
104347         (mbsstr): Renamed from strstr.
104348         * lib/string_.h (strstr): Remove declaration. Change the conditional
104349         link warning.
104350         (mbsstr): New declaration.
104351         * m4/mbsstr.m4: New file.
104352         * m4/strstr.m4: Remove file.
104353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104354         REPLACE_STRSTR.
104355         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104356         Don't initialize GNULIB_STRSTR.
104357         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104358         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104359         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104360         (Support for systems lacking ANSI C 89): Remove strstr.
104362 2007-02-04  Bruno Haible  <bruno@clisp.org>
104364         New module mbsrchr.
104365         * modules/mbsrchr: New file.
104366         * lib/mbsrchr.c: New file.
104367         * lib/string_.h (strrchr): Add a conditional link warning.
104368         (mbsrchr): New declaration.
104369         * m4/mbsrchr.m4: New file.
104370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104371         GNULIB_MBSRCHR.
104372         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104373         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104375 2007-02-04  Bruno Haible  <bruno@clisp.org>
104377         New module mbschr.
104378         * modules/mbschr: New file.
104379         * lib/mbschr.c: New file.
104380         * lib/string_.h (strchr): Add a conditional link warning.
104381         (mbschr): New declaration.
104382         * m4/mbschr.m4: New file.
104383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104384         GNULIB_MBSCHR.
104385         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104386         * MODULES.html.sh (Internationalization functions): Add mbschr.
104388 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104390         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104392         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104394 2007-02-04  Bruno Haible  <bruno@clisp.org>
104396         New module description section 'configure.ac-early'.
104397         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104398         (func_get_autoconf_early_snippet): New function.
104399         (func_import, func_create_testdir): Use it. Remove special cases for
104400         modules 'extensions' and 'lock'.
104401         * modules/extensions (configure.ac-early): Require
104402         gl_USE_SYSTEM_EXTENSIONS.
104403         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104405 2007-02-04  Bruno Haible  <bruno@clisp.org>
104407         Make use of gcj-4.3's -fsource and -ftarget option.
104408         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104409         and if so try the options -fsource and -ftarget.
104410         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104411         source_version, ftarget_option, target_version arguments.
104412         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104413         (is_envjavac_oldgcj_14_14_usable): Renamed from
104414         is_envjavac_gcj_14_14_usable.
104415         (is_envjavac_oldgcj_14_13_usable): Renamed from
104416         is_envjavac_gcj_14_13_usable.
104417         (is_gcj_present): Update.
104418         (is_gcj_43, is_gcj43_usable): New functions.
104419         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104420         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104421         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104422         try the options -fsource and -ftarget.
104424 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104426         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104427         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104428         larger value.
104430 2007-02-03  Jim Meyering  <jim@meyering.net>
104432         Give tools a better chance to allocate space for very large buffers.
104433         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104435         Make pwd and readlink work also when run with an unreadable parent dir
104436         on systems with openat support.
104437         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104438         provided getcwd function, even when we have openat support.
104439         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104441 2007-02-02  Bruno Haible  <bruno@clisp.org>
104443         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104444         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104445         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104446         portability problems if one of these functions is only used on specific
104447         platforms.
104448         Reported by Paul Eggert.
104450 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104452         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104453         is causing more trouble than it's curing.
104454         * lib/regex_internal.h (__mempcpy): Remove.
104455         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104456         (and make the code a tad smaller to boot).
104457         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104459 2007-02-02  Jim Meyering  <jim@meyering.net>
104461         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104462         section, not in the Makefile.am: one.
104464 2007-02-02  Eric Blake  <ebb9@byu.net>
104466         * lib/strchrnul.c: Always include config.h first.
104468         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104469         gnulib strstr is not necessary here.
104471 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104473         * m4/socklen.m4: Fix typo.
104475 2007-02-02  Eric Blake  <ebb9@byu.net>
104477         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104478         * modules/netinet_in (Makefile.am): Likewise.
104480 2007-02-01  Bruno Haible  <bruno@clisp.org>
104482         * lib/string_.h (GL_LINK_WARNING): New macro.
104483         (strcasecmp, strstr, strcasestr): If provided by the system,
104484         conditionally define as a macro that leads to a warning instead of to
104485         an error.
104486         (strncasecmp): Conditionally define as a macro that leads to a warning.
104488 2007-02-01  Karl Berry  <karl@gnu.org>
104490         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104492 2007-02-01  Bruno Haible  <bruno@clisp.org>
104494         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104495         renamings.
104497 2007-02-01  Eric Blake  <ebb9@byu.net>
104499         * modules/regex (Depends-on): Revert dependence on mempcpy.
104500         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104501         module's definition of mempcpy.
104502         Reported by Paul Eggert.
104504 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104506         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104507         the symbol XYZ before redefining it.  This fixes a problem with
104508         programs that don't use XYZ, when compiled on systems that define
104509         XYZ to something else.
104511 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104513         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104514         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104515         writeable to group or other and (2) is intended to have a special
104516         mode bit that is set or cleared.  In such a case, the directory
104517         should be neither group- nor other-writeable until the special
104518         mode bits are right.
104520 2007-01-31  Eric Blake  <ebb9@byu.net>
104522         * modules/mountlist (Depends-on): Add strstr.
104524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104525         bug.
104526         * modules/string (Makefile.am): Remove redundant replacement.
104527         * modules/regex (Depends-on): Add mempcpy.
104529 2007-01-31  Bruno Haible  <bruno@clisp.org>
104531         New module description field 'Link'.
104532         * gnulib-tool (func_usage): Document --extract-link-directive.
104533         (sed_extract_prog): Recognize 'Link' directive.
104534         (func_get_link_directive): New function.
104535         (func_import): Show summary of link directives.
104536         Handle --extract-link-directive option.
104537         * modules/acl (Link): New section.
104538         * modules/clock-time (Link): New section.
104539         * modules/euidaccess (Link): New section.
104540         * modules/gettext (Link): New section.
104541         * modules/iconv (Link): New section.
104542         * modules/lock (Link): New section.
104543         * modules/nanosleep (Link): New section.
104544         * modules/readline (Link): New section.
104546 2007-01-27  Bruno Haible  <bruno@clisp.org>
104548         Enforce the use of gnulib modules for unportable <string.h> functions.
104549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104550         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104551         (gl_HEADER_STRING_H_BODY): Require it.
104552         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104553         the symbol XYZ to one that gives a link error.
104554         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104555         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104556         * modules/mempcpy (configure.ac): Likewise.
104557         * modules/memrchr (configure.ac): Likewise.
104558         * modules/stpcpy (configure.ac): Likewise.
104559         * modules/stpncpy (configure.ac): Likewise.
104560         * modules/strcase (configure.ac): Likewise.
104561         * modules/strcasestr (configure.ac): Likewise.
104562         * modules/strchrnul (configure.ac): Likewise.
104563         * modules/strdup (configure.ac): Likewise.
104564         * modules/strndup (configure.ac): Likewise.
104565         * modules/strnlen (configure.ac): Likewise.
104566         * modules/strpbrk (configure.ac): Likewise.
104567         * modules/strsep (configure.ac): Likewise.
104568         * modules/strstr (configure.ac): Likewise.
104569         * modules/strtok_r (configure.ac): Likewise.
104571 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104573         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104575 2007-01-30  Jim Meyering  <jim@meyering.net>
104577         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104579 2007-01-29  Bruno Haible  <bruno@clisp.org>
104581         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104582         * lib/execute.c: Likewise.
104583         * lib/pipe.c: Likewise.
104584         * lib/printf-args.h: Likewise.
104585         * lib/printf-args.c: Likewise.
104586         * lib/printf-parse.c: Likewise.
104587         * lib/vasnprintf.c: Likewise.
104589 2007-01-29  Eric Blake  <ebb9@byu.net>
104591         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104592         declaration.
104594 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104596         * lib/strptime.h (strptime): Use 'restrict' for args where
104597         POSIX requires this.
104598         * lib/strptime.c (strptime): Likewise.
104599         Change license notice from LGPL to GPL, since gnulib-tool will
104600         change this as needed.
104601         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104602         defined.
104603         Include "strptime.h" first, to check interface.
104604         Do not #undef _LIBC and _NL_CURRENT.
104605         Do not include <stdlib.h>; no longer needed.
104606         Include "time_r.h" and declare ptime_locale_status
104607         only if _LIBC is not defined.
104608         (__P): Remove unused macro.
104609         (match_string): Bring back glibc version, but use it only if _LIBC
104610         is defined.
104611         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104612         Remove unnecessary assertion and abort() call.
104613         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104614         * m4/strptime.m4: Fix serial number comment.
104615         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104616         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104617         (Depends-on): Add time_r.
104619 2007-01-29  Bruno Haible  <bruno@clisp.org>
104621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104622         strptime.
104623         * modules/strptime (Depends-on): Add stdbool.
104624         * lib/strptime.h: Include <time.h> always. Add comments.
104626 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104628         * modules/strptime: New file.
104629         * lib/strptime.h: New file.
104630         * lib/strptime.c: New file.
104631         * m4/strptime.m4: New file.
104633 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104635         * MODULES.html.sh: New module mpsort.
104636         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104638         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104639         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104640         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104641         All uses changed.
104642         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104643         All uses changed.
104644         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104645         to _Restrict_.
104646         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104647         the parameter matches the prototype.
104649 2007-01-28  Jim Meyering  <jim@meyering.net>
104651         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104652         sys/time.h here, reverting that part of the previous patch:
104653         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104655 2007-01-28  Bruno Haible  <bruno@clisp.org>
104657         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104658         value of $(SYS_TIME_H).
104659         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104660         remove it conditionally, too. [added by Jim Meyering]
104661         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104663         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104664         GETTIMEOFDAY_REPLACEMENT to 1.
104666 2007-01-28  Bruno Haible  <bruno@clisp.org>
104668         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104669         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104671         Set UNISTD_H instead of UNISTD_H2.
104672         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104674 2007-01-28  Bruno Haible  <bruno@clisp.org>
104676         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104677         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104679 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104681         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104682         (func_create_testdir): Ensure C locale for `grep' and `tr'
104683         character ranges.
104684         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104685         ACLOCAL_AMFLAGS parsing state machine.
104687 2007-01-27  Bruno Haible  <bruno@clisp.org>
104689         * modules/unistr/base: Update.
104691 2007-01-27  Bruno Haible  <bruno@clisp.org>
104693         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104694         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104695         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104696         modules/unistr/u32-mbtouc.
104697         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104698         * lib/unistr.h: Update.
104699         * lib/linebreak.c: Update.
104700         * modules/unistr/u32-mbtouc: Renamed from
104701         modules/unistr/u32-mbtouc-safe.
104702         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104703         * lib/unistr.h: Update.
104704         * lib/unistr/u32-to-u8.c: Update.
104705         * lib/unistr/u32-to-u16.c: Update.
104707 2007-01-27  Bruno Haible  <bruno@clisp.org>
104709         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104710         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104711         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104712         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104713         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104714         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104715         modules/unistr/u16-mbtouc.
104716         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104717         * lib/unistr.h: Update.
104718         * lib/linebreak.c: Update.
104719         * modules/linebreak: Update.
104720         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
104721         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
104722         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
104723         * modules/unistr/u16-mbtouc: Renamed from
104724         modules/unistr/u16-mbtouc-safe.
104725         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
104726         * lib/unistr.h: Update.
104727         * lib/unistr/u16-to-u8.c: Update.
104728         * modules/unistr/u16-to-u8: Update.
104729         * lib/unistr/u16-to-u32.c: Update.
104730         * modules/unistr/u16-to-u32: Update.
104732 2007-01-27  Bruno Haible  <bruno@clisp.org>
104734         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
104735         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
104736         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
104737         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
104738         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104739         * modules/unistr/u8-mbtouc-unsafe: Renamed from
104740         modules/unistr/u8-mbtouc.
104741         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
104742         * lib/unistr.h: Update.
104743         * lib/striconveh.c: Update.
104744         * modules/striconveh: Update.
104745         * lib/linebreak.c: Update.
104746         * modules/linebreak: Update.
104747         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
104748         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
104749         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
104750         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
104751         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
104752         * lib/unistr.h: Update.
104753         * lib/striconveh.c: Update.
104754         * modules/striconveh: Update.
104755         * lib/unistr/u8-to-u16.c: Update.
104756         * modules/unistr/u8-to-u16: Update.
104757         * lib/unistr/u8-to-u32.c: Update.
104758         * modules/unistr/u8-to-u32: Update.
104760 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104762         Sync from Libtool.
104763         * lib/argz.c: Do not include strings.h nor memory.h, include
104764         string.h unconditionally.  Patch by Simon Josefsson.
104766 2007-01-27  Bruno Haible  <bruno@clisp.org>
104768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
104769         from gl_HEADER_STRING_H_BODY.
104770         (gl_HEADER_STRING_H_BODY): Require it.
104771         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
104772         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
104773         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
104774         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
104775         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104776         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
104777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
104778         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
104779         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
104780         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
104781         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
104782         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
104783         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
104784         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
104785         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104787 2007-01-27  Bruno Haible  <bruno@clisp.org>
104789         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
104790         check_PROGRAMS into noinst_PROGRAMS.
104791         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
104792         check_PROGRAMS in this case.
104793         (func_import): Set for_test to false.
104794         (func_create_testdir): Set for_test to true.
104796 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104797             Bruno Haible  <bruno@clisp.org>
104799         * modules/strcasestr (Files): Remove lib/strcasestr.h.
104800         (Depends-on): Add string.
104801         (Includes): Use <string.h> instead of strcasestr.h.
104802         * modules/string (Makefile.am): Also substitute the value of
104803         REPLACE_STRCASESTR.
104804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
104805         assume strcasestr is declared in <string.h> not <strings.h>. Also
104806         set REPLACE_STRCASESTR.
104807         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
104808         REPLACE_STRCASESTR.
104809         * lib/strcasestr.h: Remove file.
104810         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
104811         * lib/string_.h (strcasestr): New declaration.
104813 2007-01-27  Bruno Haible  <bruno@clisp.org>
104815         * lib/string_.h: Use 'extern'.
104817 2007-01-27  Jim Meyering  <jim@meyering.net>
104819         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
104820         of set-but-not-used local, "q".
104822         * lib/mempcpy.c: Include <config.h> before <string.h>.
104823         This fixes a compilation error on HP-UX, due to the system's
104824         "restrict"-using mempcpy prototype.
104826 2007-01-26  Bruno Haible  <bruno@clisp.org>
104828         Small optimization.
104829         * lib/javacomp.c: Include c-strstr.h.
104830          (is_envjavac_gcj): Use c_strstr instead of strstr.
104831         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
104833 2007-01-26  Bruno Haible  <bruno@clisp.org>
104835         * MODULES.html.sh (Unicode string functions): Add the new modules.
104837         * modules/uniconv/u32-strconv-to-locale: New file.
104838         * lib/uniconv/u32-strconv-to-locale.c: New file.
104840         * modules/uniconv/u16-strconv-to-locale: New file.
104841         * lib/uniconv/u16-strconv-to-locale.c: New file.
104843         * modules/uniconv/u8-strconv-to-locale: New file.
104844         * lib/uniconv/u8-strconv-to-locale.c: New file.
104846         * modules/uniconv/u32-strconv-from-locale: New file.
104847         * lib/uniconv/u32-strconv-from-locale.c: New file.
104849         * modules/uniconv/u16-strconv-from-locale: New file.
104850         * lib/uniconv/u16-strconv-from-locale.c: New file.
104852         * modules/uniconv/u8-strconv-from-locale: New file.
104853         * lib/uniconv/u8-strconv-from-locale.c: New file.
104855         * modules/uniconv/u32-strconv-to-enc: New file.
104856         * lib/uniconv/u32-strconv-to-enc.c: New file.
104857         * modules/uniconv/u32-strconv-to-enc-tests: New file.
104858         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
104860         * modules/uniconv/u16-strconv-to-enc: New file.
104861         * lib/uniconv/u16-strconv-to-enc.c: New file.
104862         * lib/uniconv/u-strconv-to-enc.h: New file.
104863         * modules/uniconv/u16-strconv-to-enc-tests: New file.
104864         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
104866         * modules/uniconv/u8-strconv-to-enc: New file.
104867         * lib/uniconv/u8-strconv-to-enc.c: New file.
104868         * modules/uniconv/u8-strconv-to-enc-tests: New file.
104869         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
104871         * modules/uniconv/u32-strconv-from-enc: New file.
104872         * lib/uniconv/u32-strconv-from-enc.c: New file.
104873         * modules/uniconv/u32-strconv-from-enc-tests: New file.
104874         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
104876         * modules/uniconv/u16-strconv-from-enc: New file.
104877         * lib/uniconv/u16-strconv-from-enc.c: New file.
104878         * modules/uniconv/u16-strconv-from-enc-tests: New file.
104879         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
104881         * modules/uniconv/u8-strconv-from-enc: New file.
104882         * lib/uniconv/u8-strconv-from-enc.c: New file.
104883         * lib/uniconv/u-strconv-from-enc.h: New file.
104884         * modules/uniconv/u8-strconv-from-enc-tests: New file.
104885         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
104887         * modules/uniconv/u32-conv-from-enc: New file.
104888         * lib/uniconv/u32-conv-from-enc.c: New file.
104889         * modules/uniconv/u32-conv-from-enc-tests: New file.
104890         * tests/uniconv/test-u32-conv-from-enc.c: New file.
104892         * modules/uniconv/u16-conv-from-enc: New file.
104893         * lib/uniconv/u16-conv-from-enc.c: New file.
104894         * lib/uniconv/u-conv-from-enc.h: New file.
104895         * modules/uniconv/u16-conv-from-enc-tests: New file.
104896         * tests/uniconv/test-u16-conv-from-enc.c: New file.
104898         * modules/uniconv/u8-conv-from-enc: New file.
104899         * lib/uniconv/u8-conv-from-enc.c: New file.
104900         * modules/uniconv/u8-conv-from-enc-tests: New file.
104901         * tests/uniconv/test-u8-conv-from-enc.c: New file.
104903         * modules/uniconv/base: New file.
104904         * lib/uniconv.h: New file.
104906 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
104908         * doc/gnulib-tool.texi (Initial import): Update to match current
104909         behavior with strdup module.
104910         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
104911         * lib/memmem.h: Remove; all uses removed.  This is now done
104912         by <string.h>.
104913         * lib/mempcpy.h: Likewise.
104914         * lib/memrchr.h: Likewise.
104915         * lib/stpcpy.h: Likewise.
104916         * lib/stpncpy.h: Likewise.
104917         * lib/strcase.h: Likewise.
104918         * lib/strchrnul.h: Likewise.
104919         * lib/strdup.h: Likewise.
104920         * lib/strndup.h: Likewise.
104921         * lib/strnlen.h: Likewise.
104922         * lib/strpbrk.h: Likewise.
104923         * lib/strsep.h: Likewise.
104924         * lib/strstr.h: Likewise.
104925         * lib/strtok_r.h: Likewise.
104926         * lib/string_.h: New file.
104927         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
104928         Rely on <string.h> instead.
104929         * lib/canon-host.c: Likewise.
104930         * lib/chdir-long.c: Likewise.
104931         * lib/concatpath.c: Likewise.
104932         * lib/exclude.c: Likewise.
104933         * lib/fchdir.c: Likewise.
104934         * lib/getaddrinfo.c: Likewise.
104935         * lib/getcwd.c: Likewise.
104936         * lib/getsubopt.c: Likewise.
104937         * lib/glob.c: Likewise.
104938         * lib/hard-locale.c: Likewise.
104939         * lib/iconvme.c: Likewise.
104940         * lib/javacomp.c: Likewise.
104941         * lib/mempcpy.c: Likewise.
104942         * lib/memrchr.c: Likewise.
104943         * lib/regex_internal.h: Likewise.
104944         * lib/stpncpy.c: Likewise.
104945         * lib/strcasecmp.c: Likewise.
104946         * lib/strchrnul.c: Likewise.
104947         * lib/strdup.c: Likewise.
104948         * lib/striconv.c: Likewise.
104949         * lib/striconveh.c: Likewise.
104950         * lib/striconveha.c: Likewise.
104951         * lib/strncasecmp.c: Likewise.
104952         * lib/strndup.c: Likewise.
104953         * lib/strnlen.c: Likewise.
104954         * lib/strsep.c: Likewise.
104955         * lib/strstr.c: Likewise.
104956         * lib/strtok_r.c: Likewise.
104957         * lib/userspec.c: Likewise.
104958         * lib/w32spawn.h: Likewise.
104959         * lib/xstrndup.c: Likewise.
104960         * lib/mountlist.c (strstr): Remove decl.
104961         * m4/string_h.m4: New file.
104962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
104963         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
104964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
104965         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
104966         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
104967         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
104968         Set REPLACE_STRCASECMP if necessary.
104969         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
104970         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
104971         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
104972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
104973         HAVE_DECL_STRDUP if necessary.
104974         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
104975         since gl_FUNC_STRNDUP does that now.
104976         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
104977         Check for decl here...
104978         (gl_PREREQ_STRNLEN): ... not here.
104979         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
104980         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
104981         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
104982         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
104983         necessary.
104984         * modules/string: New file.
104985         * modules/memmem (Files): Remove special-purpose include file.
104986         (Depends-on): Add string.
104987         (Include): Include <string.h>, not the removed file.
104988         * modules/mempcpy: Likewise.
104989         * modules/memrchr: Likewise.
104990         * modules/stpcpy: Likewise.
104991         * modules/stpncpy: Likewise.
104992         * modules/strcase: Likewise.
104993         * modules/strchrnul: Likewise.
104994         * modules/strdup: Likewise.
104995         * modules/strndup: Likewise.
104996         * modules/strnlen: Likewise.
104997         * modules/strpbrk: Likewise.
104998         * modules/strsep: Likewise.
104999         * modules/strstr: Likewise.
105000         * modules/strtok_r: Likewise.
105001         * tests/test-dirname.c: Don't include "strdup.h", since
105002         <string.h> now suffices.
105003         * tests/test-memmem.c: Don't include "memmem.h", since
105004         <string.h> now suffices.
105006 2007-01-25  Bruno Haible  <bruno@clisp.org>
105008         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105009         *resultp is 0.
105011         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105012         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105013         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105014         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105016         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105017         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105018         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105019         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105020         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105021         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105023 2007-01-24  Bruno Haible  <bruno@clisp.org>
105025         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105026         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105027         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105028         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105029         gl_FUNC_FTS_CORE.
105030         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105031         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105032         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105033         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105034         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105035         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105036         gl_FUNC_FCHOWNAT.
105037         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105038         gl_FUNC_STRFTIME.
105039         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105040         Reported by Ralf Wildenhues.
105042 2007-01-24  Bruno Haible  <bruno@clisp.org>
105044         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105045         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105046         gl_GETADDRINFO.
105047         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105048         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105049         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105051 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105053         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105054         Don't use 'exit'; just return from 'main'.
105055         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105057         * lib/fnmatch_.h: Readjust white space and comments to match
105058         glibc, to avoid spurious diffs.
105060 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105062         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105063         2004-12-01 change by Jakub Jelinek, since this code won't compile
105064         if !LIBC.  Problem reported by Bob Proulx.
105066 2007-01-23  Bruno Haible  <bruno@clisp.org>
105068         * lib/striconveh.c: Include c-strcaseeq.h.
105069         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105070         * modules/striconveh (Depends-on): Add c-strcaseeq.
105072 2007-01-23  Bruno Haible  <bruno@clisp.org>
105074         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105076         * modules/c-strcaseeq: New file.
105077         * lib/c-strcaseeq.h: New file.
105079         * modules/streq: New file.
105080         * lib/streq.h: New file.
105082 2007-01-23  Bruno Haible  <bruno@clisp.org>
105084         * modules/striconveha-tests: New file.
105085         * tests/test-striconveha.c: New file.
105087         * lib/striconveha.h: Include <stdbool.h>.
105088         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105089         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105090         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105091         (mem_iconveha): New function.
105092         (str_iconveha_notranslit): Renamed from str_iconveha.
105093         (str_iconveha): New function.
105094         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105095         c-strcase.
105097 2007-01-23  Bruno Haible  <bruno@clisp.org>
105099         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105100         encodings without forgiving before trying any encoding with handler.
105101         (str_iconveha): Try all encodings without forgiving before trying any
105102         encoding with handler.
105104 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105106         Import the following changes from libc.
105108         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105110         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105112         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105114         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105115         normal_bracket label.
105117         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105119         [BZ #361]
105120         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105121         to normal_bracket after fetching the next character.
105123 2007-01-22  Bruno Haible  <bruno@clisp.org>
105125         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105126         argument.
105127         * lib/striconveh.c (iconv_carefully_1): New function.
105128         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105129         argument.
105130         (str_cd_iconveh): Update.
105131         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105132         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105133         * tests/test-striconveh.c (MAGIC): New macro.
105134         (new_offsets): New function.
105135         (main): Test call with and without offsets.
105137 2007-01-22  Bruno Haible  <bruno@clisp.org>
105139         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105140         * modules/sys_select (Makefile.am): Likewise.
105141         * modules/sys_socket (Makefile.am): Likewise.
105142         * modules/sys_time (Makefile.am): Likewise.
105144 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105146         * modules/gettimeofday (License): Change from GPL to LGPL, since
105147         gettimeofday is a library function.
105149 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105151         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105153 2007-01-21  Bruno Haible  <bruno@clisp.org>
105155         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105157 2007-01-21  Bruno Haible  <bruno@clisp.org>
105159         * modules/striconveha: New file.
105160         * lib/striconveha.h: New file.
105161         * lib/striconveha.c: New file.
105162         * MODULES.html.sh (Internationalization functions): Add striconveha.
105163         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105164         string.
105165         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105167 2007-01-21  Bruno Haible  <bruno@clisp.org>
105169         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105170         * lib/striconveh.c (str_iconveh): Likewise.
105172 2007-01-21  Bruno Haible  <bruno@clisp.org>
105174         * lib/striconveh.h (mem_iconveh): New declaration.
105175         * lib/striconveh.c (mem_iconveh): New function.
105176         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105178 2007-01-21  Bruno Haible  <bruno@clisp.org>
105180         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105182         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105183         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105184         original result buffer.
105185         (str_cd_iconveh): Update.
105186         * tests/test-striconveh.c (main): Update.
105188         * lib/striconv.h (mem_cd_iconv): Change specification.
105189         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105190         result buffer.
105191         (str_cd_iconv): Update.
105192         * tests/test-striconv.c (main): Update.
105194 2007-01-21  Bruno Haible  <bruno@clisp.org>
105196         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105198 2007-01-20  Jim Meyering  <jim@meyering.net>
105200         * lib/userspec.c (parse_with_separator): If a user or group string
105201         starts with "+", skip the corresponding name-to-ID look-up, since
105202         such a look-up must fail: user and group names may not include "+".
105204 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105206         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105207         since we now assume the sys_time module.
105208         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105209         check for sys/time.h; no longer needed.
105210         * modules/poll (Depends-on): Depend on sys_time.
105212 2007-01-18  Bruno Haible  <bruno@clisp.org>
105214         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105215         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105217         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105218         gettimeofday.
105220         * tests/test-gettimeofday.c: Include <time.h>.
105221         (dummy): Remove variable.
105223         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105224         gl_HEADER_SYS_TIME_H.
105225         (gl_HEADER_SYS_TIME_H): New macro.
105227         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105228         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105229         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105230         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105231         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105232         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105233         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105234         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105235         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105236         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105237         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105239         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105240         last change; it caused a compilation error when cross-compiling to
105241         Cygwin.
105243 2007-01-18  Jim Meyering  <jim@meyering.net>
105245         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105246         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105247         than the race-prone "test -d sys || mkdir sys".
105248         (configure.ac): Use AC_PROG_MKDIR_P.
105249         * modules/sys_select: Likewise.
105250         * modules/sys_socket: Likewise.
105251         * modules/sys_time: Likewise.
105253 2007-01-18  Eric Blake  <ebb9@byu.net>
105255         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105256         replace gettimeofday.
105257         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105258         name, to avoid infinite recursion.
105260 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105262         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105263         module sys_time.
105264         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105265         assume timespec.h defines struct timeval.
105266         * lib/settime.c: Likewise.
105267         * lib/utimens.c: Likewise.
105268         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105269         since we now assume the gettimeofday module.
105270         * lib/tempname.c (__gen_tempname): Likewise.
105271         * lib/gettimeofday.h: Remove.
105272         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105273         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105274         Include <time.h>, for 'time()'.
105275         (localtime_buffer_addr): Also use this workaround if
105276         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105277         to simplify the uses.  All uses changed.
105278         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105279         that #undef is inside {}, and 'const' follows type name consistently.
105280         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105281         (gettimeofday): Do not use the maximum possible value for
105282         tv->tv_usec, since that might break usages other than ls.c.
105283         Instead, we'll leave ls.c alone.  This undoes today's patch
105284         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105285         we've never observed the problem but might as well keep the
105286         canary.
105287         * lib/nanosleep.c: Include timespec.h first, for interface check.
105288         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105289         now assume the sys_time module.
105290         * lib/tempname.c: Likewise.
105291         * lib/timespec.h: Likewise.
105292         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105293         needed.
105294         * lib/strftime.c: Likewise.
105295         * lib/timespec.h: Likewise.
105296         * lib/posixtm.c: Include posixtm.h first, for interface check.
105297         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105298         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105299         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105300         * lib/sys_time_.h: New file.
105301         * lib/timespec.h (struct timespec): Use long int, not long.
105302         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105303         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105304         Remove obsolescent call to AC_HEADER_TIME.
105305         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105307         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105308         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105309         Likewise.
105310         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105311         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105313         into the sys_time module.  Check for gettimeofday just once.
105314         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105315         for gettimeofday signature to just check the signature.  Merely
105316         compile it, since linking doesn't test signature.  Improve test for
105317         whether gettimeofday.o is actually needed.
105318         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105319         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105320         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105321         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105322         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105323         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105324         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105325         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105326         than worrying about sys/time.h.
105327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105328         Don't bother worrying about TIME_WITH_SYS_TIME.
105329         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105330         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105331         * m4/sys_time_h.m4: New file.
105332         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105333         Don't include sys/time.h.  Return from main rather than exiting.
105334         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105335         all uses changed.
105336         * modules/gethrxtime (Depends-on): Add sys_time.
105337         * modules/gettime (Depends-on): Likewise.
105338         * modules/gettimeofday (Depends-on): Likewise.
105339         * modules/nanosleep (Depends-on): Likewise.
105340         * modules/settime (Depends-on): Likewise.
105341         * modules/tempname (Depends-on): Likewise.
105342         * modules/utimens (Depends-on): Likewise.
105343         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105344         (Include): Change back to <sys/time.h>.
105345         (Maintainer): Add self.
105346         * modules/sys_time: New file.
105347         * modules/tempname (Depends-on): Add gettimeofday.
105348         * tests/test-gettimeofday.c: Include <sys/time.h>
105349         rather than gettimeofday.h.
105351 2007-01-17  Bruno Haible  <bruno@clisp.org>
105353         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105354         the license default to GPL.
105355         (func_create_testdir): Don't complain if a module is LGPL and its
105356         tests module depends on GPLed modules.
105358 2007-01-17  Bruno Haible  <bruno@clisp.org>
105360         * lib/gettimeofday.c (gettimeofday): Add code for the case
105361         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105362         maximum possible value for tv->tv_usec, rather than the minimum one.
105364 2005-10-08  Martin Lambers  <marlam@marlam.de>
105365 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105366 2007-01-16  Bruno Haible  <bruno@clisp.org>
105368         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105369         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105370         gl_FUNC_GETTIMEOFDAY.
105371         (Include): Add gettimeofday.h.
105372         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105373         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105374         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105375         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105376         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105377         * lib/gettimeofday.h: New file.
105378         * lib/gettimeofday.c: Include <sys/timeb.h>.
105379         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105380         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105381         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105382         fall back on time().
105384         * tests/test-gettimeofday.c: New file.
105385         * modules/gettimeofday-tests: New file.
105387 2007-01-16  Eric Blake  <ebb9@byu.net>
105389         * modules/fnmatch (Depends-on): Depend on wchar.
105390         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105391         * m4/fnmatch.m4: Likewise.
105392         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105393         * m4/mbchar.m4: Likewise.
105394         * modules/mbswidth (Depends-on): Depend on wchar.
105395         * lib/mbswidth.c: Assume <wchar.h>.
105396         * m4/mbswidth.m4: Likewise.
105397         * modules/quotearg (Depends-on): Depend on wchar.
105398         * lib/quotearg.c: Assume <wchar.h>.
105399         * m4/quotearg.m4: Likewise.
105400         * modules/regex (Depends-on): Depend on wchar.
105401         * lib/regex_internal.h: Assume <wchar.h>.
105402         * m4/regex.m4: Likewise.
105403         * modules/stdint (Depends-on): Depend on wchar.
105404         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105405         * m4/stdint.m4: Likewise.
105406         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105407         * modules/strftime (Depends-on): Depend on wchar.
105408         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105409         * modules/strtol (Depends-on): Depend on wchar.
105410         * lib/strtol.c: Assume <wchar.h>.
105411         * modules/wcwidth (Depends-on): Depend on wchar.
105412         * lib/wcwidth.h: Assume <wchar.h>.
105413         * m4/wcwidth.m4: Likewise.
105415 2007-01-16  Bruno Haible  <bruno@clisp.org>
105417         * modules/csharpexec-script: New, created from...
105418         * modules/csharpexec: ... this.
105420 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105422         * modules/javaexec-script: New, created from...
105423         * modules/javaexec: ... this.
105425 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105427         * modules/poll (Dependencies): Add sys_select.
105429 2007-01-15  Jim Meyering  <jim@meyering.net>
105431         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105432         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105433         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105434         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105436 2007-01-15  Bruno Haible  <bruno@clisp.org>
105438         * modules/striconveh: New file.
105439         * lib/striconveh.h: New file.
105440         * lib/striconveh.c: New file.
105441         * MODULES.html.sh (Internationalization functions): Add striconveh.
105443         * modules/striconveh-tests: New file.
105444         * tests/test-striconveh.c: New file.
105446 2007-01-15  Bruno Haible  <bruno@clisp.org>
105448         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105449         not from GNU libiconv or GNU libc.
105451 2007-01-15  Bruno Haible  <bruno@clisp.org>
105453         * doc/gnulib-intro.texi (Copyright): Explain the different license
105454         terms for module descriptions, autoconf macros, tests, documentation.
105456 2007-01-14  Bruno Haible  <bruno@clisp.org>
105458         * modules/striconv-tests: New file.
105459         * tests/test-striconv.c: New file.
105461 2007-01-14  Bruno Haible  <bruno@clisp.org>
105463         * modules/iconv-tests: New file.
105464         * tests/test-iconv.c: New file.
105466 2007-01-14  Bruno Haible  <bruno@clisp.org>
105468         * gnulib-tool (func_get_license): For test modules, use the license of
105469         the main module.
105471 2007-01-14  Bruno Haible  <bruno@clisp.org>
105473         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105474         if iconv is found to exist.
105476 2007-01-14  Bruno Haible  <bruno@clisp.org>
105478         * modules/c-ctype-tests: New file.
105479         * tests/test-c-ctype.c: New file.
105481 2007-01-14  Bruno Haible  <bruno@clisp.org>
105483         * modules/binary-io-tests: New file.
105484         * tests/test-binary-io.sh: New file.
105485         * tests/test-binary-io.c: New file.
105487 2007-01-14  Bruno Haible  <bruno@clisp.org>
105489         * modules/array-oset-tests: New file.
105490         * tests/test-array_oset.c: New file.
105492 2007-01-14  Bruno Haible  <bruno@clisp.org>
105494         * modules/array-list-tests: New file.
105495         * tests/test-array_list.c: New file.
105497 2007-01-14  Bruno Haible  <bruno@clisp.org>
105499         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105500         and make.
105501         Reported by Simon Josefsson in
105502         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105504 2007-01-14  Bruno Haible  <bruno@clisp.org>
105506         * modules/allocsa-tests: New file.
105507         * tests/test-allocsa.c: New file.
105509 2007-01-14  Bruno Haible  <bruno@clisp.org>
105511         * modules/fchdir (Depends-on): Add absolute-header.
105512         * modules/unistd (Depends-on): Likewise.
105514 2006-12-30  Bruno Haible  <bruno@clisp.org>
105516         * modules/fchdir: New file.
105517         * modules/unistd (Files): Add lib/unistd_.h.
105518         (Makefile.am): Generate unistd.h from unistd_.h.
105519         * lib/fchdir.c: New file.
105520         * lib/dirent_.h: New file.
105521         * lib/unistd_.h: New file.
105522         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105523         * m4/fchdir.m4: New file.
105524         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105525         (gl_HEADER_UNISTD): Invoke it.
105526         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105527         function.
105528         * lib/backupfile.c (opendir, closedir): Undefine.
105529         * lib/chown.c (open, close): Undefine.
105530         * lib/clean-temp.c (open, close): Undefine.
105531         * lib/copy-file.c (open, close): Undefine.
105532         * lib/execute.c (open, close): Undefine.
105533         * lib/fsusage.c (open, close): Undefine.
105534         * lib/gc-gnulib.c (open, close): Undefine.
105535         * lib/getcwd.c (opendir, closedir): Undefine.
105536         * lib/glob.c (opendir, closedir): Undefine.
105537         * lib/javacomp.c (open, close): Undefine.
105538         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105539         * lib/openat-proc.c (open, close): Undefine.
105540         * lib/pagealign_alloc.c (open, close): Undefine.
105541         * lib/pipe.c (open, close): Undefine.
105542         * lib/progreloc.c (open, close): Undefine.
105543         * lib/savedir.c (opendir, closedir): Undefine.
105544         * lib/utime.c (open, close): Undefine.
105545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105547 2007-01-10  Bruno Haible  <bruno@clisp.org>
105549         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105551 2007-01-12  Eric Blake  <ebb9@byu.net>
105553         Provide a robust <wchar.h>.  Further simplifications are now
105554         possible in other modules, but not included here.
105555         * modules/wchar: New module.
105556         * m4/wchar.m4: New file.
105557         * lib/wchar_.h: Likewise.
105558         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105559         of the new module.
105560         * MODULES.html.sh (Extended multibyte and wide character utilities):
105561         New section.
105563 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105565         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105566         to a reasonable default for memory allocation.
105567         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105568         file system that reports garbage st_size values for symlinks.
105569         Problem reported by Liyang Hu.
105571 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105573         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105574         Emacs .#* auto-save files).
105576 2007-01-11  Bruno Haible  <bruno@clisp.org>
105578         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105579         directory.
105581 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105583         Use @...@ consistently in lib/wctype_.h.
105584         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105585         on it being set to 1 or 0.
105586         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105587         go back to AC_SUBSTing it.
105588         * modules/wctype (Makefile.am): Undo previous change.
105590 2007-01-10  Eric Blake  <ebb9@byu.net>
105592         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105593         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105594         * modules/wctype (Makefile.am): Likewise.
105595         Reported by Chris McGuire.
105597 2007-01-10  Jim Meyering  <jim@meyering.net>
105599         fts.c: a small readability/maintainability improvement
105600         * lib/fts.c (fts_read): Make this code slightly more readable and
105601         maintainable by hoisting the "sp->fts_cur = p" assignments to
105602         immediately follow the statements that set P.  Derived from
105603         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105605 2007-01-10  Eric Blake  <ebb9@byu.net>
105607         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105608         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105610         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105611         Reported by Chris McGuire.
105613 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105615         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105616         in sed script.
105618 2007-01-09  Bruno Haible  <bruno@clisp.org>
105620         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105621         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105622         variables.
105623         (func_module): Use them.
105625 2007-01-09  Bruno Haible  <bruno@clisp.org>
105627         * modules/unistr/base: New file.
105628         * lib/unistr.h: New file.
105630         * modules/unistr/u8-to-u16: New file.
105631         * lib/unistr/u8-to-u16.c: New file.
105633         * modules/unistr/u8-to-u32: New file.
105634         * lib/unistr/u8-to-u32.c: New file.
105636         * modules/unistr/u16-to-u8: New file.
105637         * lib/unistr/u16-to-u8.c: New file.
105639         * modules/unistr/u16-to-u32: New file.
105640         * lib/unistr/u16-to-u32.c: New file.
105642         * modules/unistr/u32-to-u8: New file.
105643         * lib/unistr/u32-to-u8.c: New file.
105645         * modules/unistr/u32-to-u16: New file.
105646         * lib/unistr/u32-to-u16.c: New file.
105648         * modules/unistr/u8-check: New file.
105649         * modules/unistr/u16-check: New file.
105650         * modules/unistr/u32-check: New file.
105651         * lib/unistr/u8-check.c: New file.
105652         * lib/unistr/u16-check.c: New file.
105653         * lib/unistr/u32-check.c: New file.
105655         * modules/unistr/u8-chr: New file.
105656         * modules/unistr/u16-chr: New file.
105657         * modules/unistr/u32-chr: New file.
105658         * lib/unistr/u8-chr.c: New file.
105659         * lib/unistr/u16-chr.c: New file.
105660         * lib/unistr/u32-chr.c: New file.
105662         * modules/unistr/u8-cmp: New file.
105663         * modules/unistr/u16-cmp: New file.
105664         * modules/unistr/u32-cmp: New file.
105665         * lib/unistr/u8-cmp.c: New file.
105666         * lib/unistr/u16-cmp.c: New file.
105667         * lib/unistr/u32-cmp.c: New file.
105669         * modules/unistr/u8-cpy: New file.
105670         * modules/unistr/u16-cpy: New file.
105671         * modules/unistr/u32-cpy: New file.
105672         * lib/unistr/u8-cpy.c: New file.
105673         * lib/unistr/u16-cpy.c: New file.
105674         * lib/unistr/u32-cpy.c: New file.
105675         * lib/unistr/u-cpy.h: New file.
105677         * modules/unistr/u8-cpy-alloc: New file.
105678         * modules/unistr/u16-cpy-alloc: New file.
105679         * modules/unistr/u32-cpy-alloc: New file.
105680         * lib/unistr/u8-cpy-alloc.c: New file.
105681         * lib/unistr/u16-cpy-alloc.c: New file.
105682         * lib/unistr/u32-cpy-alloc.c: New file.
105683         * lib/unistr/u-cpy-alloc.h: New file.
105685         * modules/unistr/u8-endswith: New file.
105686         * modules/unistr/u16-endswith: New file.
105687         * modules/unistr/u32-endswith: New file.
105688         * lib/unistr/u8-endswith.c: New file.
105689         * lib/unistr/u16-endswith.c: New file.
105690         * lib/unistr/u32-endswith.c: New file.
105691         * lib/unistr/u-endswith.h: New file.
105693         * modules/unistr/u8-mblen: New file.
105694         * modules/unistr/u16-mblen: New file.
105695         * modules/unistr/u32-mblen: New file.
105696         * lib/unistr/u8-mblen.c: New file.
105697         * lib/unistr/u16-mblen.c: New file.
105698         * lib/unistr/u32-mblen.c: New file.
105700         * modules/unistr/u8-mbtouc: New file.
105701         * modules/unistr/u16-mbtouc: New file.
105702         * modules/unistr/u32-mbtouc: New file.
105703         * lib/unistr/u8-mbtouc.c: New file.
105704         * lib/unistr/u16-mbtouc.c: New file.
105705         * lib/unistr/u32-mbtouc.c: New file.
105707         * modules/unistr/u8-mbtouc-safe: New file.
105708         * modules/unistr/u16-mbtouc-safe: New file.
105709         * modules/unistr/u32-mbtouc-safe: New file.
105710         * lib/unistr/u8-mbtouc-safe.c: New file.
105711         * lib/unistr/u16-mbtouc-safe.c: New file.
105712         * lib/unistr/u32-mbtouc-safe.c: New file.
105714         * modules/unistr/u8-move: New file.
105715         * modules/unistr/u16-move: New file.
105716         * modules/unistr/u32-move: New file.
105717         * lib/unistr/u8-move.c: New file.
105718         * lib/unistr/u16-move.c: New file.
105719         * lib/unistr/u32-move.c: New file.
105720         * lib/unistr/u-move.h: New file.
105722         * modules/unistr/u8-next: New file.
105723         * modules/unistr/u16-next: New file.
105724         * modules/unistr/u32-next: New file.
105725         * lib/unistr/u8-next.c: New file.
105726         * lib/unistr/u16-next.c: New file.
105727         * lib/unistr/u32-next.c: New file.
105729         * modules/unistr/u8-prev: New file.
105730         * modules/unistr/u16-prev: New file.
105731         * modules/unistr/u32-prev: New file.
105732         * lib/unistr/u8-prev.c: New file.
105733         * lib/unistr/u16-prev.c: New file.
105734         * lib/unistr/u32-prev.c: New file.
105736         * modules/unistr/u8-set: New file.
105737         * modules/unistr/u16-set: New file.
105738         * modules/unistr/u32-set: New file.
105739         * lib/unistr/u8-set.c: New file.
105740         * lib/unistr/u16-set.c: New file.
105741         * lib/unistr/u32-set.c: New file.
105742         * lib/unistr/u-set.h: New file.
105744         * modules/unistr/u8-startswith: New file.
105745         * modules/unistr/u16-startswith: New file.
105746         * modules/unistr/u32-startswith: New file.
105747         * lib/unistr/u8-startswith.c: New file.
105748         * lib/unistr/u16-startswith.c: New file.
105749         * lib/unistr/u32-startswith.c: New file.
105750         * lib/unistr/u-startswith.h: New file.
105752         * modules/unistr/u8-stpcpy: New file.
105753         * modules/unistr/u16-stpcpy: New file.
105754         * modules/unistr/u32-stpcpy: New file.
105755         * lib/unistr/u8-stpcpy.c: New file.
105756         * lib/unistr/u16-stpcpy.c: New file.
105757         * lib/unistr/u32-stpcpy.c: New file.
105758         * lib/unistr/u-stpcpy.h: New file.
105760         * modules/unistr/u8-stpncpy: New file.
105761         * modules/unistr/u16-stpncpy: New file.
105762         * modules/unistr/u32-stpncpy: New file.
105763         * lib/unistr/u8-stpncpy.c: New file.
105764         * lib/unistr/u16-stpncpy.c: New file.
105765         * lib/unistr/u32-stpncpy.c: New file.
105766         * lib/unistr/u-stpncpy.h: New file.
105768         * modules/unistr/u8-strcat: New file.
105769         * modules/unistr/u16-strcat: New file.
105770         * modules/unistr/u32-strcat: New file.
105771         * lib/unistr/u8-strcat.c: New file.
105772         * lib/unistr/u16-strcat.c: New file.
105773         * lib/unistr/u32-strcat.c: New file.
105774         * lib/unistr/u-strcat.h: New file.
105776         * modules/unistr/u8-strchr: New file.
105777         * modules/unistr/u16-strchr: New file.
105778         * modules/unistr/u32-strchr: New file.
105779         * lib/unistr/u8-strchr.c: New file.
105780         * lib/unistr/u16-strchr.c: New file.
105781         * lib/unistr/u32-strchr.c: New file.
105783         * modules/unistr/u8-strcmp: New file.
105784         * modules/unistr/u16-strcmp: New file.
105785         * modules/unistr/u32-strcmp: New file.
105786         * lib/unistr/u8-strcmp.c: New file.
105787         * lib/unistr/u16-strcmp.c: New file.
105788         * lib/unistr/u32-strcmp.c: New file.
105790         * modules/unistr/u8-strcpy: New file.
105791         * modules/unistr/u16-strcpy: New file.
105792         * modules/unistr/u32-strcpy: New file.
105793         * lib/unistr/u8-strcpy.c: New file.
105794         * lib/unistr/u16-strcpy.c: New file.
105795         * lib/unistr/u32-strcpy.c: New file.
105796         * lib/unistr/u-strcpy.h: New file.
105798         * modules/unistr/u8-strcspn: New file.
105799         * modules/unistr/u16-strcspn: New file.
105800         * modules/unistr/u32-strcspn: New file.
105801         * lib/unistr/u8-strcspn.c: New file.
105802         * lib/unistr/u16-strcspn.c: New file.
105803         * lib/unistr/u32-strcspn.c: New file.
105804         * lib/unistr/u-strcspn.h: New file.
105806         * modules/unistr/u8-strdup: New file.
105807         * modules/unistr/u16-strdup: New file.
105808         * modules/unistr/u32-strdup: New file.
105809         * lib/unistr/u8-strdup.c: New file.
105810         * lib/unistr/u16-strdup.c: New file.
105811         * lib/unistr/u32-strdup.c: New file.
105812         * lib/unistr/u-strdup.h: New file.
105814         * modules/unistr/u8-strlen: New file.
105815         * modules/unistr/u16-strlen: New file.
105816         * modules/unistr/u32-strlen: New file.
105817         * lib/unistr/u8-strlen.c: New file.
105818         * lib/unistr/u16-strlen.c: New file.
105819         * lib/unistr/u32-strlen.c: New file.
105820         * lib/unistr/u-strlen.h: New file.
105822         * modules/unistr/u8-strmblen: New file.
105823         * modules/unistr/u16-strmblen: New file.
105824         * modules/unistr/u32-strmblen: New file.
105825         * lib/unistr/u8-strmblen.c: New file.
105826         * lib/unistr/u16-strmblen.c: New file.
105827         * lib/unistr/u32-strmblen.c: New file.
105829         * modules/unistr/u8-strmbtouc: New file.
105830         * modules/unistr/u16-strmbtouc: New file.
105831         * modules/unistr/u32-strmbtouc: New file.
105832         * lib/unistr/u8-strmbtouc.c: New file.
105833         * lib/unistr/u16-strmbtouc.c: New file.
105834         * lib/unistr/u32-strmbtouc.c: New file.
105836         * modules/unistr/u8-strncat: New file.
105837         * modules/unistr/u16-strncat: New file.
105838         * modules/unistr/u32-strncat: New file.
105839         * lib/unistr/u8-strncat.c: New file.
105840         * lib/unistr/u16-strncat.c: New file.
105841         * lib/unistr/u32-strncat.c: New file.
105842         * lib/unistr/u-strncat.h: New file.
105844         * modules/unistr/u8-strncmp: New file.
105845         * modules/unistr/u16-strncmp: New file.
105846         * modules/unistr/u32-strncmp: New file.
105847         * lib/unistr/u8-strncmp.c: New file.
105848         * lib/unistr/u16-strncmp.c: New file.
105849         * lib/unistr/u32-strncmp.c: New file.
105851         * modules/unistr/u8-strncpy: New file.
105852         * modules/unistr/u16-strncpy: New file.
105853         * modules/unistr/u32-strncpy: New file.
105854         * lib/unistr/u8-strncpy.c: New file.
105855         * lib/unistr/u16-strncpy.c: New file.
105856         * lib/unistr/u32-strncpy.c: New file.
105857         * lib/unistr/u-strncpy.h: New file.
105859         * modules/unistr/u8-strnlen: New file.
105860         * modules/unistr/u16-strnlen: New file.
105861         * modules/unistr/u32-strnlen: New file.
105862         * lib/unistr/u8-strnlen.c: New file.
105863         * lib/unistr/u16-strnlen.c: New file.
105864         * lib/unistr/u32-strnlen.c: New file.
105865         * lib/unistr/u-strnlen.h: New file.
105867         * modules/unistr/u8-strpbrk: New file.
105868         * modules/unistr/u16-strpbrk: New file.
105869         * modules/unistr/u32-strpbrk: New file.
105870         * lib/unistr/u8-strpbrk.c: New file.
105871         * lib/unistr/u16-strpbrk.c: New file.
105872         * lib/unistr/u32-strpbrk.c: New file.
105873         * lib/unistr/u-strpbrk.h: New file.
105875         * modules/unistr/u8-strrchr: New file.
105876         * modules/unistr/u16-strrchr: New file.
105877         * modules/unistr/u32-strrchr: New file.
105878         * lib/unistr/u8-strrchr.c: New file.
105879         * lib/unistr/u16-strrchr.c: New file.
105880         * lib/unistr/u32-strrchr.c: New file.
105882         * modules/unistr/u8-strspn: New file.
105883         * modules/unistr/u16-strspn: New file.
105884         * modules/unistr/u32-strspn: New file.
105885         * lib/unistr/u8-strspn.c: New file.
105886         * lib/unistr/u16-strspn.c: New file.
105887         * lib/unistr/u32-strspn.c: New file.
105888         * lib/unistr/u-strspn.h: New file.
105890         * modules/unistr/u8-strstr: New file.
105891         * modules/unistr/u16-strstr: New file.
105892         * modules/unistr/u32-strstr: New file.
105893         * lib/unistr/u8-strstr.c: New file.
105894         * lib/unistr/u16-strstr.c: New file.
105895         * lib/unistr/u32-strstr.c: New file.
105896         * lib/unistr/u-strstr.h: New file.
105898         * modules/unistr/u8-strtok: New file.
105899         * modules/unistr/u16-strtok: New file.
105900         * modules/unistr/u32-strtok: New file.
105901         * lib/unistr/u8-strtok.c: New file.
105902         * lib/unistr/u16-strtok.c: New file.
105903         * lib/unistr/u32-strtok.c: New file.
105904         * lib/unistr/u-strtok.h: New file.
105906         * modules/unistr/u8-uctomb: New file.
105907         * modules/unistr/u16-uctomb: New file.
105908         * modules/unistr/u32-uctomb: New file.
105909         * lib/unistr/u8-uctomb.c: New file.
105910         * lib/unistr/u16-uctomb.c: New file.
105911         * lib/unistr/u32-uctomb.c: New file.
105913         * MODULES.html.sh (Unicode string functions): Add the new modules.
105915 2007-01-08  Bruno Haible  <bruno@clisp.org>
105917         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
105918         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
105919         subdirectories.
105921 2007-01-08  Karl Berry  <karl@gnu.org>
105923         * doc/error.texi: mention that main() fns must set program_name
105924         when progname is used.
105926 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
105928         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
105929         WCTYPE_H is empty, for the benefit of builds from non-distclean
105930         directories.  Problem reported by Eric Blake in
105931         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
105933 2007-01-08  Bruno Haible  <bruno@clisp.org>
105935         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
105936         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
105937         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
105938         PROVIDE_CANONICALIZE_FILENAME_MODE.
105939         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
105941 2007-01-08  Bruno Haible  <bruno@clisp.org>
105943         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
105944         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
105945         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
105946         * lib/fts.c: Likewise.
105947         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
105949 2006-12-25  Bruno Haible  <bruno@clisp.org>
105951         * modules/utf8-ucs4-safe: New file.
105952         * lib/utf8-ucs4-safe.h: New file.
105953         * lib/unistr/utf8-ucs4-safe.c: New file.
105955         * modules/utf16-ucs4-safe: New file.
105956         * lib/utf16-ucs4-safe.h: New file.
105957         * lib/unistr/utf16-ucs4-safe.c: New file.
105959         * MODULES.html.sh (Unicode string functions): Add the new modules.
105961 2007-01-08  Bruno Haible  <bruno@clisp.org>
105963         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
105964         (Depends-on): Add unitypes.
105965         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
105966         (u8_mbtouc_aux): Move out to separate file.
105967         (u8_mbtouc): Use ucs4_t, uint8_t types.
105968         * lib/unistr/utf8-ucs4.c: New file.
105970         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
105971         (Depends-on): Add unitypes.
105972         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
105973         (u16_mbtouc_aux): Move out to separate file.
105974         (u16_mbtouc): Use ucs4_t, uint16_t types.
105975         * lib/unistr/utf16-ucs4.c: New file.
105977         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
105978         (Depends-on): Add unitypes.
105979         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
105980         (u8_uctomb_aux): Move out to separate file.
105981         (u8_uctomb): Use ucs4_t, uint8_t types.
105982         * lib/unistr/ucs4-utf8.c: New file.
105984         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
105985         (Depends-on): Add unitypes.
105986         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
105987         (u16_uctomb_aux): Move out to separate file.
105988         (u16_uctomb): Use ucs4_t, uint16_t types.
105989         * lib/unistr/ucs4-utf16.c: New file.
105991 2006-12-25  Bruno Haible  <bruno@clisp.org>
105993         * modules/unitypes: New file.
105994         * lib/unitypes.h: New file.
105995         * MODULES.html.sh (func_all_modules): New section "Unicode string
105996         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
105997         this section. Add unitypes.
105999 2007-01-08  Bruno Haible  <bruno@clisp.org>
106001         Avoid variable names that conflict with those from libtool.
106002         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106003         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106004         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106005         library_names_spec to acl_library_names_spec, hardcode_* to
106006         acl_hardcode_*.
106007         Reported by Ralf Wildenhues.
106009 2007-01-08  Bruno Haible  <bruno@clisp.org>
106011         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106012         definition.
106013         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106014         definition.
106015         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106016         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106017         definition.
106018         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106019         definition.
106020         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106021         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106022         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106023         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106024         definition.
106025         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106026         definition.
106027         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106028         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106029         GC_USE_<algorithm>.
106030         * lib/gc-libgcrypt.c: Likewise.
106031         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106032         * modules/gc-arctwo (configure.ac): Likewise.
106033         * modules/gc-des (configure.ac): Likewise.
106034         * modules/gc-hmac-md5 (configure.ac): Likewise.
106035         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106036         * modules/gc-md2 (configure.ac): Likewise.
106037         * modules/gc-md4 (configure.ac): Likewise.
106038         * modules/gc-md5 (configure.ac): Likewise.
106039         * modules/gc-random (configure.ac): Likewise.
106040         * modules/gc-rijndael (configure.ac): Likewise.
106041         * modules/gc-sha1 (configure.ac): Likewise.
106043 2007-01-08  Bruno Haible  <bruno@clisp.org>
106045         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106046         macro definition.
106047         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106048         definition.
106049         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106050         definition.
106051         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106052         * modules/fcntl-safer (configure.ac): Likewise.
106053         * modules/fopen-safer (configure.ac): Likewise.
106054         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106055         GNULIB_FWRITEERROR macro definition.
106057 2007-01-08  Bruno Haible  <bruno@clisp.org>
106059         * m4/gnulib-common.m4: New file.
106060         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106061         (func_get_filelist): Add m4/gnulib-common.m4.
106063 2007-01-08  Bruno Haible  <bruno@clisp.org>
106065         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106066         command.
106068 2007-01-08  Jim Meyering  <jim@meyering.net>
106070         Use a more robust test for a "can't happen" condition.
106071         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106072         narrowed the st_size value.  Presuming the "can't happen" condition
106073         is true, that narrowing could conceivably convert an invalid st_size
106074         value into a valid one.  Instead, use a change based on Matthew
106075         Woehlke's original patch.
106077         Slight readability improvement: use an assert-like macro
106078         in place of literal "abort ()" uses.
106079         * lib/fts.c (fts_assert): Define.
106080         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106081         Use this macro instead of a bare 'abort'.
106083 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106085         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106086         simply work around them.
106087         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106088         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106089         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106090         declaring.
106091         Don't bother to define as macros, since the standard doesn't require it.
106092         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106093         longer worry about IRIX 5.3.
106094         (HAVE_WCTYPE_CTMP_BUG): Remove.
106096 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106098         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106099         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106100         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106101         Problems reported by Georg Schwarz for IRIX 5.3.
106103         * gnulib-tool (autoconf_minversion): Take the maximum version number
106104         found, not the minimum.  Problem reported by James Youngman.
106106 2007-01-03  Karl Berry  <karl@gnu.org>
106108         * doc/error.texi: new file, explaining interaction with progname.
106109         * doc/gnulib.texi: include it.  Update copyright.
106111 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106113         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106114         AC_CANONICAL_HOST, to improve autobuild outputs.
106116 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106117             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106119         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106120         sockets, server sockets, and other file descriptors.  Count errors
106121         to compute the return value.  Reorder the code a bit to be easier
106122         to follow.  Don't set event bits that were not requested (except
106123         POLLERR and POLLHUP).
106125 2007-01-01  Bruno Haible  <bruno@clisp.org>
106127         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106129 2007-01-03  Jim Meyering  <jim@meyering.net>
106131         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106133 2007-01-02  Bruno Haible  <bruno@clisp.org>
106135         * modules/settime (Include): Require timespec.h.
106136         * modules/nanosleep (Include): Likewise.
106138 2007-01-01  Bruno Haible  <bruno@clisp.org>
106140         * gnulib-tool (func_emit_copyright_notice): Bump year.
106141         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106143 2007-01-01  Bruno Haible  <bruno@clisp.org>
106145         Improve support for OpenBSD.
106146         * build-aux/config.rpath (libname_spec): Export.
106147         (library_names_spec): New variable. Export.
106148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106149         library_names_spec from the config.rpath output. Locate shared library
106150         through the name pattern in library_names_spec.
106152 2007-01-01  Eric Blake  <ebb9@byu.net>
106154         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106156 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106158         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106159         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106160         assume the C locale, and avoid an "eval" that could cause trouble.
106161         Problem with SORT reported by Bob Proulx.
106163         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106164         Define.  Trivial patch from Henning Nielsen Lund, originally
106165         sent to bug-grep@gnu.org today.
106167 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106169         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106170         struct stat.  Problem reported by Henning Nielsen Lund.
106171         * lib/acl.c: Include acl.h first, to check interface.  Don't
106172         bother to include sys/types.h and sys/stat.h again.
106174 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106176         Import the following change from libc; problem reported by
106177         Sven Verdoolaege.
106179         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106181         [BZ #1373]
106182         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106184 2006-12-28  Jim Meyering  <jim@meyering.net>
106186         * build-aux/announce-gen: Do not assume that the package
106187         builds any of tar.gz, tar.bz2, and .xdelta files.
106188         Suggestion from Simon Josefsson.
106190 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106192         * modules/announce-gen: New file.
106194 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106196         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106197         handles its gotchas now.
106198         * lib/mbswidth.c: Likewise.
106199         * lib/wcwidth.h: Likewise.
106200         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106201         and iswcntrl; the wctype module does this stuff now.
106202         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106204         * modules/mbchar (Depends-on): Add wctype.
106205         * modules/mbswidth (Depends-on): Likewise.
106206         * modules/wcwidth (Depends-on): Likewise.
106208 2006-12-27  Eric Blake  <ebb9@byu.net>
106210         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106211         module uses more than what <wctype.h> is required to provide.
106213 2006-12-26  Eric Blake  <ebb9@byu.net>
106215         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106217 2006-12-26  Eric Blake  <ebb9@byu.net>
106219         * modules/absolute-header: New module.
106220         * modules/fcntl (Depends-on): Depend on it.
106221         * modules/inttypes (Depends-on): Likewise.
106222         * modules/stdint (Depends-on): Likewise.
106223         * modules/sys_stat (Depends-on): Likewise.
106224         * modules/wctype (Depends-on): Likewise.
106225         * MODULES.html.sh (Support for building libraries and
106226         executables): Document it.
106228 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106230         * gnulib-tool (SED): Remove, undoing previous change.
106231         The problem was that it broke coreutils on Solaris, because
106232         "sed --posix" leaked into a makefile.
106233         (sed): New alias, if 'alias' and GNU sed.
106235 2006-12-24  Jim Meyering  <jim@meyering.net>
106237         Work around an fchownat bug in glibc-2.4:
106238         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106239         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106240         in spite of the -P option.
106241         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106242         New macros.
106243         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106244         * modules/openat (Files): Add lib/fchownat.c.
106245         * lib/openat.c (fchownat): Don't define here.  Move to...
106246         * lib/fchownat.c: ...this new file.
106248 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106250         Fix bug reported by Bruno Haible in
106251         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106252         where quotearg.c didn't compile on Mac OS X 10.2 because it
106253         lacks <wchar.h> and wint_t.
106254         * lib/wctype_.h (__wctype_wint_t): New type.
106255         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106256         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106257         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106258         Arg is now of type __wctype_wint_t, not wint_t.
106259         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106260         substitute HAVE_WINT_T.
106261         * modules/wctype (Files): Add m4/wint_t.m4.
106262         (wctype.h): Substitute HAVE_WINT_T.
106264 2006-12-23  Bruno Haible  <bruno@clisp.org>
106266         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106268 2006-12-23  Bruno Haible  <bruno@clisp.org>
106270         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106271         S_ISLNK.
106272         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106273         mingw.
106275 2006-12-22  Bruno Haible  <bruno@clisp.org>
106277         * lib/copy-file.c: Include acl.h.
106278         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106279         Close the file descriptors only after being done with copy_acl.
106280         * modules/copy-file (Depends-on): Add acl.
106282 2006-12-22  Bruno Haible  <bruno@clisp.org>
106284         * gnulib-tool (SED): New variable.
106285         Use $SED instead of sed everywhere.
106287 2006-12-22  Bruno Haible  <bruno@clisp.org>
106289         * modules/no-c++: New file.
106290         * m4/no-c++.m4: New file.
106291         * MODULES.html.sh (Support for building libraries and executables):
106292         Add no-c++.
106294 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106296         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106297         Include <limits.h>, and use its INT_MAX to rewrite the
106298         j loop so that it does not overflow 'int'.  Problem reported by
106299         Ralf Wildenhues in
106300         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106301         Play it safe by shifting left by 1 rather than multiplying by 2,
106302         as GCC is less likely to optimize this away when the value
106303         is signed (when it assumes overflow leads to undefined behavior).
106304         Also, don't assume time_t uses two's complement.
106306 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106308         * MODULES.html.sh: New module wctype.
106309         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106310         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106311         <wctype.h>, since the new wctype module should fix this.
106312         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106313         the wctype module should arrange for it.
106314         * lib/regex_internal.h: Likewise.
106315         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106316         since the wctype module should handle this now.
106317         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106318         * modules/fnmatch (Depends-on): Add wctype.
106319         * modules/quotearg (Depends-on): Likewise.
106320         * modules/regex (Depends-on): Likewise.
106322 2006-12-19  Bruno Haible  <bruno@clisp.org>
106324         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106325         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106327 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106329         * modules/savewd (Depends-on): Fix dependency on fcntl.
106331 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106333         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106334         conforms to C99, rather than relying on the user's environment
106335         setting of STDINT_H.
106337 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106338         and Eric Blake  <ebb9@byu.net>
106340         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106341         This is more consistent with the other defines here.
106342         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106343         Port to z/OS.  Problem reported by Paul Gilmartin.
106344         Change local vars to use gl_ prefix rather than ac_.
106345         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106346         with other defines.
106347         * modules/double-slash-root: New module.
106348         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106349         (Depends-on): Add double-slash-root.
106350         * MODULES.html.sh (File system functions): Mention new module.
106352 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106354         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106355         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106356         This is for the benefit of gzip, which doesn't do i18n.
106358 2006-12-12  Jim Meyering  <jim@meyering.net>
106360         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106361         Reported by Andreas Schwab <schwab@suse.de>.
106363 2006-12-12  Bruno Haible  <bruno@clisp.org>
106365         Merge these changes.
106366         2006-09-05  Bruno Haible  <bruno@clisp.org>
106367         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106368         iconv_alloc succeeded.
106369         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106370         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106371         test for " && dest " at the end - dest is always != NULL there. Call
106372         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106373         with 2xNULL arguments, also to flush the state storage. Handle the
106374         IRIX iconv behaviour. Realloc the final result, to throw away unused
106375         memory.
106377 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106379         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106380         and fchmodat unconditionally, since glibc 2.4 has them.
106381         Problem reported by Arkadiusz Miskiewicz.
106383 2006-12-10  Bruno Haible  <bruno@clisp.org>
106385         * gnulib-tool (func_import): Show the include files only for those
106386         modules that are copied and specified.
106387         Reported by Karl Berry.
106389 2006-12-08  Jim Meyering  <jim@meyering.net>
106391         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106392         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106394         * build-aux/announce-gen: Add two new options, both optional:
106395         --bootstrap-tools=TOOL_LIST
106396               a comma-separated list of tools, e.g.,
106397               autoconf,automake,bison,gnulib
106398         --gnulib-snapshot-date=DATE
106399               if gnulib is in the bootstrap tool list,
106400               then report this as the snapshot date.
106401               If not specified, use the current date/time.
106402               If you specify a date here, be sure it's UTC.
106404 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106406         * tests/test-argp-2.sh: Fix test to match actual output.
106407         (func_compare): Fix sed script to be portable.
106409 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106411         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106412         workaround for this case.  It is not autoconfigured now; offhand
106413         it's hard to see how to autoconfigure it.
106415 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106417         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106418         a directory that is about to be chowned.  Such a directory's
106419         initial file permissions should permit the owner only and this
106420         should not be changed until after the chown, since the group and
106421         other bits would be incorrect if they granted permission before
106422         the chown.
106424         Fix porting problem for iswctype reported by Georg Schwarz in:
106425         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106426         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106427         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106428         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106429         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106431 2006-12-03  Jim Meyering  <jim@meyering.net>
106433         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106434         p->fts_statp may not yet be defined.
106435         (fts_read): Instead, set it in the caller, once p->fts_statp is
106436         sure to be defined, and corresponds to a top-level directory.
106437         This bug made du -x fail.  Here's the coreutils test case:
106438         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106439         Reported by Mike Frysinger.
106441 2006-12-01  Jim Meyering  <jim@meyering.net>
106443         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106444         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106445         Reported by Simon Josefsson.
106447 2006-11-30  Jim Meyering  <jim@meyering.net>
106449         * m4/warning.m4: Use the all-permissive copyright notice
106450         recommended by RMS (rather than LGPL).
106451         * m4/vararrays.m4: Likewise.
106452         * m4/flexmember.m4: Likewise.
106454 2006-11-29  Bruno Haible  <bruno@clisp.org>
106456         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106457         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106458         using +=.
106459         Reported by Simon Josefsson <simon@josefsson.org>.
106461 2006-11-28  James Youngman  <jay@gnu.org>
106463         * README: Advise users that they might find the bug-gnulib@gnu.org
106464         and autotools-announce@gnu.org mailing lists useful.
106466 2006-11-28  Bruno Haible  <bruno@clisp.org>
106468         * m4/ptrdiff_max.m4: Remove file.
106470 2006-11-21  Bruno Haible  <bruno@clisp.org>
106472         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106473         _AC_COMPUTE_INT.
106474         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106475         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106476         _AC_COMPUTE_INT.
106477         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106478         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106479         _AC_COMPUTE_INT.
106480         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106482 2006-11-28  Jim Meyering  <jim@meyering.net>
106484         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106485         warning from "gcc -Wshadow" about shadowing the builtin.
106487 2006-11-27  Bruno Haible  <bruno@clisp.org>
106489         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106490         _AC_COMPUTE_INT.
106491         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106493 2006-11-27  Bruno Haible  <bruno@clisp.org>
106494             Paul Eggert  <eggert@cs.ucla.edu>
106496         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106498 2006-11-26  Bruno Haible  <bruno@clisp.org>
106500         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106501         noinst_LTLIBRARIES.
106503 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106504             Bruno Haible  <bruno@clisp.org>
106506         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106507         if compiling with "gcc -ansi".
106509 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106511         Fix some incompatibilities with gcc -ansi -pedantic.
106512         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106513         if compiling pedantically with GCC, unless it's C99 or later.
106514         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106515         it mishandles gcc -ansi -pedantic as well.
106516         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106517         if gcc -pedantic.
106518         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106519         initializers for struct if -pedantic, unless it's C99 or later.
106521 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106523         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106524         Don't close an fd more than once. Identical atimes indicate
106525         success, not failure.
106527 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106529         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106531 2006-11-23  Jim Meyering  <jim@meyering.net>
106533         * build-aux/announce-gen: New file.  From coreutils.
106535 2006-11-22  Jim Meyering  <jim@meyering.net>
106537         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106538         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106539         (fts_read): Use a temporary to narrow the overused st_size member
106540         before using it in a switch statement.  Reported by Matthew Woehlke.
106542         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106543         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106545 2006-11-20  Bruno Haible  <bruno@clisp.org>
106547         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106548         changequote instead of pairs of brackets.
106549         Reported by Andreas Schwab <schwab@suse.de>.
106551 2006-11-21  Jim Meyering  <jim@meyering.net>
106553         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106554         so as to remain compatible with older compilers.
106555         Patch from Michael Deutschmann.
106557 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106559         * MODULES.html.sh (File system functions): Add openat.
106561         * lib/openat.h (rpl_fstatat): New macro, if
106562         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106563         (fstatat): Define to rpl_fstatat under the same conditions,
106564         unless COMPILING_FSTATAT.
106565         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106566         seems to have the bug.
106567         * lib/fstatat.c: New file.
106568         * modules/openat (Files): Add it.
106570 2006-11-20  Bruno Haible  <bruno@clisp.org>
106572         * Makefile: New file.
106574 2006-11-20  Jim Meyering  <jim@meyering.net>
106576         The beginnings of syntax-related checks for gnulib.
106577         * lib/Makefile: New file.
106578         * lib/t-idcache: New script.  Ensure that the two halves of
106579         idcache.c stay in sync.
106581         * lib/idcache.c: Adjust comments in user- and group- portions to
106582         be more accurate, and to be consistent with one another.
106584 2006-11-20  Jim Meyering  <jim@meyering.net>
106586         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106587         continue using the flexible array member (thus, this module performs
106588         half as many malloc calls), with the addition that...
106589         (getgroup, getuser): Consistently record a non-match via an empty
106590         "name" string, and map an empty string match to a NULL return value.
106591         * modules/idcache (Depends-on): Re-add flexmember.
106593         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106594         (getuidbyname, getgroup, getgidbyname): Likewise.
106596         Use cleaner syntax: NULL rather than 0.
106597         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106599 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106601         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106602         It mishandled the case where the group was missing.
106603         Problem reported by Greg Schafer.
106604         * modules/idcache: Likewise.
106606 2006-11-18  Jim Meyering  <jim@meyering.net>
106608         * check-module (%exempt_header): Add exception for some
106609         conditionally-included headers.
106611         * modules/i-ring (Depends-on): Add verify.
106612         (License): Change to LGPL.
106614 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106616         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106617         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106618         and inttostr.h.  Use snprintf rather than uinttostr, so that
106619         LGPLed code doesn't depend on GPLed.
106621 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106623         * modules/inline (License): Change from GPL to LGPL.
106625 2006-11-17  Jim Meyering  <jim@meyering.net>
106627         * modules/d-type (License): Switch to LGPL.
106629 2006-11-15  Bruno Haible  <bruno@clisp.org>
106631         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106633 2006-11-15  Eric Blake  <ebb9@byu.net>
106635         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106636         the module dependency.
106638 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106639             Bruno Haible  <bruno@clisp.org>
106641         * gnulib-tool (func_create_testdir): Add license consistency check.
106643 2006-11-15  Eric Blake  <ebb9@byu.net>
106645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106646         random "(cached)" in configure output.
106648 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106650         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106651         test for conforming inttypes.h is both announced and cached.
106653         * MODULES.html.sh (seen_modules, seen_files): New variables.
106654         (func_module): Rewrite to use a few less gnulib-tool and sed
106655         invocations.  Avoid a couple of quadratic algorithms for ...
106656         (missed_modules, missed_files): ... these, with ...
106657         (func_append, func_tmpdir): ... these new functions, from
106658         gnulib-tool.  Analogously, install traps for cleanup.
106660         * tests/test-gc.c (main): Remove unused variables.
106661         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106663 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106665         * modules/inttostr (License): Change to LGPL.
106667 2006-11-14  Eric Blake  <ebb9@byu.net>
106669         * modules/tempname (License): Change to LGPL.
106671 2006-11-14  Eric Blake  <ebb9@byu.net>
106673         * doc/functions.texi (Function Portability): *printf functions on
106674         Cygwin now understand all POSIX size specifiers.
106676 2006-11-14  Bruno Haible  <bruno@clisp.org>
106678         * modules/c-ctype (License): Change to LGPL.
106680 2006-11-12  Bruno Haible  <bruno@clisp.org>
106682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106683         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106684         for GNOME libraries, for which the include files are installed in
106685         subdirectories of $prefix/include.
106687 2006-11-12  Bruno Haible  <bruno@clisp.org>
106689         * m4/lib-link.m4: Require at least autoconf-2.54.
106690         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106691         name to underscores for the --with option.
106693 2006-11-13  Bruno Haible  <bruno@clisp.org>
106695         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106696         the tests directory.
106697         Reported by Ralf Wildenhues.
106699 2006-11-13  Bruno Haible  <bruno@clisp.org>
106701         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106702         (func_emit_initmacro_end): Undo the override here.
106703         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106704         Works around the famous automake error in coreutils.
106706 2006-11-13  Eric Blake  <ebb9@byu.net>
106708         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106709         element, not its node.
106711 2006-11-12  Bruno Haible  <bruno@clisp.org>
106713         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106714         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106716 2006-11-12  Bruno Haible  <bruno@clisp.org>
106718         * gnulib-tool: New option --local-symlink.
106719         (func_usage): Document it.
106720         (lsymbolic): New variable.
106721         (func_import, func_create_testdir): If --symlink was not specified,
106722         test whether --local-symlink was specified and the file comes from
106723         the local_gnulib_dir.
106725 2006-11-12  Bruno Haible  <bruno@clisp.org>
106727         * gnulib-tool (func_ln): New function.
106728         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
106730 2006-11-12  Bruno Haible  <bruno@clisp.org>
106732         Finish support for source files in subdirectories.
106733         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
106734         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
106735         AUTOMAKE_OPTIONS.
106736         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
106738 2006-11-12  Bruno Haible  <bruno@clisp.org>
106740         * gnulib-tool (func_get_automake_snippet): Synthesize also an
106741         EXTRA_lib_SOURCES augmentation.
106742         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
106744 2006-11-12  Jim Meyering  <jim@meyering.net>
106746         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
106747         file descriptors.  This also averts a failure on systems with
106748         native openat support when a traversed directory lacks "x" access.
106749         * lib/fts_.h: Include "i-ring.h"
106750         (struct FTS) [fts_fd_ring]: New member.
106751         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
106752         (FCHDIR): Add parentheses.
106753         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
106754         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
106755         When descending, rather than simply closing the previous
106756         fts_cwd_fd value, push that file descriptor onto the ring.
106757         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
106758         (fts_open): Initialize the new fd_ring member.
106759         (fts_close): Clear the ring.
106760         (fts_safe_changedir): When possible, use our new fd_ring to skip
106761         the diropen and fstat and dev/ino comparison that would normally
106762         accompany a virtual `chdir ("..")'.
106764         * modules/fts (Depends-on): Add i-ring.
106765         * modules/i-ring: New module.
106766         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
106767         * m4/i-ring.m4: New file.
106769 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106771         * gnulib-tool (func_create_testdir): Fix replacement of
106772         `build-aux' in configure.ac.  Run autotools in gltests
106773         subdirectory.
106774         (func_create_testdir, func_create_megatestdir, test): There is
106775         no need for '--force' in most autotool invocations in a new
106776         tree.  Actually fail the whole test if any of the tools, or the
106777         configure or make stages fail.
106779         Sync from Automake.
106780         * build-aux/gnupload: Revert last change.  Add pointer to upload
106781         instructions of the GNU Maintenance Instructions.
106782         Suggestion by Karl Berry.
106784 2006-11-10  Jim Meyering  <jim@meyering.net>
106786         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
106788 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106790         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
106791         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
106792         (bind_textdomain_codeset) [! ENABLE_NLS]:
106793         Evaluate all the arguments.  That way, callers get compatible behavior
106794         if the arguments have side effects.  Also, it avoids some GCC
106795         diagnostics in some cases; Joel E. Denny reported problems when Bison
106796         was configured with --enable-gcc-warnigs.
106798 2006-11-10  Jim Meyering  <jim@meyering.net>
106800         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
106801         relevant options in CFLAGS (like -O, -fno-inline) are taken into
106802         account.
106804 2006-11-10  Jim Meyering  <jim@meyering.net>
106806         * modules/inline: New file/module.
106807         * modules/xalloc (Files): Remove m4/inline.m4.
106808         (Depends-on): Add inline, instead.
106809         * modules/oset: Likewise.
106810         * modules/list: Likewise.
106812 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106814         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
106815         Problem reported by Matthew Woehlke.
106817 2006-11-09  Bruno Haible  <bruno@clisp.org>
106819         * lib/tempname.c (gen_tempname): Remove variant that invokes
106820         __gen_tempname.
106821         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
106822         __gen_tempname.
106824 2006-11-08  Bruno Haible  <bruno@clisp.org>
106826         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
106827         to 'yes' instead of 'cross-compiling'.
106829 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
106831         * lib/quotearg.h (quotearg_free): New decl.
106832         * lib/quotearg.c (quotearg_free): New function.
106833         (slot0, nslots, slotvec0, slotvec):
106834         Now file-scope so that quotearg_free can get at them.
106836 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106838         Sync from Automake.
106839         * build-aux/gnupload: Add missing 'gnu' to example URL.
106840         Report by Karl Berry.
106842 2006-11-08  Bruno Haible  <bruno@clisp.org>
106844         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
106845         Suggested by Paul Eggert.
106847 2006-11-08  Jim Meyering  <jim@meyering.net>
106849         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
106850         It's already included if !_LIBC.
106851         (fts_safe_changedir): Add a comment.
106853 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106855         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
106856         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
106857         Matthew Woehlke.
106859         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
106860         definitions up, to avoid colliding with change below.
106861         (static_inline) [HAVE_INLINE]: New macro.
106862         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
106863         Provide extern decls when !HAVE_INLINE.  Do not define unless
106864         static_inline is defined, either by us or by xmalloc.c.  Use
106865         static_inline rather than static inline.
106866         (XCALLOC): Optimize sizeof(T) = 1 case.
106867         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
106869 2006-11-07  Bruno Haible  <bruno@clisp.org>
106871         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
106872         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
106873         AC_C_INLINE.
106874         * modules/xalloc (Files): Add m4/inline.m4.
106876 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106878         * README: Fix typo.
106879         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
106880         (Miscellanous Notes): ...from this.
106882 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106884         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
106885         Mention that offsetof should be used instead of sizeof.
106886         From Bruno Haible.
106888 2006-11-07  Bruno Haible  <bruno@clisp.org>
106890         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
106892 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106894         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
106895         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
106896         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
106897         (gl_tree_add_before, gl_tree_add_after):
106898         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
106899         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
106900         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106901         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
106902         (gl_linked_add_after, gl_linked_add_at): Likewise.
106903         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
106904         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
106905         (gl_tree_add_before, gl_tree_add_after): Likewise.
106906         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
106907         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
106908         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
106910 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106912         * lib/gl_oset.h: Use C comment style, not C++ comment style.
106914 2006-11-06  Bruno Haible  <bruno@clisp.org>
106916         * m4/inline.m4: New file.
106917         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
106918         * modules/list (Files): Add m4/inline.m4.
106919         * modules/oset (Files): Likewise.
106921 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
106923         * lib/idcache.c: Include <stddef.h>, for offsetof.
106924         (struct userid.name): Change from char * to a flexible array member.
106925         All uses changed.
106926         * modules/idcache (Depends-on): Add flexmember.
106928         * MODULES.html.sh (Core language properties): New module flexmember.
106929         * modules/flexmember, m4/flexmember.m4: New files.
106931         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
106932         inline functions that are identical with the old xnmalloc_inline,
106933         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
106934         that we can avoid some unnecessary integer multiplications and
106935         divisions in the common case where the element size is known at
106936         compile time.
106937         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
106938         needed.
106939         (xnboundedmalloc): Remove.
106940         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
106941         arguments, for consistency with rest of this header.
106942         (xcharalloc): Rewrite using XNMALLOC.
106943         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
106944         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
106945         versions have been moved to lib/xalloc.h and renamed to be the
106946         non-*_inline versions.
106947         (xmalloc, xrealloc): Implement without reference to the xnmalloc
106948         and xnrealloc functions, since those functions are now inline and
106949         now call us.
106950         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
106951         renaming described above.
106952         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
106953         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
106954         captures the dependency in AC_C_INLINE.
106956         New module canonicalize-lgpl, proposed by Charles Wilson in
106957         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
106958         with a few small changes afterwards.
106959         * MODULES.html.sh (File system functions): New module
106960         canonicalize-lgpl.
106961         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
106962         and canonicalize_file_name.
106963         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
106964         * modules/canonicalize-lgpl: New files.
106966 2006-11-05  Bruno Haible  <bruno@clisp.org>
106968         * gnulib-tool (func_import, func_create_testdir): Create directories
106969         also for files in subdirectories of lib/.
106971 2006-11-05  Bruno Haible  <bruno@clisp.org>
106973         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
106974         ANSI C compliant.
106976 2006-11-03  Bruno Haible  <bruno@clisp.org>
106978         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
106979         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
106980         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
106981         (xnboundedmalloc): New inline function.
106982         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
106983         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
106984         xmalloc.
106985         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
106986         xmalloc.
106987         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
106988         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
106989         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
106990         xmalloc.
106991         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
106992         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
106993         xmalloc.
106994         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
106995         gl_tree_add_after): Use XMALLOC instead of xmalloc.
106996         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
106997         xmalloc.
106998         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
106999         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107000         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107001         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107002         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107003         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107004         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107006 2006-11-03  Bruno Haible  <bruno@clisp.org>
107008         * lib/c-ctype.h [C++]: Define functions without name mangling.
107009         * lib/fwriteerror.h [C++]: Likewise.
107010         * lib/gcd.h [C++]: Likewise.
107011         * lib/linebreak.h [C++]: Likewise.
107013 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107015         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107016         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107017         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107019         Check for functions and headers just once.
107020         Check for declaration of canonicalize_file_name.
107021         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107023 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107025         * gnulib-tool (func_import): Fix typo in actioncmd.
107027 2006-11-02  Bruno Haible  <bruno@clisp.org>
107029         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107030         newline sequence in the Makefile.am snippet as a space, like "make"
107031         does.
107032         Reported by Roger Persson <perrog@gmail.com>.
107034 2006-11-01  Bruno Haible  <bruno@clisp.org>
107036         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107037         already declared in <string.h>.
107038         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107040 2006-11-01  Bruno Haible  <bruno@clisp.org>
107042         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107043         * lib/strcase.h: Include <string.h>.
107044         (strcasecmp): Define to rpl_strcasecmp here.
107046 2006-11-01  Bruno Haible  <bruno@clisp.org>
107048         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107050 2006-11-01  Eric Blake  <ebb9@byu.net>
107052         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107056 2006-10-29  Bruno Haible  <bruno@clisp.org>
107058         Make it compile in C++ mode.
107059         * lib/full-write.c (full_rw): Add a cast.
107061 2006-11-01  Bruno Haible  <bruno@clisp.org>
107063         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107064         be POSIX compliant.
107065         Reported by Roger Persson <perrog@gmail.com>.
107067 2006-11-01  Eric Blake  <ebb9@byu.net>
107069         * lib/getopt_.h: Fix comments.
107071 2006-10-31  Eric Blake  <ebb9@byu.net>
107073         * modules/tmpdir (Depends-on): Add sys_stat.
107074         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107075         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107076         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107077         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107078         tempname.
107080 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107082         Avoid some C++ diagnostics reported by Bruno Haible.
107083         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107084         xmalloc.
107085         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107086         (struct slotvec): Move to top level.
107087         (quotearg_n_options): Rewrite to avoid xmalloc.
107088         * lib/xalloc.h (xcharalloc): New function.
107089         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107090         [defined __cplusplus]: Add function template that provides result
107091         type propagation.  This part of the change is from Bruno Haible.
107093 2006-10-29  Bruno Haible  <bruno@clisp.org>
107095         Make it compile in C++ mode.
107096         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107097         * lib/strnlen1.c (strnlen1): Cast memchr result.
107098         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107099         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107100         (create_temp_dir): Rename local variable 'template'.
107101         (compile_csharp_using_sscli): Add cast.
107102         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107103         * lib/findprog.c (find_in_path): Likewise.
107104         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107105         * lib/wait-process.c (register_slave_subprocess): Likewise.
107107 2006-10-22  Bruno Haible  <bruno@clisp.org>
107109         * modules/tsearch: New file.
107110         * lib/tsearch.h: New file.
107111         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107112         * m4/tsearch.m4: New file.
107113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107115 2006-10-29  Eric Blake  <ebb9@byu.net>
107117         * lib/arcfour.c: Assume config.h.
107118         * lib/arctwo.c: Likewise.
107119         * lib/base64.c: Likewise.
107120         * lib/check-version.c: Likewise.
107121         * lib/crc.c: Likewise.
107122         * lib/des.c: Likewise.
107123         * lib/gc-gnulib.c: Likewise.
107124         * lib/gc-libgcrypt.c: Likewise.
107125         * lib/gc-pbkdf2-sha1.c: Likewise.
107126         * lib/getaddrinfo.c: Likewise.
107127         * lib/getdelim.c: Likewise.
107128         * lib/getline.c: Likewise.
107129         * lib/hmac-md5.c: Likewise.
107130         * lib/hmac-sha1.c: Likewise.
107131         * lib/iconvme.c: Likewise.
107132         * lib/md2.c: Likewise.
107133         * lib/md4.c: Likewise.
107134         * lib/memxor.c: Likewise.
107135         * lib/read-file.c: Likewise.
107136         * lib/readline.c: Likewise.
107137         * lib/rijndael-alg-fst.c: Likewise.
107138         * lib/rijndael-api-fst.c: Likewise.
107139         * lib/xgetdomainname.c: Likewise.
107141 2006-10-28  Eric Blake  <ebb9@byu.net>
107143         * lib/xstrndup.c: Assume config.h.
107145 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107147         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107148         stat-macros.h is now for our own macros, whereas stat_h is for
107149         macros in the <sys/stat.h> name space.
107150         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107151         (STAT_MACROS_H): Remove.
107152         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107153         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107154         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107155         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107156         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107157         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107158         Move these macros to ...
107159         * lib/stat_.h: here.  Don't include stat-macros.h.
107160         * lib/canonicalize.c: Don't include stat-macros.h.
107161         * lib/chown.c: Likewise.
107162         * lib/euidaccess.c: Likewise.
107163         * lib/file-type.c: Likewise.
107164         * lib/filemode.c: Likewise.
107165         * lib/glob.c: Likewise.
107166         * lib/isapipe.c: Likewise.
107167         * lib/lchown.c: Likewise.
107168         * lib/lstat.c: Likewise.
107169         * lib/mkdir-p.c: Likewise.
107170         * lib/rmdir.c: Likewise.
107171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107172         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107173         unless mkdir isn't declared, to speed up 'configure'.
107174         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107175         would define all the S_* symbols.
107176         * modules/canonicalize (Depends-on):
107177         Depend on sys_stat, not stat-macros.
107178         * modules/chown: Likewise.
107179         * modules/euidaccess: Likewise.
107180         * modules/filemode: Likewise.
107181         * modules/file-type: Likewise.
107182         * modules/glob: Likewise.
107183         * modules/isapipe: Likewise.
107184         * modules/lchown: Likewise.
107185         * modules/lstat: Likewise.
107186         * modules/mkancesdirs: Likewise.
107187         * modules/rmdir: Likewise.
107188         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107189         * modules/modechange: Likewise.
107190         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107191         (configure.ac): Remove gl_STAT_MACROS.
107192         * modules/sys_stat (Depends-on): Remove stat-macros.
107194 2006-10-27  Bruno Haible  <bruno@clisp.org>
107196         * m4/signed.m4: Remove file.
107197         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107198         invocation.
107199         * modules/vasnprintf (Files): Remove m4/signed.m4.
107201 2006-10-27  Bruno Haible  <bruno@clisp.org>
107203         Update to GNU gettext 0.16.
107204         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107205         m4/inttypes-h.m4, m4/signed.m4.
107206         * m4/gettext.m4: Update to GNU gettext 0.16.
107207         * m4/intl.m4: New file, from GNU gettext.
107208         * m4/intldir.m4: New file, from GNU gettext.
107209         * config/srclist.txt: Update
107211 2006-10-27  Eric Blake  <ebb9@byu.net>
107213         * MODULES.html.sh: Document tempname.
107214         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107215         dependencies.
107216         (Files): Move lib/tempname.c...
107217         * modules/tempname: ...to this new module.
107218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107219         (gl_PREREQ_TEMPNAME): Move...
107220         * m4/tempname.m4: ...to this new file.
107221         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107222         * modules/sys_stat (Depends-on): Add stat-macros.
107223         * lib/stat_.h (includes): Pick up stat macros.
107224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107225         if stat macros are broken.
107226         * lib/tempname.c (includes): No need to include "stat-macros.h".
107227         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107228         (direxists, __path_search) [!_LIBC]: Don't compile these in
107229         gnulib; the tmpdir module covers that.
107230         * lib/tempname.h: New file.
107232 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107234         * COPYING: Explain how gnulib-tool converts licence headers.
107235         Almost all wording by Eric Blake.
107237 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107239         * lib/mbchar.h (is_basic_table): Make read-only.
107240         * lib/mbchar.c (is_basic_table): Likewise.
107241         Reported by John Darrington.
107243 2006-10-25  Bruno Haible  <bruno@clisp.org>
107245         * lib/progname.h (set_program_name): Undefine before defining.
107247 2006-10-25  Bruno Haible  <bruno@clisp.org>
107249         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107250         false for non-gcc C++ compilers.
107251         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107253 2006-10-24  Bruno Haible  <bruno@clisp.org>
107255         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107256         iconv implementations like Irix iconv.
107258 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107260         * modules/vararrays: New file.
107261         * m4/vararrays.m4: New file, taken from diffutils.
107262         * MODULES.html.sh: New module vararrays.
107264 2006-10-24  Karl Berry  <karl@gnu.org>
107266         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107267         Don't call GNU Unix.
107269 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107271         * users.txt: Add Libtool.
107273         Sync from Libtool:
107275         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107277         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107278         to gnulib's policy of including config.h unconditionally.
107280 2006-10-24  Bruno Haible  <bruno@clisp.org>
107282         * modules/wcwidth (Files): Add m4/wint_t.m4.
107283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107284         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107286 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107288         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107289         to pacify GCC with some -W flags enabled.  Problem reported by
107290         Bruno Haible.
107292 2006-10-24  Jim Meyering  <jim@meyering.net>
107294         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107295         Reported by Karl Berry.
107297 2006-10-23  Bruno Haible  <bruno@clisp.org>
107299         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107301 2006-10-24  Bruno Haible  <bruno@clisp.org>
107303         * lib/gl_list.h: Use C comment style, not C++ comment style.
107305 2006-10-23  Eric Blake  <ebb9@byu.net>
107307         * lib/getaddrinfo.c (includes): Add missing include.
107309 2006-10-23  Bruno Haible  <bruno@clisp.org>
107310             Paul Eggert  <eggert@cs.ucla.edu>
107312         Ability to rename obstack_free.
107313         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107314         obstack_free.
107315         (obstack_free): Invoke the __obstack_free macro.
107316         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107318 2006-10-23  Bruno Haible  <bruno@clisp.org>
107319             Paul Eggert  <eggert@cs.ucla.edu>
107321         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107322         __argc, __argv from the declaration. (They are defined as macros on
107323         mingw.)
107325 2006-10-22  Bruno Haible  <bruno@clisp.org>
107327         * doc/gnulib-intro.texi: New file.
107328         * doc/gnulib.texi: Include it.
107330 2006-10-21  Bruno Haible  <bruno@clisp.org>
107332         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107333         "Introduction", "Miscellanous Notes", "Particular Modules".
107335 2006-10-21  Bruno Haible  <bruno@clisp.org>
107337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107338         Change mostlyclean-local rule to avoid sh syntax error from bash
107339         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107341 2006-10-23  Jim Meyering  <jim@meyering.net>
107343         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107344         in place of snprintf.
107346         * modules/inttostr (Files): Add lib/uinttostr.c.
107347         * lib/uinttostr.c (inttostr): New file/function.
107348         * lib/inttostr.h (uinttostr): Declare.
107349         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107350         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107351         Add uinttostr.
107352         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107354 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107356         * lib/canonicalize.c (ELOOP): Define if not already defined.
107357         Problem reported by Bruno Haible in
107358         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107360 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107362         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107363         Problem reported by Perry Smith and Ville Laurikari.
107365         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107366         uses.
107368 2006-10-19  Bruno Haible  <bruno@clisp.org>
107370         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107371         for mingw.
107373 2006-10-19  Bruno Haible  <bruno@clisp.org>
107375         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107376         Needed for mingw.
107378 2006-10-19  Bruno Haible  <bruno@clisp.org>
107380         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107382 2006-10-19  Bruno Haible  <bruno@clisp.org>
107384         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107385         it.
107387 2006-10-19  Bruno Haible  <bruno@clisp.org>
107389         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107390         invocation.
107392 2006-10-19  Bruno Haible  <bruno@clisp.org>
107394         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107395         mountlist by default.
107397 2006-10-16  Bruno Haible  <bruno@clisp.org>
107399         * lib/c-strstr.c: Include c-strstr.h.
107401 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107403         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107404         in a slash.
107406 2006-10-18  Bruno Haible  <bruno@clisp.org>
107408         * lib/lock.h [C++]: Wrap definitions in extern "C".
107410 2006-10-18  Bruno Haible  <bruno@clisp.org>
107412         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107413         gl_LIBOBJS list.
107415 2006-10-18  Bruno Haible  <bruno@clisp.org>
107417         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107419 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107421         * lib/xstrtol.h: Include gettext.h.
107422         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107423         Problem reported by Eric Blake.
107424         * modules/xstrtol (Depends-on): Add gettext-h.
107426 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107428         * lib/strftime.c (advance): New macro.
107429         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107430         incomplete type, so you can't add 0 to it.  Problem and patch
107431         reported by Eelco Dolstra for dietlibc.
107433 2006-10-18  Jim Meyering  <jim@meyering.net>
107435         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107436         type for a local, and rename it: s/up/user_proc/.
107438 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107440         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107441         READ_UTMP_USER_PROCESS.
107442         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107444 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107446         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107447         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107449 2006-10-17  Eric Blake  <ebb9@byu.net>
107451         * lib/sigprocmask.c (sigprocmask): Fix typo.
107453         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107455         * modules/clean-temp (Makefile.am): Don't add to make output...
107456         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107457         config.h.
107459 2006-10-17  Bruno Haible  <bruno@clisp.org>
107461         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107462         differently if DEFAULT_TEXT_DOMAIN is set.
107464 2006-10-16  Bruno Haible  <bruno@clisp.org>
107466         * lib/clean-temp.c: Include fwriteerror.h.
107468 2006-10-16  Bruno Haible  <bruno@clisp.org>
107470         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107472 2006-10-16  Bruno Haible  <bruno@clisp.org>
107474         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107475         * lib/sigprocmask.h: Include <sys/types.h>.
107476         (sigset_t): Use the system's definition if present.
107478 2006-10-17  Eric Blake  <ebb9@byu.net>
107480         * lib/xvasprintf.c (includes): Assume config.h.
107481         * lib/xasprintf.c (includes): Likewise.
107483 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107485         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107486         at least as wide as intmax_t.
107488 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107490         (Imported from Automake.)
107491         * build-aux/gnupload: Update to version 1.1 of directive file.
107493 2006-10-16  Eric Blake  <ebb9@byu.net>
107495         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107496         match Automake 1.10a.
107498 2006-10-14  Bruno Haible  <bruno@clisp.org>
107500         * modules/sigprocmask: New file.
107501         * lib/sigprocmask.h: New file.
107502         * lib/sigprocmask.c: New file.
107503         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107504         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107505         request sigprocmask.o.
107506         (gl_PREREQ_SIGPROCMASK): New macro.
107507         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107508         (Depends-on): Add sigprocmask.
107509         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107510         gt_SIGNALBLOCKING. Test for 'raise' only once.
107511         * lib/fatal-signal.c: Include sigprocmask.h.
107512         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107513         unblock_fatal_signals): Define always.
107514         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107515         sigprocmask.
107517 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107519         Sync from Automake.
107520         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107521         which incorrectly sets the mode of an existing destination
107522         directory.  In some cases the unpatched install-sh could do the
107523         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107524         system.  We hope this is rare in practice, but it's clearly worth
107525         fixing.  Problem reported by Alex Unleashed in
107526         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107527         Also, don't bother to check for -m bugs unless we're using -m;
107528         suggested by Stepan Kasal.
107530 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107532         Sync from Automake.
107533         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107534         `-c' flag, so they appear at the same position as in %FASTDEP%
107535         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107536         which ignores unknown options only after the first non-option.
107537         Bug report against M4 by Nelson H. F. Beebe.
107539 2006-10-13  Jim Meyering  <jim@meyering.net>
107541         Fix a bug in yesterday's change.
107542         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107543         p->fts_statp->st_dev would be used uninitialized.
107544         Ensures that we always call fts_stat on the very first entry.
107545         Miklos Szeredi reported that find -xdev stopped working.
107547 2006-10-12  Bruno Haible  <bruno@clisp.org>
107549         * gnulib-tool (func_get_automake_snippet): Append an automatically
107550         computed EXTRA_DIST augmentation.
107551         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107552         * modules/alloca-opt (Makefile.am): Likewise.
107553         * modules/allocsa (Makefile.am): Likewise.
107554         * modules/arcfour (Makefile.am): Likewise.
107555         * modules/arctwo (Makefile.am): Likewise.
107556         * modules/argmatch (Makefile.am): Likewise.
107557         * modules/argz (Makefile.am): Likewise.
107558         * modules/atexit (Makefile.am): Likewise.
107559         * modules/backupfile (Makefile.am): Likewise.
107560         * modules/byteswap (Makefile.am): Likewise.
107561         * modules/c-strtod (Makefile.am): Likewise.
107562         * modules/c-strtold (Makefile.am): Likewise.
107563         * modules/calloc (Makefile.am): Likewise.
107564         * modules/canon-host (Makefile.am): Likewise.
107565         * modules/canonicalize (Makefile.am): Likewise.
107566         * modules/chdir-long (Makefile.am): Likewise.
107567         * modules/chdir-safer (Makefile.am): Likewise.
107568         * modules/check-version (Makefile.am): Likewise.
107569         * modules/chown (Makefile.am): Likewise.
107570         * modules/cloexec (Makefile.am): Likewise.
107571         * modules/close-stream (Makefile.am): Likewise.
107572         * modules/closeout (Makefile.am): Likewise.
107573         * modules/crc (Makefile.am): Likewise.
107574         * modules/csharpexec (Makefile.am): Likewise.
107575         * modules/cycle-check (Makefile.am): Likewise.
107576         * modules/des (Makefile.am): Likewise.
107577         * modules/dev-ino (Makefile.am): Likewise.
107578         * modules/dirfd (Makefile.am): Likewise.
107579         * modules/dirname (Makefile.am): Likewise.
107580         * modules/dup2 (Makefile.am): Likewise.
107581         * modules/eealloc (Makefile.am): Likewise.
107582         * modules/error (Makefile.am): Likewise.
107583         * modules/euidaccess (Makefile.am): Likewise.
107584         * modules/exclude (Makefile.am): Likewise.
107585         * modules/exitfail (Makefile.am): Likewise.
107586         * modules/fcntl-safer (Makefile.am): Likewise.
107587         * modules/fcntl (Makefile.am): Likewise.
107588         * modules/file-type (Makefile.am): Likewise.
107589         * modules/fileblocks (Makefile.am): Likewise.
107590         * modules/filemode (Makefile.am): Likewise.
107591         * modules/filenamecat (Makefile.am): Likewise.
107592         * modules/fnmatch (Makefile.am): Likewise.
107593         * modules/fopen-safer (Makefile.am): Likewise.
107594         * modules/fpending (Makefile.am): Likewise.
107595         * modules/fprintftime (Makefile.am): Likewise.
107596         * modules/free (Makefile.am): Likewise.
107597         * modules/fsusage (Makefile.am): Likewise.
107598         * modules/ftruncate (Makefile.am): Likewise.
107599         * modules/fts (Makefile.am): Likewise.
107600         * modules/gc-arcfour (Makefile.am): Likewise.
107601         * modules/gc-des (Makefile.am): Likewise.
107602         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107603         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107604         * modules/gc-md4 (Makefile.am): Likewise.
107605         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107606         * modules/gc-sha1 (Makefile.am): Likewise.
107607         * modules/gc (Makefile.am): Likewise.
107608         * modules/getaddrinfo (Makefile.am): Likewise.
107609         * modules/getcwd (Makefile.am): Likewise.
107610         * modules/getdelim (Makefile.am): Likewise.
107611         * modules/getdomainname (Makefile.am): Likewise.
107612         * modules/getgroups (Makefile.am): Likewise.
107613         * modules/gethostname (Makefile.am): Likewise.
107614         * modules/gethrxtime (Makefile.am): Likewise.
107615         * modules/getline (Makefile.am): Likewise.
107616         * modules/getloadavg (Makefile.am): Likewise.
107617         * modules/getlogin_r (Makefile.am): Likewise.
107618         * modules/getndelim2 (Makefile.am): Likewise.
107619         * modules/getopt (Makefile.am): Likewise.
107620         * modules/getpagesize (Makefile.am): Likewise.
107621         * modules/getpass-gnu (Makefile.am): Likewise.
107622         * modules/getpass (Makefile.am): Likewise.
107623         * modules/getsubopt (Makefile.am): Likewise.
107624         * modules/gettime (Makefile.am): Likewise.
107625         * modules/gettimeofday (Makefile.am): Likewise.
107626         * modules/getugroups (Makefile.am): Likewise.
107627         * modules/getusershell (Makefile.am): Likewise.
107628         * modules/glob (Makefile.am): Likewise.
107629         * modules/group-member (Makefile.am): Likewise.
107630         * modules/hard-locale (Makefile.am): Likewise.
107631         * modules/hash (Makefile.am): Likewise.
107632         * modules/hmac-md5 (Makefile.am): Likewise.
107633         * modules/hmac-sha1 (Makefile.am): Likewise.
107634         * modules/human (Makefile.am): Likewise.
107635         * modules/idcache (Makefile.am): Likewise.
107636         * modules/imaxabs (Makefile.am): Likewise.
107637         * modules/imaxdiv (Makefile.am): Likewise.
107638         * modules/inet_ntop (Makefile.am): Likewise.
107639         * modules/inet_pton (Makefile.am): Likewise.
107640         * modules/intprops (Makefile.am): Likewise.
107641         * modules/inttostr (Makefile.am): Likewise.
107642         * modules/inttypes (Makefile.am): Likewise.
107643         * modules/isapipe (Makefile.am): Likewise.
107644         * modules/javaversion (Makefile.am): Likewise.
107645         * modules/lchmod (Makefile.am): Likewise.
107646         * modules/lchown (Makefile.am): Likewise.
107647         * modules/localcharset (Makefile.am): Likewise.
107648         * modules/long-options (Makefile.am): Likewise.
107649         * modules/lstat (Makefile.am): Likewise.
107650         * modules/malloc (Makefile.am): Likewise.
107651         * modules/mathl (Makefile.am): Likewise.
107652         * modules/mbchar (Makefile.am): Likewise.
107653         * modules/md2 (Makefile.am): Likewise.
107654         * modules/md4 (Makefile.am): Likewise.
107655         * modules/md5 (Makefile.am): Likewise.
107656         * modules/memcasecmp (Makefile.am): Likewise.
107657         * modules/memchr (Makefile.am): Likewise.
107658         * modules/memcmp (Makefile.am): Likewise.
107659         * modules/memcoll (Makefile.am): Likewise.
107660         * modules/memcpy (Makefile.am): Likewise.
107661         * modules/memmem (Makefile.am): Likewise.
107662         * modules/memmove (Makefile.am): Likewise.
107663         * modules/mempcpy (Makefile.am): Likewise.
107664         * modules/memrchr (Makefile.am): Likewise.
107665         * modules/memset (Makefile.am): Likewise.
107666         * modules/memxor (Makefile.am): Likewise.
107667         * modules/mkancesdirs (Makefile.am): Likewise.
107668         * modules/mkdir-p (Makefile.am): Likewise.
107669         * modules/mkdir (Makefile.am): Likewise.
107670         * modules/mkdtemp (Makefile.am): Likewise.
107671         * modules/mkstemp (Makefile.am): Likewise.
107672         * modules/mktime (Makefile.am): Likewise.
107673         * modules/modechange (Makefile.am): Likewise.
107674         * modules/mountlist (Makefile.am): Likewise.
107675         * modules/nanosleep (Makefile.am): Likewise.
107676         * modules/obstack (Makefile.am): Likewise.
107677         * modules/openat (Makefile.am): Likewise.
107678         * modules/pagealign_alloc (Makefile.am): Likewise.
107679         * modules/pathmax (Makefile.am): Likewise.
107680         * modules/physmem (Makefile.am): Likewise.
107681         * modules/poll (Makefile.am): Likewise.
107682         * modules/posixtm (Makefile.am): Likewise.
107683         * modules/posixver (Makefile.am): Likewise.
107684         * modules/putenv (Makefile.am): Likewise.
107685         * modules/quote (Makefile.am): Likewise.
107686         * modules/quotearg (Makefile.am): Likewise.
107687         * modules/raise (Makefile.am): Likewise.
107688         * modules/read-file (Makefile.am): Likewise.
107689         * modules/readline (Makefile.am): Likewise.
107690         * modules/readlink (Makefile.am): Likewise.
107691         * modules/readtokens (Makefile.am): Likewise.
107692         * modules/readutmp (Makefile.am): Likewise.
107693         * modules/realloc (Makefile.am): Likewise.
107694         * modules/regex (Makefile.am): Likewise.
107695         * modules/rename-dest-slash (Makefile.am): Likewise.
107696         * modules/rename (Makefile.am): Likewise.
107697         * modules/rijndael (Makefile.am): Likewise.
107698         * modules/rmdir (Makefile.am): Likewise.
107699         * modules/rpmatch (Makefile.am): Likewise.
107700         * modules/safe-read (Makefile.am): Likewise.
107701         * modules/safe-write (Makefile.am): Likewise.
107702         * modules/same-inode (Makefile.am): Likewise.
107703         * modules/same (Makefile.am): Likewise.
107704         * modules/save-cwd (Makefile.am): Likewise.
107705         * modules/savedir (Makefile.am): Likewise.
107706         * modules/setenv (Makefile.am): Likewise.
107707         * modules/settime (Makefile.am): Likewise.
107708         * modules/sha1 (Makefile.am): Likewise.
107709         * modules/sig2str (Makefile.am): Likewise.
107710         * modules/snprintf (Makefile.am): Likewise.
107711         * modules/stat-macros (Makefile.am): Likewise.
107712         * modules/stat-time (Makefile.am): Likewise.
107713         * modules/stdbool (Makefile.am): Likewise.
107714         * modules/stdint (Makefile.am): Likewise.
107715         * modules/stdlib-safer (Makefile.am): Likewise.
107716         * modules/stpcpy (Makefile.am): Likewise.
107717         * modules/stpncpy (Makefile.am): Likewise.
107718         * modules/strcase (Makefile.am): Likewise.
107719         * modules/strcasestr (Makefile.am): Likewise.
107720         * modules/strchrnul (Makefile.am): Likewise.
107721         * modules/strcspn (Makefile.am): Likewise.
107722         * modules/strdup (Makefile.am): Likewise.
107723         * modules/strerror (Makefile.am): Likewise.
107724         * modules/strftime (Makefile.am): Likewise.
107725         * modules/strndup (Makefile.am): Likewise.
107726         * modules/strnlen (Makefile.am): Likewise.
107727         * modules/strpbrk (Makefile.am): Likewise.
107728         * modules/strsep (Makefile.am): Likewise.
107729         * modules/strstr (Makefile.am): Likewise.
107730         * modules/strtod (Makefile.am): Likewise.
107731         * modules/strtoimax (Makefile.am): Likewise.
107732         * modules/strtok_r (Makefile.am): Likewise.
107733         * modules/strtol (Makefile.am): Likewise.
107734         * modules/strtoll (Makefile.am): Likewise.
107735         * modules/strtoul (Makefile.am): Likewise.
107736         * modules/strtoull (Makefile.am): Likewise.
107737         * modules/strtoumax (Makefile.am): Likewise.
107738         * modules/strverscmp (Makefile.am): Likewise.
107739         * modules/sys_socket (Makefile.am): Likewise.
107740         * modules/sys_stat (Makefile.am): Likewise.
107741         * modules/sysexits (Makefile.am): Likewise.
107742         * modules/time_r (Makefile.am): Likewise.
107743         * modules/timegm (Makefile.am): Likewise.
107744         * modules/timespec (Makefile.am): Likewise.
107745         * modules/tmpfile-safer (Makefile.am): Likewise.
107746         * modules/trim (Makefile.am): Likewise.
107747         * modules/unistd-safer (Makefile.am): Likewise.
107748         * modules/unlinkdir (Makefile.am): Likewise.
107749         * modules/unlocked-io (Makefile.am): Likewise.
107750         * modules/userspec (Makefile.am): Likewise.
107751         * modules/utime (Makefile.am): Likewise.
107752         * modules/utimecmp (Makefile.am): Likewise.
107753         * modules/utimens (Makefile.am): Likewise.
107754         * modules/vasnprintf (Makefile.am): Likewise.
107755         * modules/vasprintf (Makefile.am): Likewise.
107756         * modules/vsnprintf (Makefile.am): Likewise.
107757         * modules/xalloc (Makefile.am): Likewise.
107758         * modules/xgetcwd (Makefile.am): Likewise.
107759         * modules/xnanosleep (Makefile.am): Likewise.
107760         * modules/xreadlink (Makefile.am): Likewise.
107761         * modules/xstrtod (Makefile.am): Likewise.
107762         * modules/xstrtol (Makefile.am): Likewise.
107763         * modules/xstrtold (Makefile.am): Likewise.
107764         * modules/yesno (Makefile.am): Likewise.
107765         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
107767 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107769         * modules/error (Makefile.am): Distribute files through
107770         EXTRA_DIST, not lib_SOURCES.
107772 2006-10-12  Eric Blake  <ebb9@byu.net>
107774         * modules/error (Makefile.am): Distribute files in /lib.
107775         * modules/obstack (Makefile.am): Likewise.
107777 2006-10-12  Bruno Haible  <bruno@clisp.org>
107779         * modules/acl (Makefile.am): Distribute all files in lib/ through
107780         EXTRA_DIST.
107781         * modules/arcfour (Makefile.am): Likewise.
107782         * modules/arctwo (Makefile.am): Likewise.
107783         * modules/argmatch (Makefile.am): Likewise.
107784         * modules/argz (Makefile.am): Likewise.
107785         * modules/atexit (Makefile.am): Likewise.
107786         * modules/backupfile (Makefile.am): Likewise.
107787         * modules/c-strtod (Makefile.am): Likewise.
107788         * modules/c-strtold (Makefile.am): Likewise.
107789         * modules/calloc (Makefile.am): Likewise.
107790         * modules/canon-host (Makefile.am): Likewise.
107791         * modules/canonicalize (Makefile.am): Likewise.
107792         * modules/chdir-long (Makefile.am): Likewise.
107793         * modules/chdir-safer (Makefile.am): Likewise.
107794         * modules/check-version (Makefile.am): Likewise.
107795         * modules/chown (Makefile.am): Likewise.
107796         * modules/cloexec (Makefile.am): Likewise.
107797         * modules/close-stream (Makefile.am): Likewise.
107798         * modules/closeout (Makefile.am): Likewise.
107799         * modules/crc (Makefile.am): Likewise.
107800         * modules/cycle-check (Makefile.am): Likewise.
107801         * modules/des (Makefile.am): Likewise.
107802         * modules/dirfd (Makefile.am): Likewise.
107803         * modules/dirname (Makefile.am): Likewise.
107804         * modules/dup2 (Makefile.am): Likewise.
107805         * modules/euidaccess (Makefile.am): Likewise.
107806         * modules/exclude (Makefile.am): Likewise.
107807         * modules/exitfail (Makefile.am): Likewise.
107808         * modules/fcntl-safer (Makefile.am): Likewise.
107809         * modules/file-type (Makefile.am): Likewise.
107810         * modules/fileblocks (Makefile.am): Likewise.
107811         * modules/filemode (Makefile.am): Likewise.
107812         * modules/filenamecat (Makefile.am): Likewise.
107813         * modules/fnmatch (Makefile.am): Likewise.
107814         * modules/fopen-safer (Makefile.am): Likewise.
107815         * modules/fpending (Makefile.am): Likewise.
107816         * modules/fprintftime (Makefile.am): Likewise.
107817         * modules/free (Makefile.am): Likewise.
107818         * modules/fsusage (Makefile.am): Likewise.
107819         * modules/ftruncate (Makefile.am): Likewise.
107820         * modules/fts (Makefile.am): Likewise.
107821         * modules/gc (Makefile.am): Likewise.
107822         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107823         * modules/getaddrinfo (Makefile.am): Likewise.
107824         * modules/getcwd (Makefile.am): Likewise.
107825         * modules/getdelim (Makefile.am): Likewise.
107826         * modules/getdomainname (Makefile.am): Likewise.
107827         * modules/getgroups (Makefile.am): Likewise.
107828         * modules/gethostname (Makefile.am): Likewise.
107829         * modules/gethrxtime (Makefile.am): Likewise.
107830         * modules/getline (Makefile.am): Likewise.
107831         * modules/getloadavg (Makefile.am): Likewise.
107832         * modules/getlogin_r (Makefile.am): Likewise.
107833         * modules/getopt (Makefile.am): Likewise.
107834         * modules/getpass (Makefile.am): Likewise.
107835         * modules/getpass-gnu (Makefile.am): Likewise.
107836         * modules/getsubopt (Makefile.am): Likewise.
107837         * modules/gettime (Makefile.am): Likewise.
107838         * modules/gettimeofday (Makefile.am): Likewise.
107839         * modules/getugroups (Makefile.am): Likewise.
107840         * modules/getusershell (Makefile.am): Likewise.
107841         * modules/glob (Makefile.am): Likewise.
107842         * modules/group-member (Makefile.am): Likewise.
107843         * modules/hard-locale (Makefile.am): Likewise.
107844         * modules/hash (Makefile.am): Likewise.
107845         * modules/hmac-md5 (Makefile.am): Likewise.
107846         * modules/hmac-sha1 (Makefile.am): Likewise.
107847         * modules/human (Makefile.am): Likewise.
107848         * modules/idcache (Makefile.am): Likewise.
107849         * modules/imaxabs (Makefile.am): Likewise.
107850         * modules/imaxdiv (Makefile.am): Likewise.
107851         * modules/inet_ntop (Makefile.am): Likewise.
107852         * modules/inet_pton (Makefile.am): Likewise.
107853         * modules/inttostr (Makefile.am): Likewise.
107854         * modules/isapipe (Makefile.am): Likewise.
107855         * modules/lchown (Makefile.am): Likewise.
107856         * modules/long-options (Makefile.am): Likewise.
107857         * modules/lstat (Makefile.am): Likewise.
107858         * modules/malloc (Makefile.am): Likewise.
107859         * modules/mathl (Makefile.am): Likewise.
107860         * modules/mbchar (Makefile.am): Likewise.
107861         * modules/md2 (Makefile.am): Likewise.
107862         * modules/md4 (Makefile.am): Likewise.
107863         * modules/md5 (Makefile.am): Likewise.
107864         * modules/memcasecmp (Makefile.am): Likewise.
107865         * modules/memchr (Makefile.am): Likewise.
107866         * modules/memcmp (Makefile.am): Likewise.
107867         * modules/memcoll (Makefile.am): Likewise.
107868         * modules/memcpy (Makefile.am): Likewise.
107869         * modules/memmem (Makefile.am): Likewise.
107870         * modules/memmove (Makefile.am): Likewise.
107871         * modules/mempcpy (Makefile.am): Likewise.
107872         * modules/memrchr (Makefile.am): Likewise.
107873         * modules/memset (Makefile.am): Likewise.
107874         * modules/memxor (Makefile.am): Likewise.
107875         * modules/mkancesdirs (Makefile.am): Likewise.
107876         * modules/mkdir (Makefile.am): Likewise.
107877         * modules/mkdir-p (Makefile.am): Likewise.
107878         * modules/mkdtemp (Makefile.am): Likewise.
107879         * modules/mkstemp (Makefile.am): Likewise.
107880         * modules/mktime (Makefile.am): Likewise.
107881         * modules/modechange (Makefile.am): Likewise.
107882         * modules/mountlist (Makefile.am): Likewise.
107883         * modules/nanosleep (Makefile.am): Likewise.
107884         * modules/openat (Makefile.am): Likewise.
107885         * modules/pagealign_alloc (Makefile.am): Likewise.
107886         * modules/physmem (Makefile.am): Likewise.
107887         * modules/poll (Makefile.am): Likewise.
107888         * modules/posixtm (Makefile.am): Likewise.
107889         * modules/posixver (Makefile.am): Likewise.
107890         * modules/putenv (Makefile.am): Likewise.
107891         * modules/quote (Makefile.am): Likewise.
107892         * modules/quotearg (Makefile.am): Likewise.
107893         * modules/raise (Makefile.am): Likewise.
107894         * modules/read-file (Makefile.am): Likewise.
107895         * modules/readline (Makefile.am): Likewise.
107896         * modules/readlink (Makefile.am): Likewise.
107897         * modules/readtokens (Makefile.am): Likewise.
107898         * modules/readutmp (Makefile.am): Likewise.
107899         * modules/realloc (Makefile.am): Likewise.
107900         * modules/regex (Makefile.am): Likewise.
107901         * modules/rename (Makefile.am): Likewise.
107902         * modules/rename-dest-slash (Makefile.am): Likewise.
107903         * modules/rijndael (Makefile.am): Likewise.
107904         * modules/rmdir (Makefile.am): Likewise.
107905         * modules/rpmatch (Makefile.am): Likewise.
107906         * modules/safe-read (Makefile.am): Likewise.
107907         * modules/safe-write (Makefile.am): Likewise.
107908         * modules/same (Makefile.am): Likewise.
107909         * modules/save-cwd (Makefile.am): Likewise.
107910         * modules/savedir (Makefile.am): Likewise.
107911         * modules/setenv (Makefile.am): Likewise.
107912         * modules/settime (Makefile.am): Likewise.
107913         * modules/sha1 (Makefile.am): Likewise.
107914         * modules/sig2str (Makefile.am): Likewise.
107915         * modules/snprintf (Makefile.am): Likewise.
107916         * modules/stdlib-safer (Makefile.am): Likewise.
107917         * modules/stpcpy (Makefile.am): Likewise.
107918         * modules/stpncpy (Makefile.am): Likewise.
107919         * modules/strcase (Makefile.am): Likewise.
107920         * modules/strcasestr (Makefile.am): Likewise.
107921         * modules/strchrnul (Makefile.am): Likewise.
107922         * modules/strcspn (Makefile.am): Likewise.
107923         * modules/strdup (Makefile.am): Likewise.
107924         * modules/strerror (Makefile.am): Likewise.
107925         * modules/strftime (Makefile.am): Likewise.
107926         * modules/strndup (Makefile.am): Likewise.
107927         * modules/strnlen (Makefile.am): Likewise.
107928         * modules/strpbrk (Makefile.am): Likewise.
107929         * modules/strsep (Makefile.am): Likewise.
107930         * modules/strstr (Makefile.am): Likewise.
107931         * modules/strtod (Makefile.am): Likewise.
107932         * modules/strtoimax (Makefile.am): Likewise.
107933         * modules/strtok_r (Makefile.am): Likewise.
107934         * modules/strtol (Makefile.am): Likewise.
107935         * modules/strtoll (Makefile.am): Likewise.
107936         * modules/strtoul (Makefile.am): Likewise.
107937         * modules/strtoull (Makefile.am): Likewise.
107938         * modules/strtoumax (Makefile.am): Likewise.
107939         * modules/strverscmp (Makefile.am): Likewise.
107940         * modules/time_r (Makefile.am): Likewise.
107941         * modules/timegm (Makefile.am): Likewise.
107942         * modules/tmpfile-safer (Makefile.am): Likewise.
107943         * modules/unistd-safer (Makefile.am): Likewise.
107944         * modules/unlinkdir (Makefile.am): Likewise.
107945         * modules/userspec (Makefile.am): Likewise.
107946         * modules/utime (Makefile.am): Likewise.
107947         * modules/utimecmp (Makefile.am): Likewise.
107948         * modules/utimens (Makefile.am): Likewise.
107949         * modules/vasnprintf (Makefile.am): Likewise.
107950         * modules/vasprintf (Makefile.am): Likewise.
107951         * modules/vsnprintf (Makefile.am): Likewise.
107952         * modules/xalloc (Makefile.am): Likewise.
107953         * modules/xgetcwd (Makefile.am): Likewise.
107954         * modules/xnanosleep (Makefile.am): Likewise.
107955         * modules/xreadlink (Makefile.am): Likewise.
107956         * modules/xstrtod (Makefile.am): Likewise.
107957         * modules/xstrtol (Makefile.am): Likewise.
107958         * modules/xstrtold (Makefile.am): Likewise.
107959         * modules/yesno (Makefile.am): Likewise.
107961 2006-10-12  Jim Meyering  <jim@meyering.net>
107963         * m4/getloadavg.m4: Revert the change below.
107965         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
107966         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
107967         fail with a symlink, which is what coreutils' ./bootstrap now
107968         creates by default.
107970 2006-10-12  Bruno Haible  <bruno@clisp.org>
107972         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
107973         mingw.
107974         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
107975         MSVC and mingw explicitly.
107977 2006-10-11  Simon Josefsson  <jas@extundo.com>
107978             Bruno Haible  <bruno@clisp.org>
107980         Add support for multiple gnulib-tool invocations in the scope of a
107981         single configure.ac file.
107982         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
107983         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
107984         with the same contents as the _LIBADD variable.
107985         (func_emit_initmacro_start, func_emit_initmacro_end,
107986         func_emit_initmacro_done): New functions.
107987         (func_import, func_create_testdir): Invoke them. Allow the identifiers
107988         gl_LIBOBJS and gl_LTLIBOBJS.
107990 2006-10-11  Bruno Haible  <bruno@clisp.org>
107992         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
107993         (func_create_testdir): Don't create po/Makefile.am, don't invoke
107994         autoreconf. Instead, invoke autopoint explicitly but move back the
107995         *.m4 files from gnulib.
107997 2006-10-11  Bruno Haible  <bruno@clisp.org>
107999         * gnulib-tool (func_usage): Make module names after --create-testdir
108000         optional.
108001         (func_create_testdir): If no module was specified, use nearly all
108002         modules.
108004 2006-10-12  Jim Meyering  <jim@meyering.net>
108006         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108007         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108008         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108009         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108010         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108011         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108012         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108013         (fts_set_stat_required): New function.
108014         (fts_open): Defer the calls to fts_stat, if possible or requested.
108015         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108016         into fts_stat itself.
108017         (fts_read): Perform any required (deferred) fts_stat call.
108018         (fts_build): Likewise, for the directory we're about to open and read.
108019         In the readdir loop, carefully decide whether each entry will require
108020         an eventual call to fts_stat, using dirent.d_type info if available.
108021         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108022         a command line argument into this function.  Update all callers.
108023         Map a return value of FTS_DOT to FTS_D for a command line argument.
108024         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108025         Thanks to Miklos Szeredi for his tenacity and for the initial
108026         bug report about "find" failing on a FUSE-based file system.
108028         * lib/fts.c (fts_open): Use consistent indentation.
108030 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108032         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108033         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108034         reported by Jim Meyering.  All uses of cache variables renamed
108035         to match Autoconf's.
108036         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108037         the other one.
108039         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108040         Fix misspelling in diagnostic.
108042 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108044         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108045         defined.  Problem reported by Matthew Woehlke.
108047         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108048         Add support for Tandem NonStop R series.
108049         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108050         Use new macro.
108052         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108053         (has_trailing_slash): Omit size arg; all callers changed.
108054         Omit 'inline', since it doesn't help performance and we'd
108055         need to configure it.
108056         Don't count //, ///, etc. as having a trailing slash.
108057         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108058         (rpl_rename_dest_slash): On failure, use rename's errno rather
108059         than (in some cases) an incorrect or junk errno.
108060         Simplify code by removing need to compute length; this does
108061         cause it to make two passes instead of one over the file name,
108062         but it's worth it.
108064         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108065         change, since Autoconf's version may no longer be appropriate now
108066         that we are using CVS Autoconf's version.  Add support for Tandem.
108068 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108069             Bruno Haible  <bruno@clisp.org>
108071         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108072         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108073         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108074         gl_AC_TYPE_LONG_LONG.
108076         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108077         instead of HAVE_LONG_LONG.
108078         * lib/printf-args.c (printf_fetchargs): Likewise.
108079         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108080         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108081         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108082         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108083         gl_AC_TYPE_LONG_LONG.
108085 2006-10-11  Bruno Haible  <bruno@clisp.org>
108087         * m4/longlong.m4: Add comments.
108088         * m4/ulonglong.m4: Likewise.
108090 2006-10-10  Bruno Haible  <bruno@clisp.org>
108092         Make it possible to #define stpcpy, strdup to aliases.
108093         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108094         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108096 2006-10-10  Bruno Haible  <bruno@clisp.org>
108098         Make it possible to #define gcd to an alias.
108099         * lib/gcd.c: Include config.h.
108101 2006-10-10  Bruno Haible  <bruno@clisp.org>
108103         Make it possible to #define c_isascii to an alias.
108104         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108105         defined. Undefine the macros before defining them, to avoid gcc
108106         warnings.
108107         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108108         define NO_C_CTYPE_MACROS early.
108110 2006-10-10  Bruno Haible  <bruno@clisp.org>
108112         Make it possible to #define set_program_name to an alias.
108113         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108114         ENABLE_RELOCATABLE early.
108116 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108118         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108119         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108120         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108121         More generally, don't assume that 64-bit signed int is available
108122         if unsigned int is, and vice versa.
108123         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108124         unsigned symbols, not on their signed counterparts.
108125         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108126         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108127         (UINT64_C, UINTMAX_C):
108128         Likewise.
108129         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108130         unsigned counterparts.
108131         (Have_long_long, Unsigned): New macros.
108132         (Int): Renamed from INT.
108133         (strtoimax): Use the new macros.
108134         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108135         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108136         * modules/inttypes (inttypes.h): Substitute
108137         HAVE_UNSIGNED_LONG_LONG_INT.
108138         * modules/stdint (stdint.h): Likewise.
108139         (Files): Add m4/ulonglong.m4.
108141 2006-10-10  Bruno Haible  <bruno@clisp.org>
108143         Fix a gcc -Wshadow warning.
108144         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108145         to 'bucket'.
108146         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108147         gl_linked_indexof_from_to): Likewise.
108148         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108149         Likewise.
108150         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108151         Likewise.
108152         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108153         Reported by Eric Blake.
108155 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108157         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108158         for NetBSD.  Problem reported by Bruno Haible.
108160 2006-10-09  Jim Meyering  <jim@meyering.net>
108162         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108163         Patch from Bruno Haible.
108165 2006-10-09  Jim Meyering  <jim@meyering.net>
108167         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108168         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108169         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108171 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108173         Don't include <config.h> twice; this doesn't work in some cases,
108174         e.g., when config.h has "#define intmax_t long long int" and
108175         we include <config.h>, <inttypes.h>, <config.h> in that order.
108176         Problem reported by Matthew Woehlke in:
108177         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108178         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108179         * lib/fts-cycle.c: Don't include config.h.
108180         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108181         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108182         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108183         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108184         inttypes.h.
108185         * lib/xstrtoumax.c: Likewise.
108186         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108187         __strtol and the like, so that this module is more like its siblings.
108188         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108189         Remove; no longer needed now that we assume gnulib inttypes.h.
108191 2006-10-08  Bruno Haible  <bruno@clisp.org>
108193         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108194         option.
108196 2006-10-07  Jim Meyering  <jim@meyering.net>
108198         * modules/inttypes (inttypes.h): Revert what seems to have been
108199         an inadvertent part of today's change: use "|", not "/" in the
108200         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108202 2006-10-07  Bruno Haible  <bruno@clisp.org>
108204         * modules/sublist: New file.
108206 2006-10-07  Bruno Haible  <bruno@clisp.org>
108208         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108209         * modules/argz (argz.h): Likewise.
108210         * modules/arpa_inet (arpa/inet.h): Likewise.
108211         * modules/byteswap (byteswap.h): Likewise.
108212         * modules/configmake (configmake.h): Likewise.
108213         * modules/fcntl (fcntl.h): Likewise.
108214         * modules/fnmatch (fnmatch.h): Likewise.
108215         * modules/getopt (getopt.h): Likewise.
108216         * modules/glob (glob.h): Likewise.
108217         * modules/inttypes (inttypes.h): Likewise.
108218         * modules/netinet_in (netinet/in.h): Likewise.
108219         * modules/poll (poll.h): Likewise.
108220         * modules/stdbool (stdbool.h): Likewise.
108221         * modules/stdint (stdint.h): Likewise.
108222         * modules/sys_select (sys/select.h): Likewise.
108223         * modules/sys_socket (sys/socket.h): Likewise.
108224         * modules/sys_stat (sys/stat.h): Likewise.
108225         * modules/sysexits (sysexits.h): Likewise.
108226         * modules/unistd (unistd.h): Likewise.
108227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108228         Add a "DO NOT EDIT" comment to the generated file.
108229         (func_import): Likewise for gnulib-comp.m4.
108231 2006-10-07  Bruno Haible  <bruno@clisp.org>
108233         * lib/gl_sublist.h: New file.
108234         * lib/gl_sublist.c: New file.
108236 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108238         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108239         name (relative to the original working directory) and the file
108240         name component (relative to the temporary working directory).  All
108241         callers changed.
108242         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108243         * lib/mkdir-p.c (make_dir_parents): Likewise.
108244         * lib/mkdir-p.h (make_dir_parents): Likewise.
108246 2006-10-06  Eric Blake  <ebb9@byu.net>
108248         Define several macros for use by the clean-temp module.
108249         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108250         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108251         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108253         * lib/clean-temp.h (close_stream_temp): New declaration.
108254         * lib/clean-temp.c (includes): Pull in headers according to what
108255         other modules are in use.
108256         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108258 2006-10-06  Bruno Haible  <bruno@clisp.org>
108260         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108261         instead of fopen, fwriteerror.
108263 2006-10-06  Bruno Haible  <bruno@clisp.org>
108265         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108266         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108267         int.
108268         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108269         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108270         Return an error indicator.
108271         Suggested by Eric Blake.
108273 2006-10-06  Bruno Haible  <bruno@clisp.org>
108275         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108276         Reported by Eric Blake.
108278 2006-10-06  Bruno Haible  <bruno@clisp.org>
108280         * modules/closeout (Description): Mention stderr too.
108282 2006-10-06  Bruno Haible  <bruno@clisp.org>
108283         and Paul Eggert  <eggert@cs.ucla.edu>
108285         * lib/closeout.c (close_stdout): Also close stderr.
108286         * lib/closeout.h: Update comment.
108288 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108290         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108291         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108292         * lib/dirchownmod.c: Include lchown.h.
108293         * lib/lchown.c: Don't include files that lchown.h now includes.
108294         Don't declare chown, since lchown.h now does that.
108295         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108296         (lchown): Define to rpl_chown if lchown is declared but
108297         does not exist.  Declare using a prototype if lchown is not
108298         declared.  Add a copyright notice.
108299         * lib/mkstemp.h: Include <unistd.h>.
108300         * lib/openat.c: Include lchown.h.
108302         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108303         we now test for that separately.
108304         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108305         rather than O_NOFOLLOW, when testing whether it's possible to
108306         avoid a race condition reliably.
108307         * lib/savewd.c (savewd_chdir): Likewise.
108309         Remove macros that are no longer needed now that stdint.h is
108310         reliable.
108311         * lib/fsusage.c (UINTMAX_MAX): Remove.
108312         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108313         * lib/utimecmp.c (SIZE_MAX): Remove.
108315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108317         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108318         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108319         O_NOATIME works.
108321 2006-10-05  Bruno Haible  <bruno@clisp.org>
108323         * lib/gl_list.h (gl_sortedlist_search_from_to,
108324         gl_sortedlist_indexof_from_to): New declarations.
108325         (gl_list_implementation): New fields sortedlist_search_from_to,
108326         sortedlist_indexof_from_to.
108327         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108328         inline functions.
108329         * lib/gl_list.c (gl_sortedlist_search_from_to,
108330         gl_sortedlist_indexof_from_to): New functions.
108331         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108332         function.
108333         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108334         (gl_array_sortedlist_search_from_to): New function.
108335         (gl_array_list_implementation): Update.
108336         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108337         function.
108338         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108339         (gl_carray_sortedlist_search_from_to): New function.
108340         (gl_carray_list_implementation): Update.
108341         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108342         gl_linked_sortedlist_indexof_from_to): New functions.
108343         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108344         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108345         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108346         gl_tree_sortedlist_indexof_from_to): New functions.
108347         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108348         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108349         Update.
108350         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108351         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108352         Update.
108354 2006-10-05  Bruno Haible  <bruno@clisp.org>
108356         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108357         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108358         (struct gl_list_implementation): Add fields search_from_to,
108359         indexof_from_to. Remove fields search, indexof.
108360         (gl_list_search): Use the search_from_to method.
108361         (gl_list_search_from, gl_list_search_from_to): New functions.
108362         (gl_list_indexof): Use the indexof_from_to method.
108363         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108364         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108365         (gl_list_search_from, gl_list_search_from_to): New functions.
108366         (gl_list_indexof): Use the indexof_from_to method.
108367         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108368         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108369         gl_array_indexof. Add start_index, end_index arguments.
108370         (gl_array_search_from_to): Renamed from gl_array_search. Add
108371         start_index, end_index arguments.
108372         (gl_array_remove, gl_array_list_implementation): Update.
108373         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108374         gl_carray_indexof. Add start_index, end_index arguments.
108375         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108376         start_index, end_index arguments.
108377         (gl_carray_remove, gl_carray_list_implementation): Update.
108378         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108379         gl_linked_search. Add start_index, end_index arguments.
108380         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108381         start_index, end_index arguments.
108382         (gl_linked_remove): Update.
108383         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108384         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108385         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108386         field to 'size_t'.
108387         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108388         gl_tree_search. Add start_index, end_index arguments.
108389         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108390         start_index, end_index arguments.
108391         (gl_tree_remove): Update.
108392         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108393         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108394         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108395         function.
108396         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108397         gl_tree_search. Add start_index, end_index arguments.
108398         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108399         start_index, end_index arguments.
108400         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108401         Update.
108402         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108404 2006-10-05  Bruno Haible  <bruno@clisp.org>
108406         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108408         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108409         fwriteerror_temp): New declarations.
108410         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108411         (descriptors): New variable.
108412         (cleanup): First, close the descriptors.
108413         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108414         fclose_temp, fwriteerror_temp): New functions.
108416 2006-10-04  Jim Meyering  <jim@meyering.net>
108418         * lib/fts.c (fts_open): Tiny comment change.
108420 2006-10-04  Bruno Haible  <bruno@clisp.org>
108422         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108423         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108424         gl_LOCK_BODY.
108425         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108426         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108427         gl_LOCK_EARLY_BODY.
108428         (gl_LOCK): Require gl_LOCK_BODY.
108430 2006-10-04  Bruno Haible  <bruno@clisp.org>
108432         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108433         (gl_oset_search_atleast): New declaration.
108434         (struct gl_oset_implementation): Add field 'search_atleast'.
108435         (gl_oset_search_atleast): New inline function.
108436         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108437         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108438         (gl_array_oset_implementation): Update.
108439         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108440         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108441         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108443 2006-10-04  Bruno Haible  <bruno@clisp.org>
108445         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108447 2006-10-03  Bruno Haible  <bruno@clisp.org>
108449         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108450         from gl_avltreehash_list_implementation.
108452 2006-10-03  Bruno Haible  <bruno@clisp.org>
108454         * lib/gl_oset.c (gl_oset_add): Fix return type.
108456 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108458         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108460 2006-10-02  Eric Blake  <ebb9@byu.net>
108462         * modules/strnlen (Depends-on): Add extensions.
108464 2006-10-02  Eric Blake  <ebb9@byu.net>
108466         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108467         definition in 2.60+.
108469 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108471         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108472         checks.
108474 2006-10-02  Bruno Haible  <bruno@clisp.org>
108476         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108477         to the AUTOMAKE_OPTIONS.
108478         Reported by Jim Meyering.
108480 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108482         Work around bug in Solaris 10 /proc file system:
108483         /proc/self/fd/NNN/.. isn't the parent directory of
108484         the directory whose file descriptor is NNN.  This needs to
108485         be worked around at run time, not compile time, since a
108486         program might be built on Solaris 8, where things work, and
108487         run on Solaris 10.
108488         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108489         to use the following interface instead:
108490         (OPENAT_BUFFER_SIZE): New macro.
108491         (openat_proc_name): New function.
108492         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108493         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108494         Likewise.
108495         * lib/openat-proc.c: New file.
108496         * modules/openat (Files): Add lib/openat-proc.c.
108497         (Depends-on): Add same-inode, stdbool.
108498         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108500 2006-09-29  Bruno Haible  <bruno@clisp.org>
108502         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108503         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108504         argument. Set stdout_closed before testing for ferror, not after.
108505         (fwriteerror, fwriteerror_no_ebadf): New functions.
108507 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108509         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108511 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108513         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108514         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108516 2006-09-28  Jim Meyering  <jim@meyering.net>
108518         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108519         Include <unistd.h>.
108521 2006-09-28  Bruno Haible  <bruno@clisp.org>
108523         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108524         * modules/linkedhash-list (Depends-on): Likewise.
108525         * modules/rbtreehash-list (Depends-on): Likewise.
108527 2006-09-28  Bruno Haible  <bruno@clisp.org>
108529         * lib/strndup.h: Simplify the redefinition of strndup.
108530         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108533 2006-09-28  Bruno Haible  <bruno@clisp.org>
108535         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108536         * lib/gl_linkedhash_list.c: Likewise.
108537         * lib/gl_rbtreehash_list.c: Likewise.
108539 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108541         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108542         getaddrinfo.
108544         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108545         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108546         it causes <stdio_ext.h> to cause a compile-time error.
108547         Problem reported by Nelson H. F. Beebe.
108548         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108549         of HAVE_DECL___PENDING.
108551         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108552         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108553         declaration.
108555 2006-09-27  Jim Meyering  <jim@meyering.net>
108557         This file could end up with a definition for a function
108558         named __strndup, rather than rpl_strndup on a system with
108559         incomplete weak_alias support.
108560         * lib/strndup.c (strndup): Rename from __strndup.
108561         Remove #defines that used to map __strndup to strndup.
108562         Don't use K&R prototypes.
108563         Remove LIBC-related code, since this file is not sync'd with glibc.
108564         * lib/strndup.h: Revamp, accordingly.
108565         * m4/strndup.m4: Modernize.
108567 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108569         * modules/savewd (Depends-on): Add 'raise'.
108570         * lib/savewd.c: Include <signal.h>, for 'raise'.
108572 2006-09-26  Jim Meyering  <jim@meyering.net>
108574         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108575         when we detect Darwin 8.7.0's acl_get_file bug.
108576         Rearrange to perform the new (below) run-test while $LIBS
108577         contains any acl-related library.  Set USE_ACL at the end.
108578         (gl_ACL_GET_FILE): New function.
108580 2006-09-26  Eric Blake  <ebb9@byu.net>
108582         * lib/verror.c: Include <config.h> unconditionally.
108584 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108586         * modules/clock-time (Maintainer): Add self.
108587         * modules/getlogin_r (Depends-on): Add extensions.
108589 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108591         * modules/clock-time: New module.
108592         * modules/nanosleep (Depends-on): Add clock-time.
108593         * modules/gethrxtime (Depends-on): Likewise.
108594         * modules/gettime (Depends-on): Likewise.
108595         * modules/settime (Depends-on): Likewise.
108597         * modules/fts-lgpl: Depend on openat.
108598         * modules/mkancesdirs: Depend on savewd.
108599         * modules/mkdir-p: Likewise.
108601 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108603         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108605         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108606         `gl_have_arbitrary_file_name_length_limit' to
108607         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108608         actually works between configure runs.
108610 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108611             Bruno Haible  <bruno@clisp.org>
108613         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108615 2006-09-25  Jim Meyering  <jim@meyering.net>
108617         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108618         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108620 2006-09-25  Eric Blake  <ebb9@byu.net>
108622         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108623         exec's in 2006-09-18 patch when shuffling fds.
108625 2006-09-25  Bruno Haible  <bruno@clisp.org>
108627         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108628         Reported by Jim Meyering.
108630 2006-09-24  Jim Meyering  <jim@meyering.net>
108632         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108633         compare a pointer against a literal "0".  That caused failures with
108634         at least HP-UX's hpcc.
108636 2006-09-22  Simon Josefsson  <jas@extundo.com>
108638         * modules/gc-sha1:
108639         * modules/gc-md4:
108640         * modules/gc-hmac-sha1:
108641         * modules/gc-hmac-md5:
108642         * modules/gc-des:
108643         * modules/gc-arcfour: Distribute more files.
108645 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108647         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108648         (gl_linked_iterator_from_to): Initialize struct completely.
108649         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108650         (gl_tree_iterator_from_to): Likewise
108651         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108652         * lib/gl_array_list.c [lint] (gl_array_iterator)
108653         (gl_array_iterator_from_to): Likewise.
108654         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108655         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108656         (gl_carray_iterator_from_to): Likewise.
108658         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108659         * lib/md4.c (md4_process_block): Remove unused variable.
108660         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108661         parentheses for clarity.
108663 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108665         * modules/bison-i18n (Depends-on): Add gettext.
108667 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108669         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108670         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108671         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108672         also add missing comma that caused broken test.
108673         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108674         stdlib.h, for `abort'.
108675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108676         variables.
108677         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108678         include unistd.h if present, for `rmdir'.
108679         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108680         variables.
108681         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108682         in the process include standard headers for prototypes.
108683         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108684         gets declared on GNU/Linux.
108685         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108686         unistd.h, for `rmdir'.
108687         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108689         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108690         always true.
108691         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108693         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108695 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108697         * gnulib-tool (func_version): Create output all at once.  This
108698         may help avoid triggering unnecessary SIGPIPEs, and at any
108699         rate it doesn't hurt.
108701 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108702             Bruno Haible  <bruno@clisp.org>
108704         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108705         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108706         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108708         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108709         (gl_FUNC_VASPRINTF): Invoke it.
108711 2006-09-22  Bruno Haible  <bruno@clisp.org>
108713         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108714         getloadavg.c as first argument.
108716 2006-09-22  Bruno Haible  <bruno@clisp.org>
108718         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108719         at the beginning of the gl_INIT macro.
108720         * modules/getloadavg (configure.ac): Pass $gl_source_base to
108721         gl_GETLOADAVG.
108723 2006-09-22  Bruno Haible  <bruno@clisp.org>
108725         * gnulib-tool (func_create_megatestdir): Don't include the config-h
108726         module.
108727         Suggested by Ralf Wildenhues.
108729 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108731         Import this patch from libc:
108733         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
108735         * lib/regex_internal.c (re_string_reconstruct): Handle
108736         offset < pstr->valid_raw_len && pstr->offsets_needed case.
108737         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
108738         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
108739         re_string_context_at.
108741         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
108742         now requires it.
108743         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
108744         gl_REGEX now does it for us.
108745         (gl_REGEX): Add test taken from
108746         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
108748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
108749         Check that large offsets work.  Modernize Autoconf usages.
108750         Prefer "yes" to mean a good thing rather than a bad.
108751         Don't put "#define mkstemp" in config.h, as this might interfere
108752         with standard system headers that "#define mkstemp mkstemp64".
108754         * modules/mkstemp (Depends-on): Add extensions, so that
108755         mkstemp is visible on some platforms.
108756         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
108757         (Include): Change to "mkstemp.h" from <stdlib.h>.
108758         (Files): Add mkstemp.h.
108760         * lib/mkstemp.h: New file, since some standard headers
108761         #define mkstemp.
108762         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
108763         Include "mkstemp.h".
108764         Make the _LIBC code resemble glibc original more,
108765         e.g., use K&R style.
108766         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
108767         (mkstemp): Remove, since mkstemp.h does this for us.
108768         * lib/stdlib--.h: Include mkstemp.h.
108770         Import this patch from libc:
108772         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108774         * lib/tempname.c (__gen_tempname): Change attempts_min
108775         into a macro.  Use preprocessor to decide how to initialize
108776         attempts [Coverity CID 67].
108778 2006-09-20  Bruno Haible  <bruno@clisp.org>
108780         * lib/mkdtemp.c: Import from libc.
108781         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108782                 * sysdeps/posix/tempname.c (__gen_tempname): Change
108783                 attempts_min into a macro.  Use preprocessor to decide how to
108784                 initialize attempts [Coverity CID 67].
108785         2001-11-27  Paul Eggert  <eggert@twinsun.com>
108786                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
108787                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
108789 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108791         * gnulib-tool (func_exit): New function, to allow to pass the
108792         exit status portably through the trap.  Use everywhere.
108793         (--help, --version): Signal a write error.
108794         (trap): catch SIGPIPE, for write errors.
108795         Exit at the end of the trap, with the correct exit status.
108797 2006-09-19  Karl Berry  <karl@gnu.org>
108799         * doc/gnulib.texi: note about the license texinfo files.
108801 2006-09-19  Eric Blake  <ebb9@byu.net>
108803         * gnulib-tool: Avoid space-tab.
108805 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108807         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
108808         that prevented coreutils 6.1 from building.  Problem reported
108809         by Petter Reinholdtsen.
108811 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108813         * gnulib-tool (avoidlist): Fix typo that broke options like
108814         --avoid=lock that are used by coreutils bootstrap.
108816 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
108818         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
108819         more systematically.
108821 2006-09-18  Jim Meyering  <jim@meyering.net>
108823         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
108825 2006-09-18  Bruno Haible  <bruno@clisp.org>
108827         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
108829 2006-09-18  Bruno Haible  <bruno@clisp.org>
108831         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
108832         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
108833         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
108834         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
108835         * m4/gettext.m4: Require autoconf >= 2.52.
108836         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
108837         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
108838         of gl_cv_header_inttypes_h.
108840 2006-09-18  Bruno Haible  <bruno@clisp.org>
108842         * lib/javaversion.c: Include configmake.h.
108844 2006-09-18  Bruno Haible  <bruno@clisp.org>
108846         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
108847         avoid that the while loops be executed in a subshell.
108849 2006-09-18  Bruno Haible  <bruno@clisp.org>
108851         * MODULES.html.sh (func_module): Break long lines.
108852         Suggested by Bruce Korb <bkorb@gnu.org>.
108854 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108856         Speed up by a factor of 1.12.
108857         * gnulib-tool (nl): New variable.
108858         (func_import): Rewrite include directive extraction to only read each
108859         directive once.
108861 2006-09-17  Bruno Haible  <bruno@clisp.org>
108863         * modules/javaversion (Makefile.am): Remove DEFS setting.
108864         (Depends-on): Add configmake, for PKGDATADIR definition.
108866 2006-09-17  Bruno Haible  <bruno@clisp.org>
108868         * gnulib-tool (func_create_testdir): Rewrite all files at once.
108870 2006-09-17  Bruno Haible  <bruno@clisp.org>
108872         * gnulib-tool (func_append): New function, stolen from libtool.m4.
108873         (func_modules_transitive_closure, func_modules_add_dummy,
108874         func_modules_to_filelist, func_import, func_create_testdir,
108875         func_create_megatestdir, ...): Use it wherever possible.
108876         Suggested by Ralf Wildenhues.
108878 2006-09-16  Karl Berry  <karl@gnu.org>
108880         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
108881         to avoid sectioning errors.
108882         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
108883         [ifinfo]: blank line after @center-ed titles.
108884         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
108885         Spell FSF address consistently with others.
108886         (These changes approved by rms.)
108888 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108890         Speed up by a factor of 1.61.
108891         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
108892         already checked module names again.
108894 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108896         Speed up by a factor of 1.13.
108897         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
108898         for new_files, and the input to func_add_or_update.
108900 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108902         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
108903         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
108905 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108907         * modules/mkancesdirs (Depends-on): Add fcntl.
108908         * modules/savewd: New file.
108909         * MODULES.html.sh (File system functions): Add savewd.
108911         * modules/configmake (Makefile.am): Add support for the
108912         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
108914 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108916         * m4/savewd.m4: New file.
108918 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
108920         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
108921         (dirchownmod): New arg FD.  All callers changed.
108922         Use FD rather than opening the directory ourself, as opening is
108923         now the caller's responsibility.
108924         * lib/dirchownmod.h: Likewise.
108925         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
108926         hosts that require <sys/types.h> before <sys/stat.h>.  Include
108927         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
108928         (test_dir): Remove.
108929         (mkancesdirs): Return length of prefix of FILE that has already
108930         been made, or -2 if there is a child doing the work.  Redo
108931         algorithm so that it is O(N) rather than O(N**2).  Optimize away
108932         ".", and treat ".." specially since it might stray back into
108933         already-created areas.  Use a subprocess if necessary.  New arg
108934         WD; all users changed.  MAKE_DIR function should now return 1
108935         if it creates a directory that is not readable.  Return -2 if
108936         a child process is spun off.
108937         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
108938         Adjust signature to match code.
108939         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
108940         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
108941         all users changed.
108942         * lib/savewd.c, lib/savewd.h: New files.
108944 2006-09-15  Jim Meyering  <jim@meyering.net>
108946         * modules/rename-dest-slash: New module.
108947         * MODULES.html.sh (posix_compat): Add it here.
108949         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
108951 2006-09-15  Jim Meyering  <jim@meyering.net>
108953         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
108954         file.
108956         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
108958 2006-09-15  Jim Meyering  <jim@meyering.net>
108960         * lib/rename-dest-slash.c (has_trailing_slash): Use
108961         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
108962         (rpl_rename_dest_slash): Perform the cheaper trailing slash
108963         test before testing whether SRC is a directory.
108964         Suggestions from Bruno Haible.
108966         Avoid a warning about an unused variable.
108967         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
108968         into the #ifdef block where it's used.
108970         * lib/rename-dest-slash.c: New file.
108972 2006-09-14  Bruno Haible  <bruno@clisp.org>
108974         * lib/allocsa.c: Include <config.h> unconditionally.
108975         * lib/asnprintf.c: Likewise.
108976         * lib/asprintf.c: Likewise.
108977         * lib/c-strcasecmp.c: Likewise.
108978         * lib/c-strcasestr.c: Likewise.
108979         * lib/c-strncasecmp.c: Likewise.
108980         * lib/c-strstr.c: Likewise.
108981         * lib/classpath.c: Likewise.
108982         * lib/clean-temp.c: Likewise.
108983         * lib/concatpath.c: Likewise.
108984         * lib/copy-file.c: Likewise.
108985         * lib/csharpcomp.c: Likewise.
108986         * lib/csharpexec.c: Likewise.
108987         * lib/execute.c: Likewise.
108988         * lib/fatal-signal.c: Likewise.
108989         * lib/findprog.c: Likewise.
108990         * lib/fwriteerror.c: Likewise.
108991         * lib/gl_array_list.c: Likewise.
108992         * lib/gl_array_oset.c: Likewise.
108993         * lib/gl_avltree_list.c: Likewise.
108994         * lib/gl_avltree_oset.c: Likewise.
108995         * lib/gl_avltreehash_list.c: Likewise.
108996         * lib/gl_carray_list.c: Likewise.
108997         * lib/gl_linked_list.c: Likewise.
108998         * lib/gl_linkedhash_list.c: Likewise.
108999         * lib/gl_list.c: Likewise.
109000         * lib/gl_oset.c: Likewise.
109001         * lib/gl_rbtree_list.c: Likewise.
109002         * lib/gl_rbtree_oset.c: Likewise.
109003         * lib/gl_rbtreehash_list.c: Likewise.
109004         * lib/imaxabs.c: Likewise.
109005         * lib/imaxdiv.c: Likewise.
109006         * lib/javacomp.c: Likewise.
109007         * lib/javaexec.c: Likewise.
109008         * lib/javaversion.c: Likewise.
109009         * lib/linebreak.c: Likewise.
109010         * lib/localcharset.c: Likewise.
109011         * lib/lock.c: Likewise.
109012         * lib/mbchar.c: Likewise.
109013         * lib/mbswidth.c: Likewise.
109014         * lib/mkdtemp.c: Likewise.
109015         * lib/pipe.c: Likewise.
109016         * lib/printf-args.c: Likewise.
109017         * lib/printf-parse.c: Likewise.
109018         * lib/progname.c: Likewise.
109019         * lib/progreloc.c: Likewise.
109020         * lib/readlink.c: Likewise.
109021         * lib/sh-quote.c: Likewise.
109022         * lib/stpcpy.c: Likewise.
109023         * lib/stpncpy.c: Likewise.
109024         * lib/strcasecmp.c: Likewise.
109025         * lib/strcasestr.c: Likewise.
109026         * lib/strcspn.c: Likewise.
109027         * lib/striconv.c: Likewise.
109028         * lib/strncasecmp.c: Likewise.
109029         * lib/strnlen1.c: Likewise.
109030         * lib/strstr.c: Likewise.
109031         * lib/strtok_r.c: Likewise.
109032         * lib/tls.c: Likewise.
109033         * lib/tmpdir.c: Likewise.
109034         * lib/unicodeio.c: Likewise.
109035         * lib/unsetenv.c: Likewise.
109036         * lib/vasnprintf.c: Likewise.
109037         * lib/vasprintf.c: Likewise.
109038         * lib/wait-process.c: Likewise.
109039         * lib/xallocsa.c: Likewise.
109040         * lib/xsetenv.c: Likewise.
109041         * lib/xstriconv.c: Likewise.
109043 2006-09-13  Simon Josefsson  <jas@extundo.com>
109045         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109046         that internally, suggested by Ralf Wildenhues
109047         <Ralf.Wildenhues@gmx.de>.
109049 2006-09-13  Simon Josefsson  <jas@extundo.com>
109051         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109052         @LIBOBJS@.
109053         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109055 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109057         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109058         longer worry about uses that don't define HAVE_CONFIG_H.
109059         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109060         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109061         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109062         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109063         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109064         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109065         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109066         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109067         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109068         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109069         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109070         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109071         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109072         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109073         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109074         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109075         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109076         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109077         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109078         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109079         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109080         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109081         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109082         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109083         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109084         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109085         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109086         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109087         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109088         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109089         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109090         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109091         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109092         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109093         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109094         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109095         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109096         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109097         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109098         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109099         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109100         Likewise.
109102 2006-09-13  Eric Blake  <ebb9@byu.net>
109104         * lib/getopt.c: Fix typo in last commit.
109106 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109108         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109109         dgettext.
109111 2006-09-12  Jim Meyering  <jim@meyering.net>
109113         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109114         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109115         Reported by Nelson H. F. Beebe.
109117 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109119         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109120         program_invocation_name and program_invocation_short_name are
109121         initialized.
109122         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109123         and program_invocation_short_name to argp.h, so they are visible
109124         to user programs.
109125         * lib/argp.h: Likewise
109127 2006-09-10  Bruno Haible  <bruno@clisp.org>
109129         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109130         m4/inttypes_h.m4, m4/uintmax_t.m4.
109132 2006-09-10  Bruno Haible  <bruno@clisp.org>
109134         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109135         gl_AC_TYPE_UINTMAX_T.
109137 2006-09-10  Bruno Haible  <bruno@clisp.org>
109139         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109141 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109143         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109144         convention.  Text proposed by Bruno Haible.
109145         (struct argp_option): Document the use of N_() wrappers.
109147         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109148         '\v', and translate the two parts separately, instead of feeding
109149         the whole string to gettext.  This allows to exclude
109150         '\v' from the strings visible to the translator by writing doc
109151         strings as N_("..") "\v" N_("..").
109153 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109155         * config/srclist.txt: Undo latest change; the bug was fixed.
109157 2006-09-09  Bruno Haible  <bruno@clisp.org>
109159         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109160         assignments if building a library without libtool.
109161         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109162         in func_emit_lib_Makefile_am.
109163         (func_import): When building a static library libfoo.a, arrange to
109164         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109165         (func_create_testdir): Likewise.
109166         * modules/gc (configure.ac, Makefile.am): If building statically,
109167         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109168         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109169         * modules/striconv (configure.ac, Makefile.am): Likewise.
109170         Based on a suggestion by Ralf Wildenhues.
109172 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109174         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109175         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109176         Also:
109178         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109179         Add year_2050_test to catch glibc bug 2821
109180         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109182         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109183         Prefer #ifdef to #if.
109185         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109186         Return from 'main' instead of calling 'exit'.
109188 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109190         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109191         returned the maximum time_t value rather than (time_t) -1.
109192         Problem originally reported by William Bardwell
109193         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109195         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109196         Moved to here ...
109197         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109198         ... from here.
109200 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109202         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109203         2821 is fixed.
109205 2006-09-08  Jim Meyering  <jim@meyering.net>
109207         Don't make generated files read-only.  That would bother too many
109208         people.  However, do retain the ability to work when targets are
109209         read-only: remove the destination and temporary files before writing
109210         them (when generated via sed or echo), or by using the -f option for
109211         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109212         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109213         * modules/byteswap, modules/configmake, modules/fcntl:
109214         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109215         * modules/localcharset, modules/netinet_in, modules/poll:
109216         * modules/stdbool, modules/stdint, modules/sys_select:
109217         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109219 2006-09-08  Jim Meyering  <jim@meyering.net>
109221         Avoid new build failure on FreeBSD 6.0.
109222         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109223         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109224         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109226 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109230 2006-09-07  Jim Meyering  <jim@meyering.net>
109232         Fix global typo in last change: use chmod u-w, not chmod u-x.
109233         Spotted by Paul Eggert and Bruce Korb.
109234         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109235         * modules/byteswap, modules/configmake, modules/fcntl:
109236         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109237         * modules/localcharset, modules/netinet_in, modules/poll:
109238         * modules/stdbool, modules/stdint, modules/sys_select:
109239         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109241 2006-09-06  Jim Meyering  <jim@meyering.net>
109243         Make generated files be read-only.
109244         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109245         Ensure that each generated file is now read-only.
109246         * modules/argz: Likewise.
109247         * modules/arpa_inet: Likewise.
109248         * modules/byteswap: Likewise.
109249         * modules/configmake: Likewise.
109250         * modules/fcntl: Likewise.
109251         * modules/fnmatch: Likewise.
109252         * modules/getopt: Likewise.
109253         * modules/glob: Likewise.
109254         * modules/inttypes: Likewise.
109255         * modules/netinet_in: Likewise.
109256         * modules/poll: Likewise.
109257         * modules/stdbool: Likewise.
109258         * modules/stdint: Likewise.
109259         * modules/sys_select: Likewise.
109260         * modules/sys_socket: Likewise.
109261         * modules/sys_stat: Likewise.
109262         * modules/sysexits: Likewise.
109263         * modules/localcharset: Same as above, but continue using temporary
109264         file named "t-$@" (why different?) rather than the "$@-t" used
109265         everywhere else.
109267         * modules/sysexits (Makefile.am): Replace literal occurrences
109268         of "sysexit.h" more readable, and more consistent, "$@".
109270 2006-09-06  Bruno Haible  <bruno@clisp.org>
109272         * modules/striconv: New file.
109273         * modules/xstriconv: New file.
109274         * MODULES.html.sh (Internationalization functions): Add striconv,
109275         xstriconv.
109277 2006-09-06  Bruno Haible  <bruno@clisp.org>
109279         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109280         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109281         not using libtool correctly.
109283 2006-09-06  Bruno Haible  <bruno@clisp.org>
109285         * lib/striconv.h: New file.
109286         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109287         iconvstring.c.
109288         * lib/xstriconv.h: New file.
109289         * lib/xstriconv.c: New file.
109291 2006-09-06  Bruno Haible  <bruno@clisp.org>
109293         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109294         lib_..._LDFLAGS.
109296 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109298         * lib/argz_.h: Sync from Libtool.
109300         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109301                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109303         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109305 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109307         * modules/trim: New file.
109309 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109311         * lib/trim.h: New file.
109312         * lib/trim.c: New file.
109314 2006-09-05  Bruno Haible  <bruno@clisp.org>
109316         * MODULES.html.sh (String handling): Add trim.
109318 2006-09-04  Karl Berry  <karl@gnu.org>
109320         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109321         until next release.
109323 2006-09-03  Bruno Haible  <bruno@clisp.org>
109325         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109326         correctly.
109328 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109330         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109331         not gl_GETLOADAVG.  Omit unneeded semicolons.
109332         Problems reported by Ralf Wildenhues in
109333         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109334         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109335         at the end, which is the usual gnulib style.
109337         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109338         of doing all the work ourselves.
109339         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109340         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109342 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109344         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109345         Problem reported by Ralf Wildenhues in
109346         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109348         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109349         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109351 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109353         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109354         yesterday's patch by changing test -n to test -z.
109356 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109358         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109359         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109360         the former is now obsolescent.
109362         * modules/chdir-long (Depends-on): Add fcntl.
109364 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109366         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109367         obsolescent, and programs should use gnulib instead.
109368         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109369         but with prefixes changed.
109371 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109373         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109374         or stdbool.h, because they might not exist while configuring.
109376         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109377         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109378         does that for us.
109379         (O_DIRECTORY): Remove.
109381 2006-08-31  Eric Blake  <ebb9@byu.net>
109383         * gnulib-tool: Don't let emacs change spaces to TAB.
109385 2006-08-31  Bruno Haible  <bruno@clisp.org>
109387         * gnulib-tool: When calling func_import more than once, do it in a
109388         subshell.
109389         Reported by Eric Blake <ebb9@byu.net>.
109391 2006-08-31  Bruno Haible  <bruno@clisp.org>
109393         * gnulib-tool (nl): Remove variable.
109394         (sed_transform_lib_file): Use more robust test for config-h module.
109395         (func_import): Fix typo in 2006-08-25 patch.
109397 2006-08-31  Bruno Haible  <bruno@clisp.org>
109399         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109400         specified, augment Makefile.am variables instead of assigning them.
109402 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109404         Work around a bug in both the Linux and SunOS 64-bit kernels:
109405         nanosleep mishandles sleeps for longer than 2**31 seconds.
109406         Problem reported by Frank v Waveren in
109407         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109409         Check for nanosleep bug.
109410         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109412 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109414         Work around a bug in both the Linux and SunOS 64-bit kernels:
109415         nanosleep mishandles sleeps for longer than 2**31 seconds.
109416         Problem reported by Frank v Waveren in
109417         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109418         * lib/nanosleep.c (BILLION): New constant.
109419         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109420         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109421         implementation.
109423 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109425         * modules/nanosleep (Depends-on): Add gettime.
109427 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109428         and Simon Josefsson  <jas@extundo.com>
109429         and Oskar Liljeblad  <oskar@osk.mine.nu>
109431         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109432         * gnulib-tool (func_import): New license type 'unmodifiable license
109433         text'.
109434         * modules/fdl: Use it.  Longer description.
109435         * module/gpl, module/lgpl: New files.
109437 2006-08-30  Jim Meyering  <jim@meyering.net>
109439         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109440         shadowing the parameter.
109442 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109444         Sync from Libtool:
109446         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109448         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109449         sharing with gnulib.  Report by Eric Blake.
109451 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109453         * modules/isapipe: New file.
109454         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109456 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109458         * modules/configmake (Makefile.am): Add a comment, and omit
109459         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109460         by Bruno Haible.
109462 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109464         * m4/isapipe.m4: New file.
109466 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109468         * lib/isapipe.c, lib/isapipe.h: New files.
109470 2006-08-29  Jim Meyering  <jim@meyering.net>
109472         * modules/configmake (Makefile.am): Make configmake.h depend on
109473         Makefile.  Otherwise, a stale configmake.h could hang around.
109475 2006-08-29  Eric Blake  <ebb9@byu.net>
109477         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109478         resolution of upstream bug 3044.
109480 2006-08-29  Bruno Haible  <bruno@clisp.org>
109482         * modules/localcharset (Depends-on): Add configmake.
109483         (Makefile.am): Remove setting of LIBDIR through DEFS.
109485 2006-08-29  Bruno Haible  <bruno@clisp.org>
109487         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109488         defined.
109490 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109492         * modules/fcntl: New file.
109493         * modules/chdir-safer (Depends-on): Add fcntl.
109494         * modules/fts: Likewise.
109495         * modules/mkdir-p: Likewise.
109497         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109498         This undoes the most recent change, since we're now addressing the
109499         problem in a different way.
109501         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109502         into output, since the output might be called Makefile.am even
109503         if $makefile_name is something different.
109504         (func_import): Use $makefile_am rather than
109505         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109506         empty.
109508         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109510 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109512         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109513         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109514         recent change to stdint.m4, since we're now addressing the problem in a
109515         different way.
109517 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109519         * m4/fcntl_h.m4: New file.
109521 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109523         * lib/fcntl_.h: New file.
109524         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109525         the fcntl module.
109526         * lib/dirchownmod.c: Likewise.
109527         * lib/fts.c: Likewise.
109529         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109530         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109531         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109532         just before including <inttypes.h>, to avoid circular inclusion.
109534 2006-08-28  Jim Meyering  <jim@meyering.net>
109536         * doc/visibility.texi: Actually read and correct the grammar of the
109537         sentence affected by yesterday's change.
109539 2006-08-28  Eric Blake  <ebb9@byu.net>
109541         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109542         needs wrapper.
109544 2006-08-28  Eric Blake  <ebb9@byu.net>
109546         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109548 2006-08-28  Eric Blake  <ebb9@byu.net>
109550         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109552 2006-08-28  Bruno Haible  <bruno@clisp.org>
109554         * modules/c-strstr: New file, from GNU gettext.
109555         * MODULES.html.sh (String handling): Add c-strstr.
109557 2006-08-28  Bruno Haible  <bruno@clisp.org>
109559         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109560         macros.
109561         Reported by Eric Blake.
109563 2006-08-28  Bruno Haible  <bruno@clisp.org>
109565         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109566         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109567         * lib/vasprintf.c: Include errno.h, limits.h.
109568         (EOVERFLOW): New fallback definition.
109569         (vasprintf): Test here whether the string length is > INT_MAX.
109570         * lib/vsnprintf.c: Include errno.h, limits.h.
109571         (EOVERFLOW): New fallback definition.
109572         (vsnprintf): Fix bug when generated string was too long for the buffer.
109573         Test here whether the string length is > INT_MAX.
109575 2006-08-28  Bruno Haible  <bruno@clisp.org>
109577         * lib/inttypes_.h (SCNX*): Remove definitions.
109578         Reported by Eric Blake.
109580 2006-08-28  Bruno Haible  <bruno@clisp.org>
109582         * lib/c-strstr.h: New file, from GNU gettext.
109583         * lib/c-strstr.c: New file, from GNU gettext.
109585 2006-08-28  Bruno Haible  <bruno@clisp.org>
109587         * gnulib-tool: Reorder some statements.
109589 2006-08-28  Bruno Haible  <bruno@clisp.org>
109591         * gnulib-tool: New option --makefile-name.
109592         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109593         $makefile_name.
109594         (func_import): Write $makefile_name to the cache file, and read it from
109595         there unless explicitly specified. Use $makefile_name as file name
109596         instead of Makefile.am. Adjust the recommendations accordingly.
109598 2006-08-28  Bruno Haible  <bruno@clisp.org>
109600         * gnulib-tool (func_verify_module): Check against misapplying patch.
109602 2006-08-28  Bruno Haible  <bruno@clisp.org>
109604         * gnulib-tool (func_relativize, func_relconcat): New functions.
109605         Give an error if --local-dir is given with --update.
109606         Remove trailing slashes from $local_gnulib_dir.
109607         (func_import): Store the relativized $local_gnulib_dir in
109608         gnulib-cache.m4, and read it from there if not specified explicitly.
109610 2006-08-28  Bruno Haible  <bruno@clisp.org>
109612         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109613         is the current directory. Respect also $local_gnulib_dir.
109615 2006-08-28  Bruno Haible  <bruno@clisp.org>
109616             Simon Josefsson  <jas@extundo.com>
109618         BeOS portability.
109619         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109621 2006-08-27  Jim Meyering  <jim@meyering.net>
109623         * doc/visibility.texi: Remove duplicate word: "pointer".
109625 2006-08-26  Bruno Haible  <bruno@clisp.org>
109627         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109628         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109629         (Makefile.am): Create inttypes.h from inttypes_.h.
109630         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109632         * modules/imaxabs: New file.
109634         * modules/imaxdiv: New file.
109636 2006-08-26  Bruno Haible  <bruno@clisp.org>
109638         * m4/inttypes.m4: New file.
109639         * m4/_inttypes_h.m4: Remove file.
109640         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109641         PRI_MACROS_BROKEN.
109642         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109644         * m4/imaxabs.m4: New file.
109646         * m4/imaxdiv.m4: New file.
109648 2006-08-26  Bruno Haible  <bruno@clisp.org>
109650         * lib/inttypes_.h: New file.
109651         * lib/inttypes.h: Remove file.
109652         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109654         * lib/imaxabs.c: New file.
109656         * lib/imaxdiv.c: New file.
109658 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109660         New config-h module, so that "make" output needn't be cluttered
109661         by -DHAVE_CONFIG_H.
109662         * MODULES.html.sh (Support for building libraries and executables):
109663         Add config-h.
109664         * modules/config-h: New file.
109665         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109666         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109667         the config-h module is used.
109669         New configmake module, so that "make" output needn't be cluttered
109670         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109671         * MODULES.html.sh (Support for building libraries and executables):
109672         Add configmake.
109673         * modules/configmake: New file.
109675 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109677         * m4/config-h.m4: New file.
109679 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109681         * config/srclist.txt: Add elisp-comp.
109683 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109685         * MODULES.html.sh (Support for building libraries and executables):
109686         Add elisp-comp.
109687         * build-aux/elisp-comp: New file.
109688         * modules/elisp-comp: New file.
109690 2006-08-24  Bruno Haible  <bruno@clisp.org>
109692         * gnulib-tool (func_create_testdir): Use non-default values of
109693         sourcebase and m4base.
109695 2006-08-24  Bruno Haible  <bruno@clisp.org>
109697         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109698         HTML structure.
109700 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109702         * modules/openat (Depends-on): Add lchown.
109704 2006-08-23  Bruno Haible  <bruno@clisp.org>
109706         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109707         of gl_LOCK_EARLY instead of gl_LOCK.
109709 2006-08-23  Bruno Haible  <bruno@clisp.org>
109711         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109712         on OSF/1 to no.
109713         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109715 2006-08-23  Bruno Haible  <bruno@clisp.org>
109717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109718         as unusable.
109720         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
109721         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
109722         (gl_LOCK): New macro.
109724 2006-08-22  Simon Josefsson  <jas@extundo.com>
109726         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
109727         to md5 module.
109729 2006-08-22  Simon Josefsson  <jas@extundo.com>
109731         * MODULES.html.sh: Add "Support for maintaining and release
109732         projects".
109734         * build-aux/gnupload: New file, from coreutils.
109736 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109738         Avoid the need for AC_LIBSOURCES in m4 macros.
109739         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
109740         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
109741         * modules/check-version (EXTRA_DIST): Add check-version.h.
109742         * modules/crc (EXTRA_DIST): Add crc.h.
109743         * modules/des (EXTRA_DIST): Add des.h.
109744         * modules/gc (EXTRA_DIST): Add gc.h.
109745         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
109746         * modules/getline (EXTRA_DIST): Add getline.h.
109747         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
109748         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
109749         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
109750         * modules/md2 (EXTRA_DIST): Add md2.h.
109751         * modules/md4 (EXTRA_DIST): Add md4.h.
109752         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
109753         * modules/read-file (EXTRA_DIST): Add read-file.h.
109754         * modules/readline (EXTRA_DIST): Add readline.h.
109755         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
109756         rijndael-api-fst.h.
109758 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109760         * m4/rijndael.m4 (gl_ARCFOUR):
109761         * m4/arctwo.m4 (gl_ARCTWO):
109762         * m4/check-version.m4 (gl_CHECK_VERSION):
109763         * m4/crc.m4 (gl_CRC):
109764         * m4/des.m4 (gl_DES):
109765         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
109766         * m4/gc.m4 (gl_GC):
109767         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
109768         * m4/getline.m4 (gl_FUNC_GETLINE):
109769         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
109770         * m4/hmac-md5.m4 (gl_HMAC_MD5):
109771         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
109772         * m4/md2.m4 (gl_MD2):
109773         * m4/md4.m4 (gl_MD4):
109774         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
109775         * m4/read-file.m4 (gl_FUNC_READ_FILE):
109776         * m4/readline.m4 (gl_FUNC_READLINE):
109777         * m4/rijndael.m4 (gl_RIJNDAEL):
109778         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109779         to get the necessary .h files and whatnot.
109781 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109783         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
109784         gnulib rather than the other way around.
109785         * config/srclistvars.sh (COREUTILS): Remove.
109787 2006-08-22  Jim Meyering  <jim@meyering.net>
109789         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
109791         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
109793 2006-08-22  Eric Blake  <ebb9@byu.net>
109795         * modules/regexprops-generic: New file.
109796         * MODULES.html.sh (Support for building documentation): List it.
109798 2006-08-22  Eric Blake  <ebb9@byu.net>
109800         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
109801         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
109802         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
109803         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
109805 2006-08-22  Bruno Haible  <bruno@clisp.org>
109807         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
109808         and lib_LTLIBRARIES like the other lib_* variables.
109810 2006-08-22  Bruno Haible  <bruno@clisp.org>
109812         * build-aux/x-to-1.in: New file, from GNU gettext.
109814 2006-08-22  Bruno Haible  <bruno@clisp.org>
109816         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
109817         <utmpx.h> exists.
109819 2006-08-22  Bruno Haible  <bruno@clisp.org>
109821         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
109822         <utmpx.h> exists.
109824 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109826         BeOS portability.
109827         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
109828         exist.
109829         Problem reported by Bruno Haible.
109831 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109833         Avoid the need for AC_LIBSOURCES in m4 macros.
109834         * modules/acl (EXTRA_DIST): Add acl.h.
109835         * modules/argmatch (Files): Add m4/argmatch.m4.
109836         (configure.ac): Add gl_ARGMATCH.
109837         (EXTRA_DIST): Renamed from lib_SOURCES, for
109838         consistency with the other modules.  Remove argmatch.c.
109839         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
109840         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
109841         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
109842         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
109843         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
109844         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
109845         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
109846         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
109847         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
109848         * modules/closeout (EXTRA_DIST): Add closeout.h.
109849         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
109850         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
109851         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
109852         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
109853         dirname.h; remove basename.c and stripslash.c.
109854         * modules/exclude (EXTRA_DIST): Add exclude.h.
109855         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
109856         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
109857         * modules/file-type (EXTRA_DIST): Add file-type.h.
109858         * modules/filemode (EXTRA_DIST): Add filemode.h.
109859         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
109860         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
109861         * modules/fpending (EXTRA_DIST): Add __fpending.h.
109862         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
109863         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
109864         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
109865         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
109866         * modules/getdate (EXTRA_DIST): Add getdate.c.
109867         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
109868         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
109869         * modules/getpass (EXTRA_DIST): Add getpass.h.
109870         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
109871         * modules/group-member (EXTRA_DIST): Add group-member.h.
109872         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
109873         * modules/hash (EXTRA_DIST): Add hash.h.
109874         * modules/human (EXTRA_DIST): Add human.h.
109875         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
109876         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
109877         * modules/lchown (EXTRA_DIST): Add lchown.h.
109878         * modules/long-options (EXTRA_DIST): Add long-options.h.
109879         * modules/lstat (EXTRA_DIST): Add lstat.h.
109880         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
109881         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
109882         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
109883         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
109884         * modules/memxor (EXTRA_DIST): Add memxor.h.
109885         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
109886         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
109887         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
109888         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
109889         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
109890         * modules/physmem (EXTRA_DIST): Add physmem.h.
109891         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
109892         * modules/posixver (EXTRA_DIST): Add posixver.h.
109893         * modules/quote (EXTRA_DIST): Add quote.h.
109894         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
109895         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
109896         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
109897         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
109898         regex_internal.h regexec.c.
109899         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
109900         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
109901         * modules/same (EXTRA_DIST): Add same.h.
109902         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
109903         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
109904         * modules/savedir (EXTRA_DIST): Add savedir.h.
109905         * modules/sha1 (EXTRA_DIST): Add sha1.h.
109906         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
109907         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
109908         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
109909         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
109910         * modules/strdup (EXTRA_DIST): Add strdup.h.
109911         * modules/strftime (EXTRA_DIST): Add strftime.h.
109912         * modules/strndup (EXTRA_DIST): Add strndup.h.
109913         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
109914         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
109915         * modules/time_r (EXTRA_DIST): Add time_r.h.
109916         * modules/timespec (EXTRA_DIST): Add timespec.h.
109917         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
109918         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
109919         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
109920         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
109921         * modules/userspec (EXTRA_DIST): Add userspec.h.
109922         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
109923         * modules/utimens (EXTRA_DIST): Add utimens.h.
109924         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
109925         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
109926         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
109927         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
109928         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
109929         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
109930         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
109931         * modules/yesno (EXTRA_DIST): Add yesno.h.
109933 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109935         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
109937         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
109938         * m4/dev-ino.m4, same-inode.m4: Remove.
109940         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
109941         * m4/acl.m4 (AC_FUNC_ACL):
109942         * m4/backupfile.m4 (gl_BACKUPFILE):
109943         * m4/c-strtod.m4 (gl_C99_STRTOLD):
109944         * m4/canon-host.m4 (gl_CANON_HOST):
109945         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
109946         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
109947         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
109948         * m4/cloexec.m4 (gl_CLOEXEC):
109949         * m4/close-stream.m4 (gl_CLOSE_STREAM):
109950         * m4/closeout.m4 (gl_CLOSEOUT):
109951         * m4/dirfd.m4 (gl_FUNC_DIRFD):
109952         * m4/dirname.m4 (gl_DIRNAME):
109953         * m4/exclude.m4 (gl_EXCLUDE):
109954         * m4/exitfail.m4 (gl_EXITFAIL):
109955         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
109956         * m4/file-type.m4 (gl_FILE_TYPE):
109957         * m4/filemode.m4 (gl_FILEMODE):
109958         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
109959         * m4/fpending.m4 (gl_FUNC_FPENDING):
109960         * m4/fprintftime.m4 (gl_FPRINTFTIME):
109961         * m4/fts.m4 (gl_FUNC_FTS):
109962         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
109963         * m4/getdate.m4 (gl_GETDATE):
109964         * m4/gethrxtime.m4 (gl_GETHRXTIME):
109965         * m4/getpagesize.m4 (gl_GETPAGESIZE):
109966         * m4/getpass.m4 (gl_FUNC_GETPASS):
109967         * m4/gettime.m4 (gl_GETTIME):
109968         * m4/getugroups.m4 (gl_GETUGROUPS):
109969         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
109970         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
109971         * m4/hard-locale.m4 (gl_HARD_LOCALE):
109972         * m4/hash.m4 (gl_HASH):
109973         * m4/idcache.m4 (gl_IDCACHE):
109974         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
109975         * m4/lchown.m4 (gl_FUNC_LCHOWN):
109976         * m4/long-options.m4 (gl_LONG_OPTIONS):
109977         * m4/lstat.m4 (gl_FUNC_LSTAT):
109978         * m4/md5.m4 (gl_MD5):
109979         * m4/memcasecmp.m4 (gl_MEMCASECMP):
109980         * m4/memcoll.m4 (gl_MEMCOLL):
109981         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
109982         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
109983         * m4/memxor.m4 (gl_MEMXOR):
109984         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
109985         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
109986         * m4/modechange.m4 (gl_MODECHANGE):
109987         * m4/mountlist.m4 (gl_MOUNTLIST):
109988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109989         * m4/openat.m4 (gl_FUNC_OPENAT):
109990         * m4/pathmax.m4 (gl_PATHMAX):
109991         * m4/physmem.m4 (gl_PHYSMEM):
109992         * m4/posixtm.m4 (gl_POSIXTM):
109993         * m4/posixver.m4 (gl_POSIXVER):
109994         * m4/quote.m4 (gl_QUOTE):
109995         * m4/quotearg.m4 (gl_QUOTEARG):
109996         * m4/readtokens.m4 (gl_READTOKENS):
109997         * m4/readutmp.m4 (gl_READUTMP):
109998         * m4/regex.m4 (gl_REGEX):
109999         * m4/safe-read.m4 (gl_SAFE_READ):
110000         * m4/safe-write.m4 (gl_SAFE_WRITE):
110001         * m4/same.m4 (gl_SAME):
110002         * m4/save-cwd.m4 (gl_SAVE_CWD):
110003         * m4/savedir.m4 (gl_SAVEDIR):
110004         * m4/settime.m4 (gl_SETTIME):
110005         * m4/sha1.m4 (gl_SHA1):
110006         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110007         * m4/stat-macros.m4 (gl_STAT_MACROS):
110008         * m4/stat-time.m4 (gl_STAT_TIME):
110009         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110010         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110011         * m4/strdup.m4 (gl_FUNC_STRDUP):
110012         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110013         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110014         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110015         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110016         * m4/time_r.m4 (gl_TIME_R):
110017         * m4/timespec.m4 (gl_TIMESPEC):
110018         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110019         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110020         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110021         * m4/userspec.m4 (gl_USERSPEC):
110022         * m4/utimecmp.m4 (gl_UTIMECMP):
110023         * m4/utimens.m4 (gl_UTIMENS):
110024         * m4/xalloc.m4 (gl_XALLOC):
110025         * m4/xgetcwd.m4 (gl_XGETCWD):
110026         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110027         * m4/xreadlink.m4 (gl_XREADLINK):
110028         * m4/xstrtod.m4 (gl_XSTRTOD):
110029         * m4/yesno.m4 (gl_YESNO):
110030         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110031         to get the necessary .h files and whatnot.
110033 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110034             Bruno Haible  <bruno@clisp.org>
110036         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110037         /bin/sh understanding of '!' conditional negation.
110039 2006-08-21  Jim Meyering  <jim@meyering.net>
110041         * modules/openat (Depends-on): Really alphabetize.
110043         * modules/acl (Depends-on): Add error and quote.
110045         * check-module (find_included_lib_files): Add at-func.c to the
110046         ok-to-include-more-than-once white list.
110048         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110050 2006-08-21  Bruno Haible  <bruno@clisp.org>
110052         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110053         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110054         Reported by Martin Lambers <marlam@marlam.de>.
110056 2006-08-21  Bruno Haible  <bruno@clisp.org>
110058         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110059         specify an installation location, don't emit a noinst_LIBRARIES or
110060         noinst_LTLIBRARIES assignment.
110062 2006-08-21  Bruno Haible  <bruno@clisp.org>
110064         BeOS portability.
110065         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110066         BeOS has mbrtowc() but no <wctype.h>.
110068 2006-08-21  Bruno Haible  <bruno@clisp.org>
110070         BeOS portability.
110071         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110072         exist.
110074 2006-08-21  Bruno Haible  <bruno@clisp.org>
110076         BeOS portability.
110077         * lib/mbchar.h: Include <wctype.h> only if it exists.
110079 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110081         Remove files that are no longer needed by their respective modules.
110082         * m4/obstack.m4: Remove.
110083         * m4/strerror_r.m4: Remove.
110084         * m4/uint32_t.m4: Remove.
110085         * m4/uintptr_t.m4: Remove.
110086         * m4/ullong_max.m4: Remove.
110087         * m4/xstrtoimax.m4: Remove.
110088         * m4/xstrtoumax.m4: Remove.
110090         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110091         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110092         dependencies now capture this.
110094         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110095         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110096         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110097         * m4/human.m4 (gl_HUMAN): Likewise.
110098         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110099         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110101         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110103         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110104         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110105         stdint.
110106         * m4/human.m4 (gl_HUMAN): Likewise.
110107         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110108         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110109         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110110         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110111         * m4/xstrtol (gl_XSTRTOL): Likewise.
110113         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110114         AC_TYPE_LONG_LONG_INT.
110115         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110116         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110117         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110118         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110120         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110121         on stdbool.
110123         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110124         (gl_PREREQ_XSTRTOUL): Remove.
110126         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110128         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110129         mode.
110131 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110133         Add and change modules to make it easier for coreutils to use
110134         gnulib-tool.
110135         * modules/backupfile (Files): Remove m4/d-ino.m4.
110136         (Depends-on): Add d-ino.
110137         * modules/cycle-check (Depends-on): Add stdint.
110138         (lib_SOURCES): Add cycle-check.h.
110139         * modules/d-ino: New module.
110140         * modules/d-type: New module.
110141         * modules/error (Files): Remove m4/strerror_r.m4.
110142         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110143         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110144         m4/inttypes_h.m4, m4/uintmax_t.m4.
110145         (Depends-on): Add stdint.
110146         (lib_SOURCES): Add fsusage.h.
110147         * modules/getcwd (Files): Remove d-ino.m4.
110148         (Depends-on): Add d-ino.
110149         * modules/getndelim2 (Depends-on): Add stdint.
110150         * modules/glob (Files): Remove m4/d-type.m4.
110151         (Depends-on): Add d-type.
110152         * modules/host-os: New module.
110153         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110154         m4/inttypes_h.m4, m4/uintmax_t.m4.
110155         * Depends-on: Add stdint.
110156         (lib_SOURCES): Add human.h.
110157         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110158         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110159         m4/uintmax_t.m4, m4/ulonglong.m4.
110160         (Depends-on): Add stdint.
110161         (EXTRA_DIST): Add inttostr.h.
110162         * modules/lchmod: New module.
110163         * modules/link-follow: New module.
110164         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110165         (Depends-on): Add lchmod.
110166         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110167         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110168         (Depends-on): Add stdint.
110169         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110170         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110171         (Depends-on): Add stdint.
110172         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110173         * modules/perl: New module.
110174         * modules/regex (Depends-on): Add stdint.
110175         * modules/rmdir-errno: New module.
110176         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110177         m4/intmax_t.m4.
110178         (Depends-on): Add stdint.
110179         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110180         m4/uintmax_t.m4.
110181         (Depends-on): Add stdint.
110182         * modules/unlink-busy: New module.
110183         * modules/utimecmp (Depends-on): Add stdint.
110184         * modules/uptime: New module.
110185         * modules/winsz-ioctl: New module.
110186         * modules/winsz-termios: New module.
110187         * modules/xnanosleep (Depends-on): Add nanosleep.
110188         * modules/ullong_max: Remove.
110189         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110190         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110191         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110192         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110193         (Depends-on): Add inttypes.
110194         (lib_SOURCES): Add xstrtol.h.
110195         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110196         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110197         * MODULES.html.sh: Move 'assert' into the assert section.
110198         Move 'dummy' into the linking section.
110199         Remove ullong_max.
110200         Add section for compatibility checks for POSIX:2001 functions,
110201         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110202         winsz-ioctl, and winsz-termios into it.
110203         Add lchmod.
110204         Add top-level Misc section and put host-os, perl, and uptime
110205         into it.
110207 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110209         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110210         now assume the stdint module.  Do not include inttypes.h.
110211         * lib/fsusage.h: Likewise.
110212         * lib/getndelim2.c: Likewise.
110213         * lib/human.h: Likewise.
110214         * lib/inttostr.h: Likewise.
110215         * lib/obstack.c: Likewise.
110216         * lib/regex_internal.h: Likewise.
110217         * lib/tempname.c: Likewise.
110218         * lib/utimecmp.c: Likewise.
110219         * lib/xstrtol.h: Likewise.
110221         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110223         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110224         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110225         * lib/xtime.h: Likewise.
110227 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110229         * modules/openat (Files): Add lib/fchmodat.c.
110230         Fixes problem reported by Jay Youngman.
110232 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110234         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110235         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110237 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110238             Bruno Haible  <bruno@clisp.org>
110240         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110241         and is a script that invokes bison. Tighten the code. Add comments.
110243 2006-08-18  Jim Meyering  <jim@meyering.net>
110245         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110246         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110247         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110248         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110250 2006-08-18  Bruno Haible  <bruno@clisp.org>
110252         * modules/bison-i18n: New file.
110253         * MODULES.html.sh (Internationalization functions): Add it.
110255 2006-08-18  Bruno Haible  <bruno@clisp.org>
110257         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110258         sys/statvfs.h. When getmntinfo was found, check its declaration and
110259         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110261 2006-08-18  Bruno Haible  <bruno@clisp.org>
110263         * m4/bison-i18n.m4: New file, from bison.
110265 2006-08-18  Bruno Haible  <bruno@clisp.org>
110267         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110268         (ME_DUMMY): Treat "kernfs" as a dummy.
110269         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110271 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110273         Update from coreutils.
110275         2006-08-15  Jim Meyering  <jim@meyering.net>
110277         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110279         2006-01-17  Jim Meyering  <jim@meyering.net>
110281         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110283         2006-01-11  Jim Meyering  <jim@meyering.net>
110285         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110286         Check for the lchmod function.
110288 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110290         Update from coreutils.
110292         * lib/__fpending.h: Add copyright notice.
110293         * lib/fprintftime.h: Likewise.
110294         * lib/savedir.c: Use (C) in copyright notice.
110295         * lib/savedir.h: Likewise.
110297         2006-08-15  Jim Meyering  <jim@meyering.net>
110299         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110300         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110301         in support of the EXPECTED_ERRNO macro.
110302         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110303         definitions.  Instead, define the appropriate symbols and include
110304         "at-func.c".
110305         * lib/mkdirat.c (mkdirat): Likewise.
110306         * lib/fchmodat.c (fchmodat): Likewise.
110307         (ENOSYS): Remove definition.
110308         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110309         it.  Don't include "unistd--.h" -- it wasn't ever used.
110311         2006-01-17  Jim Meyering  <jim@meyering.net>
110313         Rewrite fts.c not to change the current working directory,
110314         by using openat, fstatat, fdopendir, etc..
110316         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110317         (HAVE_OPENAT_SUPPORT): Define.
110318         [_LIBC] (fchdir): Don't undef or define; no longer used.
110319         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110320         Now, this `function' always succeeds, and consumes its file descriptor
110321         parameter -- so callers must not close such FDs.  Update callers.
110322         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110323         (diropen): Add parameter, SP.  Adjust all callers.
110324         Implement using diropen_fd, rather than open.
110325         (fts_open): Initialize new member, fts_cwd_fd.
110326         Remove fts_rft-setting code.
110327         (fts_close): Close fts_cwd_fd, if necessary.
110328         (__opendir2): Define in terms of opendir or opendirat,
110329         depending on whether the FST_NOCHDIR flag is set.
110330         (fts_build): Since fts_safe_changedir consumes its FD, and since
110331         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110332         and close the dup'd file descriptor upon failure.
110333         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110334         (fts_safe_changedir): Tweak semantics to reflect that this function
110335         now calls cwd_advance_fd and hence consumes its FD argument.
110336         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110337         [struct FTS] (fts_rft): Remove now-unused member.
110338         [struct FTS] (fts_cycle.state): Improve comment.
110340         * lib/openat.c (openat_needs_fchdir): New function.
110341         * lib/openat.h (openat_needs_fchdir): Declare it.
110343 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110345         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110346         Problem and fix reported by Pádraig Brady in
110347         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110349 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110351         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110353 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110355         * lib/memcoll.c (memcoll): Optimize for the common case where the
110356         arguments are bytewise equal.
110358 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110360         * doc/regexprops-generic.texi: Add a copyright notice.
110362 2006-08-15  Bruno Haible  <bruno@clisp.org>
110364         * modules/tmpdir (License): Change to LGPL.
110366 2006-08-15  Bruno Haible  <bruno@clisp.org>
110368         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110369         module.
110371 2006-08-14  Simon Josefsson  <jas@extundo.com>
110373         * config/srclist.txt: Add gnupload.
110375 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110377         Change copyright notice from LGPL 2 to GPL 2, since that's the
110378         standard form used in the gnulib repository.
110379         * tests/test-lock.c: Likewise.
110380         * tests/test-stdint.c: Likewise.
110381         * tests/test-tls.c: Likewise.
110383         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110384         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110385         Add copyright notice.
110387         * check-module: Add copyright notice.  Output a copyright
110388         notice if "--version" is specified.
110389         * modules/COPYING: New file.
110390         * tests/test-getaddrinfo.c: Add copyright notice.
110391         * tests/test-verify.c: Likewise.
110393 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110395         Change copyright notice from LGPL 2 to GPL 2, since that's the
110396         standard form used in the gnulib repository.
110397         * lib/lock.c: LGPL -> GPL.
110398         * lib/lock.h: Likewise.
110399         * lib/strnlen1.c: Likewise.
110400         * lib/strnlen1.h: Likewise.
110401         * lib/tls.c: Likewise.
110402         * lib/tls.h: Likewise.
110403         * lib/tmpdir.c: Likewise.
110405         * lib/TODO: Remove; this belongs only in coreutils.
110407 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110409         Add copyright notices to long-enough files that lack them, since
110410         otherwise the files aren't clearly free.  Use the same notice that
110411         getdate.texi already uses.
110412         * doc/alloca-opt.texi: Add copyright notice.
110413         * doc/alloca.texi: Likewise.
110414         * doc/ctime.texi: Likewise.
110415         * doc/functions.texi: Likewise.
110416         * doc/gcd.texi: Likewise.
110417         * doc/gnulib-tool.texi: Likewise.
110418         * doc/inet_ntoa.texi: Likewise.
110419         * doc/visibility.texi: Likewise.
110421         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110422         * doc/quote.texi: Add copyright notice.
110424         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110425         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110426         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110427         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110428         is now obsolete, and give a pointer to the Sun list.
110429         Add copyright notice.
110431 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110433         * config/srclistvars.sh: Add copyright notice.
110435 2006-08-14  Eric Blake  <ebb9@byu.net>
110437         Import the following change from libc:
110439         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110441         Upstream bug 2997.
110442         * lib/misc/error.c: Add space between program name and message if file
110443         name is missing.
110445 2006-08-12  Karl Berry  <karl@gnu.org>
110447         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110448         remove, these originate in gnulib now.
110450 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110452         * doc/Makefile (standards.info standards.html standards.dvi):
110453         Also depend on make-stds.texi.
110455 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110457         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110458         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110460         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110461         in wchar_t.  Problem reported by Eric Blake.
110463         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110464         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110465         Also, help the compiler to keep LEN in a register.
110467 2006-08-11  Eric Blake  <ebb9@byu.net>
110469         * users.txt: Sort.  Add tar.
110471 2006-08-11  Bruno Haible  <bruno@clisp.org>
110473         * users.txt: New file.
110475 2006-08-11  Bruno Haible  <bruno@clisp.org>
110477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110478         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110480 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110482         * modules/snprintf (Depends-on): Remove minmax.
110483         (Maintainer): Add self and Bruno.
110485 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110487         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110488         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110489         (EOVERFLOW): Define if the system does not.
110490         Do not include "minmax.h"; it wasn't used.
110491         (snprintf): Don't assume size_t promotes to an unsigned type.
110492         Fix bug when generated string was too long for the buffer: the
110493         buffer's contents are supposed to be the initial prefix of the
110494         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110495         exceeds INT_MAX; do the check ourselves.
110497         Import the following changes from libc:
110499         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110501         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110502         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110503         set wc to the byte which couldn't be converted.
110504         (re_string_reconstruct): Don't clear valid_raw_len before calling
110505         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110506         tip_context using re_string_context_at.
110508         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110510         * lib/posix/regex.h: g++ still cannot handled [restrict].
110512         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110514         * lib/posix/regex.h: Remove special handling for VMS.
110516 2006-08-10  Jim Meyering  <jim@meyering.net>
110518         * modules/same-inode: New module.
110519         * modules/dev-ino: New module.
110520         * modules/cycle-check: Depend on these modules, rather than simply
110521         including their .h files.
110522         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110523         required via m4/cycle-check.m4.
110524         * modules/same: Depend on new same-inode module, rather than
110525         including same-inode.h.
110526         * modules/chdir-safer: New file.
110528         * modules/chown (Depends-on): Add stat-macros.
110530 2006-08-10  Jim Meyering  <jim@meyering.net>
110532         * m4/cycle-check.m4: New file.
110533         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110534         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110536 2006-08-10  Eric Blake  <ebb9@byu.net>
110538         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110539         in from original proposal.
110541 2006-08-10  Eric Blake  <ebb9@byu.net>
110542         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110544         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110545         namespace.
110547 2006-08-10  Bruno Haible  <bruno@clisp.org>
110549         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110550         as well.
110552 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110554         Sync from coreutils.
110556         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110558         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110559         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110561 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110563         * modules/restrict: Remove; no longer needed now that we assume
110564         Autoconf 2.59 or later.
110565         * MODULES.html.sh: Remove 'restrict'.
110566         * modules/argp (Depends-on): Remove 'restrict'.
110567         * modules/base64 (Depends-on): Likewise.
110568         * modules/gc (Depends-on): Likewise.
110569         * modules/getaddrinfo (Depends-on): Likewise.
110570         * modules/glob (Depends-on): Likewise.
110571         * modules/inet_ntop (Depends-on): Likewise.
110572         * modules/inet_pton (Depends-on): Likewise.
110573         * modules/memxor (Depends-on): Likewise.
110574         * modules/regex (Depends-on): Likewise.
110575         * modules/strtok_r (Depends-on): Likewise.
110576         * modules/time_r (Depends-on): Likewise.
110578 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110580         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110581         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110582         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110583         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110584         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110585         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110586         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110587         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110589         Merge from coreutils.
110590         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110591         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110592         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110593         * m4/time_r.m4 (gl_TIME_R): Likewise.
110595 2006-08-09  Karl Berry  <karl@gnu.org>
110597         * config/srclist.txt: no more gettext-tools, per Bruno.
110599 2006-08-08  Eric Blake  <ebb9@byu.net>
110601         * modules/verror: New module.
110602         * MODULES.html.sh: Document it.
110604 2006-08-08  Eric Blake  <ebb9@byu.net>
110606         * lib/verror.h, lib/verror.c: New files.
110608 2006-08-08  Eric Blake  <ebb9@byu.net>
110610         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110611         verror_at_line output complies with GNU Coding Standards even when
110612         file is NULL.
110614 2006-08-07  Bruno Haible  <bruno@clisp.org>
110616         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110617         versions of AIX.
110618         Reported by Ralf Wildenhues.
110620 2006-08-07  Bruno Haible  <bruno@clisp.org>
110622         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110623         in an AC_DEFUN. Needed so that the autoconf snippets can use
110624         AC_REQUIRE.
110626 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110628         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110629         Initialize pkgdata_DATA.
110630         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110631         overriding it.
110633 2006-08-06  Eric Blake  <ebb9@byu.net>
110635         * lib/error.h: Fold in some upstream changes from glibc.
110636         * lib/error.c: Likewise.
110638 2006-08-04  Bruno Haible  <bruno@clisp.org>
110640         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110641         Make the mostlyclean-local rule depend on mostlyclean-generic.
110642         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110644 2006-07-31  Bruno Haible  <bruno@clisp.org>
110646         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110647         <stdlib.h>, <string.h>.
110649 2006-07-30  Bruno Haible  <bruno@clisp.org>
110651         * modules/readlink (License): Change to LGPL.
110653 2006-07-30  Bruno Haible  <bruno@clisp.org>
110655         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110656         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110657         set PKGDATADIR to point to it.
110659 2006-07-30  Bruno Haible  <bruno@clisp.org>
110661         * modules/csharpexec (configure.ac): Comment out macro invocation.
110662         * modules/javaexec (configure.ac): Likewise.
110663         * modules/javacomp-script (configure.ac): Likewise.
110665         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110667 2006-07-30  Bruno Haible  <bruno@clisp.org>
110669         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110670         linked-list.
110672 2006-07-30  Bruno Haible  <bruno@clisp.org>
110674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110676 2006-07-30  Bruno Haible  <bruno@clisp.org>
110678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110679         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110680         get removed.
110682 2006-07-29  Bruno Haible  <bruno@clisp.org>
110684         Make it possible for gnulib-tool to work with locally modified or
110685         augmented gnulib repositories.
110686         * gnulib-tool (func_usage): Document --local-dir option.
110687         (local_gnulib_dir): New variable.
110688         Handle --local-dir option.
110689         (func_lookup_file): New function.
110690         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110691         (func_get_description, func_get_filelist, func_get_description,
110692         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110693         func_get_automake_snippet, func_get_include_directive,
110694         func_get_license, func_get_maintainer): Use func_lookup_file.
110695         (func_import, func_create_testdir): Use func_lookup_file.
110697 2006-07-29  Bruno Haible  <bruno@clisp.org>
110699         * modules/setenv (Depends-on): Add unistd.
110701 2006-07-29  Bruno Haible  <bruno@clisp.org>
110703         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110705 2006-07-29  Bruno Haible  <bruno@clisp.org>
110707         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110709 2006-07-29  Bruno Haible  <bruno@clisp.org>
110711         * gnulib-tool (import, update): If there is no Makefile.am, look at
110712         aclocal.m4, instead of bailing out.
110714 2006-07-29  Bruno Haible  <bruno@clisp.org>
110716         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110717         Categorize the options by when they are useful.
110719 2006-07-29  Bruno Haible  <bruno@clisp.org>
110721         * gnulib-tool (func_usage): Document option --no-libtool.
110722         Handle option --no-libtool.
110723         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
110724         for changed semantics of $libtool variable.
110725         (func_import): Likewise. If libtool is not used, show this through
110726         an option --no-libtool.
110727         (func_create_testdir): Update.
110729 2006-07-29  Bruno Haible  <bruno@clisp.org>
110731         * gnulib-tool (func_import): Extend error message about missing
110732         --doc-base.
110734 2006-07-29  Bruno Haible  <bruno@clisp.org>
110736         * gnulib-tool (func_import): Don't create the $docbase directory if
110737         there is no file to store there.
110739 2006-07-29  Bruno Haible  <bruno@clisp.org>
110741         * gnulib-tool (autoconf_minversion): If a --dir option is given and
110742         relevant, look for configure.ac there, not in the current directory.
110743         Also use a simple search for AC_PREREQ, not "autoconf --trace".
110745 2006-07-29  Bruno Haible  <bruno@clisp.org>
110747         * gnulib-tool (SORT): New variable.
110748         (func_usage): Undocument --assume-autoconf option.
110749         Remove --assume-autoconf option handling.
110750         (autoconf_minversion): Determine from the contents of configure.ac.
110751         (func_import): Remove autoconf_minversion handling.
110752         Suggested by Eric Blake.
110754 2006-07-29  Bruno Haible  <bruno@clisp.org>
110756         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
110758 2006-07-29  Bruno Haible  <bruno@clisp.org>
110760         * config/srclist.txt (*setenv.[ch]): Remove rules.
110762 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110764         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
110766 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110768         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
110769         arpa/inet.h.
110771 2006-07-28  Simon Josefsson  <jas@extundo.com>
110773         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
110774         * modules/inet_pton (Depends-on): Likewise.
110776 2006-07-28  Simon Josefsson  <jas@extundo.com>
110778         * m4/netinet_in_h.m4: New file.
110780 2006-07-28  Simon Josefsson  <jas@extundo.com>
110782         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
110783         #include's.
110785 2006-07-28  Simon Josefsson  <jas@extundo.com>
110787         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
110788         #include's.
110790 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
110792         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
110793         setgid on directories only if they set these bits.
110794         * lib/modechange.h: Remove obsolete comment about masks.
110796 2006-07-28  Eric Blake  <ebb9@byu.net>
110798         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
110799         macro expansion.
110801 2006-07-28  Bruno Haible  <bruno@clisp.org>
110803         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
110805 2006-07-28  Bruno Haible  <bruno@clisp.org>
110807         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
110809 2006-07-28  Bruno Haible  <bruno@clisp.org>
110811         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
110812         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
110813         Define fallbacks.
110814         Avoids link error on FreeBSD 4.x.
110815         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110817         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
110818         encoding.
110819         * lib/mbswidth.c (iswcntrl): Likewise.
110821 2006-07-27  Bruno Haible  <bruno@clisp.org>
110823         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
110824         test.
110826 2006-07-27  Bruno Haible  <bruno@clisp.org>
110828         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
110829         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
110830         defined.
110832 2006-07-26  Eric Blake  <ebb9@byu.net>
110834         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
110836 2006-07-26  Eric Blake  <ebb9@byu.net>
110838         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
110839         like mingw that lack mkstemp.
110840         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
110841         avoid compilation warning on mingw.
110843 2006-07-26  Bruno Haible  <bruno@clisp.org>
110845         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
110846         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
110847         INT_FAST*_MIN, INTPTR_MIN.
110849 2006-07-25  Bruno Haible  <bruno@clisp.org>
110851         * modules/version-etc (Depends-on): Add stdarg.
110853 2006-07-25  Bruno Haible  <bruno@clisp.org>
110855         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
110856         complex commands.
110858 2006-07-25  Bruno Haible  <bruno@clisp.org>
110860         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
110861         defined in <stdarg.h> or config.h.
110863 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
110865         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
110866         (gl_STDIO_SAFER): Remove.
110868 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
110870         * MODULES.html.sh (File stream based Input/Output):
110871         Add fopen-safer, tmpfile-safer; remove stdio-safer.
110872         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
110873         * modules/fopen-safer, modules/tmpfile-safer: New files.
110874         * modules/stdio-safer: Remove.
110876 2006-07-24  Bruno Haible  <bruno@clisp.org>
110878         * modules/tmpdir: New file.
110879         * MODULES.html.sh (File system functions): Add it.
110881 2006-07-24  Bruno Haible  <bruno@clisp.org>
110883         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
110884         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
110886 2006-07-24  Bruno Haible  <bruno@clisp.org>
110888         * modules/clean-temp: New file.
110890 2006-07-24  Bruno Haible  <bruno@clisp.org>
110892         * m4/tmpdir.m4: New file, from GNU gettext.
110894 2006-07-24  Bruno Haible  <bruno@clisp.org>
110896         * lib/tmpdir.h: New file, from GNU gettext.
110897         * lib/tmpdir.c: New file, from GNU gettext.
110899 2006-07-24  Bruno Haible  <bruno@clisp.org>
110901         * lib/clean-temp.h: New file, from GNU gettext.
110902         * lib/clean-temp.c: New file, from GNU gettext.
110904 2006-07-23  Eric Blake  <ebb9@byu.net>
110906         * modules/stdio-safer (Files): Add tmpfile-safer.c.
110907         (Depends-on): Add binary-io.
110909 2006-07-23  Eric Blake  <ebb9@byu.net>
110911         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
110913 2006-07-23  Eric Blake  <ebb9@byu.net>
110915         * lib/tmpfile-safer.c: New file.
110916         * lib/stdio-safer.h (fopen_safer): Add prototype.
110917         * lib/stdio--.h (tmpfile): Make safer.
110919 2006-07-23  Bruno Haible  <bruno@clisp.org>
110921         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
110922         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
110923         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
110924         gl_linked_remove_at): Use it.
110926 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110927         and Simon Josefsson <jas@extundo.com>
110929         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
110931         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
110933 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110935         * modules/close-stream: New file.
110936         * modules/closeout (Description): Make it clear that it exits
110937         with a diagnostic on error.
110938         (Depends-on): Add close-stream.  Remove fpending, stdbool.
110939         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
110941 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110943         * m4/close-stream.m4: New file.
110945 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
110947         * lib/close-stream.c, lib/close-stream.h: New files.
110949 2006-07-22  Bruno Haible  <bruno@clisp.org>
110951         Merge from GNU gettext 0.15.
110953         2006-05-01  Bruno Haible  <bruno@clisp.org>
110955                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
110957         2006-07-22  Bruno Haible  <bruno@clisp.org>
110959                 * modules/javaversion: New file.
110960                 * MODULES.html.sh (Java): Add javaversion.
110962         2006-03-12  Bruno Haible  <bruno@clisp.org>
110964                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
110966         2005-12-04  Bruno Haible  <bruno@clisp.org>
110968                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
110969                 (untested).
110971         2006-06-21  Bruno Haible  <bruno@clisp.org>
110973                 Avoid warnings from recent versions of mcs.
110974                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
110975                 -o, -L, -r any more. Use options documented since mcs-1.0
110976                 instead. Similarly for -g.
110978         2005-12-04  Bruno Haible  <bruno@clisp.org>
110980                 * build-aux/csharpcomp.sh.in: Suffix for resources is
110981                 .resources, not .resource.
110983         2005-07-09  Bruno Haible  <bruno@clisp.org>
110985                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
110986                 add a .dll suffix.
110987                 Reported by Mark Junker <mjscod@gmx.de>.
110989         2006-07-22  Bruno Haible  <bruno@clisp.org>
110991                 * modules/gettext: Upgrade to gettext-0.15.
110992                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
110993                 m4/visibility.m4.
110994                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
110996 2006-07-22  Bruno Haible  <bruno@clisp.org>
110998         Merge from GNU gettext 0.15.
111000         2006-03-25  Bruno Haible  <bruno@clisp.org>
111002                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111004         2006-07-21  Bruno Haible  <bruno@clisp.org>
111006                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111007                 "1.1".
111009         2006-05-09  Bruno Haible  <bruno@clisp.org>
111011                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111012                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111013                 for the conftestver execution.
111015         2006-05-01  Bruno Haible  <bruno@clisp.org>
111017                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111018                 optional target-version argument. Verify that the compiler
111019                 groks source of the specified source-version, or add -source
111020                 option as necessary. Verify that the compiler produces
111021                 bytecode in the specified target-version, or add -target and
111022                 -source options as necessary. Make the result of the test
111023                 available as variable CONF_JAVAC. Also log error output in
111024                 config.log.
111026         2006-03-11  Bruno Haible  <bruno@clisp.org>
111028                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111030         2006-05-09  Bruno Haible  <bruno@clisp.org>
111032                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111033                 CLASSPATH_SEPARATOR to a semicolon.
111035         2006-03-12  Bruno Haible  <bruno@clisp.org>
111037                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111038                 available as variable CONF_JAVA, for subsequent autoconf
111039                 tests. Also log error output in config.log.
111041         2006-07-19  Bruno Haible  <bruno@clisp.org>
111043                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111044                 that getline works on glibc2 systems. Needed to avoid trouble
111045                 in relocatable.c.
111046                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111048         2005-12-04  Bruno Haible  <bruno@clisp.org>
111050                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111051                 launcher (untested).
111053         2005-12-04  Bruno Haible  <bruno@clisp.org>
111055                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111057         2006-07-22  Bruno Haible  <bruno@clisp.org>
111059                 * gettext.m4: Update from GNU gettext-0.15.
111060                 * nls.m4: Likewise.
111061                 * po.m4: Likewise.
111062                 * inttypes-pri.m4: Likewise.
111063                 * inttypes-h.m4: Renamed from inttypes.m4.
111064                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111066 2006-07-22  Bruno Haible  <bruno@clisp.org>
111068         Merge from GNU gettext 0.15.
111070         2005-07-05  Bruno Haible  <bruno@clisp.org>
111072                 * printf-args.c (printf_fetchargs): Work around broken
111073                 definition of wint_t on mingw.
111075         2005-02-12  Bruno Haible  <bruno@clisp.org>
111077                 * xallocsa.h: Add extern "C" for C++.
111079         2006-05-17  Bruno Haible  <bruno@clisp.org>
111081                 Cygwin portability.
111082                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111084         2006-04-30  Bruno Haible  <bruno@clisp.org>
111086                 * progreloc.c: Include <mach-o/dyld.h> if available.
111087                 (find_executable): Use _NSGetExecutablePath when possible.
111089         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111091                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111092                 function.
111094         2005-12-29  Bruno Haible  <bruno@clisp.org>
111096                 * progreloc.c (set_program_name_and_installdir): Fix
111097                 compilation error.
111099         2005-12-04  Bruno Haible  <bruno@clisp.org>
111101                 Cygwin portability.
111102                 * progreloc.c: Include <windows.h> also on Cygwin.
111103                 (find_executable): Add support for Cygwin.
111104                 (set_program_name_and_installdir): Handle also platforms with
111105                 nonempty EXEEXT.
111107         2006-07-11  Bruno Haible  <bruno@clisp.org>
111109                 * javacomp.c: Fix a comment.
111110                 Reported by Jim Meyering.
111112         2006-04-30  Bruno Haible  <bruno@clisp.org>
111114                 * javacomp.h (compile_java_class): Add source_version,
111115                 target_version arguments.
111116                 * javacomp.c: Rewritten to choose only a compiler that
111117                 respects the specified source_version and target_version.
111119         2006-06-27  Bruno Haible  <bruno@clisp.org>
111121                 Assume correct S_ISDIR macro.
111122                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111124         2006-07-22  Bruno Haible  <bruno@clisp.org>
111126                 * javaversion.h: New file, from GNU gettext.
111127                 * javaversion.c: New file, from GNU gettext.
111128                 * javaversion.java: New file, from GNU gettext.
111129                 * javaversion.class: New file, from GNU gettext.
111131         2006-05-17  Bruno Haible  <bruno@clisp.org>
111133                 Cygwin portability.
111134                 * javaexec.c (execute_java_class): Test for jview program
111135                 also on Cygwin.
111137         2006-04-09  Bruno Haible  <bruno@clisp.org>
111139                 * fatal-signal.c: Don't include string.h.
111140                 (at_fatal_signal): Use a copying loop instead of memcpy.
111142         2005-12-04  Bruno Haible  <bruno@clisp.org>
111144                 * csharpexec.c: Add support for 'clix' launcher (untested).
111145                 (execute_csharp_using_sscli): New function.
111146                 (execute_csharp_program): Call it.
111148         2006-06-21  Bruno Haible  <bruno@clisp.org>
111150                 Avoid warnings from recent versions of mcs.
111151                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111152                 -o, -L, -r any more. Use options documented since mcs-1.0
111153                 instead. Similarly for -g.
111155         2005-07-09  Bruno Haible  <bruno@clisp.org>
111157                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111158                 add a .dll suffix.
111159                 Reported by Mark Junker <mjscod@gmx.de>.
111161         2006-06-17  Bruno Haible  <bruno@clisp.org>
111163                 * config.charset: Update for NetBSD 3.0.
111165         2006-05-17  Bruno Haible  <bruno@clisp.org>
111167                 Cygwin portability.
111168                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111170         2006-05-16  Bruno Haible  <bruno@clisp.org>
111172                 * localcharset.c [CYGWIN]: Include <windows.h>.
111173                 (get_charset_aliases): For Cygwin, return the same CPxxx
111174                 aliases list as under WIN32.
111175                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111176                 the environment variables. Fall back to GetACP().
111178         2006-04-05  Bruno Haible  <bruno@clisp.org>
111180                 * config.charset: Update Juan Manuel Guerrero's address.
111182         2005-02-12  Bruno Haible  <bruno@clisp.org>
111184                 * allocsa.h: Add extern "C" for C++.
111186         2005-02-10  Bruno Haible  <bruno@clisp.org>
111188                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111189                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111191         2006-07-22  Bruno Haible  <bruno@clisp.org>
111193                 * gettext.h: Update to GNU gettext-0.15.
111195 2006-07-22  Bruno Haible  <bruno@clisp.org>
111197         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111198         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111199         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111201 2006-07-21  Eric Blake  <ebb9@byu.net>
111203         * modules/stdlib-safer: New file.
111204         * MODULES.html.sh (File stream based Input/Output): Add
111205         stdlib-safer.
111207 2006-07-21  Eric Blake  <ebb9@byu.net>
111209         * lib/stdlib-safer.h: New file from coreutils, required by
111210         stdlib--.h.
111212 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111214         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111216 2006-07-20  Bruno Haible  <bruno@clisp.org>
111218         * gnulib-tool: Recognize new option --assume-autoconf.
111219         (autoconf_minversion): New variable.
111220         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111222 2006-07-20  Bruno Haible  <bruno@clisp.org>
111224         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111226 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111228         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111229         Reindent and repaginate.
111231 2006-07-19  Derek Price  <derek@ximbiot.com>
111233         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111234         Correct grammar.
111236 2006-07-17  Bruno Haible  <bruno@clisp.org>
111238         * modules/list: New file.
111239         * modules/array-list: New file.
111240         * modules/carray-list, modules/carray-list-tests: New files.
111241         * modules/linked-list, modules/linked-list-tests: New files.
111242         * modules/avltree-list, modules/avltree-list-tests: New files.
111243         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111244         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111245         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111246         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111247         * modules/oset: New file.
111248         * modules/array-oset: New file.
111249         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111250         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111251         * tests/test-carray_list.c: New file.
111252         * tests/test-linked_list.c: New file.
111253         * tests/test-avltree_list.c: New file.
111254         * tests/test-rbtree_list.c: New file.
111255         * tests/test-linkedhash_list.c: New file.
111256         * tests/test-avltreehash_list.c: New file.
111257         * tests/test-rbtreehash_list.c: New file.
111258         * tests/test-avltree_oset.c: New file.
111259         * tests/test-rbtree_oset.c: New file.
111260         * MODULES.html.sh (Container data structures): New section.
111262 2006-07-17  Bruno Haible  <bruno@clisp.org>
111264         * m4/gl_list.m4: New file.
111266 2006-07-17  Bruno Haible  <bruno@clisp.org>
111268         * lib/gl_list.h: New file.
111269         * lib/gl_list.c: New file.
111270         * lib/gl_array_list.h: New file.
111271         * lib/gl_array_list.c: New file.
111272         * lib/gl_carray_list.h: New file.
111273         * lib/gl_carray_list.c: New file.
111274         * lib/gl_linked_list.h: New file.
111275         * lib/gl_linked_list.c: New file.
111276         * lib/gl_anylinked_list1.h: New file.
111277         * lib/gl_anylinked_list2.h: New file.
111278         * lib/gl_avltree_list.h: New file.
111279         * lib/gl_avltree_list.c: New file.
111280         * lib/gl_anyavltree_list1.h: New file.
111281         * lib/gl_anyavltree_list2.h: New file.
111282         * lib/gl_rbtree_list.h: New file.
111283         * lib/gl_rbtree_list.c: New file.
111284         * lib/gl_anyrbtree_list1.h: New file.
111285         * lib/gl_anyrbtree_list2.h: New file.
111286         * lib/gl_anytree_list1.h: New file.
111287         * lib/gl_anytree_list2.h: New file.
111288         * lib/gl_linkedhash_list.h: New file.
111289         * lib/gl_linkedhash_list.c: New file.
111290         * lib/gl_anyhash_list1.h: New file.
111291         * lib/gl_anyhash_list2.h: New file.
111292         * lib/gl_avltreehash_list.h: New file.
111293         * lib/gl_avltreehash_list.c: New file.
111294         * lib/gl_rbtreehash_list.h: New file.
111295         * lib/gl_rbtreehash_list.c: New file.
111296         * lib/gl_anytreehash_list1.h: New file.
111297         * lib/gl_anytreehash_list2.h: New file.
111299         * lib/gl_oset.h: New file.
111300         * lib/gl_oset.c: New file.
111301         * lib/gl_array_oset.h: New file.
111302         * lib/gl_array_oset.c: New file.
111303         * lib/gl_avltree_oset.h: New file.
111304         * lib/gl_avltree_oset.c: New file.
111305         * lib/gl_rbtree_oset.h: New file.
111306         * lib/gl_rbtree_oset.c: New file.
111307         * lib/gl_anytree_oset.h: New file.
111309 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111311         * m4/mkancesdirs.m4: New file.
111312         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111313         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111314         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111315         it.
111317 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111319         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111320         * lib/mkancesdirs.h: New files.
111321         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111322         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111323         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111324         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111325         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111326         callers changed.  Revamp internals significantly, by not
111327         attempting to create directories that are temporarily more
111328         permissive than the final results.  Do not attempt to use
111329         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111330         This removes some race conditions, fixes some bugs, and simplifies
111331         things.  Use new dirchownmod function to do owner and mode changes.
111332         * lib/mkdir-p.h: Likewise.
111333         * lib/modechange.c (octal_to_mode): New function.
111334         (struct mode_change): New member mentioned.
111335         (make_node_op_equals): New arg mentioned.  All callers changed.
111336         (mode_compile): Keep track of which mode bits the user has explicitly
111337         mentioned.
111338         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111339         New arg PMODE_BITS, to keep track of which mode bits the user
111340         mentioned; it treats S_ISUID and S_ISGID speciall.
111341         All callers changed.
111342         * lib/modechange.h: Likewise.
111344 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111346         * MODULES.html.sh: Add mkancestors.
111347         * modules/mkancesdirs: New module.
111348         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111349         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111350         The chdir-safer and afs files are now orphans; I'll remove them
111351         unless someone speaks up.
111352         Add lib/dirchownmod.c, lib/dirchownmod.h.
111353         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111354         Add lchown, mkancesdirs.
111355         (Maintainer): Add self.
111357 2006-07-15  Karl Berry  <karl@gnu.org>
111359         * gnulib-tool: help message wording/arrangement.
111361 2006-07-14  Simon Josefsson  <jas@extundo.com>
111363         * doc/gnulib.texi (Libtool and Windows): New section.
111365 2006-07-12  Simon Josefsson  <jas@extundo.com>
111367         * modules/gendocs (License): Fix license, approved by Karl.
111369 2006-07-12  Eric Blake  <ebb9@byu.net>
111371         * MODULES.html.sh: Add gendocs.
111373 2006-07-11  Eric Blake  <ebb9@byu.net>
111375         * modules/fdl: New module, to install doc/fdl.texi.
111376         * MODULES.html.sh: Add new section for documentation modules.
111377         * gnulib-tool: Avoid space-tab.
111378         (--doc-base): New option, to manage files from doc.
111380 2006-07-11  Eric Blake  <ebb9@byu.net>
111382         * m4/absolute-header.m4: Fix comments to match recent change.
111384 2006-07-11  Eric Blake  <ebb9@byu.net>
111386         * gnulib-tool: List --doc-base before --tests-base.
111388 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111390         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111392 2006-07-11  Bruno Haible  <bruno@clisp.org>
111394         * README: Mention where to put documentation.
111396 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111398         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111400 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111403         to stdint.m4.
111405 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111407         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111408         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111409         "no/such/file/stdint.h" when there is no such file, so that
111410         the resulting C code can be parsed by dodgy compilers.
111411         Problems reported by Bob Proulx.
111413 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111415         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111416         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111417         macros into the GNU _D_EXACT_NAMLEN.
111418         * lib/savedir.c:  Likewise.
111419         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111421 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111422         and Paul Eggert  <eggert@cs.ucla.edu>
111424         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111425         * m4/savedir.m4:
111426         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111427         macros into the GNU _D_EXACT_NAMLEN.
111429 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111431         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111432         around the absolute name, to work around a problem with the HP-UX
111433         11.23 native C compiler, reported by Bob Proulx.
111435 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111437         * doc/maintain.texi, make-stds.texi: Sync from
111438         <http://savannah.gnu.org/projects/gnustandards>.
111440 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111442         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111444 2006-07-09  Jim Meyering  <jim@meyering.net>
111446         * m4/glob.m4: Remove a doubled word in a comment.
111448 2006-07-09  Jim Meyering  <jim@meyering.net>
111450         * lib/argp-pv.c: Remove a doubled word in a comment.
111451         * lib/check-version.c (check_version): Likewise.
111452         * lib/javacomp.c (compile_java_class): Likewise.
111454 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111456         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111457         for the benefit of people using Autoconf 2.60.  If you want to
111458         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111459         (or m4/onceonly.m4, if pre-2.57) manually.
111461 2006-07-08  Jim Meyering  <jim@meyering.net>
111463         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111464         comment.
111465         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111466         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111467         comment.
111469 2006-07-08  Jim Meyering  <jim@meyering.net>
111471         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111473 2006-07-07  Simon Josefsson  <jas@extundo.com>
111475         * tests/test-crc.c: Change expected crc value, the test vector
111476         were probably computed using the old broken crc.c?
111478 2006-07-06  Simon Josefsson  <jas@extundo.com>
111480         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111481         now the canonical place for the M4 file).
111483         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111484         from the sys_socket dependency now.
111486         * modules/inet_pton (Files): Ditto.
111488         * modules/inet_ntop (Files): Ditto.
111490 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111492         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111493         not gl_PREREQ_GETUSERSHELL.
111495 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111497         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111498         with only one argument, for Autoconf 2.60.
111499         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111500         expand to nothing, so add a shell command to avoid syntax error.
111501         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111503 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111505         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111507 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111509         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111510         no longer needed.  Check for isblank decl.
111511         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111512         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111513         of existence.
111515 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111517         * lib/getloadavg.c: Use __VMS, not VMS.
111518         * lib/getopt.c: Likewise.
111519         * lib/getpagesize.h: Likewise.
111520         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111521         and probably does not work.
111523 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111525         * lib/.cppi-disable: Add wcwidth.
111526         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111527         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111528         (ISGRAPH): Remove.  All uses changed to isgraph.
111529         (FOLD) [!defined _LIBC]: Remove special case.
111530         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111531         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111532         HAVE_ISBLANK.
111533         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111534         case.
111536 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111538         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111539         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111540         brackets.  Other minor changes to suppress some compiler
111541         warnings.
111543 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111544         and Paul Eggert  <eggert@cs.ucla.edu>
111546         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111547         of invoking obsolescent AC_HEADER_DIRENT macro.
111548         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111549         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111550         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111552         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111553         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111554         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111555         * m4/readdir.m4: Remove; no longer needed.
111557 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111558         and Paul Eggert  <eggert@cs.ucla.edu>
111560         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111561         Don't worry about this obsolete case any more.
111562         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111563         directories.
111564         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111565         worry about this obsolete case any more.
111566         * lib/fts.c: Likewise.
111567         * lib/getcwd.c: Likewise.
111568         * lib/glob.h: Likewise.
111569         * lib/savedir.c: Likewise.
111571 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111574         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111575         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111576         needed.
111577         All uses removed.
111578         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111579         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111580         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111581         needed.
111582         * m4/getdate.m4 (gl_GETDATE): Likewise.
111583         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111584         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111585         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111586         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111587         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111588         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111589         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111590         needed.
111592 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111594         * lib/memcasecmp.c: Include <limits.h>.
111595         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111596         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111597         Don't assume isdigit succeeds only on '0' through '9'.
111599 2006-07-05  Eric Blake  <ebb9@byu.net>
111601         * modules/getaddrinfo (Depends-on): Add snprintf.
111603 2006-07-05  Eric Blake  <ebb9@byu.net>
111605         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111606         to avoid 'header present but could not be compiled' on cygwin.
111608 2006-07-05  Eric Blake  <ebb9@byu.net>
111610         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111611         missing from netdb.h.
111612         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111614 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111616         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111617         no longer needed.
111618         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111619         * m4/getdate.m4 (gl_GETDATE): Likewise.
111620         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111621         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111622         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111623         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111624         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111626 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111628         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111629         All uses of is_space replaced by isspace.
111630         * lib/exit.h: Don't talk about STDC_HEADERS.
111631         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111632         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111633         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111634         replaced by isprint etc.
111635         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111636         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111637         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111638         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111639         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111640         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111642 2006-07-05  Bruno Haible  <bruno@clisp.org>
111644         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111645         the function exists, before testing against AIX.
111646         Reported by Martin Lambers <marlam@marlam.de>.
111648 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111650         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111651         From Mark D. Baushke.
111653 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111656         to the absolute name, not just one, to bypass Sun C 5.8's
111657         "warning: #include of /usr/include/... may be non-portable".
111659 2006-07-04  Eric Blake  <ebb9@byu.net>
111661         * modules/dirname-tests: New test module.
111662         * tests/test-dirname.c: New file, replacing dirname.c
111663         TEST_DIRNAME section that was recently deleted.
111665 2006-07-04  Bruno Haible  <bruno@clisp.org>
111667         Assume ANSI C header files and <ctype.h> functions.
111668         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111669         (mbsnwidth): Use isprint, iscntrl instead.
111671 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111673         Merge from coreutils.
111674         * MODULES.html.sh: Add xstrtold.
111675         * modules/xstrtold: New file.
111676         * modules/cycle-check (Files): Add lib/same-inode.h.
111677         * modules/dirname (Files): Add m4/double-slash-root.m4.
111678         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111679         * modules/mkdir-p (Files): Add lib/same-inode.h.
111680         * modules/same (Files): Add lib/same-inode.h.
111682 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111684         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111685         This is to keep the terminology clean; POSIX talks about
111686         "absolute pathnames", not "full pathnames", but the GNU
111687         Coding Standards say to use "path" for something else;
111688         so use "absolute" to keep both sides happy.
111689         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111690         Set gl_absolute_header, not gl_full_header_path.
111691         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111692         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111693         All uses changed.
111695         Merge from coreutils.
111697         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111699         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111700         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111701         want to require the building of c-strtod.o.
111702         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111703         needs -lm directly.
111704         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111706         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111708         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111709         --as-needed option if available.  Problem reported by Albert Chin in
111710         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111711         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111712         cc merely issues a bunch of annoying warnings for --as-needed
111713         (this problem was reported by Bob Proulx).  Also, try linking with
111714         -lm to detect a bug in binutils 2.16 (this problem was reported
111715         by Ralf Wildenhues).
111717         2006-06-18  Jim Meyering  <jim@meyering.net>
111719         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
111720         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
111721         macro.
111722         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
111723         also check for glibc-2.4's abort-inducing bug.
111725         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
111726         Low-probability clean-up should be to use rmdir to get rid of
111727         the just-created directory, not unlink.
111729         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
111730         configure fail, and request a bug report to inform us about it.
111731         Add a comment that, barring reports to the contrary, in 2007 we'll
111732         assume ftruncate is universally available.
111734         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111736         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
111738         2006-03-12  Jim Meyering  <jim@meyering.net>
111740         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
111741         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
111742         * m4/same.m4 (gl_SAME): Likewise.
111743         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
111745         2006-03-11  Eric Blake  <ebb9@byu.net>
111747         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
111748         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
111749         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
111750         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
111752 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111754         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
111755         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
111756         reported by Mark D. Baushke, one in
111757         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
111759         Merge from coreutils.
111761         * lib/.cppi-disable: Add stdint_.h.
111762         * lib/.cvsignore: Add stdint.h.
111764         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111766         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
111767         both double and long double versions.
111768         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
111769         * lib/xstrtold.c: New file.
111770         * lib/xstrtod.h (xstrtold): New decl.
111772         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111774         * lib/filemode.c (setst): Remove.
111775         (strmode): Rewrite to avoid setst.  This makes the code shorter,
111776         (arguably) clearer, and the generated code is a bit smaller on my
111777         Debian GNU/Linux stable x86 host.
111779         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111781         * lib/filemode.c: Include "filemode.h" first, to test the interface.
111782         Assume that filemode.h includes sys/types.h and sys/stat.h.
111783         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
111784         (ftypelet): Reorder to put common cases first, for efficiency.
111785         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
111786         to do 'M'.
111787         (strmode): Renamed from mode_string, and now stores 12 bytes instead
111788         of 10, for compatibility with FreeBSD.  All callers changed.
111789         (filemodestring): Now stores 12 bytes instead of 10, and sets file
111790         types that can't be deduced solely from st_mode.  First arg is now a
111791         const pointer.
111792         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
111793         (strmode): Renamed from mode_string.
111794         (filemodestring): New decl.
111795         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
111796         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
111797         needed.
111798         (S_ISPORT, S_ISWHT): New macros, if not already defined.
111800         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111802         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
111803         fsusage.h now does that.  Include fsusage.h first, to test interface.
111804         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
111805         at most one method (the old code could have generated decls that
111806         didn't conform to C89, not that this was ever exercised).
111807         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
111809         2006-03-19  Jim Meyering  <jim@meyering.net>
111811         Work even in a chroot where d_ino values for entries in "/"
111812         don't match the stat.st_ino values for the same names.
111813         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
111814         number, iterate through all entries again, using lstat instead.
111815         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
111816         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
111818         * lib/getcwd.c (__getcwd): Clarify a comment.
111819         Use memcpy in place of a call to strcpy.
111821         2006-03-12  Jim Meyering  <jim@meyering.net>
111823         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
111824         matches that of the current directory (which we're about to chdir ".."
111825         out of), then save the dev-ino of the parent, instead.
111827         * lib/same-inode.h (SAME_INODE): New file/macro.
111828         * lib/chdir-safer.c (SAME_INODE): Remove definition.
111829         Include "same-inode.h", instead.
111830         * lib/same.c: Likewise.
111831         * lib/cycle-check.h: Include "same-inode.h".
111832         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
111833         * lib/cycle-check.c (SAME_INODE): Remove definition.
111834         * lib/root-dev-ino.h: Include "same-inode.h".
111836         2006-03-11  Eric Blake  <ebb9@byu.net>
111838         * lib/same.c (same_name): s/base_name/last_component/
111839         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
111840         * lib/filenamecat.c (file_name_concat): Likewise.
111842         2006-03-11  Eric Blake  <ebb9@byu.net>,
111843                     Paul Eggert  <eggert@cs.ucla.edu>
111845         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
111846         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
111847         drive prefix.
111848         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
111849         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
111850         (last_component): New method.
111851         * lib/dirname.c (dir_len): Determine when drive letters need a
111852         subsequent slash.  Preserve // when it is special.
111853         (dir_name): Don't append dot when drive letter is absolute.
111854         [TEST_DIRNAME]: Move into a full-blown gnulib test.
111855         * lib/basename.c (base_name): New semantics - malloc the result.
111856         Preserve // when it is special.  Preserve relative files that look
111857         like drive letters.
111858         (base_len): Preserve // when it is special.
111859         (last_component): New method, similar to old base_name semantics.
111860         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
111861         base_name.  Strip redundant slashes from ///.
111863 2006-07-03  Jim Meyering  <jim@meyering.net>
111865         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
111866         macro is used before the first cycle_check call.
111868 2006-07-03  Eric Blake  <ebb9@byu.net>
111870         * modules/dirname (Depends-on): Add xstrndup.
111872 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
111874         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
111875         test cases, so that config.log is a bit easier to follow.
111877 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
111879         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
111880         both are 64 bits, since this seems to be the tradition, and this
111881         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
111882         we ever run into a host that prefers long long to long in this
111883         case, we'll need another configure-time test.  Problem reported by
111884         Jim Meyering.
111886 2006-07-02  Eric Blake  <ebb9@byu.net>
111888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
111890 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111892         * modules/inttypes (Depends-on): No longer depends on stdint.
111893         * modules/stdint (Description): Say more about assumptions.
111894         Say that the fast types might differ.  Say macros are used.
111895         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
111896         (Makefile.am): Revise list of substituted symbols to match
111897         new stdint.m4.
111898         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
111899         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
111900         * tests/test-stdint.c (verify_same_types)
111901         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
111902         the code conforms to C99/C89.
111903         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
111904         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
111906 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111908         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
111909         but fix a bug, by requiring at least 64 bits.
111910         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
111911         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
111912         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
111913         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111915         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
111916         changes.  Make 2.59 a prerequisite.  Check and substitute for
111917         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
111918         inttypes.h.  Do not use special include files; just use the
111919         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
111920         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
111921         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
111922         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
111923         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
111924         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
111925         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
111926         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
111927         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
111928         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
111929         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
111930         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
111931         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
111932         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
111933         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
111934         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
111935         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
111936         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
111937         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
111938         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
111939         WINT_MAX.  Check for C99 conformance more strictly, by detecting
111940         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
111941         not check for things that C99 does not require, e.g., int8_t.  If
111942         a test isn't needed unless <stdint.h> isn't working, and is
111943         unlikely to be needed for any other reason, then don't do it
111944         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
111945         size_t, since we assume C89 freestanding at least.  Do not check
111946         for sig_atomic_t, wchar_t, or wint_t, since the code now does
111947         the right thing even if the types are not defined.  Instead use:
111948         (gl_STDINT_TYPE_PROPERTIES): New macro.
111949         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
111950         testing whether <sys/types.h> clashes, as Autoconf does this for
111951         us now.  All uses removed.
111952         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
111953         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
111954         (gl_CHECK_TYPE_SAME):
111955         Remove; no longer needed.
111956         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
111957         exists, since we'll return 0 anyway in that case.
111958         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
111960 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111962         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
111963         possible collision with system files.
111964         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
111965         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
111966         WCHAR_MIN and WCHAR_MAX in this case.
111967         (<stddef.h>): Do not include; no longer needed.
111968         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
111969         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
111970         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
111971         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
111972         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
111973         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
111974         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
111975         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
111976         !defined(__c99))]: Include in this case too, since it's harmless
111977         now.
111978         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
111979         dangerous to do so.
111980         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
111981         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
111982         (_STDINT_MIN, _STDINT_MAX): New macros.
111983         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
111984         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
111985         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
111986         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
111987         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
111988         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
111989         macros, not typedefs; this simplifies things quite a bit.
111990         Use long int for all types narrower than int64_t.
111991         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
111992         Define in terms of long long int or int64_t or long int,
111993         not int64_t or int32_t.  This saves some compile-time testing.
111994         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
111995         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
111996         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
111997         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
111998         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
111999         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112000         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112001         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112002         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112003         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112004         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112005         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112006         undef any previous version and define our own version, for
112007         simplicity and consistency with the new macros for types.
112008         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112009         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112010         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112011         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112012         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112013         @WINT_T_SUFFIX@ to keep things simple here.
112014         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112015         Simplify by assuming typical 8/16/32/64 host, since we're
112016         already doing that elsewhere anyway.
112017         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112018         and assume long long int is 64 bits if available.  This
112019         speeds up 'configure'.
112021 2006-07-01  Eric Blake  <ebb9@byu.net>
112023         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112024         Reported by Andreas Buening.
112026 2006-07-01  Eric Blake  <ebb9@byu.net>
112028         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112030 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112032         * lib/getaddrinfo.c: fixed typo
112034 2006-06-29  Jim Meyering  <jim@meyering.net>
112036         * modules/strftime (Maintainer): Add my name, since with the
112037         FPRINTFTIME changes strftime.c has forked from glibc.
112039 2006-06-29  Eric Blake  <ebb9@byu.net>
112041         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112043 2006-06-29  Eric Blake  <ebb9@byu.net>
112045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112047 2006-06-29  Eric Blake  <ebb9@byu.net>
112049         * lib/stat_.h: New file.
112051 2006-06-29  Eric Blake  <ebb9@byu.net>
112053         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112054         unused static function.
112056 2006-06-29  Eric Blake  <ebb9@byu.net>
112058         * doc/functions.texi (Function Portability): Document missing lstat
112059         on mingw.
112061 2006-06-29  Eric Blake  <ebb9@byu.net>
112063         * MODULES.html.sh: Add sys_stat.
112064         * modules/sys_stat: New module.
112065         * modules/mkstemp (Depends-on): Add sys_stat.
112067 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112069         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112071 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112073         * m4/c-bs-a.m4: Removed.
112075 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112077         * lib/strftime.c: Assume strftime() exists.
112079 2006-06-29  Derek Price  <derek@ximbiot.com>
112081         * modules/c-bs-a: Removed - \a is C89.
112082         * MODULES.html.sh: Remove c-bs-a.
112084 2006-06-29  Bruno Haible  <bruno@clisp.org>
112086         * modules/wcwidth (License): Change to LGPL.
112088 2006-06-28  Simon Josefsson  <jas@extundo.com>
112090         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112091         on _WIN32.
112093         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112094         getnameinfo.
112096 2006-06-28  Simon Josefsson  <jas@extundo.com>
112098         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112100 2006-06-28  Simon Josefsson  <jas@extundo.com>
112102         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112103         functions there.  It will succeed on Windows XP, but on Windows
112104         2000 and (presumably) earlier, it will fail, and use the internal
112105         re-implementation.
112106         (use_win32_p): New function.
112107         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112108         Support AI_NUMERICSERV to disable getservbyname.
112109         (getnameinfo): New function, only supports
112110         NI_NUMERICHOST|NI_NUMERICSERV for now.
112112         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112113         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112114         getnameinfo.
112116 2006-06-28  Eric Blake  <ebb9@byu.net>
112118         * modules/wcwidth: New file.
112119         * modules/mbchar (Depends-on): Add wcwidth.
112120         * modules/mbswidth (Depends-on): Add wcwidth.
112121         * MODULES.html.sh: Add wcwidth.
112123 2006-06-28  Eric Blake  <ebb9@byu.net>
112125         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112128 2006-06-28  Eric Blake  <ebb9@byu.net>
112130         * lib/xvasprintf.h: Fix comments.
112132 2006-06-28  Eric Blake  <ebb9@byu.net>
112134         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112135         * lib/mbswidth.c (wcwidth): Move from here...
112136         * lib/wcwidth.h: ...to this new file.
112138 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112140         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112142         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112143         it's obsolete.
112144         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112146 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112148         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112149         Autoconf 2.60 says this stuff was obsolete.
112151 2006-06-28  Bruno Haible  <bruno@clisp.org>
112153         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112155 2006-06-28  Bruno Haible  <bruno@clisp.org>
112157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112158         gt_TYPE_WCHAR_T.
112160 2006-06-28  Bruno Haible  <bruno@clisp.org>
112162         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112163         declaration for wcwidth.
112164         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112166 2006-06-28  Bruno Haible  <bruno@clisp.org>
112168         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112169         (mkdir): Define using _mkdir.
112171 2006-06-28  Bruno Haible  <bruno@clisp.org>
112173         * lib/getaddrinfo.h: Fix POSIX URL.
112174         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112175         _WIN32.
112176         (use_win32_p): Make static.
112177         (getaddrinfo): Reject service name if it is empty or does not consist
112178         solely of decimal digits, or if its value is > 65535.
112179         (getnameinfo): Remove useless casts.
112181 2006-06-27  Simon Josefsson  <jas@extundo.com>
112183         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112184         Eggert and Martin Lambers.
112186 2006-06-27  Simon Josefsson  <jas@extundo.com>
112188         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112189         Eggert and Martin Lambers.
112191 2006-06-27  Bruno Haible  <bruno@clisp.org>
112193         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112194         result to 0, not to empty.
112195         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112197 2006-06-27  Bruno Haible  <bruno@clisp.org>
112199         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112201 2006-06-26  Simon Josefsson  <jas@extundo.com>
112203         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112204         present.
112206 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112208         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112209         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112210         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112212 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112214         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112216 2006-06-26  Bruno Haible  <bruno@clisp.org>
112218         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112220 2006-06-26  Bruno Haible  <bruno@clisp.org>
112222         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112224 2006-06-26  Bruno Haible  <bruno@clisp.org>
112226         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112227         SGI C compiler in pre-C99 mode.
112228         Suggested by Mark D. Baushke and Larry Jones.
112230 2006-06-26  Bruno Haible  <bruno@clisp.org>
112232         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112233         WCHAR_MAX.
112234         Reported by Mark D. Baushke and Larry Jones.
112236 2006-06-26  Bruno Haible  <bruno@clisp.org>
112238         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112239         in pre-C99 mode.
112240         Suggested by Mark D. Baushke and Larry Jones.
112242 2006-06-23  Simon Josefsson  <jas@extundo.com>
112243             Bruno Haible  <bruno@clisp.org>
112245         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112246         Emit mostlyclean-local rule.
112247         (func_emit_tests_Makefile_am): Likewise.
112248         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112250 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112252         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112254 2006-06-23  Bruno Haible  <bruno@clisp.org>
112256         * tests/test-stdint.c: Update to match ISO C 99 Technical
112257         Corrigendum 1.
112259 2006-06-23  Bruno Haible  <bruno@clisp.org>
112261         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112263 2006-06-23  Bruno Haible  <bruno@clisp.org>
112265         * lib/stdint_.h: Treat IRIX like OpenBSD.
112267 2006-06-23  Bruno Haible  <bruno@clisp.org>
112269         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112270         ISO C 99 Technical Corrigendum 1.
112272 2006-06-22  Simon Josefsson  <jas@extundo.com>
112274         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112275         MinGW.
112277 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112279         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112280         needed.  Some compiler complained about some of them.  Problem reported
112281         by Larry Jones in
112282         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112284 2006-06-21  Simon Josefsson  <jas@extundo.com>
112286         * tests/test-getaddrinfo.c: New file.
112288         * modules/getaddrinfo-tests: New file.
112290         * MODULES.html.sh: Add inet_pton.
112292         * modules/inet_pton: New file.
112294 2006-06-21  Simon Josefsson  <jas@extundo.com>
112296         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112297         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112298         of using the (limited) gnulib implementation on Windows XP.
112300         * m4/inet_pton.m4: New file.
112302 2006-06-21  Simon Josefsson  <jas@extundo.com>
112304         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112305         variable.
112307         * lib/socket_.h: Don't define WINVER.
112309         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112310         slightly modified to work in gnulib.
112312 2006-06-21  Simon Josefsson  <jas@extundo.com>
112314         * doc/gnulib.texi (Windows sockets): Add.
112316 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112318         * lib/read-file.c (fread_file): Start with buffer allocation of
112319         0 bytes rather than 1 byte; this simplifies the code.
112320         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112321         code to free buffer and save/restore errno.
112322         (internal_read_file): Remove unused local.
112324 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112326         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112327         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112328         Problem reported by Denis Excoffier in
112329         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112331 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112333         * modules/sys_socket, modules/socklen: Include sys/types since
112334         FreeBSD 4.x's sys/socket.h needs it.
112336 2006-06-19  Simon Josefsson  <jas@extundo.com>
112338         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112340 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112342         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112344 2006-06-19  Bruno Haible  <bruno@clisp.org>
112346         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112347         and FULL_PATH_INTTYPES_H in angle brackets.
112348         Reported by Mark D. Baushke <mdb@gnu.org>.
112350 2006-06-17  Eric Blake  <ebb9@byu.net>
112352         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112353         errno.
112355 2006-06-17  Bruno Haible  <bruno@clisp.org>
112357         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112358         <sys/inttypes.h>.
112360 2006-06-17  Bruno Haible  <bruno@clisp.org>
112362         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112363         whether errno is declared. Assume <errno.h> declares errno.
112365 2006-06-17  Bruno Haible  <bruno@clisp.org>
112367         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112369 2006-06-17  Bruno Haible  <bruno@clisp.org>
112371         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112372         problem on Solaris 2.5.1.
112374 2006-06-16  Eric Blake  <ebb9@byu.net>
112376         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112377         * lib/unicodeio.c [!defined errno]: Likewise.
112378         * lib/strtol.c [!defined errno]: Likewise.
112379         * lib/strtod.c [!defined errno]: Likewise.
112381 2006-06-15  Eric Blake  <ebb9@byu.net>
112383         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112385 2006-06-15  Eric Blake  <ebb9@byu.net>
112387         * config/srclist.txt (ssize_t.m4): Lose sync.
112389 2006-06-15  Bruno Haible  <bruno@clisp.org>
112391         * modules/stdint (Files): Include m4/full-header-path.m4,
112392         m4/size_max.m4, m4/wchar_t.m4.
112393         (Makefile.am): Many more substitutions.
112394         * modules/stdint-tests: New file.
112395         * tests/test-stdint.c: New file.
112397 2006-06-15  Bruno Haible  <bruno@clisp.org>
112399         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112400         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112401         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112402         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112403         gl_CHECK_TYPE_SAME): New macros.
112405 2006-06-15  Bruno Haible  <bruno@clisp.org>
112407         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112409 2006-06-15  Bruno Haible  <bruno@clisp.org>
112411         * lib/stdint_.h: Rewritten to be fully auto-configured.
112412         Fixes bug on HP-UX/IA64.
112414 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112416         * lib/getdate.y (__attribute__): Don't define if already defined.
112417         Problem reported by Larry Jones.
112418         * lib/utimens.c (__attribute__): Likewise.
112420 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112422         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112423         reported by Andreas Schwab.
112425 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112426             Bruno Haible  <bruno@clisp.org>
112428         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112429         check for the declaration of strnlen and a run test that exposes the
112430         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112431         rpl_strndup.
112433 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112434             Bruno Haible  <bruno@clisp.org>
112436         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112438 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112440         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112441         compile test, for Tru64 4.0D.
112443 2006-05-28  Karl Berry  <karl@gnu.org>
112445         * config/srclist.txt (printf-args.c): lose sync.
112447 2006-05-26  Martin Lambers  <marlam@marlam.de>
112449         * lib/getpass.c: Updates the test for the native W32 API, and adds
112450         missing includes, thus fixing compilation warnings.
112452 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112454         * lib/exclude.c (exclude_fnmatch): New function.
112455         (excluded_file_name): Call exclude_fnmatch.
112456         * lib/exclude.h (excluded_file_name): New prototype
112458 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112460         * lib/tempname.c (small_open, large_open): New macros.
112461         (__open, __open64) [!_LIBC]: Remove.
112462         (__gen_tempname): Use small_open and large_open instead of __open
112463         and __open64.  This fixes a portability bug on HP-UX 11.11i
112464         reported by Simon Wing-Tang in
112465         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112467 2006-05-24  Bruno Haible  <bruno@clisp.org>
112469         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112470         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112471         Reported by Thorsten Maerz <torte@netztorte.de> via
112472         Aaron Stone <aaron@serendipity.cx>.
112474 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112477         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112478         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112479         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112480         not really conditional on the cache.
112481         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112483 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112485         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112486         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112487         (my_usleep): Don't mishandle maximum value.
112489 2006-05-19  Jim Meyering  <jim@meyering.net>
112491         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112493 2006-05-17  Bruno Haible  <bruno@clisp.org>
112495         Cygwin portability.
112496         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112498 2006-05-17  Bruno Haible  <bruno@clisp.org>
112500         * lib/stdint_.h: Fix recognition of Cygwin.
112502 2006-05-15  Bruno Haible  <bruno@clisp.org>
112504         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112505         on libtool patch by Ralf Wildenhues.
112507 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112509         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112510         test for C99 conformance; (bool) 0.5 is an integer constant
112511         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112512         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112514 2006-05-11  Simon Josefsson  <jas@extundo.com>
112516         * m4/xvasprintf.m4: Fix obvious typo.
112518 2006-05-11  Jim Meyering  <jim@meyering.net>
112520         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112521         James Lemley.
112523 2006-05-10  Simon Josefsson  <jas@extundo.com>
112525         * lib/md4.c: Typo fix, update copyright years.
112526         (K1, K2): Don't use L because it turn computations into 64-bit on
112527         64-bit platforms.
112529 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112531         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112532         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112533         unwanted sign propagation, e.g., on hosts with 64-bit int.
112534         There still are some problems with reeelly weird theoretical hosts
112535         (e.g., 33-bit int) but it's not worth worrying about now.
112536         * lib/sha1.c (rol): Likewise.
112537         (K1, K2, K3, K4): Remove unnecessary L suffix.
112539 2006-05-10  Bruno Haible  <bruno@clisp.org>
112541         * lib/des.c: Cast to avoid warnings.
112543 2006-05-09  Bruno Haible  <bruno@clisp.org>
112545         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112546         (Depends-on): Depend also on xsize, stdarg.
112547         (configure.ac): Add gl_XVASPRINTF.
112549 2006-05-09  Bruno Haible  <bruno@clisp.org>
112551         * m4/xvasprintf.m4: New file.
112553 2006-05-09  Bruno Haible  <bruno@clisp.org>
112555         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112556         (EOVERFLOW): Define fallback value.
112557         (xstrcat): New function.
112558         (xvasprintf): Recognize the special case of a string concatenation.
112560 2006-05-08  Eric Blake  <ebb9@byu.net>
112562         * gnulib-tool (func_version): Base copyright year on CVS date.
112563         (func_emit_copyright_notice): New function.
112564         (func_emit_lib_Makefile_am): Use it.
112565         (func_emit_tests_Makefile_am): Likewise.
112566         (func_import): Likewise.
112568 2006-05-08  Bruno Haible  <bruno@clisp.org>
112570         * modules/stdarg: New file.
112571         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112573 2006-05-08  Bruno Haible  <bruno@clisp.org>
112575         * m4/stdarg.m4: New file, from GNU gettext.
112577 2006-05-08  Bruno Haible  <bruno@clisp.org>
112579         * config/srclist.txt (build-aux/config.rpath): different from latest
112580         release.
112582 2006-05-08  Bruno Haible  <bruno@clisp.org>
112584         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112586 2006-05-05  Jim Meyering  <jim@meyering.net>
112588         * m4/warning.m4: New file, derived from bison's file by the same name.
112590 2006-05-03  Bruno Haible  <bruno@clisp.org>
112592         * lib/stdint_.h: Shorter URL.
112593         * lib/inttypes.h: Likewise.
112595 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112597         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112599 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112601         * lib/verify.h: Document the internals better.  Most of this change
112602         was written by Bruno Haible.
112604 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112606         * doc/verify.texi: New file, partly based on a proposal by
112607         Bruno Haible.
112609 2006-05-02  Bruno Haible  <bruno@clisp.org>
112611         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112612         test from here...
112613         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112615 2006-04-29  Bruno Haible  <bruno@clisp.org>
112617         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112618         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112620 2006-04-29  Bruno Haible  <bruno@clisp.org>
112622         * gnulib-tool: Make --update option actually work.
112624 2006-04-29  Bruno Haible  <bruno@clisp.org>
112626         * doc/gcd.texi: New file.
112627         * doc/gnulib.texi: Include it.
112629 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112631         * lib/getdate.y (get_date): When adding relative date, start with the
112632         initial time, not with the result of the first mktime call.
112634 2006-04-25  Bruno Haible  <bruno@clisp.org>
112636         * gnulib-tool (func_import): Output the include directives in three
112637         blocks, sorted separately.
112638         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112640 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112642         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112643         to define main with arguments, for C++.  Reported by Eric Blake.
112644         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112645         Prefer 'int main ()' to 'int main (void)', for C++.
112646         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112647         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112648         for 'main', for C99 and C++.
112650 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112652         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112653         Don't assume that exit status -1 is valid.
112654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112655         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112656         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112657         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112658         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112659         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112660         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112661         functions can be used without declaring them, or that you can
112662         exit with status -1.
112663         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112665 2006-04-24  Karl Berry  <karl@gnu.org>
112667         * config/srclist.txt (longdouble.m4): sync lost.
112669 2006-04-24  Eric Blake  <ebb9@byu.net>
112671         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112673 2006-04-24  Bruno Haible  <bruno@clisp.org>
112675         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112676         poll() implementation in AIX.
112677         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112679 2006-04-24  Bruno Haible  <bruno@clisp.org>
112681         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112682         assigned exactly once.
112684 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112685             Bruno Haible  <bruno@clisp.org>
112687         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112688         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112689         for AM_CPPFLAGS.
112691 2006-04-23  Bruno Haible  <bruno@clisp.org>
112693         * modules/copy-file: Depend on unistd.
112694         * modules/execute: Likewise.
112695         * modules/fatal-signal: Likewise.
112696         * modules/findprog: Likewise.
112697         * modules/mkdtemp : Likewise.
112698         * modules/pipe: Likewise.
112699         * modules/wait-process: Likewise.
112701 2006-04-23  Bruno Haible  <bruno@clisp.org>
112703         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112704         condition was already detected.
112705         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112707 2006-04-23  Bruno Haible  <bruno@clisp.org>
112709         * lib/copy-file.c: Include <unistd.h> unconditionally.
112710         * lib/execute.c: Likewise.
112711         * lib/fatal-signal.c: Likewise.
112712         * lib/findprog.c: Likewise.
112713         * lib/mkdtemp.c: Likewise.
112714         * lib/pipe.h: Likewise.
112715         * lib/pipe.c: Likewise.
112716         * lib/wait-process.h: Likewise.
112718 2006-04-23  Bruno Haible  <bruno@clisp.org>
112720         * gnulib-tool (func_usage): Fix --import description. Document
112721         --update.
112722         (func_import): Create temporary file in a temporary directory, if
112723         --dry-run is specified. Silence errors from 'grep' when there are no
112724         m4 files in $m4dir.
112725         (func_create_testdir): Silence errors from 'grep' when there are no
112726         m4 files in $m4dir.
112727         Reported by Karl Berry <karl@freefriends.org>.
112729 2006-04-20  Bruno Haible  <bruno@clisp.org>
112731         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
112732         one argument, so that the code will be portable to Autoconf 2.60.
112733         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
112734         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112735         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
112737 2006-04-19  Derek Price  <derek@ximbiot.com>
112738             Eric Blake  <ebb9@byu.net>
112740         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
112741         rather than "/full/path.h".  Update comment to match.  Shorten &
112742         generalize m4_translit call via AS_TR_CPP.
112744 2006-04-19  Derek Price  <derek@ximbiot.com>
112745             Eric Blake  <ebb9@byu.net>
112747         * lib/inttypes.h: Correct grammar in comment.
112749 2006-04-18  Derek Price  <derek@ximbiot.com>
112750             Paul Eggert  <eggert@cs.ucla.edu>
112752         * modules/inttypes: New file.
112753         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
112755 2006-04-18  Derek Price  <derek@ximbiot.com>
112756             Paul Eggert  <eggert@cs.ucla.edu>
112758         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
112759         New files.
112761 2006-04-18  Derek Price  <derek@ximbiot.com>
112762             Paul Eggert  <eggert@cs.ucla.edu>
112764         * lib/inttypes.h: New file.
112765         * lib/strtoimax.c: Assume <inttypes.h>.
112767 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
112769         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
112770         isn't mounted.  Problem reported by Kir Kolyshkin.
112772 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112774         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
112775         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
112776         Derek R. Price.
112777         * lib/regex.h (RE_DUP_MAX): Update comment to match current
112778         implementation.
112780 2006-04-12  Eric Blake  <ebb9@byu.net>
112782         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
112783         is now done automatically by the corresponding Autoconf macro.
112785 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
112787         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
112788         time_r.h.
112790 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112792         Merge regex changes from libc, removing some of our
112793         POSIX-conformance changes that were rejected and redoing them in a
112794         less-intrusive way.
112796         * lib/regcomp.c (re_compile_internal, init_dfa):
112797         Length arg is now size_t, not Idx.  All uses changed.
112798         (peek_token): Forward decl now says internal_function.
112799         (__re_error_msgid, __re_error_msgid_idx):
112800         Now static rather than extern with attribute_hidden.
112801         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
112802         For some reason libc prefers K&R style defns for external functions.
112803         (regerror) [!defined _LIBC]: Likewise.
112804         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
112805         (seek_collating_symbol_entry, lookup_collation_sequence_value):
112806         (build_range_exp, build_collating_symbol):
112807         Use K&R-style defn.
112808         (re_compile_fastmap): Use '\0' to memset, not 0.
112809         (utf8_sb_map): Make the calculations more obvious.
112810         (init_dfa, parse_bracket_exp, build_charclass_op):
112811         Call calloc and cast result, as glibc does.
112812         (init_word_char, fetch_token, peek_token, peek_token_bracket):
112813         (build_range_exp, build_collating_symbol):
112814         Now internal functions.
112816         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
112818         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
112819         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
112820         Don't depend on VMS; depend on __VMS instead, for POSIX
112821         namespace cleanness.
112822         (regoff_t): Define to ssize_t, not long int.
112824         Remove the REG_ macros named below.  Instead, make the old names
112825         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
112826         __USE_GNU_REGEX.
112827         (REG_BACKSLASH_ESCAPE_IN_LISTS):
112828         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
112829         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
112830         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
112831         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
112832         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
112833         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
112834         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
112835         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
112836         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
112837         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
112838         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
112839         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
112840         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
112841         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
112842         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
112843         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
112844         (REG_NREGS):
112845         Remove.  All uses replaced by the old RE_* names.
112846         (RE_BACKSLASH_ESCAPE_IN_LISTS):
112847         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
112848         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
112849         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
112850         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
112851         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
112852         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
112853         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
112854         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
112855         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
112856         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
112857         Don't bother having these macros be independent of each others'
112858         values, since they no longer exist in the POSIX name space.
112860         Rename the following member names back to their old names,
112861         unless !__USE_GNU_REGEX.  All uses changed back.
112862         (buffer): Renamed from re_buffer.
112863         (allocated): Renamed from re_allocated.
112864         (used): Renamed from re_used.
112865         (syntax): Renamed from re_syntax.
112866         (fastmap): Renamed from re_fastmap.
112867         (translate): Renamed from re_translate.
112868         (can_be_null): Renamed from re_can_be_null.
112869         (regs_allocated): Renamed from re_regs_allocated.
112870         (fastmap_accurate): Renamed from re_fastmap_accurate.
112871         (no_sub): Renamed from re_no_sub.
112872         (not_bol): Renamed from re_not_bol.
112873         (not_eol): Renamed from re_not_eol.
112874         (newline_anchor): Renamed from re_newline_anchor.
112875         (num_regs): Renamed from rm_num_regs.
112876         (start): Renamed from rm_start.
112877         (end): Renamed from rm_end.
112879         (free_state): Move up a bit.
112881         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
112882         #define to be empty.
112883         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
112884         when that is what is intended.
112885         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
112886         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
112887         (MAX): New macro.
112888         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
112889         All uses changed back to re_malloc, etc.  It's now the caller's
112890         responsibility to check for overflow; all callers changed.
112891         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
112892         (re_x2nrealloc): Remove.
112893         (free_state): Remove decl.
112895         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
112896         (re_set_registers, re_exec):
112897         Use K&R-style defn.
112899         2006-01-31  Roland McGrath  <roland@redhat.com>
112901         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
112902         Reported by Mike Frysinger <vapier@gentoo.org>.
112904         2006-01-15  Andreas Jaeger  <aj@suse.de>
112906         [BZ #1950]
112907         * lib/regex_internal.c (re_string_reconstruct): Adjust for
112908         build_wcs_upper_buffer change.
112909         (build_wcs_upper_buffer): Change return type.
112911         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
112913         * lib/regex_internal.h: Include <stdint.h> if available.
112915         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
112917         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
112919         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
112921         * lib/regcomp.c: Adjust for changed secondary hash function.
112923         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
112925         * lib/regex.h: Pretty printing.
112926         Clean up namespace a bit.
112928         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
112930         * lib/regexec.c (update_cur_sifted_state, check_arrival,
112931         check_arrival_add_next_nodes): Avoid using uninitialized variable.
112933         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
112934                     Ulrich Drepper  <drepper@redhat.com>
112936         [BZ #1302]
112937         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
112938         changed.
112939         (bitset_word_t): Renamed from bitset_word.  All uses changed.
112941         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
112943         [BZ #281]
112944         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
112945         * lib/regcomp.c: Remove unnecessary uses of
112946         unsigned RE_TRANSLATE_TYPE.
112947         * lib/regex_internal.h: Likewise.
112948         * lib/regex_internal.c: Likewise.
112949         * lib/regexec.c: Likewise.
112950         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
112952         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
112954         * lib/regexec.c (find_recover_state): Remove unnecessary
112955         initialization.
112956         (transit_state_bkref): Make DFA a const pointer.
112957         (get_subexp): Likewise.
112958         (check_arrival): Likewise.
112959         (update_cur_sifted_state): Likewise.
112960         (re_search_internal): Likewise.
112961         (prune_impossible_nodes): Likewise.
112962         (acquire_init_state_context): Likewise.
112963         (proceed_next_node): Likewise.
112964         (set_regs): Likewise.
112965         (free_fail_stack_return): Likewise.
112966         (check_arrival_expand_ecl): Mark DFA parameter as const.
112967         (check_arrival_expand_ecl_sub): Likewise.
112968         (check_subexp_limits): Likewise.
112969         (sub_epsilon_src_nodes):  Likewise.
112970         (add_epsilon_src_nodes):  Likewise.
112971         (merge_state_array): Likewise.
112972         (update_regs): Likewise.
112973         (build_trtable): Likewise.
112974         (sift_states_backward): Mark MCTX parameter as const.
112975         (build_sifted_states): Likewise.
112976         (update_cur_sifted_state): Likewise.
112977         (sift_states_mkref): Likewise.
112978         (check_arrival_expand_ecl): Mark eclosure as const.
112979         (check_dst_limits_calc_pos_1): Likewise.
112980         * lib/regex_internal.h (re_match_context_t): Make dfa a const
112981         pointer.
112983         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
112985         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
112986         (transit_state_sb): Likewise.
112987         (transit_state_mb): Likewise.
112988         (sift_states_iter_mb): Likewise.
112989         (check_arrival_add_next_nodes): Likewise.
112990         (check_node_accept_bytes): Change first parameter to pointer-to-const.
112991         [_LIBC] (re_search_2_stub): Use mempcpy.
112993         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
112994         mbrtowc for very simple UTF-8 case.
112996         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
112997         a pointer-to-const.
112998         (re_acquire_state_context): Likewise.
112999         * lib/regex_internal.h: Adjust prototypes.
113001         * lib/regex.c: Prevent using C++ compilers.
113003         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113004         (re_acquire_state_context): Likewise.
113006 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113008         * modules/regex (Depends-on): Add ssize_t.
113010 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113012         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113013         translation table.
113015 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113017         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113019 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113020             Bruno Haible  <bruno@clisp.org>
113022         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113023         <sys/types.h> and <inttypes.h>.
113025 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113027         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113028         `__error_t_defined', so argp.h will not typedef the former.
113030 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113032         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113033         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113034         glibc names.  Even if glibc is changed to conform to POSIX, the
113035         traditional names will be available anyway, since regex depends on
113036         the extensions module.  Also, fix a longstanding typo in the
113037         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113038         reported by Emanuele Giaquinta.  Also, change sense of cached
113039         variable, so that the message makes sense.
113041 2006-03-24  Simon Josefsson  <jas@extundo.com>
113043         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113044         including some doc fixes.
113045         (base64_encode_alloc): Fix +1 bug on allocation failures.
113047 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113049         * lib/base64.c (base64_encode): Do not read past end of array with
113050         unsanitized input on systems with CHAR_BIT > 8.
113052 2006-03-24  Eric Blake  <ebb9@byu.net>
113054         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113056 2006-03-22  Karl Berry  <karl@gnu.org>
113058         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113059         * config/srclistvars.sh (COREUTILS): new var.
113061 2006-03-17  Jim Meyering  <jim@meyering.net>
113063         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113064         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113066 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113068         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113069         no longer needs it.  Instead, check that regoff_t is as least
113070         as wide as ptrdiff_t.
113072         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113073         so that our regex.h stays compatible with the installed regex.
113074         This is helpful for installers who configure --without-included-regex.
113075         Problem reported by Emanuele Giaquinta.
113077 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113079         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113080         Typedef to long int, not to off_, as POSIX will likely change
113081         in that direction.
113083 2006-03-15  Eric Blake  <ebb9@byu.net>
113085         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113087 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113089         * lib/argp-help.c (validate_uparams): Fix typo
113090         * lib/argp-parse.c (argp_default_options): Consistently begin help
113091         messages with a lowercase letter.
113093 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113095         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113096         overrun buffers and shouldn't be used (much as gets shouldn't be
113097         used).
113098         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113100 2006-03-08  Simon Josefsson  <jas@extundo.com>
113102         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113103         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113105 2006-03-08  Simon Josefsson  <jas@extundo.com>
113107         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113108         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113110 2006-03-08  Simon Josefsson  <jas@extundo.com>
113112         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113113         signal that configure disabled the device.
113115 2006-03-08  Simon Josefsson  <jas@extundo.com>
113117         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113118         languages.
113120 2006-03-07  Simon Josefsson  <jas@extundo.com>
113122         * modules/getopt (Depends-on): Add unistd.
113124         * modules/unistd: New file.
113126 2006-03-07  Simon Josefsson  <jas@extundo.com>
113128         * modules/gc-random: New file.
113130 2006-03-07  Simon Josefsson  <jas@extundo.com>
113132         * m4/unistd_h.m4: New file.
113134 2006-03-07  Simon Josefsson  <jas@extundo.com>
113136         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113137         test to be side-effect free by storing the result in the cache
113138         variable gl_cv_lib_readline, and moving the assignment of
113139         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113140         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113142 2006-03-07  Simon Josefsson  <jas@extundo.com>
113144         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113145         error on missing devices (the functions will return an error).
113147         * m4/gc.m4: Move random stuff to gc-random.m4
113149 2006-03-07  Simon Josefsson  <jas@extundo.com>
113151         * lib/unistd_.h: New file.
113153 2006-03-07  Simon Josefsson  <jas@extundo.com>
113155         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113157 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113159         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113160         Problem reported by Juan Manuel Guerrero.
113162 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113164         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113165         the unistd module.
113166         * lib/getlogin_r.c: Likewise.
113167         * lib/getlogin_r.h: Likewise.
113168         * lib/glob.c: Likewise.
113169         * lib/pagealign_alloc.c: Likewise.
113170         * lib/unistd_.h: Remove; no longer needed.
113172 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113174         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113175         Add unistd.
113176         * modules/c-stack (Depends-on): Add unistd.
113177         * modules/getlogin_r: Likewise.
113178         * modules/glob: Likewise.
113179         * modules/pagealign_alloc: Likewise.
113180         * modules/unistd (Files): Remove lib/unistd_.h.
113181         (EXTRA_DIST): Remove.
113182         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113183         need unistd_.h.
113184         (MOSTLYCLEANFILES): Remove unistd.h-t.
113186 2006-03-03  Simon Josefsson  <jas@extundo.com>
113188         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113190 2006-03-03  Simon Josefsson  <jas@extundo.com>
113192         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113193         libidn and bison.
113195 2006-03-03  Simon Josefsson  <jas@extundo.com>
113197         * build-aux/maint.mk: Add indent target.
113199 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113201         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113202         our replacement poll.h in any case, to avoid a differing
113203         declaration from a system header.  Seen on AIX.
113205 2006-03-01  Simon Josefsson  <jas@extundo.com>
113207         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113208         <kasal@ucw.cz>.
113210 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113212         * modules/gettime (Depends-on): Add extensions module.
113213         * modules/nanosleep (Depends-on): Likewise.
113214         * modules/settime (Depends-on): Likewise.
113216 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113218         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113219         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113220         pedantically.
113221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113222         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113225         not "==".  Reported by Ralf Wildenhues.
113227 2006-03-01  Karl Berry  <karl@gnu.org>
113229         * doc/Copyright/request-*: new files, synced from gnuorg.
113231 2006-03-01  Karl Berry  <karl@gnu.org>
113233         * config/srclist.txt (Copyright/*): new entries.
113235 2006-02-28  Simon Josefsson  <jas@extundo.com>
113237         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113239 2006-02-27  Simon Josefsson  <jas@extundo.com>
113241         * lib/base64.h: Indent #define's.  From Jim Meyering
113242         <jim@meyering.net>.
113244 2006-02-27  Jim Meyering  <jim@meyering.net>
113246         Revert the change of 2006-02-24, so these files can continue
113247         to be sync'd from gettext.
113248         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113249         of `config.h'.
113251 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113253         * modules/intprops: New file.
113254         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113255         Add intprops.
113256         * modules/getloadavg (Files): Remove lib/intprops.h.
113257         (Depends-on): Add intprops.
113258         * modules/human: Likewise.
113259         * modules/inttostr: Likewise.
113260         * modules/openat: Likewise.
113261         * modules/sig2str: Likewise.
113262         * modules/userspec: Likewise.
113263         * modules/utimecmp: Likewise.
113264         * modules/xnanosleep: Likewise.
113265         * modules/xstrtol: Likewise.
113267 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113269         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113270         * modules/lock-tests (TESTS): Use $(EXEEXT).
113271         * modules/tls-tests: Likewise.
113272         * modules/argp-tests: Likewise.
113273         (check_PROGRAMS): New var, replacing...
113274         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113276 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113278         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113279         `config.h'.
113281 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113283         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113285 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113287         Sync from coreutils.
113288         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113289         gl_CHDIR_SAFER.
113291 2006-02-22  Jim Meyering  <jim@meyering.net>
113293         Sync from coreutils.
113294         * m4/chdir-safer.m4: New file.
113296 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113298         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113299         AT_FDCWD exceeds INT_MAX.
113300         * lib/openat.h (AT_FDCWD): Likewise.
113302 2006-02-17  Eric Blake  <address@hidden>
113304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113306 2006-02-16  Simon Josefsson  <jas@extundo.com>
113308         * modules/getaddrinfo (Depends-on): Add sys_socket.
113310 2006-02-15  Simon Josefsson  <jas@extundo.com>
113312         * build-aux/maint.mk: Add dsyntax-check rule.
113314 2006-02-15  Eric Blake  <ebb9@byu.net>
113316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113317         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113318         'present but cannot compile' warnings on cygwin.
113319         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113320         use ws2tcpip.h if sys/socket.h works.
113321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113322         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113324 2006-02-14  Simon Josefsson  <jas@extundo.com>
113326         * modules/maintainer-makefile (Files): Rename.
113328         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113329         and (the local) Makefile.cfg to maint-cfg.mk.
113331         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113332         to the latter.
113334         * modules/maintainer-makefile: New module.
113336         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113337         severaly stripped to make it possible to build it up from scratch
113338         with reliable tests.
113340         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113341         fixes to permit overriding the default actions when configure and
113342         makefile are not available.
113344 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113346         Sync from coreutils.
113347         * modules/lstat (Depends-on): Don't depend on xalloc.
113348         (License): Change from GPL to LGPL, since this is now simply a
113349         replacement for a libc function.
113351 2006-02-14  Jim Meyering  <jim@meyering.net>
113353         Sync from coreutils.
113355         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113356         failure on deficient systems, and simplify gnulib lgpl dependencies.
113357         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113358         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113360         * lib/xalloc-die.c: Remove unused definition of N_.
113362 2006-02-14  Jim Meyering  <jim@meyering.net>
113364         Sync from coreutils.
113365         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113366         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113367         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113368         double-quote uses of that variable, to accommodate the rare case in
113369         which getmntent is available in none of the libraries checked.  This
113370         happens at least on FreeBSD 5.0.
113372 2006-02-13  Simon Josefsson  <jas@extundo.com>
113374         * gnulib-tool (Usage): Fix --import, from
113375         karl@freefriends.org (Karl Berry).
113377 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113379         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113381 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113383         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113384         "autoupdate" on 2005-12-12.
113386 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113388         * modules/closeout (Depends-on): Remove atexit.
113390 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113392         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113393         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113395 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113398         __EXTENSIONS__ if this causes compilation to fail.  Problem
113399         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113400         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113402 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113404         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113405         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113406         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113407         All uses changed.
113409 2006-01-26  Simon Josefsson  <jas@extundo.com>
113411         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113412         prototype is visible on mingw32.
113414         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113415         for mingw32.
113417         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113418         mingw32).
113420 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113422         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113423         attempt to open for write; this always fails, at least on POSIX
113424         hosts.  This reinstates the 2006-01-09 change, which was
113425         inadvertently removed.
113427 2006-01-26  Bruno Haible  <bruno@clisp.org>
113429         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113430         Reported by Paul Eggert.
113432 2006-01-26  Bruno Haible  <bruno@clisp.org>
113433             Paul Eggert  <eggert@cs.ucla.edu>
113435         * lib/stdbool_.h (_Bool)
113436         [(! (defined __cplusplus || defined __BEOS__)
113437           && !defined __GNUC__
113438           && !(defined __HP_cc || defined __xlc__
113439                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113440                || defined __sgi))]:
113441         #define to signed char in these cases too; this simplifies
113442         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113443         etc., separately) and makes it more conservative.
113445 2006-01-25  Simon Josefsson  <jas@extundo.com>
113447         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113448         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113449         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113451 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113453         * lib/argp-namefrob.h: Bugfix. Remove stray #
113455 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113458         so that we test the test.
113459         Check for yet another HP-UX cc bug involving *bool |= bool.
113461 2006-01-25  Karl Berry  <karl@gnu.org>
113463         * config/srclist.txt (vasnprintf.c): sync lost.
113465 2006-01-25  Jim Meyering  <jim@meyering.net>
113467         Sync from the stable (b5) branch of coreutils:
113469         * lib/fts.c (fts_children): Don't let close() clobber errno from
113470         failed fchdir().
113472         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113473         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113474         a dangling symlink.  That can also happen at least for ELOOP.
113475         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113476         FYI, this bug predates the inclusion of fts.c in coreutils.
113478         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113479         in their own block, so pre-c99 compilers don't object.
113481         Avoid the double-free (first in fts_read, second in fts_close) that
113482         would occur when an `active' directory is made inaccessible (e.g.,
113483         via chmod a-x) during a traversal.
113484         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113485         before returning.  Reproduce this failure by
113486         mkdir -p a/b; cd a; chmod a-x . b
113487         Reported by Stavros Passas.
113489 2006-01-25  Jim Meyering  <jim@meyering.net>
113491         * lib/fileblocks.c: Remove more useless parentheses.
113492         * lib/readutmp.h: Likewise.
113494 2006-01-25  Bruno Haible  <bruno@clisp.org>
113496         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113497         warnings.
113498         Reported by Paul Eggert.
113500 2006-01-25  Bruno Haible  <bruno@clisp.org>
113502         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113503         rid of a trap command. For Solaris sh.
113504         Reported by Mark D. Baushke <mdb@gnu.org>.
113506 2006-01-24  Simon Josefsson  <jas@extundo.com>
113508         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113509         Bruno.
113511 2006-01-24  Karl Berry  <karl@gnu.org>
113513         * config/srclist.txt (argp-namefrob.h): sync lost.
113515 2006-01-24  Jim Meyering  <jim@meyering.net>
113517         * modules/openat (Files): Add lib/intprops.h.
113518         From Mark D. Baushke.
113520 2006-01-24  Jim Meyering  <jim@meyering.net>
113522         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113523         Reported by Mark D. Baushke.
113525 2006-01-24  Jim Meyering  <jim@meyering.net>
113527         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113529 2006-01-24  Bruno Haible  <bruno@clisp.org>
113531         * modules/strnlen (Maintainer): Change from glibc to all.
113533 2006-01-24  Bruno Haible  <bruno@clisp.org>
113535         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113536         Patch by Paul Eggert.
113538 2006-01-24  Bruno Haible  <bruno@clisp.org>
113540         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113541         already has it.
113542         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113543         2005-11-26.
113545         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113546         'signed char' to avoid problems with the built-in _Bool type.
113547         Reported by Paul Eggert on 2005-11-26.
113549 2006-01-24  Bruno Haible  <bruno@clisp.org>
113551         * gnulib-tool (func_import): Avoid constructing complicated sed
113552         expressions inside backquote.
113553         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113555 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113557         These changes imported from libc.
113558         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113559         test and two separate function calls.
113560         * lib/strndup.c (__strndup): Add libc_hidden_def.
113562 2006-01-23  Simon Josefsson  <jas@extundo.com>
113564         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113565         Remove the test_*_SOURCES variable: automake infers it by default.
113566         * modules/tls-tests: Likewise.
113568 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113570         Work around porting bugs reported by Dieter in
113571         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113572         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113573         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113574         Include "getopt.h" first, to check interface.
113575         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113576         !HAVE_DECL_GETENV.
113577         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113578         (__strndup): Revert to K&R-style function dfns, the glibc style.
113579         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113580         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113581         Include strnlen.h first, to get prototype properly.
113582         (strnlen): Renamed from __strnlen.
113583         Remove weak alias.
113585 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113587         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113589 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113591         * config/srclist.txt: Adjust to reflect glibc reorganization.
113592         This affects only comments.
113594 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113596          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113597          Reported by Bruce Korb <bkorb@gnu.org>.
113599 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113601         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113602         to pacify gcc -Wswitch-default.
113604 2006-01-22  Bruno Haible  <bruno@clisp.org>
113606         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113607         temporary buffer for sprintf, take into account the precision also
113608         for 'd', 'i', 'u', 'o', 'x', 'X'.
113610 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113612         * modules/argp-tests: New module
113613         * tests/test-argp.c: New file
113614         * tests/test-argp-2.sh: New file
113616 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113618         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113619         (__argp_base_name): Removed
113620         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113621         typo.
113622         (__argp_base_name): Provide macro definition or extern declaration
113623         depending on the configuration
113625 2006-01-20  Simon Josefsson  <jas@extundo.com>
113627         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113629 2006-01-20  Simon Josefsson  <jas@extundo.com>
113631         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113633 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113635         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113636         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113637         Suggested by Bruno Haible.
113639 2006-01-20  Karl Berry  <karl@gnu.org>
113641         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113642         until changes propagate, I guess.
113644 2006-01-19  Simon Josefsson  <jas@extundo.com>
113646         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113648 2006-01-19  Simon Josefsson  <jas@extundo.com>
113650         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113652 2006-01-19  Simon Josefsson  <jas@extundo.com>
113654         * gnulib-tool: Set check_PROGRAMS.
113656         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113657         modules/des-tests, modules/gc-arcfour-tests,
113658         modules/gc-arctwo-tests, modules/gc-des-tests,
113659         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113660         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113661         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113662         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113663         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113664         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113665         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113666         test_*_SOURCES.
113668 2006-01-18  Simon Josefsson  <jas@extundo.com>
113670         * modules/socklen (Depends-on): Depend on sys_socket.
113672 2006-01-18  Simon Josefsson  <jas@extundo.com>
113674         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113675         modules/des-tests, modules/gc-arcfour-tests,
113676         modules/gc-arctwo-tests, modules/gc-des-tests,
113677         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113678         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113679         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113680         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113681         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113682         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113683         $(EXEEXT) to automake TESTS variable, for mingw32.
113685 2006-01-17  Simon Josefsson  <jas@extundo.com>
113687         * modules/socklen (Include): Need sys/socket.h.
113689 2006-01-17  Bruno Haible  <bruno@clisp.org>
113691         * modules/ssize_t (Include): Add <sys/types.h>.
113693 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113695         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113696         it's not portable and it doesn't work with cross-compiles.
113697         Problem reported by Bruno Haible.  Fix missing-$ typo in
113698         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113699         -zignore from being used with Sun's C compiler.
113701 2006-01-12  Simon Josefsson  <jas@extundo.com>
113703         * lib/base64.c: Fix warning, reported by Bruno Haible
113704         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113706 2006-01-12  Bruno Haible  <bruno@clisp.org>
113708         * modules/ldd: New file.
113709         * build-aux/ldd.sh.in: New file.
113710         * MODULES.html.sh (Support for building libraries and executables): Add
113711         ldd.
113713 2006-01-12  Bruno Haible  <bruno@clisp.org>
113715         * m4/ldd.m4: New file.
113717 2006-01-12  Bruno Haible  <bruno@clisp.org>
113719         * gnulib-tool (func_import, func_create_testdir): Don't go into an
113720         endless loop while replacing $auxdir with build-aux.
113722 2006-01-11  Simon Josefsson  <jas@extundo.com>
113724         * lib/stdint_.h (SIZE_MAX): Add missing (.
113726 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
113728         Sync from coreutils.
113729         * lib/md5.c: Fix commentary typos.
113730         (alignof, UNALIGNED_P): No need for a GCC-specific version.
113731         * lib/md5.h (__attribute__): Remove; unused.
113732         * lib/sha1.c: Fix commentary to match md5 better.
113733         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
113734         so that we don't need to worry about alignment.  All uses changed.
113735         This merges the 2005-10-28 md5 change into sha1.
113737 2006-01-11  Jim Meyering  <jim@meyering.net>
113739         Sync from coreutils.
113740         * lib/md5.c (OP): Fix spacing.
113742 2006-01-11  Bruno Haible  <bruno@clisp.org>
113744         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113745         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
113746         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
113748 2006-01-11  Bruno Haible  <bruno@clisp.org>
113750         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113751         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
113752         the "early" section as well.
113754 2006-01-11  Bruno Haible  <bruno@clisp.org>
113756         Avoid "ar: no archive members specified" error on MacOS X.
113757         * gnulib-tool (func_modules_add_dummy): New function.
113758         (func_import, func_create_testdir): Invoke it.
113760 2006-01-11  Bruno Haible  <bruno@clisp.org>
113762         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
113763         with $auxdir in AC_CONFIG_FILES statements.
113765 2006-01-11  Bruno Haible  <bruno@clisp.org>
113767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113768         Initialize also noinst_HEADERS to empty.
113770 2006-01-11  Bruno Haible  <bruno@clisp.org>
113772         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
113773         variables.
113774         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
113775         autoreconf.
113777 2006-01-11  Bruno Haible  <bruno@clisp.org>
113779         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
113780         overridable by the user.
113781         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113783 2006-01-10  Simon Josefsson  <jas@extundo.com>
113785         * modules/sys_socket: New file.
113787 2006-01-10  Simon Josefsson  <jas@extundo.com>
113789         * m4/sys_socket_h.m4: New file.
113791 2006-01-10  Simon Josefsson  <jas@extundo.com>
113793         * lib/socket_.h: New file.
113795 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113797         * modules/readutmp (Maintainer): Add myself.
113799 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113801         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
113802         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
113803         People who are still concerned with buggy memcmp implementations
113804         can invoke gl_FUNC_MEMCMP themselves.
113806 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113808         * lib/regex_internal.h (BITSET_WORD_BITS):
113809         Work around a bug in 64-bit PGC (before version 6.1-2), where the
113810         preprocessor mishandles large unsigned values as if they were signed.
113811         Problem reported by Claudio Fontana in
113812         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
113814 2006-01-10  Jim Meyering  <jim@meyering.net>
113816         Avoid the double-free (first in fts_read, second in fts_close) that
113817         would occur when an `active' directory is made inaccessible (e.g.,
113818         via chmod a-x) during a traversal.
113819         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113820         before returning.  Reproduce this failure by
113821         mkdir -p a/b; cd a; chmod a-x . b
113822         Reported by Stavros Passas.
113824         Sync from coreutils.
113825         * lib/sha1.c: Tweak grammar in a comment.
113827 2006-01-10  Jim Meyering  <jim@meyering.net>
113829         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
113830         Patch by Joerg Sonnenberger.
113832 2006-01-10  Bruno Haible  <bruno@clisp.org>
113834         * modules/readutmp: Depend on module free.
113835         * modules/strtok_r: Depend on module restrict.
113837 2006-01-10  Bruno Haible  <bruno@clisp.org>
113839         * modules/gettext (configure.ac): Add an invocation of
113840         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
113842 2006-01-10  Bruno Haible  <bruno@clisp.org>
113844         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
113845         Reported by Werner Lemberg <wl@gnu.org>.
113847 2006-01-10  Bruno Haible  <bruno@clisp.org>
113849         * lib/localcharset.c: Update from GNU gettext.
113851 2006-01-10  Bruno Haible  <bruno@clisp.org>
113853         * lib/argp.h (__const): Remove macro. Use const instead.
113854         * lib/argp-fmtstream.h (__const): Likewise.
113855         * lib/glob_.h (__const): Remove macro.
113856         * lib/glob-libc.h: Use const instead of __const.
113858 2006-01-10  Bruno Haible  <bruno@clisp.org>
113860         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
113861         variable.
113862         Needed to avoid an automake error regarding the 'gettext' module.
113864 2006-01-09  Simon Josefsson  <jas@extundo.com>
113866         * modules/inet_ntop (Depends-on): Add restrict.
113868 2006-01-09  Simon Josefsson  <jas@extundo.com>
113870         * modules/gc-rijndael-tests (License): Put under LGPL.
113872         * modules/gc-des-tests (License): Likewise.
113874         * modules/gc-arcfour-tests (License): Likewise.
113876         * modules/gc-arctwo-tests (License): Likewise.
113878         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
113880         * modules/gc-hmac-sha1-tests (Files): Likewise.
113882         * modules/gc-hmac-md5-tests (License): Likewise.
113884         * modules/gc-sha1-tests (License): Likewise.
113886         * modules/gc-md5-tests (License): Likewise.
113888         * modules/gc-md4-tests (License): Likewise.
113890         * modules/gc-md2-tests (License): Likewise.
113892         * modules/gc-tests (License): Likewise.
113894         * modules/des-tests (License): Likewise.
113896         * modules/md4-tests (License): Likewise.
113898         * modules/md2-tests (License): Likewise.
113900 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113902         Sync from coreutils:
113904         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
113905         * modules/lib-ignore: New file.
113906         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
113907         chdir-safer.m4, lchmod.m4.
113908         * modules/openat: Add mkdirat.c, openat-priv.h.
113910 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113912         Sync from coreutils.
113913         * m4/lib-ignore.m4: New file.
113914         * m4/lchmod.m4: New file.
113916 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113918         Sync from coreutils.
113919         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
113920         for write access: POSIX says that must fail.
113921         * lib/fts.c (diropen): Likewise.
113922         * lib/save-cwd.c (save_cwd): Likewise.
113923         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
113924         well, for minor improvements on hosts that lack O_DIRECTORY.
113925         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
113926         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
113927         Fall back on chown if open failed with EACCES.
113929         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
113930         Report an error at compile-time if only a 1-second nominal clock
113931         resolution is found.
113933         * lib/lchmod.h: New file.
113934         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
113935         (make_dir_parents): Use lchown rather than chown, and
113936         lchmod rather than chmod.
113938         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
113939         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
113940         "proc" reported by n0dalus.
113942         * lib/mountlist.c: Include <limits.h>.
113943         (dev_from_mount_options)
113944         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
113945         New function.  It no longer assumes "dev=" has the System V meaning
113946         on Linux (since it doesn't).  It also parses "dev=" more carefully.
113947         (read_file_system_list)
113948         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
113949         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
113950         dev= in that case.
113952         * lib/posixtm.h (PDS_PRE_2000): New macro.
113953         * lib/posixtm.c (year): Arg is now syntax_bits rather than
113954         allow_century.  All usages changed.  Reject dates outside the range
113955         1969-1999 if PDS_PRE_2000 is used.
113957 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
113959         Sync from coreutils.
113960         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
113961         (Time of day items): Mention the possibility of leap seconds.
113962         Problem reported by Dr. David Alan Gilbert.
113964 2006-01-09  Jim Meyering  <jim@meyering.net>
113966         Sync from coreutils.
113968         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
113970         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
113972         * lib/modechange.c (mode_compile): Reject an invalid mode string
113973         that starts with an octal digit.  From Andreas Gruenbacher.
113975         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
113976         and dup to open_safer and dup_safer, respectively.
113977         (openat_permissive): Fix typo in comment.
113979         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
113980         "gettext.h"; either no longer needed or are guaranteed by openat.h.
113981         (_): Remove; no longer needed.
113982         (openat): Renamed from rpl_openat; no need for rpl_openat
113983         since openat.h renames openat for us.
113984         Replace most of the body with a call to openat_permissive,
113985         to avoid duplicate code.
113986         Port to (probably hypothetical) environments were mode_t is
113987         wider than int.
113988         (openat_permissive): Require mode arg, so that we can check
113989         types better.  Put it just after flags.  Change cwd failure
113990         indicator from pointer-to-bool to pointer-to-errno-value.
113991         All callers changed.
113992         Invoke openat_save_fail and/or openat_restore_fail if
113993         cwd_errno is null, so that openat can call us.
113994         (openat_permissive, fdopendir, fstatat, unlinkat):
113995         Simplify errno handling to avoid some duplicate code,
113996         as it's OK to set errno on success.
113997         * lib/openat.h: Revamp code so that function macros depend on
113998         __OPENAT_PREFIX only, not also on AT_FDCWD.
113999         (openat_ro): Remove.  Caller changed to use openat_permissive.
114000         (openat_permissive): Now a macro, if not a function.
114001         (openat_restore_fail, openat_save_fail): Now always functions,
114002         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114004         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114005         and openat.c.
114006         * lib/mkdirat.c: Include openat-priv.h.
114007         Remove definitions of macros defined therein.
114008         * lib/openat.c: Likewise.
114010         * lib/mkdirat.c (mkdirat): New file and function.
114011         * lib/openat.h (mkdirat): Declare.
114013         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114015         * lib/openat.h (openat_permissive): Declare.
114016         (openat_ro): Define.
114018         * lib/openat.c (EXPECTED_ERRNO): New macro.
114019         (openat_permissive): New function -- used in remove.c rewrite.
114020         (all functions): Set errno just before returning, only if there
114021         was an actual failure.
114022         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114024         Emulate openat-family functions using Linux's procfs, if possible.
114025         Idea and some code based on Ulrich Drepper's glibc changes.
114027         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114028         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114029         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114030         before falling back on save_cwd and restore_cwd.
114031         (fdopendir, fstatat, unlinkat): Likewise.
114033         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114034         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114036         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114037         as second argument to va_arg.  Otherwise, some versions of gcc
114038         warn that `if this code is reached, the program will abort'.
114040 2006-01-09  Jim Meyering  <jim@meyering.net>
114042         Sync from coreutils.
114043         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114044         Require openat-priv.h.
114046 2006-01-09  Bruno Haible  <bruno@clisp.org>
114048         * modules/strnlen (Include): Use strnlen.h.
114050 2006-01-09  Bruno Haible  <bruno@clisp.org>
114052         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114054 2006-01-09  Bruno Haible  <bruno@clisp.org>
114056         * lib/sysexit_.h (EX_OK): New macro.
114057         Suggested by Martin Lambers <marlam@marlam.de>.
114059 2006-01-09  Bruno Haible  <bruno@clisp.org>
114061         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114062         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114064 2006-01-09  Bruno Haible  <bruno@clisp.org>
114066         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114067         numbers.
114069 2006-01-09  Bruno Haible  <bruno@clisp.org>
114071         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114072         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114073         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114074         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114076 2006-01-09  Bruno Haible  <bruno@clisp.org>
114078         * build-aux/javacomp.sh.in: New file, moved from lib/.
114079         * modules/javacomp-script (Files): Update.
114080         (configure.ac): Add AC_CONFIG_FILES invocation.
114081         (EXTRA_DIST): Remove variable.
114083         * build-aux/javaexec.sh.in: New file, moved from lib/.
114084         * modules/javaexec (Files): Update.
114085         (configure.ac): Add AC_CONFIG_FILES invocation.
114086         (EXTRA_DIST): Remove javaexec.sh.in.
114088         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114089         * modules/csharpcomp-script (Files): Update.
114090         (configure.ac): Add AC_CONFIG_FILES invocation.
114091         (EXTRA_DIST): Remove variable.
114093         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114094         * modules/csharpexec (Files): Update.
114095         (configure.ac): Add AC_CONFIG_FILES invocation.
114096         (EXTRA_DIST): Remove csharpexec.sh.in.
114098 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114100         Sync from coreutils.
114102         Add POSIX ACL support
114103         * lib/acl.h (copy_acl, set_acl): Add declarations.
114104         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114105         systems other than Linux.
114106         (chmod_or_fchmod): New function: use fchmod when possible,
114107         and chmod otherwise.
114108         (file_has_acl): Add a POSIX ACL implementation, with a
114109         Linux-specific subcase.
114110         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114111         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114112         acls are unsupported.
114113         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114114         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114115         are unsupported.
114117 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114119         Sync from coreutils.
114120         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114122 2006-01-07  Bruno Haible  <bruno@clisp.org>
114124         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114125         gl_EARLY.
114127 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114129         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114130         Problem reported for Mingw by Mark Junker.
114132 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114134         * README: Gnulib normally doesn't generate a tarball.
114136 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114138         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114139         long int, not int, for nanosecond counts, so that people who are
114140         used to POSIX struct timespec won't be surprised.  Reported by Jim
114141         Meyering.
114143 2005-12-28  Bruno Haible  <bruno@clisp.org>
114145         * build-aux/config.rpath: Update from GNU gettext.
114147 2005-12-16  Jim Meyering  <jim@meyering.net>
114149         * modules/fprintftime: New module.
114150         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114152 2005-12-16  Jim Meyering  <jim@meyering.net>
114154         * m4/fprintftime.m4: New file.
114156 2005-12-16  Jim Meyering  <jim@meyering.net>
114158         * lib/fprintftime.c, lib/fprintftime.h: New files.
114160 2005-12-15  Simon Josefsson  <jas@extundo.com>
114162         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114163         new m4/socklen.m4.
114165 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114167         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114168         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114170 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114172         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114173         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114174         struct uparams is valid. Fall back to the default values if it is
114175         not.
114177 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114179         * modules/argp (Files): Add argp-pin.c
114180         (Depends-on): dirname
114181         (lib_SOURCES): Add argp-pin.c
114183 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114185         * m4/argp.m4:  Check if program_invocation_name and
114186         program_invocation_short_name are declared and define appropriate
114187         macros if they are not.
114189 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114191         * lib/argp-help.c (__argp_base_name): New function
114192         (__argp_short_program_name): Rewrite using __argp_base_name
114193         * lib/argp-namefrob.h: Define program_invocation_name and
114194         program_invocation_short_name if requested
114195         (__argp_base_name): Add prototype
114196         * lib/argp-parse.c (argp_def): Use gettext wrappers
114197         (argp_default_parser): Use __argp_base_name
114198         * lib/argp-pin.c: New file. Defines program_invocation_name and
114199         program_invocation_short_name on systems that lack them.
114201 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114203         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114204         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114205         porting problem reported by Georg Schwarz in
114206         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114208 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114210         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114211         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114212         porting problem reported by Georg Schwarz in
114213         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114215 2005-12-05  Bruno Haible  <bruno@clisp.org>
114217         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114218         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114219         Reported by Mark Junker <mjscod@gmx.de>.
114221 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114223         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114224         Use implementation from Albert Chin, with some
114225         comments/corrections by Stepan Kasal and myself.
114227 2005-12-02  Bruno Haible  <bruno@clisp.org>
114229         * gnulib-tool (func_import): Accept GPLed build tool modules when
114230         --lgpl is given.
114231         * modules/csharpcomp-script: New file.
114232         * modules/csharpcomp: Depend on it.
114233         * modules/javacomp-script: New file.
114234         * modules/javacomp: Depend on it.
114235         Suggested by Simon Josefsson.
114237 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114239         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114240         statement, to work around an HP-UX 10.20 compiler bug reported by
114241         Peter O'Gorman.
114243 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114245         * modules/savedir (Depends-on): Add openat.
114247 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114249         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114250         (uintmax_t) [defined uintmax_t]: Do not declare.
114251         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114252         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114253         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114254         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114255         sake of portability to weird hosts that C allows (though we don't
114256         know of any practical examples).
114258         * lib/savedir.h (fdsavedir): New decl.
114259         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114260         contains most of the former guts of savedir.
114261         (savedir): Use savedirstream.
114262         Include "openat.h".
114264 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114266         * modules/obstack (Files): Add m4/ulonglong.m4.
114267         Problem reported by Davide Angelocola.
114269 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114271         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114272         coreutils no longer futzes with rounding modes.
114274 2005-11-14  Jim Meyering  <jim@meyering.net>
114276         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114277         replacement of mkstemp.
114279 2005-11-10  Simon Josefsson  <jas@extundo.com>
114281         * lib/readline.c: Remove EOL.
114283 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114285         * modules/gethrxtime (Depends-on): Add gettime.
114287 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114289         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114290         or gettimeofday; no longer needed.
114292 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114294         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114295         time business.
114296         (gethrxtime) [! (HAVE_NANOUPTIME
114297         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114298         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114299         our own approximation.
114301 2005-11-08  Eric Blake  <ebb9@byu.net>
114303         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114305 2005-11-08  Eric Blake  <ebb9@byu.net>
114307         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114309 2005-11-04  Bruno Haible  <bruno@clisp.org>
114311         * gnulib-tool: Implement --update mode.
114313 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114315         Fix porting problem reported by Theodoros V. Kalamatianos.
114316         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114317         Don't assume that futimes failing means we must fail.
114319 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114321         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114322         variables to suggest the intended function of the PATH_MAX check.
114324 2005-10-30  Kean Johnston  <jkj@sco.com>
114326         Trivial changes to support SCO systems.
114327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114328         as PATH_MAX.
114329         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114330         where __ptr is null when no I/O is pending.
114332 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114334         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114335         leave errno alone.  Problem reported by Dmitry V. Levin.
114337 2005-10-28  Simon Josefsson  <jas@extundo.com>
114339         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114340         Test more.
114342         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114344         * modules/md2, modules/md2-tests: New files.
114346 2005-10-28  Simon Josefsson  <jas@extundo.com>
114348         * m4/inet_ntop.m4: More tests.
114350         * m4/gc-md2.m4, md2.m4: New file.
114352 2005-10-28  Simon Josefsson  <jas@extundo.com>
114354         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114355         "restrict" keywords, as per POSIX.  Protect the function
114356         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114357         Don't use K&R prototypes.  Check the sprintf return values.
114358         Re-define EAFNOSUPPORT if not present.  Indent.
114360         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114361         suggested by Bruno Haible <bruno@clisp.org>.
114363         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114365         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114367         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114368         libgcrypt).
114370         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114372         * lib/md2.h, lib/md2.c: New files.
114374 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114376         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114377         errno alone.  Problem reported by Frederic Jolliton.
114379 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114381         * modules/verify (License): Change from GPL to LGPL.  This is a
114382         tiny module and there are apparently near-equivalents that are
114383         under the BSD license.
114385 2005-10-24  Simon Josefsson  <jas@extundo.com>
114387         * modules/sha1: Relicense to LGPL.
114389 2005-10-24  Simon Josefsson  <jas@extundo.com>
114391         * lib/md4.h: Shrink buffer size, now that we changed the type.
114393 2005-10-23  Simon Josefsson  <jas@extundo.com>
114395         * gnulib-tool (func_import): Fix --tests-base.
114397 2005-10-22  Simon Josefsson  <jas@extundo.com>
114399         * modules/arcfour (Depends-on): Need stdint.
114401 2005-10-22  Simon Josefsson  <jas@extundo.com>
114403         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114404         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114406 2005-10-22  Simon Josefsson  <jas@extundo.com>
114408         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114409         suggested by Bruno Haible <bruno@clisp.org>.
114411 2005-10-22  Simon Josefsson  <jas@extundo.com>
114413         * lib/crc.h: Include stddef.h, for size_t.
114415 2005-10-22  Simon Josefsson  <jas@extundo.com>
114417         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114418         arcfour_context struct (simplify test vector testing in GNU
114419         Shishi).
114421 2005-10-21  Simon Josefsson  <jas@extundo.com>
114423         * modules/des, modules/des-tests: New files.
114425         * modules/gc-des, modules/gc-des-tests: New files.
114427         * tests/test-des.c, tests/test-gc-des.c: New file.
114429 2005-10-21  Simon Josefsson  <jas@extundo.com>
114431         * modules/arctwo, modules/arctwo-tests: New files.
114433         * tests/test-arctwo.c: New file.
114435         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114437         * tests/test-gc-arctwo.c: New file.
114439 2005-10-21  Simon Josefsson  <jas@extundo.com>
114441         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114442         Bruno Haible <bruno@clisp.org>.
114444         * m4/gc-des.m4: New file.
114446 2005-10-21  Simon Josefsson  <jas@extundo.com>
114448         * m4/arctwo.m4: New file.
114450         * m4/gc-arctwo.m4: New file.
114452 2005-10-21  Simon Josefsson  <jas@extundo.com>
114454         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114455         block.
114457 2005-10-21  Simon Josefsson  <jas@extundo.com>
114459         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114460         <bruno@clisp.org>.
114462         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114464         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114465         Bruno Haible <bruno@clisp.org>.
114467         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114468         <bruno@clisp.org>.
114470 2005-10-21  Simon Josefsson  <jas@extundo.com>
114472         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114474 2005-10-21  Simon Josefsson  <jas@extundo.com>
114476         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114478 2005-10-21  Simon Josefsson  <jas@extundo.com>
114480         * lib/des.h, lib/des.c: New files.
114482         * lib/gc-gnulib.c: Support DES.c
114484 2005-10-21  Simon Josefsson  <jas@extundo.com>
114486         * lib/arctwo.h, lib/arctwo.c: New files.
114488         * lib/gc-gnulib.c: Support ARCTWO.
114490 2005-10-21  Simon Josefsson  <jas@extundo.com>
114492         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114493         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114495 2005-10-21  Simon Josefsson  <jas@extundo.com>
114497         * gnulib-tool (func_import, func_create_testdir): Define automake
114498         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114499         Makefile.am snippet),
114500         suggested by Bruno Haible <bruno@clisp.org>.
114502         * modules/gc (Makefile.am): Use it.
114504 2005-10-21  Bruno Haible  <bruno@clisp.org>
114506         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114507         patch.
114509 2005-10-19  Simon Josefsson  <jas@extundo.com>
114511         * tests/test-gc-rijndael.c: New file.
114513         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114515 2005-10-19  Simon Josefsson  <jas@extundo.com>
114517         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114518         interface too.
114520 2005-10-19  Simon Josefsson  <jas@extundo.com>
114522         * tests/test-gc-arcfour.c: New file.
114524         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114526 2005-10-19  Simon Josefsson  <jas@extundo.com>
114528         * modules/gc-md4, modules/gc-md4-tests: New file.
114530         * tests/test-gc-md4.c: New file.
114532 2005-10-19  Simon Josefsson  <jas@extundo.com>
114534         * m4/gc-md4.m4: New file.
114536 2005-10-19  Simon Josefsson  <jas@extundo.com>
114538         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114539         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114540         <kasal@ucw.cz>.
114542 2005-10-19  Simon Josefsson  <jas@extundo.com>
114544         * m4/gc-arcfour.m4: New file.
114546         * m4/gc-rijndael.m4: New file.
114548 2005-10-19  Simon Josefsson  <jas@extundo.com>
114550         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114552 2005-10-19  Simon Josefsson  <jas@extundo.com>
114554         * lib/gc-gnulib.c: Support ARCFOUR.
114556 2005-10-19  Simon Josefsson  <jas@extundo.com>
114558         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114559         support.
114561         * lib/gc.h: Add ECB enum type.
114563         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114565 2005-10-18  Simon Josefsson  <jas@extundo.com>
114567         * tests/test-md5.c: New file.
114569         * modules/md5-tests: New file.
114571 2005-10-18  Simon Josefsson  <jas@extundo.com>
114573         * tests/test-md4.c: New file.
114575         * modules/md4, modules/md4-tests: New files.
114577 2005-10-18  Simon Josefsson  <jas@extundo.com>
114579         * m4/md4.m4: New file.
114581 2005-10-18  Simon Josefsson  <jas@extundo.com>
114583         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114585 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114587         * gnulib-tool (func_create_testdir): Omit the second check whether
114588         BUILT_SOURCES in nonempty.
114590 2005-10-17  Simon Josefsson  <jas@extundo.com>
114592         * tests/test-rijndael.c: New file.
114594 2005-10-17  Simon Josefsson  <jas@extundo.com>
114596         * modules/sha1: Depend on stdint instead of md5.
114598         * modules/md5: Depend on stdint, remove uint32_t.
114600 2005-10-17  Simon Josefsson  <jas@extundo.com>
114602         * modules/gc-sha1-tests: New file.
114604         * tests/test-gc-sha1.c: New file.
114606 2005-10-17  Simon Josefsson  <jas@extundo.com>
114608         * m4/md5.m4: Remove call to uint32_t.m4.
114610 2005-10-17  Simon Josefsson  <jas@extundo.com>
114612         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114614         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114615         md5.h.
114617         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114619         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114621 2005-10-17  Simon Josefsson  <jas@extundo.com>
114623         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114625 2005-10-17  Simon Josefsson  <jas@extundo.com>
114627         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114629 2005-10-17  Simon Josefsson  <jas@extundo.com>
114631         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114633         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114635 2005-10-17  Bruno Haible  <bruno@clisp.org>
114637         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114638         that it can also be used in a test.
114640 2005-10-16  Bruno Haible  <bruno@clisp.org>
114642         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114643         TESTS_ENVIRONMENT, so that individual tests can augment it.
114645         * gnulib-tool (func_create_testdir): Use an intermediate target for
114646         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114647         macros, like $(ALLOCA_H), which cannot be passed through the command
114648         line.
114650 2005-10-15  Simon Josefsson  <jas@extundo.com>
114652         * modules/rijndael-tests: New file.
114654         * modules/rijndael: New file.
114656 2005-10-15  Simon Josefsson  <jas@extundo.com>
114658         * m4/rijndael.m4: New file.
114660 2005-10-15  Simon Josefsson  <jas@extundo.com>
114662         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114664         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114666 2005-10-14  Simon Josefsson  <jas@extundo.com>
114668         * tests/test-arcfour.c: New file.
114670         * modules/arcfour, modules/arcfour-tests: New files.
114672 2005-10-14  Simon Josefsson  <jas@extundo.com>
114674         * m4/arcfour.m4: New file.
114676 2005-10-14  Simon Josefsson  <jas@extundo.com>
114678         * lib/arcfour.h, lib/arcfour.c: New files.
114680 2005-10-14  Roland McGrath  <roland@redhat.com>
114682         Import from libc.  [BZ #1331]
114683         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114684         macro argument.
114685         Reported by Matej Vela <vela@debian.org>.
114687 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114689         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114690         include <wchar.h>; no longer needed.
114692 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114694         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114696 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114697         and  Ulrich Drepper  <drepper@redhat.com>
114699         Import from libc.
114700         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114701         instead of inline stream orientation test and two separate
114702         function calls.  Pay no attention to USE_IN_LIBIO.
114704 2005-10-13  Simon Josefsson  <jas@extundo.com>
114706         * modules/gc-hmac-md5-tests: New file.
114708         * tests/test-gc-hmac-sha1.c: New file.
114710         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114712         * modules/gc-hmac-md5-tests: New file.
114714         * tests/test-gc-md5.c: New file.
114716         * modules/gc-md5-tests: New file.
114718 2005-10-13  Simon Josefsson  <jas@extundo.com>
114720         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
114721         Move memory allocation outside of loop.
114723 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
114725         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
114726         intermediate directory is in a read-only file system.  Problem
114727         reported by Eric Blake.
114729 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
114731         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
114733 2005-10-12  Simon Josefsson  <jas@extundo.com>
114735         * tests/test-hmac-sha1.c: New file.
114737         * modules/hmac-sha1-tests: New file.
114739         * modules/hmac-sha1: New file.
114741 2005-10-12  Simon Josefsson  <jas@extundo.com>
114743         * modules/gc-sha1: New file.
114745 2005-10-12  Simon Josefsson  <jas@extundo.com>
114747         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
114749         * tests/test-gc-pbkdf2-sha1.c: New file.
114751 2005-10-12  Simon Josefsson  <jas@extundo.com>
114753         * modules/gc-md5, modules/gc-hmac-md5: New files.
114755         * modules/gc (Files): Remove md5, memxor and hmac files.
114757 2005-10-12  Simon Josefsson  <jas@extundo.com>
114759         * m4/gc-pbkdf2-sha1.m4: New file.
114761         * m4/gc-hmac-sha1.m4: New file.
114763         * m4/gc-sha1: New file.
114765         * m4/hmac-sha1.m4: New file.
114767 2005-10-12  Simon Josefsson  <jas@extundo.com>
114769         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
114771         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
114773 2005-10-12  Simon Josefsson  <jas@extundo.com>
114775         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
114776         suggested by Bruno Haible <bruno@clisp.org>.
114778 2005-10-12  Simon Josefsson  <jas@extundo.com>
114780         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
114782 2005-10-12  Simon Josefsson  <jas@extundo.com>
114784         * lib/gc-pbkdf2-sha1.c: New file.
114786         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
114788 2005-10-12  Simon Josefsson  <jas@extundo.com>
114790         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
114792         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
114794 2005-10-12  Simon Josefsson  <jas@extundo.com>
114796         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
114797         GC_USE_HMAC_MD5, respectively.
114799         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
114800         (gc_md5): Fix typo.
114802         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
114804         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
114806         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
114808 2005-10-12  Bruno Haible  <bruno@clisp.org>
114810         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
114811         Reported by Stepan Kasal <kasal@ucw.cz>.
114813 2005-10-11  Simon Josefsson  <jas@extundo.com>
114815         * tests/test-crc.c: New file.
114817         * modules/crc, modules/crc-tests: New files.
114819 2005-10-11  Simon Josefsson  <jas@extundo.com>
114821         * m4/crc.m4: New file.
114823 2005-10-11  Simon Josefsson  <jas@extundo.com>
114825         * lib/gc.h: Add gc_hash and gc_hash_buffer.
114827         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
114829         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
114831 2005-10-11  Simon Josefsson  <jas@extundo.com>
114833         * lib/crc.h, lib/crc.c: New files.
114835         * lib/gc.h (gc_hash_buffer): Add doc.
114837 2005-10-11  Bruno Haible  <bruno@clisp.org>
114839         * modules/c-strcasestr: New file.
114840         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
114842 2005-10-11  Bruno Haible  <bruno@clisp.org>
114844         * modules/c-strcase: New file.
114845         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
114847 2005-10-11  Bruno Haible  <bruno@clisp.org>
114849         * lib/strcasecmp.c: Include limits.h.
114850         (strcasecmp): Avoid integer overflow on exotic platforms.
114851         * lib/strncasecmp.c: Include limits.h.
114852         (strncasecmp): Avoid integer overflow on exotic platforms.
114853         Reported by Paul Eggert.
114855 2005-10-11  Bruno Haible  <bruno@clisp.org>
114857         * lib/c-strcasestr.h: New file, from GNU gettext.
114858         * lib/c-strcasestr.c: New file, from GNU gettext.
114860 2005-10-11  Bruno Haible  <bruno@clisp.org>
114862         * lib/c-strcase.h: New file, from GNU gettext.
114863         * lib/c-strcasecmp.c: New file, from GNU gettext.
114864         * lib/c-strncasecmp.c: New file, from GNU gettext.
114866 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
114868         * modules/mempcpy (License): GPL -> LGPL.
114869         * modules/strchrnul (License): Likewise.
114870         * modules/sysexits (License): Likewise.
114872 2005-10-08  Simon Josefsson  <jas@extundo.com>
114874         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
114876 2005-10-07  Simon Josefsson  <jas@extundo.com>
114878         * m4/memxor.m4: Remove gl_C_RESTRICT call.
114880 2005-10-06  Simon Josefsson  <jas@extundo.com>
114882         * tests/test-hmac-md5.c: New file.
114884         * modules/hmac-md5-tests: New file.
114886         * modules/hmac-md5: New file.
114888 2005-10-06  Simon Josefsson  <jas@extundo.com>
114890         * m4/hmac-md5.m4: New file.
114892         * m4/memxor.m4: Require gl_C_RESTRICT.
114894 2005-10-06  Simon Josefsson  <jas@extundo.com>
114896         * lib/memxor.c (memxor): Avoid casts and warnings.
114898 2005-10-06  Simon Josefsson  <jas@extundo.com>
114900         * lib/hmac-md5.c: New file.
114902         * lib/hmac.h: New file.
114904 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
114906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
114907         promotes to int, not unsigned int, to catch the AIX 5.3
114908         compiler bug.
114910 2005-10-05  Simon Josefsson  <jas@extundo.com>
114912         * modules/memxor: New file.
114914         * modules/iconv (Files): Move config.rpath to havelib, it is used
114915         there.
114917         * modules/havelib (Files): Add config.rpath.
114919 2005-10-05  Simon Josefsson  <jas@extundo.com>
114921         * m4/memxor.m4: New file.
114923 2005-10-05  Simon Josefsson  <jas@extundo.com>
114925         * lib/memxor.c (memxor): Fix compiler error.
114927         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
114928         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
114930         * lib/memxor.h, lib/memxor.c: New files.
114932         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
114933         we assume all systems have it, suggested by Jim Meyering
114934         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
114935         any systems lack sys/socket.h; mingw32 is known to lack it, but we
114936         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
114937         same reasons.
114939 2005-10-05  Simon Josefsson  <jas@extundo.com>
114941         * config/srclist.txt: Add glibc bug 1423 for md5.h.
114943 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
114945         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
114946         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
114947         needed, since the source code now assumes these .h files.
114949 2005-10-05  Derek Price  <derek@ximbiot.com>
114951         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
114953 2005-10-05  Bruno Haible  <bruno@clisp.org>
114955         * modules/stdint (License): Change to LGPL.
114957 2005-10-04  Simon Josefsson  <jas@extundo.com>
114959         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
114960         D. Baushke" <mdb@gnu.org>.
114962 2005-10-04  Bruno Haible  <bruno@clisp.org>
114964         * lib/verify.h (verify_true): Provide alternative definition for C++.
114966 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
114968         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
114969         (SSIZE_MAX): New macro, if not already defined.
114970         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
114971         than 2 GiB.
114973 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114975         Sync from coreutils.
114976         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
114977         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
114978         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
114979         ULLONG_MAX doesn't work with 2.7.2.1.
114981 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114983         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
114984         From Ben Pfaff.
114986         * modules/exclude (Depends-on): Depend on verify.
114987         * modules/strtoimax (Depends-on): Likewise.
114988         * modules/utimecmp (Depends-on): Likewise.
114990 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
114992         * lib/exclude.c: Include verify.h.
114993         (verify): Remove.  All callers changed to use verify.h's version.
114994         * lib/strtoimax.c: Likewise.
114995         * lib/utimecmp.c: Likewis.e
114997         Sync from coreutils.
114998         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
114999         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115000         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115001         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115002         bother returning ENOSYS if settimeofday or stime fails; just let
115003         them return whatever errno they want to return.
115004         * lib/utimens.c: Include unistd.h, for dup2.
115005         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115006         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115008 2005-10-02  Jim Meyering  <jim@meyering.net>
115010         Sync from coreutils.
115011         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115012         from glibc-2.2.5 that fails for read-only files.
115014 2005-10-02  Jim Meyering  <jim@meyering.net>
115016         Sync from coreutils.
115017         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115018         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115019         `#if HAVE_CONFIG_H'.
115020         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115021         Remove AT_FDCWD test.
115022         Do not consume the fd unless successful.
115023         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115024         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115025         block, so that we don't even try to compile it if settimeofday is
115026         available.  This works around a compilation failure on OSF1 V5.1,
115027         due to stime requiring a `long int*' while tv_sec is `int'.
115029 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115031         Sync from coreutils.
115032         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115033         against `yes', rather than just testing for nonempty.
115035 2005-10-01  Simon Josefsson  <jas@extundo.com>
115037         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115038         and Darwin.
115040         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115041         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115042         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115043         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115044         Check if struct addrinfo is declared.
115046 2005-10-01  Simon Josefsson  <jas@extundo.com>
115048         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115049         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115050         AI_* and EAI_* definitions.  Protect function declarations.
115052 2005-10-01  Jim Meyering  <jim@meyering.net>
115054         Sync from coreutils.
115056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115057         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115058         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115060         in the inet and nsl libraries.  Required on Solaris 5.7.
115062 2005-10-01  Jim Meyering  <jim@meyering.net>
115064         Sync from coreutils.
115065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115066         in the inet and nsl libraries.  Required on Solaris 5.7.
115068 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115070         * lib/getdelim.c (getdelim): Remove unused variables.
115072 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115074         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115075         so that the code works even with ancient cpp.  Portability problem
115076         with GCC 2.7.2.1 reported by Thomas M.Ott.
115078 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115080         * modules/regex (Depends-on): Add strcase.
115082         * modules/gethostname (Licence): Change from GPL to LGPL, since
115083         gethostname.c is a trivial implementation of a standard library
115084         function.
115085         * modules/poll (License): Change from GPL to LGPL, since it's
115086         derived from LGPL code.
115088 2005-09-27  Jim Meyering  <jim@meyering.net>
115090         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115091         HAVE_CONFIG_H.
115093         * lib/intprops.h (signed_type_or_expr__): Define.
115094         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115095         for unsigned types.
115097 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115099         * lib/verify.h (verify_expr): Remove, replacing with:
115100         (verify_true): New macro that returns true instead of void.
115101         (verify_type__): Remove.
115102         (verify): Use verify_true rather than verify_type__.
115104 2005-09-26  Bruno Haible  <bruno@clisp.org>
115106         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115107         is necessary.
115108         (lib_SOURCES): Remove mbchar.c.
115109         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115110         (Files): Add m4/mbrtowc.m4.
115111         * modules/mbiter: Likewise.
115112         * modules/mbuiter: Likewise.
115114 2005-09-26  Bruno Haible  <bruno@clisp.org>
115116         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115117         compile mbchar.c if they are not both present.
115118         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115119         * m4/mbiter.m4 (gl_MBITER): Likewise.
115120         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115121         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115122         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115124 2005-09-25  Jim Meyering  <jim@meyering.net>
115126         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115127         also uses socklen_t.
115129 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115131         * lib/utimens.c (ENOSYS): Define if not already defined.
115132         (futimens): Support having a null PATH if the file descriptor
115133         is nonnegative.
115135         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115136         Remove.
115137         (__attribute): Define to empty unless GCC 3.1 or later.
115138         This works around a core dump on OpenBSD 3.4, which has GCC
115139         2.95.3, which dumps core when given __attribute__(()).  It also
115140         simplifies other tests, since we really don't want to bother with
115141         worrying about which ancient version of GCC supported what.
115142         Original problem reported by Yoann Vandoorselaere, with part of
115143         the fix suggested by Derek Price.
115145 2005-09-24  Jim Meyering  <jim@meyering.net>
115147         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115148         so we can once again use a positive bitfield width of 1 -- now we
115149         don't have to explain why we were using a bitfield width of 2.
115151 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115153         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115154         and similarly for the other external symbols.  Problem reported
115155         by James Gallager.
115157         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115158         bug reported by Jim Meyering.
115160         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115162         not needed, since socklen is a prerequisite module.
115164 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115166         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115167         Problem reported by Eric Blake.
115168         (getaddrinfo): Initialize se so that it's not garbage.
115169         Redo internal storage allocation so that it doesn't make unportable
115170         assumptions about alignment.
115171         Fix a memory leak.
115173         * lib/utimens.c (futimens): Use futimesat if available.
115174         Prefer it to futimes since it doesn't have the futimes bug.
115176         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115177         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115178         Instead, declare a function that returns a pointer to an array,
115179         and use verify_type__ to declare the size of the array.
115180         Problem and germ of a solution reported by Bruno Haible.
115181         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115182         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115184 2005-09-23  Jim Meyering  <jim@meyering.net>
115186         Sync from coreutils.
115187         Correct build failure (socklen_t not defined) on at least
115188         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115191 2005-09-23  Jim Meyering  <jim@meyering.net>
115193         * modules/getaddrinfo (Depends-on): Add socklen.
115195 2005-09-23  Bruno Haible  <bruno@clisp.org>
115197         * tests/test-verify.c: New file.
115199 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115201         Sync from coreutils.
115203         * modules/argmatch (Depends-on): Add verify.
115204         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115205         unistd-safer.
115206         * modules/save-cwd (Depends-on): Likewise.
115208         * modules/openat (Files): Add lib/openat-die.c.
115209         (Depends-on): Remove error, exitfail.
115210         Add dirname.
115212         * modules/verify: New file.
115213         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115214         with "verify" module.
115216 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115218         Sync from coreutils.
115220         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115221         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115222         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115223         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115224         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115225         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115226         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115227         Don't bother checking for string.h, stdlib.h, unistd.h.
115228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115229         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115230         module's job.
115231         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115232         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115234         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115235         (gl_GETDATE): Use it.
115237         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115239 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115241         Sync from coreutils.
115243         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115244         stat-time.h.
115245         * lib/argmatch.h: Include verify.h
115246         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115247         (ARGMATCH_ASSERT): Remove; unused.
115248         * lib/canonicalize.c: Assume STDC_HEADERS.
115249         * lib/exclude.c: Include "strcase.h".
115250         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115251         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115252         and stdio-safer.h.
115253         (getusershell): Call fopen, not fopen_safer.
115254         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115255         Do not include unistd-safer.h.
115256         (save_cwd): Don't call fd_safer; no longer needed
115257         now that we include fcntl--.h.
115259         * lib/getdate.y (relative_time): New type.
115260         (RELATIVE_TIME_0): New constant.
115261         (parser_control): Use relative_time instead of doing it ourselves.
115262         (%union): Add new relative_time rel member.
115263         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115264         Now typeless.
115265         (relunit, relunit_snumber): Now of type rel.
115266         (zone, rel, relunit, get_date): Adjust to above changes.
115268         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115269         Do not include unistd-safer.h.
115270         (getloadavg): Don't call fd_safer; no longer needed
115271         now that we include fcntl--.h.
115273         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115274         (make_dir_parents): Treat ENOSYS like EEXIST.
115276         Improve quality of diagnostics on restore_cwd failure.
115277         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115278         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115279         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115280         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115281         each time through the loop.  Do not diagnose restore_cwd failure;
115282         that is the caller's job (and perhaps the caller does not care).
115284         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115285         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115286         If the file already exists but is not a directory, don't bother
115287         to try to make its parents.
115288         Close potential file descriptor leak if we can't chdir("/") (!).
115289         Don't always return true if chdir($PWD) fails; return true only
115290         if the requested action was done successfully (except for the
115291         chdir($PWD)).
115292         Don't log final directory unless we actually made it.
115293         Refactor to avoid duplicate code to fix up permissions.
115294         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115296         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115297         to make it a bit faster and (I hope) clearer.
115298         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115299         Fix bug in formats like %2N.
115301         * lib/verify.h: New file.
115303 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115305         Sync from coreutils.
115306         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115308 2005-09-22  Jim Meyering  <jim@meyering.net>
115310         Sync from coreutils.
115312         * m4/lstat.m4 (gl_FUNC_LSTAT):
115313         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115314         Remove obsolete comment.
115315         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115316         * m4/xstrtod.m4: Likewise.
115318         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115320 2005-09-22  Jim Meyering  <jim@meyering.net>
115322         Sync from coreutils.
115324         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115326         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115327         the .tm_year member, since otherwise gcc-4.0 would now warn about
115328         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115330         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115331         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115333         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115334         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115335         when run in a time zone for which daylight savings time is in effect
115336         for the starting date.
115338         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115339         stop us from restricting permissions of just-created absolute-named
115340         directories.
115341         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115342         to restore initial working directory.
115343         * lib/mkdir-p.c (make_dir_parents): New parameter:
115344         different_working_dir, to tell caller if/when we change the working
115345         directory and are unable to return to the initial one.
115346         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115347         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115348         `return false'.  This fixes a bug introduced on 2004-07-30.
115350         * lib/openat.c (fdopendir): Be sure to close the supplied
115351         file descriptor before returning.  This makes our replacement
115352         implementation a little closer to Solaris's, where fdopendir
115353         ties the file descriptor to the returned DIR* pointer.
115354         * lib/openat.c (unlinkat): New function.
115355         * lib/openat.h (unlinkat): Add prototype.
115356         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115357         (openat_restore_fail): Rename from openat_restore_die.
115358         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115360         Provide an alternative to exiting immediately upon save_cwd or
115361         restore_cwd failure.  Now, an application can arrange e.g.,
115362         to perform a longjump in that case.
115363         * lib/openat.c: Include dirname.h.
115364         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115365         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115366         and openat_restore_die rather than calling error directly.
115367         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115369         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115370         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115371         define.
115373         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115374         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115375                             int utc, int nanoseconds);
115376         Background:
115377         date should not have to allocate a megabyte of virtual memory to
115378         handle a format argument like +%1048575T.  When implemented with
115379         strftime, it must allocate such a buffer, use strftime to fill it
115380         in, print it, then free it.
115381         With fprintftime, it simply prints everything and exits.
115382         With no need for memory allocation, that's one fewer way to fail.
115383         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115384         optional field width, not before, so we accept %9:z, not %:9z.
115385         (my_strftime): Be sure to use L_('x') for literals.
115387         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115388         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115389         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115390         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115391         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115392         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115393         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115394         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115395         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115396         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115397         * lib/xgethostname.c, lib/xreadlink.c:
115398         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115400         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115401         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115402         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115403         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115404         and don't include <sys/file.h>).
115406 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115408         Sync from coreutils.
115410         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115411         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115412         [!LDAV_DONE]: Avoid unused variable warning.
115414 2005-09-21  Bruno Haible  <bruno@clisp.org>
115416         * lib/unicodeio.h (unicode_to_mb): New declaration.
115418 2005-09-20  Derek Price  <derek@ximbiot.com>
115420         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115421         getaddrinfo.h.
115423 2005-09-20  Bruno Haible  <bruno@clisp.org>
115425         * gnulib-tool: Remove trailing slashes from the values specified for
115426         --source-base, --m4-base, --tests-base, --aux-dir.
115427         Suggested by Simon Josefsson <jas@extundo.com>.
115429 2005-09-20  Bruno Haible  <bruno@clisp.org>
115431         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115432         func_modules_to_filelist, func_import, func_create_testdir): Make all
115433         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115434         change when gnulib-tool is invoked in a different locale.
115436 2005-09-19  Simon Josefsson  <jas@extundo.com>
115438         * m4/socklen.m4: Fix typo.
115440 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115442         Use a consistent style for including <config.h>.
115443         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115444         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115445         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115446         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115447         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115448         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115449         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115450         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115451         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115452         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115453         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115454         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115455         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115456         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115457         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115458         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115459         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115460         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115461         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115462         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115463         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115464         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115465         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115466         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115467         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115468         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115469         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115470         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115471         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115472         lib/xstrtoumax.c, lib/yesno.c:
115473         Standardize inclusion of config.h.
115474         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115475         lib/inttostr.h:  Removed inclusion of config.h from header files.
115476         * lib/inttostr.c:  Adjusted in-tree users.
115477         * lib/timespec.h: Remove superfluous warning to include config.h.
115478         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115479         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115480         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115481         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115482         config.h with HAVE_CONFIG_H.
115484 2005-09-19  Jim Meyering  <jim@meyering.net>
115486         * modules/pathmax (License): Change to LGPL.
115488 2005-09-19  Derek Price  <derek@ximbiot.com>
115490         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115492 2005-09-19  Bruno Haible  <bruno@clisp.org>
115494         * gnulib-tool (import): Provide default for --tests-base.
115496 2005-09-19  Bruno Haible  <bruno@clisp.org>
115498         * doc/quote.texi: New file, extracted from gnulib.texi.
115499         * doc/ctime.texi: New file, extracted from gnulib.texi.
115500         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115501         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115502         * doc/gnulib.texi: Include them.
115504 2005-09-18  Bruno Haible  <bruno@clisp.org>
115506         Portability fix.
115507         * gnulib-tool (func_readlink): New function.
115508         (func_ln_if_changed): Use it.
115510 2005-09-18  Bruno Haible  <bruno@clisp.org>
115512         * gnulib-tool: Support --with-tests also with --import.
115513         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115514         (func_import): Use variables $testsbase and $inctests. Emit a
115515         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115516         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115517         SUBDIRS += $testsdir.
115518         (func_create_testdir): Update.
115520 2005-09-18  Bruno Haible  <bruno@clisp.org>
115522         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115523         instead of $dry_run.
115524         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115525         (func_ln_if_changed): Don't handle dry-run here.
115526         (func_import): In dry-run mode, detect more precisely which actions
115527         would be performed, and don't use "...ing" verbs.
115529 2005-09-18  Bruno Haible  <bruno@clisp.org>
115531         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115532         (func_import): Use join on two temporary files instead of three nested
115533         loops, in order to determine which files are new or old.
115535 2005-09-18  Bruno Haible  <bruno@clisp.org>
115537         * gnulib-tool (func_import): Comment out code that spits out the
115538         new files with --dry-run.
115540 2005-09-18  Bruno Haible  <bruno@clisp.org>
115542         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115544 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115546         * lib/stat-time.h: New file.
115547         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115548         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115549         in a different way.
115550         (timespec_cmp): New function.
115551         * lib/utimecmp.c: Include stat-time.h.
115552         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115553         members exist, not on the obsolescent ST_MTIM_NSEC.
115554         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115556 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115558         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115560 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115562         * MODULES.html.sh (File system functions): Add stat-time.
115563         * modules/stat-time: New file.
115564         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115565         is now done in a different way, by the stat-time module.
115566         * modules/utimecmp (Depends-on): Add stat-time.
115568 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115570         * m4/st_mtim.m4: Remove.  Superseded by...
115571         * m4/stat-time.m4: New file.
115572         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115573         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115575 2005-09-15  Derek Price  <derek@ximbiot.com>
115577         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115579 2005-09-15  Derek Price  <derek@ximbiot.com>
115581         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115582         * lib/regex_internal.c: Ditto, using this...
115583         (__GNUC_PREREQ): ...new macro.
115584         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115585         using...
115586         (__GNUC_PREREQ): ...this new macro.
115588         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115590 2005-09-15  Derek Price  <derek@ximbiot.com>
115591             Paul Eggert  <eggert@cs.ucla.edu>
115593         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115594         changes, consolidating in...
115595         * lib/regex_internal.h: ...this file.
115597 2005-09-13  Jim Meyering  <jim@meyering.net>
115599         * lib/canon-host.c: Filter through gnu indent and reword comments
115600         slightly.
115601         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115603 2005-09-13  Derek Price  <derek@ximbiot.com>
115605         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115606         failure.
115607         Reported by Jim Meyering  <jim@meyering.net>.
115609 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115611         * lib/base64.c: Typo.
115612         (base64_encode): Put b64str in initialized data section.
115614 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115616         Merge glibc and coreutils changes into gnulib, plus a few
115617         extra fixes.
115618         * lib/md5.c: Use #error rather than a string.
115619         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115620         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115621         (__attribute__): Define to empty for non recent-GCC.
115622         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115623         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115624         Renamed from their non-__ counterparts, with new macros replacing
115625         them if not _LIBC.  Add __THROW attribute.
115626         (rol): Remove.
115627         (struct md5_ctx): Align buffer if using GCC.
115628         * lib/sha1.h (struct sha1_ctx): Likewise.
115629         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115630         The old name was backwards.
115631         (NOTSWAP): Remove; not used.
115632         (rol): New macro, moved here from md5.h.
115633         (sha1_process_block): Remove a FIXME that doesn't make sense.
115635 2005-09-12  Derek Price  <derek@ximbiot.com>
115637         Return usable errors from canon-host.
115638         * lib/canon-host.h: New file.
115639         * lib/canon-host.c (canon_host): Wrap...
115640         (canon_host_r): ...this new function, which now relies exclusively on
115641         getaddrinfo.
115642         (ch_strerror): New function.
115643         (last_cherror): New global.
115644         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115645         interface.
115646         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115647         void *.
115648         (freeaddrinfo): Free ai->ai_canonname when set.
115650 2005-09-12  Derek Price  <derek@ximbiot.com>
115652         Make canon-host require getaddrinfo.
115653         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115654         AC_LIBSOURCE canon-host.h.  Call...
115655         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115656         gl_GETADDRINFO.
115657         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115659 2005-09-12  Derek Price  <derek@ximbiot.com>
115661         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115662         LGPL.
115663         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115665 2005-09-12  Derek Price  <derek@ximbiot.com>
115667         * lib/gai_strerror.c: Include config.h when available.  Include
115668         getaddrinfo.h before other headers to test interface.
115669         Reported by Larry Jones <lawrence.jones@ugs.com>.
115671 2005-09-12  Derek Price  <derek@ximbiot.com>
115672             Paul Eggert  <eggert@cs.ucla.edu>
115674         * modules/glob (Files): Add glob-libc.h.
115676 2005-09-12  Derek Price  <derek@ximbiot.com>
115677             Paul Eggert  <eggert@cs.ucla.edu>
115679         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115680         glob_.h, glob-libc.h.
115681         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115683 2005-09-12  Derek Price  <derek@ximbiot.com>
115684             Paul Eggert  <eggert@cs.ucla.edu>
115686         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115687         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115688         protecting things that should be done only in gnulib contexts.
115689         * lib/glob_.h: New file, containing only the glob things needed for
115690         gnulib.
115691         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115692         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115693         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115694         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115695         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115696         and to respect the namespace rules better.
115698 2005-09-08  Simon Josefsson  <jas@extundo.com>
115700         * modules/socklen: New file.
115702 2005-09-08  Simon Josefsson  <jas@extundo.com>
115704         * m4/socklen.m4: New file.
115706 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115708         * modules/utimens (Files): Add m4/utimbuf.m4, since
115709         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115710         Reported by Sergey Poznyakoff.
115712 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115714         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115715         definitions, since that's the preferred style in glibc.
115716         Fix a minor spacing issue, and update copyright notice to match
115717         glibc's.
115719 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115721         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
115723 2005-09-06  Simon Josefsson  <jas@extundo.com>
115725         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
115726         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
115728 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115730         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
115731         warning.
115733 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115735         * config/srclist.txt: Add glibc bug 1302.
115737 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
115739         Change bitset word type from unsigned int to unsigned long int,
115740         as this has better performance on typical 64-bit hosts.
115741         Port bitset code to hosts with unusual word sizes.
115742         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
115743         (build_collating_symbol):
115744         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
115745         argument is a bitset.  This is merely a style issue, but it makes
115746         it clearer that an entire array is expected.
115747         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
115748         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
115749         Port to the case where bitset_word is not the same as unsigned int.
115750         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115751         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
115752         Likewise.
115753         * lib/regexec.c (check_dst_limits_calc_pos_1,
115754         check_subexp_matching_top):
115755         (build_trtable, group_nodes_into_DFAstates):
115756         Likewise.
115757         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
115758         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
115759         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
115760         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
115761         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
115762         * lib/regcomp.c (optimize_subexps, lower_subexp):
115763         Work even if bitset_word has holes in its bitwise representation.
115764         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
115765         * lib/regexec.c (check_dst_limits_calc_pos_1,
115766         check_subexp_matching_top):
115767         Likewise.
115768         * lib/regex_internal.c (re_string_reconstruct):
115769         Don't assume UCHAR_MAX == 255.
115770         * lib/regex_internal.h (bitset_set_all): Likewise.
115771         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
115772         All uses changed.
115773         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
115774         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
115775         All uses changed.
115776         (BITSET_WORD_MAX): New macro.
115777         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
115778         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
115779         (bitset_empty, bitset_copy):
115780         Prefer sizeof (bitset) to multiplying it out ourselves.
115781         (bitset_not_merge): Remove; unused.
115782         (bitset_contain): Return bool, not unsigned int with one bit on.
115783         All callers changed.
115784         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
115785         alignment than re_node_set; do this by defining a new internal
115786         type struct dests_alloc and using it to allocate memory.
115788 2005-09-05  Bruno Haible  <bruno@clisp.org>
115790         * gnulib-tool (func_import): Fix comparison in handling of symbolic
115791         links.
115793 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
115795         * modules/size_max (Makefile.am): Add size_max.h
115797 2005-09-04  Derek Price  <derek@ximbiot.com>
115799         * gnulib-tool (func_import): Fix reversed $symbolic logic.
115801 2005-09-03  Simon Josefsson  <jas@extundo.com>
115803         * gnulib-tool: Fix typo.
115805 2005-09-03  Simon Josefsson  <jas@extundo.com>
115807         * config/srclist.txt: Add glibc bug 1293.
115809 2005-09-03  Derek Price  <derek@ximbiot.com>
115811         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
115812         From Larry Jones <lawrence.jones@ugs.com>.
115814 2005-09-02  Simon Josefsson  <jas@extundo.com>
115816         * modules/socklen: New file.
115818 2005-09-02  Simon Josefsson  <jas@extundo.com>
115820         * modules/havelib: New module.
115822         * modules/gettext, modules/iconv, modules/lock, modules/readline:
115823         Use havelib.
115825 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115827         Check for arithmetic overflow when calculating sizes, to prevent
115828         some buffer-overflow issues.  These patches are conservative, in the
115829         sense that when I couldn't determine whether an overflow was possible,
115830         I inserted a run-time check.
115831         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
115832         macros.
115833         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
115834         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
115835         (re_xnrealloc, re_x2nrealloc): New inline functions.
115836         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
115837         parse_bracket_exp):
115838         (build_equiv_class, build_charclass): Check for arithmetic overflow
115839         in size expression calculations.
115840         * lib/regex_internal.c (re_string_realloc_buffers):
115841         (build_wcs_upper_buffer, re_node_set_add_intersect):
115842         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
115843         (re_dfa_add_node, register_state): Likewise.
115844         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
115845         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
115846         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
115847         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
115849 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115851         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
115852         m4/ulonglong.m4.  Problem reported by Martin Lambers.
115854 2005-09-02  Bruno Haible  <bruno@clisp.org>
115856         Support for lib vs. lib64 distinction on biarch platforms.
115857         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
115858         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
115859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
115861 2005-09-02  Bruno Haible  <bruno@clisp.org>
115863         * gnulib-tool (import): In the other first-use case, provide defaults
115864         as well.
115866 2005-09-02  Bruno Haible  <bruno@clisp.org>
115868         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
115869         patches not yet found in the latest gettext release.
115871 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
115873         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
115874         to avoid a collision with bits/local_lim.h in glibc.
115875         All uses changed.  Problem reported by Dmitry V. Levin in
115876         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
115878         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
115879         bugs in int versus size_t comparisons.
115880         (re_string_context_at): Fix bug where the code assumed that
115881         Idx is signed.
115883         Use bool where appropriate.
115884         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
115885         All callers changed.
115886         (calc_eclosure_iter): Likewise, for ROOT arg.
115887         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
115888         (build_charclass_op): Likewise, for NON_MATCH arg.
115889         * lib/regex_internal.c (re_string_allocate, re_string_construct):
115890         (re_string_construct_common): Likewise, for ICASE arg.
115891         * lib/regexec.c (re_search_2_stub, re_search_stub):
115892         Likewise, for RET_LEN arg.
115893         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
115894         (set_regs): Likewise, for FL_BACKTRACK arg.
115895         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
115896         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
115897         (calc_eclosure_iter, parse_bracket_exp):
115898         Use bool for internal variables that are booleans.
115899         * lib/regexec.c (re_search_internal, check_matching,
115900         proceed_next_node):
115901         (set_regs, build_sifted_states, sift_states_bkref):
115902         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
115903         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
115904         (find_collation_sequence_value):
115905         Likewise.
115906         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
115907         (re_node_set_compare):
115908         Return bool, not int. All callers changed.
115909         * lib/regexec.c (check_halt_node_context, check_dst_limits):
115910         (build_trtable, check_node_accept): Likewise.
115911         * lib/regex_internal.h: Include stdbool.h.
115913         Fix bugs uncovered when converting to bool.
115914         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
115915         failure instead of charging ahead blindly.
115916         * lib/regex_internal.c (register_state): Likewise.
115917         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
115918         for freeing internal storage.
115919         (group_nodes_into_DFA_states): Use unsigned int, not int, for
115920         bitset pieces used as boolean, to avoid undefined behavior
115921         on hosts that do int overflow checking.
115923 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
115925         * config/srclist.txt: Add glibc bugs 1285-1287.
115927 2005-09-01  Jim Meyering  <jim@meyering.net>
115929         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
115930         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
115931         Require gl_STAT_MACROS, too.
115933 2005-09-01  Bruno Haible  <bruno@clisp.org>
115935         * gnulib-tool (import): In the first-use case, provide defaults.
115937 2005-09-01  Bruno Haible  <bruno@clisp.org>
115939         * gnulib-tool (func_import): Remove the .tmp files.
115941 2005-09-01  Bruno Haible  <bruno@clisp.org>
115943         * gnulib-tool (func_import): Fix handling of symbolic links.
115945 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
115947         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
115948         old glibc regex code mishandles strings longer than 2**31 bytes.
115949         This patch fixes this when the regex code is used in gnulib
115950         (i.e., outside glibc).
115952         This patch should not affect the use of the regex code inside
115953         glibc.  No doubt this problem also needs to be handled for glibc
115954         as well, but the result will be an incompatible change to the
115955         glibc ABI, and the old ABI will have to be supported too.  That
115956         can be the subject for another patch.
115958         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
115959         governing whether the rest of this patch is active.  By default,
115960         the macro is disabled and the patch has no effect.
115961         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
115962         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
115963         (struct re_pattern_buffer, re_search, re_search_2, re_match):
115964         (re_match_2, re_set_registers): Use the new types.
115965         * lib/regex_internal.h (Idx, re_hashval_t): New types.
115966         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
115967         New macros.
115968         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
115969         (re_string_context_at, bin_tree_t, re_dfastate_t):
115970         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
115971         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
115972         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
115973         (re_string_char_size_at, re_string_wchar_at):
115974         (re_string_elem_size_at):
115975         Use the new types and macros to port to 64-bit hosts.
115976         Use unsigned types for internal values, so that the code
115977         mostly works even for arrays larger than SSIZE_MAX.
115978         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
115979         (search_duplicated_node, calc_eclosure_iter, fetch_number):
115980         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
115981         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
115982         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
115983         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
115984         (calc_inveclosure, parse_dup_op, build_range_exp):
115985         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
115986         (fetch_number, create_token_tree, mark_opt_subexp):
115987         Likewise.
115988         * lib/regex_internal.c (re_string_construct_common,
115989         create_ci_newstate):
115990         (create_cd_newstate, re_string_allocate, re_string_construct):
115991         (re_string_realloc_buffers, build_wcs_upper_buffer):
115992         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
115993         (re_string_reconstruct, re_string_peek_byte_case):
115994         (re_string_fetch_byte_case, re_string_context_at):
115995         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
115996         (re_node_set_init_copy, re_node_set_add_intersect):
115997         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
115998         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
115999         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116000         (re_acquire_state, re_acquire_state_context, register_state):
116001         Likewise.
116002         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116003         search_cur_bkref_entry):
116004         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116005         (re_search_internal, re_search_2_stub, re_search_stub)
116006         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116007         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116008         (update_cur_sifted_state, check_dst_limits):
116009         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116010         (check_subexp_limits, sift_states_bkref, merge_state_array):
116011         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116012         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116013         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116014         (expand_bkref_cache, check_node_accept_bytes):
116015         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116016         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116017         (acquire_init_state_context, check_halt_node_context):
116018         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116019         (sift_states_backward, clean_state_log_if_needed):
116020         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116021         (find_recover_state, transit_state_sb, transit_state_mb):
116022         (transit_state_bkref, build_trtable, match_ctx_clean):
116023         Likewise.
116024         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116025         to work around an assumption that REG_MISSING is negative.
116027         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116028         (seek_collating_symbol_entry) [defined _LIBC]:
116029         (lookup_collation_sequence_value) [defined _LIBC]:
116030         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116031         Use prototypes rather than old-style function definitions.
116032         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116033         (transit_state_sb) [0]:
116034         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116036         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116037         rm_eo.
116039         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116040         (optimize_subexps, lower_subexp):
116041         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116042         since the signed shift might overflow.  Use 1u<<31 instead.
116043         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116044         Likewise.
116045         * lib/regexec.c (check_dst_limits_calc_pos_1,
116046         check_subexp_matching_top): Likewise.
116048         * lib/regcomp.c (optimize_subexps, lower_subexp):
116049         Use CHAR_BIT rather than 8, for clarity.
116050         * lib/regexec.c (check_dst_limits_calc_pos_1):
116051         (check_subexp_matching_top): Likewise.
116052         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116053         have to worry about portability issues when shifting it left.
116054         Remove no-longer-needed test for table_size > 0.
116055         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116056         in a word, as the resulting behavior is undefined.
116057         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116058         in one case, a <= should have been an <, and in another case the
116059         whole test was missing.
116060         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116061         the standard name CHAR_BIT.
116062         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116063         this is not true on one's complement and signed-magnitude hosts.
116065         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116066         next_last_offset.
116067         (struct re_dfa_t): Remove unused member states_alloc.
116068         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116070 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116072         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116073         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116074         and large-file glibc and in 32-bit large-file Solaris.
116076 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116078         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116079         lengths fit in regoff_t; this isn't true if regoff_t is the same
116080         width as size_t.
116081         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116082         (= START + RANGE) instead of RANGE.  This avoids overflow
116083         problems when regoff_t is the same width as size_t.
116084         All callers changed.
116085         (re_search_2_stub): Check for overflow when adding the
116086         sizes of the two strings.
116087         (re_search_stub): Check for overflow when adding START
116088         to RANGE; if it occurs, substitute the extreme value.
116090 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116092         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116094 2005-08-31  Jim Meyering  <jim@meyering.net>
116096         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116097         a pointer-to-const.
116098         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116099         (register_state): Likewise.
116100         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116101         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116102         (group_nodes_into_DFAstates): Likewise.
116104 2005-08-31  Jim Meyering  <jim@meyering.net>
116106         * check-module: Add a FIXME comment.
116108 2005-08-31  Eric Blake  <ebb9@byu.net>
116110         * modules/unistd-safer (Files): Add unistd--.h.
116111         * modules/stdio-safer (Files): Add stdio--.h.
116113 2005-08-31  Derek Price  <derek@ximbiot.com>
116115         * lib/getdelim.c (getdelim): Return EOF on EOF.
116116         Reported by Larry Jones <lawrence.jones@ugs.com>.
116118 2005-08-31  Bruno Haible  <bruno@clisp.org>
116120         Avoid unnecessary diffs in the generated lib/Makefile.am.
116121         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116122         the generated files.
116123         (func_import): Don't set cmd.
116125 2005-08-31  Bruno Haible  <bruno@clisp.org>
116127         * lib/strstr.c: Include <stddef.h>, for NULL.
116128         * lib/strcasestr.c: Likewise.
116129         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116131 2005-08-31  Bruno Haible  <bruno@clisp.org>
116133         * gnulib-tool: New option --macro-prefix.
116134         (func_import): Use macro_prefix.
116135         (import): Handle option --macro-prefix.
116137 2005-08-31  Bruno Haible  <bruno@clisp.org>
116139         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116140         Also use new variables cached_lgpl, cached_libtool.
116142 2005-08-31  Bruno Haible  <bruno@clisp.org>
116144         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116145         always instantiating them.
116147 2005-08-31  Bruno Haible  <bruno@clisp.org>
116149         * gnulib-tool (func_import): Read the previous cached settings
116150         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116151         earlier added by gnulib but are now dropped. Warn when a gnulib file
116152         overwrites a non-gnulib file.
116154 2005-08-31  Bruno Haible  <bruno@clisp.org>
116156         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116157         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116158         projects that don't keep autogenerated files in CVS. Put into
116159         actioncmd only the specified modules, not the transitive closure.
116161 2005-08-31  Bruno Haible  <bruno@clisp.org>
116163         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116164         Create directories that shall be filled.
116165         (import): Don't look for gl_* macros in configure.ac. Recurse across
116166         all directories containing a gnulib-cache.m4 files, if meaningful.
116168 2005-08-31  Bruno Haible  <bruno@clisp.org>
116170         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116171         (import): Set seen_libtool when we see gl_LIBTOOL.
116173 2005-08-31  Bruno Haible  <bruno@clisp.org>
116175         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116176         declaration macro definitions from generated gnulib.m4.
116178 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116180         * lib/iconvme.h: Add prototype for iconv_alloc.
116182 2005-08-29  Simon Josefsson  <jas@extundo.com>
116184         * lib/iconvme.c: Fix errno.
116186 2005-08-29  Bruno Haible  <bruno@clisp.org>
116188         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116189         that it works when the directory contains spaces.
116191 2005-08-29  Bruno Haible  <bruno@clisp.org>
116193         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116195 2005-08-29  Bruno Haible  <bruno@clisp.org>
116197         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116198         Emit more advice.
116200 2005-08-29  Bruno Haible  <bruno@clisp.org>
116201         and Stepan Kasal  <kasal@ucw.cz>
116203         * check-module: If more parameters are given, check each of them
116204         separately; add more exceptions, as noted by Jim Meyering.
116205         (check_module): New procedure.
116206         (%exempt_header): Now contains all exceptions.
116208 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116210         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116212 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116214         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116216 2005-08-28  Bruno Haible  <bruno@clisp.org>
116218         * m4/gnulib-tool.m4: New file.
116220 2005-08-27  Jim Meyering  <jim@meyering.net>
116222         * modules/unistd-safer (Files): Add pipe-safer.c.
116223         * modules/fcntl-safer (Files): Add creat-safer.c.
116225 2005-08-27  Jim Meyering  <jim@meyering.net>
116227         * m4/stdlib-safer.m4: New file.  From coreutils.
116228         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116229         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116230         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116231         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116232         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116234 2005-08-27  Jim Meyering  <jim@meyering.net>
116236         * lib/fopen-safer.c: Merge minor changes from coreutils.
116237         * lib/dup-safer.c: Likewise.
116238         * lib/fd-safer.c: Likewise.
116240         Merge from coreutils.
116241         * lib/stdio--.h: New file.
116242         * lib/stdlib--.h: New file.
116243         * lib/mkstemp-safer.c: New file.
116245         GNU tar needs these.
116246         * lib/pipe-safer.c: New file.
116247         * lib/creat-safer.c: New file.
116248         * lib/fcntl--.h (creat): Define to creat_safer.
116249         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116250         * lib/unistd--.h (pipe): Define to pipe_safer.
116251         * lib/unistd-safer.h: Declare pipe_safer.
116253 2005-08-26  Simon Josefsson  <jas@extundo.com>
116255         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116256         Haible <bruno@clisp.org>.
116258 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116260         * lib/regex_internal.h: Remove all references to
116261         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116262         or better.
116263         (bitset_not, bitset_merge, bitset_not_merge):
116264         (bitset_mask, re_string_allocate, re_string_construct):
116265         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116266         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116267         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116268         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116269         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116270         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116271         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116272         (re_acquire_state_context):
116273         Remove unnecessary forward decls.
116274         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116275         Put __attribute at function definition,
116276         now that the function decl has been removed.
116277         * lib/regex_internal.c (re_string_peek_byte_case):
116278         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116279         Likewise.
116281 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116283         * m4/regex.m4: Add AC_PREREQ(2.50).
116284         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116286 2005-08-25  Simon Josefsson  <jas@extundo.com>
116288         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116289         __fsetlocking.
116291 2005-08-25  Simon Josefsson  <jas@extundo.com>
116293         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116294         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116295         GLIBC specific code.
116297 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116299         Make regex safe for g++.  This fixes one real bug (an "err"
116300         that should have been "*err").  g++ problem reported by
116301         Sam Steingold.
116302         * lib/regex_internal.h (re_calloc): New macro, consistent with
116303         re_malloc etc.  All callers of calloc changed to use re_calloc.
116304         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116305         not int.  All callers changed.
116306         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116307         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116308         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116309         (find_recover_state): Change "err" to "*err"; this fixes what
116310         appears to be a real bug.
116311         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116312         versus int.
116314 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116316         * modules/regex (Depends-on): Add malloc, since the code
116317         assumes that !malloc(0) means failure.
116319 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116321         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116323         alloca modernization/simplification for regex.
116324         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116325         needs to be at the start of the file, and can be moved into
116326         regex_internal.h and simplified.
116327         * lib/regex_internal.h: Include <alloca.h>.
116328         (__libc_use_alloca) [!defined _LIBC]: New macro.
116329         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116330         now works outside glibc.
116332 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116334         * config/srclist.txt: Add glibc bugs 1241, 1245.
116336 2005-08-25  Jim Meyering  <jim@meyering.net>
116338         * lib/open-safer.c: Include <config.h>.
116339         Otherwise, we'd lose LARGEFILE support in any file using
116340         e.g. "fcntl--.h"
116342 2005-08-25  Bruno Haible  <bruno@clisp.org>
116344         * m4/minmax.m4: Require autoconf 2.52.
116345         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116346         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116347         alternatives of translit over the alphabet.
116348         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116350 2005-08-24  Simon Josefsson  <jas@extundo.com>
116352         * tests/test-getpass.c: New file.
116354 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116356         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116357         for GNU regex features.
116359 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116361         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116362         * lib/regex.h (regerror): Likewise.
116364         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116365         requires this.  (The code never needed it.)
116367         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116368         All uses of recently-renamed identifiers changed to use the new,
116369         POSIX-compliant names.  The code will build and run just fine
116370         without these changes, but it's better to eat our own dog food
116371         and use the standard-conforming names.
116373         * lib/regex.h: Fix a multitude of POSIX name space violations.
116374         These changes have an effect only for programs that define
116375         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116376         do not change anything for programs compiled in the normal way.
116377         Also, there is no effect on the ABI.
116379         (_REGEX_SOURCE): New macro.
116380         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116381         defined and _GNU_SOURCE is not; this fixes a name space violation.
116383         Rename the following macros to obey POSIX requirements.
116384         The old names are still visible as macros if _REGEX_SOURCE is defined.
116385         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116386         RE_BACKSLASH_ESCAPE_IN_LISTS.
116387         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116388         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116389         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116390         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116391         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116392         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116393         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116394         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116395         (REG_INTERVALS): renamed from RE_INTERVALS.
116396         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116397         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116398         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116399         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116400         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116401         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116402         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116403         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116404         RE_UNMATCHED_RIGHT_PAREN_ORD.
116405         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116406         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116407         (REG_DEBUG): renamed from RE_DEBUG.
116408         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116409         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116410         unusual, since we can't clash with the POSIX REG_ICASE.
116411         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116412         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116413         (REG_NO_SUB): renamed from RE_NO_SUB.
116414         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116415         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116416         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116417         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116418         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116419         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116420         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116421         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116422         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116423         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116424         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116425         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116426         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116427         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116428         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116429         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116430         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116431         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116432         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116433         (REG_FIXED): Renamed from REGS_FIXED.
116434         (REG_NREGS): Renamed from RE_NREGS.
116436         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116437         of other REG_* macros, since POSIX says the user is allowed to
116438         #undef these macros selectively.
116440         (reg_errcode_t): Update comment stating what other tables need
116441         to be consistent.
116443         Rename the following enum values to obey POSIX requirements.
116444         The old names are still visible as macros.
116445         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116446         is not defined, since GNU is supposed to be a superset of POSIX as
116447         much as possible, and since we want reg_errcode_t to be a signed
116448         type for implementation consistency.
116449         (_REG_NOERROR): Renamed from REG_NOERROR.
116450         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116451         (_REG_BADPAT): Renamed from REG_BADPAT.
116452         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116453         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116454         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116455         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116456         (_REG_EBRACK): Renamed from REG_EBRACK.
116457         (_REG_EPAREN): Renamed from REG_EPAREN.
116458         (_REG_EBRACE): Renamed from REG_EBRACE.
116459         (_REG_BADBR): Renamed from REG_BADBR.
116460         (_REG_ERANGE): Renamed from REG_ERANGE.
116461         (_REG_ESPACE): Renamed from REG_ESPACE.
116462         (_REG_BADRPT): Renamed from REG_BADRPT.
116463         (_REG_EEND): Renamed from REG_EEND.
116464         (_REG_ESIZE): Renamed from REG_ESIZE.
116465         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116466         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116467         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116468         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116469         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116471         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116472         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116473         changed.  But support the old name if the new one is not defined
116474         and if _REGEX_SOURCE.
116476         Change the following member names in struct re_pattern_buffer.
116477         The old names are still supported if !_REGEX_SOURCE.
116478         The new names are always supported, regardless of _REGEX_SOURCE.
116479         (re_buffer): Renamed from buffer.
116480         (re_allocated): Renamed from allocated.
116481         (re_used): Renamed from used.
116482         (re_syntax): Renamed from syntax.
116483         (re_fastmap): Renamed from fastmap.
116484         (re_translate): Renamed from translate.
116485         (re_can_be_null): Renamed from can_be_null.
116486         (re_regs_allocated): Renamed from regs_allocated.
116487         (re_fastmap_accurate): Renamed from fastmap_accurate.
116488         (re_no_sub): Renamed from no_sub.
116489         (re_not_bol): Renamed from not_bol.
116490         (re_not_eol): Renamed from not_eol.
116491         (re_newline_anchor): Renamed from newline_anchor.
116493         Change the following member names in struct re_registers.
116494         The old names are still supported if !_REGEX_SOURCE.
116495         The new names are always supported, regardless of _REGEX_SOURCE.
116496         (rm_num_regs): Renamed from num_regs.
116497         (rm_start): Renamed from start.
116498         (rm_end): Renamed from end.
116500         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116501         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116502         Prepend __ to parameter names.
116504         Undo yesterday's changes.
116506 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116508         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116509         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116510         lib/regex.c.
116512 2005-08-24  Jim Meyering  <jim@meyering.net>
116514         Sync from coreutils.
116515         * m4/fcntl-safer.m4: New file.
116517         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116518         and object files for this module.
116520 2005-08-24  Jim Meyering  <jim@meyering.net>
116522         Sync from coreutils.
116523         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116525 2005-08-24  Jim Meyering  <jim@meyering.net>
116527         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116528         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116530 2005-08-24  Jim Meyering  <jim@meyering.net>
116532         * modules/fcntl-safer: New module.
116533         * modules/fts (Depends-on): Add fcntl-safer.
116534         * MODULES.html.sh (File descriptor based Input/Output):
116535         Add fcntl-safer.
116537 2005-08-24  Bruno Haible  <bruno@clisp.org>
116539         Support for unit test modules.
116540         * modules/README: Mention tests modules.
116541         * modules/TEMPLATE-TESTS: New file.
116542         * gnulib-tool: New options --extract-tests-module, --with-tests and
116543         --tests-base (unused for the moment).
116544         (testsbase, inctests): New variables.
116545         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116546         (func_verify_module): Exclude TEMPLATE-TESTS.
116547         (func_verify_nontests_module, func_verify_tests_module): New functions.
116548         (func_get_dependencies): Add implicit dependency for tests modules.
116549         (func_get_tests_module): New function.
116550         (func_modules_transitive_closure): When --with-tests was specified,
116551         include the unit tests as well, unless explicitly avoided.
116552         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116553         (func_emit_tests_Makefile_am): New function.
116554         (func_create_testdir): When --with-tests was specified, emit a
116555         tests/ directory.
116556         * MODULES.html.sh (Future developments): Update.
116558 2005-08-24  Bruno Haible  <bruno@clisp.org>
116560         * modules/tls-tests: New file.
116561         * tests/test-tls.c: New file, from GNU gettext.
116563 2005-08-24  Bruno Haible  <bruno@clisp.org>
116565         * modules/lock-tests: New file.
116566         * tests/test-lock.c: New file, from GNU gettext.
116568 2005-08-24  Bruno Haible  <bruno@clisp.org>
116570         * lib/lock.h: Add multiple inclusion guard.
116571         * lib/tls.h: Add multiple inclusion guard.
116573 2005-08-24  Bruno Haible  <bruno@clisp.org>
116575         * gnulib-tool: Add support for the --aux-dir option to
116576         --create-testdir, --create-megatestdir, --test, --megatest.
116577         (func_create_testdir, func_create_megatestdir): Optionally emit a
116578         AC_CONFIG_AUX_DIR directive.
116579         (create-testdir, create-megatestdir, test, megatest): Provide a
116580         default value for $auxdir.
116582 2005-08-24  Bruno Haible  <bruno@clisp.org>
116584         * gnulib-tool (import): Use compound statement instead of subshell
116585         where possible.
116587 2005-08-24  Bruno Haible  <bruno@clisp.org>
116589         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116591 2005-08-24  Bruno Haible  <bruno@clisp.org>
116593         * gnulib-tool (func_version): Update.
116595 2005-08-24  Bruno Haible  <bruno@clisp.org>
116597         * gnulib-tool (func_import, func_create_testdir,
116598         func_create_megatestdir): Quote all autoconf macro arguments.
116600 2005-08-24  Bruno Haible  <bruno@clisp.org>
116602         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116603         option --force, because --force causes the aclocal.m4 of each
116604         subdirectory to be newer than the corresponding config.h.in.
116606 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116608         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116609         All contents moved to gl_REGEX.
116610         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116611         assume that it does.
116613 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116615         * lib/regex.h (REG_NOSYS)
116616         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116617         Define, since POSIX requires it as of 2001.
116618         (_REG_ENOSYS)
116619         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116620         New private symbol, used to keep the enum signed in all cases.
116621         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116622         Youngman in
116623         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116625         * lib/regex_internal.c (re_string_skip_chars, register_state):
116626         (calc_state_hash):
116627         Remove forward decls; no longer needed now that we use prototypes.
116628         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116629         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116630         (clean_state_log_if_needed): Likewise.
116632 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116634         * config/srclist.txt: Add glibc bugs 1231-1233.
116636 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116638         Fix problems reported by Sam Steingold in
116639         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116640         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116641         assumed that reg_errcode_t is a signed type, which is not
116642         necessarily true if _XOPEN_SOURCE is not defined.
116643         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116644         since some compilers warn about it otherwise.
116646 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116648         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116649         (init_word_char, create_initial_state, duplicate_node_closure):
116650         (fetch_token, peek_token_bracket, build_range_exp):
116651         (build_collating_symbol): Remove forward decls; no longer needed
116652         now that we use prototypes.
116654         * lib/regcomp.c:
116655         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116656         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116657         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116658         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116659         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116660         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116661         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116662         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116663         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116664         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116665         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116666         (build_charclass, build_charclass_op, fetch_number, create_tree):
116667         (create_token_tree, mark_opt_subexp, duplicate_tree):
116668         Use prototypes rather than old-style definitions.
116670         * lib/regex_internal.c:
116671         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116672         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116673         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116674         (re_string_reconstruct, re_string_peek_byte_case):
116675         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116676         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116677         (re_node_set_init_copy, re_node_set_add_intersect):
116678         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116679         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116680         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116681         (re_acquire_state, re_acquire_state_context, register_state):
116682         (create_ci_newstate, create_cd_newstate, free_state):
116683         Likewise.
116684         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116685         re_search_2):
116686         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116687         (re_search_internal, prune_impossible_nodes):
116688         (acquire_init_state_context, check_matching, static):
116689         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116690         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116691         (update_regs, sift_states_backward, build_sifted_states):
116692         (clean_state_log_if_needed, merge_state_array):
116693         (update_cur_sifted_state, add_epsilon_src_nodes):
116694         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116695         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116696         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116697         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116698         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116699         (check_arrival, check_arrival_add_next_nodes):
116700         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116701         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116702         (check_node_accept_bytes, check_node_accept, extend_buffers):
116703         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116704         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116705         (sift_ctx_init):
116706         Likewise.
116708         * lib/regex_internal.h:
116709         (re_string_allocate, re_string_construct, re_string_reconstruct):
116710         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116711         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116712         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116713         (re_string_context_at, re_string_peek_byte_case):
116714         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116715         is defined, since we now use prototypes always.
116717         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116718         C89 or better.  All uses removed.
116720 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116722         * config/srclist.txt: Add glibc bugs 1220-1227.
116724 2005-08-20  Jim Meyering  <jim@meyering.net>
116726         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
116727         of unused local, dfa.
116729 2005-08-20  Bruno Haible  <bruno@clisp.org>
116731         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
116733 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116735         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
116736         (re_node_set_insert_last, re_dfa_add_node):
116737         Rename local variables to avoid GCC shadowing warnings.
116739 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116741         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
116742         [defined lint]: Suppress bogus uninitialized-variable warnings.
116744         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
116745         and let the caller return REG_ESPACE if out of space.  This
116746         removes an uninitialied-variable warning with GCC 4.0.1, and also
116747         avoids taking the address of a local variable.  All callers
116748         changed.
116750 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116752         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
116753         $LIBCSRC/posix/regexec.c.
116754         Add glibc bug 1217 for regcomp.c.
116756 2005-08-19  Jim Meyering  <jim@meyering.net>
116758         * lib/regexec.c (proceed_next_node): Redo local variables to
116759         avoid GCC shadowing warnings.
116761 2005-08-18  Bruno Haible  <bruno@clisp.org>
116763         * lib/strstr.c (strstr): Fix return value in multibyte case.
116764         * lib/strcasestr.c (strcasestr): Likewise.
116766 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116768         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
116770 2005-08-17  Jim Meyering  <jim@meyering.net>
116772         Make the %s format (seconds since the epoch) work for a negative
116773         number and when used with a zero-padded field width, e.g. %015s.
116775         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
116776         label so that it precedes the code to set `digits'.  Otherwise,
116777         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
116778         print `00-22'.  Now, it prints `-0022', as it should.
116780 2005-08-17  Bruno Haible  <bruno@clisp.org>
116782         * modules/strstr (Files): Add m4/mbrtowc.m4.
116783         (Depends-on): Add mbuiter.
116785 2005-08-17  Bruno Haible  <bruno@clisp.org>
116787         * modules/strcasestr: New file.
116788         * MODULES.html.sh (String handling, based on ANSI C 89): Add
116789         strcasestr.
116791 2005-08-17  Bruno Haible  <bruno@clisp.org>
116793         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
116795 2005-08-17  Bruno Haible  <bruno@clisp.org>
116797         * modules/mbuiter: New file.
116798         * MODULES.html.sh (Extended multibyte and wide character utilities):
116799         Add mbuiter.
116801 2005-08-17  Bruno Haible  <bruno@clisp.org>
116803         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
116804         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
116806 2005-08-17  Bruno Haible  <bruno@clisp.org>
116808         * m4/strcasestr.m4: New file.
116810 2005-08-17  Bruno Haible  <bruno@clisp.org>
116812         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
116813         * lib/strstr.c: Completely rewritten, with multibyte locale support.
116815 2005-08-17  Bruno Haible  <bruno@clisp.org>
116817         * lib/strcasestr.h: New file.
116818         * lib/strcasestr.c: New file.
116820 2005-08-17  Bruno Haible  <bruno@clisp.org>
116822         * lib/strcasecmp.c: Use mbuiter.h.
116824 2005-08-17  Bruno Haible  <bruno@clisp.org>
116826         * lib/mbuiter.h: New file.
116828 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
116830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
116831         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
116832         and gl_GETOPT are both invoked via different paths (as happens
116833         with GNU tar CVS because it uses both argp and getopt), the former
116834         wins.
116836 2005-08-16  Bruno Haible  <bruno@clisp.org>
116838         * modules/tls: New file.
116839         * MODULES.html.sh (Multithreading): Add tls.
116841 2005-08-16  Bruno Haible  <bruno@clisp.org>
116843         * modules/strnlen1: New file.
116844         * MODULES.html.sh (String handling): Add strnlen1.
116846 2005-08-16  Bruno Haible  <bruno@clisp.org>
116848         * modules/strcase (Files): Add m4/mbrtowc.m4.
116849         (Depends-on): Add strnlen1, mbchar.
116851 2005-08-16  Bruno Haible  <bruno@clisp.org>
116853         * modules/mbiter: New file.
116854         * MODULES.html.sh (Extended multibyte and wide character utilities):
116855         Add mbiter.
116857 2005-08-16  Bruno Haible  <bruno@clisp.org>
116859         * modules/mbfile: New file.
116860         * MODULES.html.sh (Extended multibyte and wide character utilities):
116861         Add mbfile.
116863 2005-08-16  Bruno Haible  <bruno@clisp.org>
116865         * modules/mbchar: New file.
116866         * MODULES.html.sh (Extended multibyte and wide character utilities):
116867         New section.
116869 2005-08-16  Bruno Haible  <bruno@clisp.org>
116871         * m4/tls.m4: New file, from GNU gettext.
116873 2005-08-16  Bruno Haible  <bruno@clisp.org>
116875         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
116876         always.
116877         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
116879 2005-08-16  Bruno Haible  <bruno@clisp.org>
116881         * m4/mbiter.m4: New file.
116883 2005-08-16  Bruno Haible  <bruno@clisp.org>
116885         * m4/mbfile.m4: New file.
116887 2005-08-16  Bruno Haible  <bruno@clisp.org>
116889         * m4/mbchar.m4: New file.
116891 2005-08-16  Bruno Haible  <bruno@clisp.org>
116893         * lib/tls.h: New file, from GNU gettext.
116894         * lib/tls.c: New file, from GNU gettext.
116896 2005-08-16  Bruno Haible  <bruno@clisp.org>
116898         * lib/strnlen1.h: New file.
116899         * lib/strnlen1.c: New file.
116901 2005-08-16  Bruno Haible  <bruno@clisp.org>
116903         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
116904         (mbi_init): Update.
116905         (mbi_avail, mbi_advance): Let the iteration end before the terminating
116906         NUL byte, not after it.
116908 2005-08-16  Bruno Haible  <bruno@clisp.org>
116910         * lib/strcase.h (strcasecmp): Add note in comments.
116911         * lib/strncasecmp.c: Use code from strcasecmp.c.
116912         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
116913         (strcasecmp): Work correctly in multibyte locales.
116915 2005-08-16  Bruno Haible  <bruno@clisp.org>
116917         * lib/mbiter.h: New file.
116919 2005-08-16  Bruno Haible  <bruno@clisp.org>
116921         * lib/mbfile.h: New file.
116923 2005-08-16  Bruno Haible  <bruno@clisp.org>
116925         * lib/mbchar.h: New file.
116926         * lib/mbchar.c: New file.
116928 2005-08-16  Bruno Haible  <bruno@clisp.org>
116930         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
116931         the valid ones. Makes the comparison operations transitive:
116932         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
116933         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
116935 2005-08-15  Simon Josefsson  <jas@extundo.com>
116937         * modules/ssize_t (License): Change to 'unlimited'.
116939         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
116941 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
116943         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
116944         Add comments for each pending glibc patch.
116946 2005-08-15  Bruno Haible  <bruno@clisp.org>
116948         * lib/regex.h (__restrict_arr): Don't define to __restrict if
116949         __cplusplus is defined.
116951 2005-08-14  Jim Meyering  <jim@meyering.net>
116953         Sync from coreutils.
116955         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
116956         Use the hash-table-based cycle-detection code not just when
116957         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
116958         Reported by James Youngman in
116959         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
116960         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
116961         FTS_TIGHT_CYCLE_CHECK.
116962         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
116963         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
116964         once again.
116965         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
116966         * lib/fts.c (fd_safer): Remove decl.
116967         Include fcntl--.h rather than unistd-safer.h
116968         (fts_safe_changedir): Don't call fd_safer; no longer needed
116969         now that we include fcntl--.h.
116971 2005-08-12  Simon Josefsson  <jas@extundo.com>
116973         * modules/getndelim2: Use ssize_t module.
116974         * modules/getnline: Likewise.
116975         * modules/safe-read: Likewise.
116976         * modules/xreadlink: Likewise.
116978         * modules/ssize_t: New file.
116980 2005-08-12  Simon Josefsson  <jas@extundo.com>
116982         * m4/readline.m4: Look for termcap, curses or ncurses if required.
116984 2005-08-12  Simon Josefsson  <jas@extundo.com>
116986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116987         ssize_t.
116989 2005-08-12  Simon Josefsson  <jas@extundo.com>
116991         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
116992         readline, getdelim and check_version.
116993         (Support for systems lacking ISO C 99: Sizes of integer types):
116994         Add size_max.
116996 2005-08-12  Bruno Haible  <bruno@clisp.org>
116998         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117000 2005-08-11  Simon Josefsson  <jas@extundo.com>
117002         * modules/readline: New file.
117004         * modules/strnlen (Files): Add strnlen.h.
117006 2005-08-11  Simon Josefsson  <jas@extundo.com>
117008         * m4/readline.m4: New file.
117010 2005-08-11  Simon Josefsson  <jas@extundo.com>
117012         * lib/readline.h, readline.c: New file.
117014 2005-08-11  Simon Josefsson  <jas@extundo.com>
117016         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117017         gl_AVOID.
117019 2005-08-11  Bruno Haible  <bruno@clisp.org>
117021         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117023 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117025         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117027 2005-08-10  Simon Josefsson  <jas@extundo.com>
117029         * tests/test-iconvme.c: New file.
117031 2005-08-10  Simon Josefsson  <jas@extundo.com>
117033         * m4/strnlen.m4: New file.
117035         * m4/strndup.m4: Don't check for strnlen declaration, done in
117036         strnlen.m4.
117038 2005-08-10  Simon Josefsson  <jas@extundo.com>
117040         * lib/strndup.c: Use strnlen.h.
117042         * lib/strnlen.h: New file.
117044 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117046         * README: Typos.
117048 2005-08-02  Simon Josefsson  <jas@extundo.com>
117050         * modules/readline: New file.
117052 2005-08-02  Simon Josefsson  <jas@extundo.com>
117054         * modules/getdelim: New file.
117056         * modules/getline: Rewrite, don't use getndelim2.
117058 2005-08-02  Simon Josefsson  <jas@extundo.com>
117060         * m4/getline.m4: Separate out getdelim stuff into separate module.
117062         * m4/getdelim.m4: New file.
117064 2005-08-02  Simon Josefsson  <jas@extundo.com>
117066         * lib/getline.h, getline.c: Rewrite.
117068         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117070 2005-07-31  Bruno Haible  <bruno@clisp.org>
117072         * lib/lock.h (gl_lock_initializer): New macro.
117073         (gl_lock_define_initialized): Use it.
117074         (gl_rwlock_initializer): New macro.
117075         (gl_rwlock_define_initialized): Use it.
117076         (gl_recursive_lock_initializer): New macro.
117077         (gl_recursive_lock_define_initialized): Use it.
117079 2005-07-30  Karl Berry  <karl@gnu.org>
117081         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117082         Report from Ben Pfaff, regarding getopt.
117084 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117086         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117087         normal way.
117088         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117089         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117090         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117091         (gl_GETOPT): Use the new macros.  Most of the implementation
117092         is moved to the new macros.  This is for programs like Emacs
117093         that don't want all the functionality of gl_GETOPT.
117095 2005-07-26  Bruno Haible  <bruno@clisp.org>
117097         * m4/lock.m4: Update from GNU gettext.
117099 2005-07-26  Bruno Haible  <bruno@clisp.org>
117101         * lib/lock.h: Update from GNU gettext.
117102         * lib/lock.c: Update from GNU gettext.
117104 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117106         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117107         obsolescent AC_TRY_RUN.  Include the default includes files, for
117108         'exit'.
117110 2005-07-24  Bruno Haible  <bruno@clisp.org>
117112         * modules/visibility: New file.
117113         * MODULES.html.sh (Misc): Add visibility.
117115 2005-07-24  Bruno Haible  <bruno@clisp.org>
117117         * m4/visibility.m4: New file.
117119 2005-07-24  Bruno Haible  <bruno@clisp.org>
117121         * doc/visibility.texi: New file.
117123 2005-07-22  Bruno Haible  <bruno@clisp.org>
117125         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117126         $(ALLOCA_H), redundant through BUILT_SOURCES.
117127         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117128         redundant through BUILT_SOURCES.
117129         * modules/byteswap (Makefile.am): Remove explicit dependency on
117130         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117131         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117132         $(FNMATCH_H), redundant through BUILT_SOURCES.
117133         * modules/getopt (Makefile.am): Remove explicit dependency on
117134         $(GETOPT_H), redundant through BUILT_SOURCES.
117135         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117136         redundant through BUILT_SOURCES.
117137         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117138         redundant through BUILT_SOURCES.
117139         * modules/stdbool (Makefile.am): Remove explicit dependency on
117140         $(STDBOOL_H), redundant through BUILT_SOURCES.
117141         * modules/stdint (Makefile.am): Remove explicit dependency on
117142         $(STDINT_H), redundant through BUILT_SOURCES.
117143         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117144         Remove explicit dependency on $(SYSEXITS_H).
117145         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117147 2005-07-18  Simon Josefsson  <jas@extundo.com>
117149         * lib/check-version.c (check_version): Accept identical versions too.
117151 2005-07-18  Bruno Haible  <bruno@clisp.org>
117153         * modules/lock: New file.
117154         * MODULES.html.sh (Multithreading): New section.
117156 2005-07-18  Bruno Haible  <bruno@clisp.org>
117158         * m4/lock.m4: New file, from GNU gettext.
117160 2005-07-18  Bruno Haible  <bruno@clisp.org>
117162         * lib/lock.h: New file, from GNU gettext.
117163         * lib/lock.c: New file, from GNU gettext.
117165 2005-07-18  Bruno Haible  <bruno@clisp.org>
117167         * lib/lock.h (gl_once_t): New type.
117168         (gl_once_define, gl_once): New macros.
117169         * lib/lock.c (fresh_once): New variable.
117170         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117171         functions.
117173 2005-07-16  Simon Josefsson  <jas@extundo.com>
117175         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117176         workaround, suggested by Bruno.
117178 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117180         * modules/xalloc (Depends-on): Add xalloc-die.
117181         * modules/xvasprintf (Depends-on): Add xalloc-die.
117183 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117185         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117186         with a minor change.
117188 2005-07-15  Bruno Haible  <bruno@clisp.org>
117190         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117191         When using lib/poll.c, define poll as rpl_poll.
117193 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117195         * modules/argp (Depends-on): Remove unlocked-io.
117197 2005-07-14  Derek Price  <derek@ximbiot.com>
117199         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117200         for glob symlink bug.
117202 2005-07-14  Bruno Haible  <bruno@clisp.org>
117204         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117205         Instead, test for *_unlocked function declarations directly.
117207 2005-07-11  Simon Josefsson  <jas@extundo.com>
117209         * modules/size_max: New file.
117211         * modules/xsize: Depend on size_max module for size_max.m4.
117213 2005-07-11  Simon Josefsson  <jas@extundo.com>
117215         * lib/size_max.h: New file.
117217 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117219         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117220         copyright symbol and the year.
117221         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117222         (version_etc_va): Use parameterized copyright notice.
117223         Reword to conform to the current GNU coding standards.
117225 2005-07-11  Karl Berry  <karl@gnu.org>
117227         * doc/gnulib.texi (Quoting): new node.
117228         (Initial import): more info, from Patrice.
117230 2005-07-11  Bruno Haible  <bruno@clisp.org>
117232         * gnulib-tool (func_usage): Document option --avoid.
117233         (Command line options): Handle --avoid.
117234         (func_acceptable): New function.
117235         (func_modules_transitive_closure): Use it.
117237 2005-07-11  Bruno Haible  <bruno@clisp.org>
117239         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117240         Reported by Jim Meyering.
117242 2005-07-10  Bruno Haible  <bruno@clisp.org>
117244         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117245         Needed when size_t is smaller than 'unsigned int'.
117246         Reported by Paul Eggert.
117248 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117250         * modules/argp (Depends-on): Add unlocked-io
117252 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117254         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117255         block of defines.
117257 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117259         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117260         fix now.
117262 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117263         and Paul Eggert  <eggert@cs.ucla.edu>
117265         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117266         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117268 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117270         * modules/regex (Files): Add lib/regex_internal.c,
117271         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117272         (Depends-on): Add extensions.
117273         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117275 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117277         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117278         pathconf.
117279         * m4/same.m4 (gl_SAME): Likewise.
117280         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117282         * m4/regex.m4: Adjust to new libc regex implementation.
117283         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117284         all the .c and .h parts of (the new) regex.
117285         Quote the m4 stuff better.
117286         Check for RE_ICASE bug of old gnulib.
117287         Check for REG_STARTEND of recent libc.
117288         Rename local variables from jm_* to gl_*.
117289         Quote operand of "test -f".
117290         Say "recent enough" version of libc, not "version 2".
117291         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117292         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117293         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117294         Remove check for btowc, isascii.
117295         Require AM_LANGINFO_CODESET.
117297 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117299         * lib/regex.c, regex.h: Sync from libc.
117300         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117301         * lib/regexec.c:
117302         New files, synced from libc, except that regex_internal.h
117303         currently has a small porting fix.
117305 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117307         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117308         regex_internal.c, regexec.c.
117309         Add regex_internal.h too, but as a comment, since the libc version
117310         is currently broken in gnulib mode.
117312 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117314         Support programs like Emacs that use gnulib but not gettext.
117315         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117316         * modules/gettext-h: New file.
117317         * modules/gettext (Files): Remove lib/gettext.h.
117318         (Depends-on): Add gettext-h.
117319         (Makefile.am): Remove lib_SOURCES.
117320         * modules/argmatch, modules/c-stack, modules/closeout:
117321         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117322         * modules/execute, modules/file-type, modules/getaddrinfo:
117323         * modules/getopt, modules/human, modules/javacomp:
117324         * modules/javaexec, modules/mkdir-p, modules/obstack:
117325         * modules/openat, modules/pagealign_alloc, modules/pipe:
117326         * modules/quotearg, modules/regex, modules/rpmatch:
117327         * modules/unicodeio, modules/userspec, modules/version-etc:
117328         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117329         * modules/xsetenv:
117330         Depend on gettext-h, not gettext.
117332 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117334         * gnulib-tool (func_import): Add support for 'public domain' license.
117335         * modules/alloca, modules/atexit, modules/memmove:
117336         Now public domain, not GPL.
117337         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117338         * modules/realloc, modules/strerror, modules/strtod:
117339         Now LGPL, not GPL.
117341 2005-07-05  Bruno Haible  <bruno@clisp.org>
117343         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117344         autoconf CVS. Needed for mingw.
117346 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117348         Remove the dependency of the strftime module on the tzset module.
117349         * modules/strftime (Depends-on): Remove dependency on tzset.
117351 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117353         Remove the dependency of the strftime module on the tzset module.
117354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117355         gl_FUNC_TZSET_CLOBBER.
117357 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117359         Remove the dependency of the strftime module on the tzset module.
117360         * lib/strftime.c (my_strftime)
117361         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117362         Copy the input structure, to work around some of the bug with
117363         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117364         Solaris releases, you should also use the tzset module, but we won't
117365         require it as a dependency any more since we don't want LGPLed code
117366         to depend on GPLed code.
117368 2005-07-02  Jim Meyering  <jim@meyering.net>
117370         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117371         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117372         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117373         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117375 2005-07-02  Jim Meyering  <jim@meyering.net>
117377         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117379 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117381         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117382         declares only 'struct timespec;' (!).
117384 2005-07-01  Jim Meyering  <jim@meyering.net>
117386         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117387         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117388         * lib/save-cwd.c, tempname.c:
117389         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117390         and don't include <sys/file.h>).
117392 2005-06-29  Jim Meyering  <jim@meyering.net>
117394         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117395         type name.  Use the variable name instead.
117396         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117397         Likewise.
117399 2005-06-28  Simon Josefsson  <jas@extundo.com>
117401         * modules/check-version (Files): Add check-version.m4.
117403 2005-06-28  Simon Josefsson  <jas@extundo.com>
117405         * m4/check-version.m4: New file, suggested by Jim Meyering
117406         <jim@meyering.net>.
117408 2005-06-28  Simon Josefsson  <jas@extundo.com>
117410         * lib/check-version.h, lib/check-version.c: New files.
117412 2005-06-28  Simon Josefsson  <jas@extundo.com>
117414         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117415         collision with global variable.  Better indentation.  Don't
117416         increment buffer pointer beyond buffer end.  Based on comments
117417         from Paul Eggert <eggert@cs.ucla.edu>.
117419         * lib/base64.h: Indent.
117421 2005-06-28  Simon Josefsson  <jas@extundo.com>
117423         * doc/gnulib.texi (Library version handling): New section.
117425 2005-06-28  Jim Meyering  <jim@meyering.net>
117427         * check-module (find_included_lib_files): Hard-code another
117428         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117429         but modules/fts-lgpl (correctly) does not list those files.
117431         * modules/canonicalize (Files): Add lib/pathmax.h.
117433 2005-06-25  Simon Josefsson  <jas@extundo.com>
117435         * modules/check-version: New file.
117437 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117439         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117440         initializer of struct addrinfo, as an indication that we don't
117441         care how many members the structure has.
117443 2005-06-24  Derek Price  <derek@ximbiot.com>
117444         and Bruno Haible  <bruno@clisp.org>
117446         Remove stat module & update lstat.
117447         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117448         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117449         * m4/stat.m4: Remove this file.
117451 2005-06-24  Derek Price  <derek@ximbiot.com>
117452         and Bruno Haible  <bruno@clisp.org>
117454         Remove stat module & update lstat.
117455         * lib/stat.c: Remove this file...
117456         (slash_aware_lstat): ...moving this content and its support...
117457         * lib/lstat.c (rpl_lstat): ...into here.
117458         * lib/lstat.h: New file.
117460 2005-06-24  Derek Price  <derek@ximbiot.com>
117461         and Bruno Haible  <bruno@clisp.org>
117463         Remove stat module & update lstat.
117464         * config/srclist.txt (libc sources): Remove stat.
117466 2005-06-24  Derek Price  <derek@ximbiot.com>
117467         and Bruno Haible  <bruno@clisp.org>
117469         Remove stat module & update lstat.
117470         * MODULES.html.sh (stat): Remove.
117471         * MODULES.html: Regenerated.
117472         * modules/lstat (Description): Correct function name.
117473         (Files): Add "lstat.h".
117474         (Depends-on): Remove stat, add xalloc, stat-macros.
117475         * modules/stat: Remove this file.
117476         (Include): Add "lstat.h", remove <sys/stat.h>.
117478 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117480         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117481         (ranged_convert): Don't save conversion in a temporary struct.
117482         This causes a warning with GCC 4.0.0, and anyway in the typical
117483         case it's not worth the extra 100 bytes or so of code.
117484         (ranged_convert, __mktime_internal): When calling a function via a
117485         pointer P, use P () rather than (*P) (), as we now assume C89 or
117486         better.
117488 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117490         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117491         "who -r" failed to give output.  Problem reported by Tim Waugh.
117493         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117494         (xcalloc): Use it to avoid needless tests.
117495         Problem reported by Jim Meyering.
117497 2005-06-20  Derek Price  <derek@ximbiot.com>
117499         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117500         unnecessary for Autoconfs > 2.59c.
117502 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117504         * lib/argp.h (__option_is_short): Check upper limit of
117505         __key. Isprint() requires its argument to have the value
117506         of an unsigned char or EOF.
117508 2005-06-16  Jim Meyering  <jim@meyering.net>
117510         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117511         when either N or S is zero.
117513 2005-06-16  Derek Price  <derek@ximbiot.com>
117515         * m4/bison.m4: Declare YACC & YFLAGS precious.
117517 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117519         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117520         multibyte string or pattern, fall back on unibyte matching.
117521         Problem reported by James Youngman.
117523 2005-06-08  Bruno Haible  <bruno@clisp.org>
117525         * modules/csharpcomp: New file.
117526         * MODULES.html.sh (C#): Add csharpcomp.
117528 2005-06-08  Bruno Haible  <bruno@clisp.org>
117530         * m4/csharpcomp.m4: New file, from GNU gettext.
117532 2005-06-08  Bruno Haible  <bruno@clisp.org>
117534         * lib/csharpcomp.h: New file, from GNU gettext.
117535         * lib/csharpcomp.c: New file, from GNU gettext.
117536         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117538 2005-06-08  Bruno Haible  <bruno@clisp.org>
117540         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117541         warning on mingw.
117543 2005-06-07  Derek Price  <derek@ximbiot.com>
117545         Sync from CVS.
117546         * lib/glob_.h: Indent nested #ifdef.
117548 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117550         Sync from coreutils.
117551         Use "file name" when talking about file names, instead of "filename"
117552         or "path", as per the GNU coding standards.
117553         * lib/mkdir-p.c: Renamed from makepath.c.
117554         (make_dir_parents): Renamed from make_path.  All callers changed.
117555         * lib/mkdir-p.h: Likewise.  All includers changed.
117556         * lib/filenamecat.c: Renamed from path-concat.c.
117557         (file_name_concat): Renamed from path_concat.  All callers changed.
117558         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117559         * lib/filenamecat.h: Likewise.  All includers changed.
117560         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117561         in comments or local variable names.
117562         * lib/basename.c: Likewise.
117563         * lib/canonicalize.c, canonicalize.h: Likewise.
117564         * lib/dirname.c, dirname.h: Likewise.
117565         * lib/euidaccess.c: Likewise.
117566         * lib/exclude.c: Likewise
117567         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117568         * lib/fsusage.c, fsuage.h: Likewise.
117569         * lib/fts.c, fts_.h: Likewise.
117570         * lib/getcwd.c: Likewise.
117571         * lib/getloadavg.c: Likewise.
117572         * lib/mkstemp.c: Likewise.
117573         * lib/mountlist.c, mountlist.h: Likewise.
117574         * lib/openat.c, openat.h: Likewise.
117575         * lib/readlink-stub.c: Likewise.
117576         * lib/readutmp.c, readutmp.h: Likewise.
117577         * lib/rename.c: Likewise.
117578         * lib/rmdir.c: Likewise.
117579         * lib/same.c: Likewise.
117580         * lib/savedir.c: Likewise.
117581         * lib/stripslash.c: Likewise.
117582         * lib/tempname.c: Likewise.
117583         * lib/xreadlink.c: Likewise.
117584         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117585         All uses changed.
117586         * lib/exclude.h: Likewise.
117588         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117589         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117590         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117591         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117592         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117593         files have been getting away with it for years (MORE/BSD 4.3
117594         is extinct now).
117595         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117596         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117598         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117599         Define to 256, not 255, as per modern POSIX.
117601 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117603         Sync from coreutils.
117604         Use "file name" when talking about file names, instead of "filename"
117605         or "path", as per the GNU coding standards.
117606         * MODULES.html.sh: mkdir-p renamed from makepath.
117607         filenamecat renamed from path-concat.
117608         * modules/filenamecat: Renamed from modules/path-concat.
117609         (Files): filenamecat.h and filenamecat.c renamed from
117610         path-concat.h and path-concat.c.
117611         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117612         (Include): filenamecat.h, not path-concat.h.
117613         * modules/mkdir-p: Renamed from modules/makepath.
117614         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117615         makepath.c.
117616         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117617         (Include): mkdir-p.h, not makepath.h.
117619 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117621         Sync from coreutils.
117622         * m4/mkdir-p.m4: Renamed from makepath.m4.
117623         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117624         Rename files from makepath.c to mkdir-p.c, and from
117625         makepath.h to mkdir-p.h.
117626         * m4/filenamecat.m4: Renamed from path-concat.m4.
117627         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117628         Rename files from path-concat.c to filenamecat.c,
117629         and from path-concat.h to filenamecat.h.
117630         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117631         "file name" in local variables or comments.
117632         * m4/rename.m4: Likewise.
117634 2005-06-01  Bruno Haible  <bruno@clisp.org>
117636         * modules/csharpexec: New file.
117637         * MODULES.html.sh (C#): New section.
117639 2005-06-01  Bruno Haible  <bruno@clisp.org>
117641         * m4/csharp.m4: New file, from GNU gettext.
117642         * m4/csharpexec.m4: New file, from GNU gettext.
117644 2005-06-01  Bruno Haible  <bruno@clisp.org>
117646         * lib/csharpexec.h: New file, from GNU gettext.
117647         * lib/csharpexec.c: New file, from GNU gettext.
117648         * lib/csharpexec.sh.in: New file, from GNU gettext.
117650 2005-05-31  Derek Price  <derek@ximbiot.com>
117651             Paul Eggert  <eggert@cs.ucla.edu>
117653         Sync from cvs.
117654         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117656 2005-05-31  Derek Price  <derek@ximbiot.com>
117657             Paul Eggert  <eggert@cs.ucla.edu>
117659         Sync from cvs.
117660         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117662 2005-05-29  Derek Price  <derek@ximbiot.com>
117664         * config/srclist.txt (glob_.h, glob.c): Add these files.
117666 2005-05-29  Derek Price  <derek@ximbiot.com>
117668         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117669         * modules/glob: New file.
117670         * modules/getlogin_r: Add link to POSIX spec in description.
117672 2005-05-29  Derek Price  <derek@ximbiot.com>
117673             Paul Eggert  <eggert@cs.ucla.edu>
117675         * m4/glob.m4: New file.
117677 2005-05-29  Derek Price  <derek@ximbiot.com>
117678             Paul Eggert  <eggert@cs.ucla.edu>
117680         * lib/glob_.h, lib/glob.c: New files.
117682 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117684         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117685         * modules/fts-lgpl (Depends-on): Remove gettext.
117687 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117690         and don't require gt_INTTYPES_PRI.
117692 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117694         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117696         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117697         the configuration hassle isn't worth it.
117698         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117699         (LONGEST_MODIFIER, PRIuMAX): Remove.
117701 2005-05-27  Bruno Haible  <bruno@clisp.org>
117703         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117705 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117707         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117708         _POSIX_PTHREAD_SEMANTICS for Solaris.
117710 2005-05-25  Derek Price  <derek@ximbiot.com>
117712         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117714 2005-05-25  Derek Price  <derek@ximbiot.com>
117715             Paul Eggert  <eggert@cs.ucla.edu>
117717         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117718         * lib/getlogin_r.c, getlogin_r.h: New files.
117720 2005-05-25  Bruno Haible  <bruno@clisp.org>
117721             Derek Price  <derek@ximbiot.com>
117723         * lib/getlogin_r.h: Simplify API documentation.
117725 2005-05-23  Derek Price  <derek@ximbiot.com>
117727         * modules/minmax (Files): Add m4/minmax.m4.
117728         (configure.ac): Add gl_MINMAX.
117730 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
117732         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
117733         so that unistd-safer.h (GPL'ed code) need not be included.
117735 2005-05-22  Bruno Haible  <bruno@clisp.org>
117737         * m4/minmax.m4: New file.
117738         Based on a patch by Derek Price <derek@ximbiot.com>.
117740 2005-05-22  Bruno Haible  <bruno@clisp.org>
117742         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
117743         (INT64_MIN): Fix definition.
117744         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
117746         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
117747         NEED_SIGNED_INT_TYPES.
117749         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
117750         HAVE_SYSTEM_INTTYPES.
117752 2005-05-22  Bruno Haible  <bruno@clisp.org>
117754         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
117755         Also include <sys/param.h> if it defines MIN, MAX.
117756         Based on a patch by Derek Price <derek@ximbiot.com>.
117758 2005-05-21  Jim Meyering  <jim@meyering.net>
117760         * modules/fts (Files): Add m4/inttypes-pri.m4.
117761         (Depends-on): Add lstat and remove gettext.  Alphabetize.
117763 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117765         New fts module.
117766         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
117767         (setup_dir, free_dir): New functions.
117768         (enter_dir, leave_dir): Define trivial
117769         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
117770         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
117771         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
117772         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
117773         Move to fts-cycle.c.
117774         (fts_open): Use setup_dir.
117775         (fts_close): Use free_dir.
117776         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
117777         This adds a label and some gotos, but the alternatives were messier.
117778         Check for memory allocation failure when entering a dir.
117779         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
117780         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
117781         (FTS): New member fts_cycle, that is a union that contains the
117782         old active_dir_ht and cycle_state.  All uses changed to mention
117783         fts_cycle.ht and fts_cycle.state.
117784         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
117785         fts.c, with the following changes:
117786         (setup_dir, free_dir): New functions.
117787         (enter_dir): Now returns bool.  Return true if successful, false
117788         if memory exhausted.  All callers changed.
117789         Do not bother partly cleaning up on
117790         memory allocation failure; that is free_dir's job.
117791         However, free ad if hash_insert fails, to avoid memory leak.
117792         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
117793         fts->fts_options to see which union member to use.
117795 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
117798         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
117800 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117802         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
117804 2005-05-20  Jim Meyering  <jim@meyering.net>
117806         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
117807         Now a macro, to pacify GCC.
117809 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117811         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
117812         of -1.
117814 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117816         * lib/chown.c (rpl_chown): Return -1 on failure.
117818 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117820         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
117821         Don't check for stddef.h.
117822         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
117823         don't use its results.
117824         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
117825         since we include them unconditionally.  Don't require
117826         AM_STDBOOL_H, since stdbool is a prerequisite.
117827         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
117828         since we assume C89 or better.
117829         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
117830         as we don't use their results.
117831         Don't check for fchdir, memmove, memset, strrchr, as we use
117832         them unconditionally.
117833         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
117834         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
117836 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117838         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
117839         Include <stddef.h> unconditionally, since we assume C89 now.
117840         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
117841         * lib/fts.c: Include fts_.h first, to check interface.
117842         Do not include intprops.h; no longer needed.
117843         Include cycle-check.h and hash.h, since fts_.h no longer does.
117844         Remove unnecessary casts of closedir to void.
117845         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
117846         decide whether to decrement nlinks.
117847         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
117848         (FTS): Use struct hash_table * instead of Hash_table, so that
117849         we no longer need to include hash.h here.
117851 2005-05-18  Jim Meyering  <jim@meyering.net>
117853         * modules/dirfd (License): Change to LGPL.  Most of the code
117854         is already in the public domain.
117856 2005-05-18  Jim Meyering  <jim@meyering.net>
117858         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
117859         Reported by Yoann Vandoorselaere.
117861 2005-05-17  Jim Meyering  <jim@meyering.net>
117863         * m4/fts.m4: New file, from coreutils.
117865 2005-05-17  Jim Meyering  <jim@meyering.net>
117867         * lib/fts.c, lib/fts_.h: New files, from coreutils.
117869 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117871         Sync from coreutils.
117872         * m4/unlinkdir.m4: New file.
117874 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117876         Sync from coreutils.
117877         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
117878         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
117879         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
117880         White space changes only.
117881         * lib/makepath.c (make_path): Port to hosts where leading "//" is
117882         special.
117883         * lib/yesno.c: Include getline.h, not ctype.h.
117884         (yesno): Don't remove leading white space; POSIX doesn't allow it.
117885         Use getline to remove arbitrary restriction on response length.
117887 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117889         * config/srclist-update: Spell out "Street" in FSF postal
117890         mail address; this is the style the FSF seems to prefer.
117892         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
117893         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
117894         this updates FSF postal mail address.
117896         Sync from coreutils.
117897         * modules/unlinkdir: New file.
117898         * modules/yesno (Depends-on): Add getline.
117899         * MODULES.html.sh (File system functions): Add unlinkdir.
117901 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
117903         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
117904         lib/strsep.h:
117905         Change the initial comment to refer to GPL, not LGPL.
117906         gnulib-tool will change it to LGPL as needed.
117908         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
117909         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
117910         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
117911         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
117912         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
117913         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
117914         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
117915         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
117916         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
117917         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
117918         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
117919         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
117920         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
117921         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
117922         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
117923         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
117924         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
117925         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
117926         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
117927         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
117928         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
117929         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
117930         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
117931         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
117932         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
117933         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
117934         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
117935         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
117936         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
117937         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
117938         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
117939         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
117940         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
117941         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
117942         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
117943         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
117944         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
117945         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
117946         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
117947         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
117948         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
117949         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
117950         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
117951         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
117952         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
117953         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
117954         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
117955         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
117956         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
117957         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
117958         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
117959         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
117960         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
117961         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
117962         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
117963         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
117964         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
117965         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
117966         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
117967         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
117968         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
117969         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
117970         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
117971         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
117972         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
117973         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
117974         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
117975         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
117976         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
117977         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
117978         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
117979         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
117980         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
117981         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
117982         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
117983         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
117984         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
117985         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
117986         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
117987         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
117988         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
117989         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
117990         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
117991         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
117992         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
117993         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
117994         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
117995         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
117996         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
117997         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
117998         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
117999         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118000         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118001         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118002         lib/yesno.c, lib/yesno.h:
118003         Update FSF postal mail address.
118005 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118007         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118008         tests/test-memmem.c, tests/test-stpncpy.c:
118009         Update FSF postal mail address.
118011 2005-05-13  Bruno Haible  <bruno@clisp.org>
118013         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118014         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118015         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118016         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118017         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118018         Add support for 64-bit integers in the MSVC compiler.
118020 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118022         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118024 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118026         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118028 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118030         * doc/getdate.texi (General date syntax): Don't say that date
118031         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118032         Problem reported by Nic Ferrier.
118034 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118036         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118037         specified in ai_socktype. Fix invalid ai_protocol
118038         check. ai_protocol is usually set to 0 or depending on
118039         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118040         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118041         ai_socktype / ai_protocol in the returned addrinfo structure.
118043 2005-05-10  Simon Josefsson  <jas@extundo.com>
118045         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118046         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118048 2005-05-10  Karl Berry  <karl@gnu.org>
118050         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118051         (from http://www.gnu.org/licenses).
118052         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118053         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118054         fdl.texi suffices.
118056 2005-05-10  Karl Berry  <karl@gnu.org>
118058         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118059         (COPYING.DOC): remove.
118061         * config/srclist-update: new FSF address.
118063 2005-05-10  Derek Price  <derek@ximbiot.com>
118065         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118066         possible.
118068 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118069             Bruno Haible  <bruno@clisp.org>
118071         * modules/inet_ntop: New file.
118072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118073         inet_ntop.
118075 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118076             Bruno Haible  <bruno@clisp.org>
118078         * m4/inet_ntop.m4: New file.
118080 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118081             Bruno Haible  <bruno@clisp.org>
118083         * lib/inet_ntop.h: New file.
118084         * lib/inet_ntop.c: New file, from glibc with modifications.
118086 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118088         * modules/time_r (License): Change to LGPL.
118089         * modules/extensions (License): Change to LGPL.  Actually,
118090         the license is more permissive than that, but currently gnulib-tool
118091         doesn't know how to handle more-permissive licenses.
118093         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118094         Problem reported by Dave Love.
118096 2005-05-08  Jim Meyering  <jim@meyering.net>
118098         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118099         blank.
118101 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118103         * modules/argmatch (Depends-on): Add stdbool.
118104         * modules/backupfile (Depends-on): Likewise.
118105         * modules/chdir-long (Depends-on): Likewise.
118106         * modules/closeout (Depends-on): Likewise.
118107         * modules/cycle-check (Depends-on): Likewise.
118108         * modules/dirname (Depends-on): Likewise.
118109         * modules/fnmatch (Depends-on): Likewise.
118110         * modules/fsusage (Depends-on): Likewise.
118111         * modules/fwriteerror (Depends-on): Likewise.
118112         * modules/getcwd (Depends-on): Likewise.
118113         * modules/getloadavg (Depends-on): Likewise.
118114         * modules/hard-locale (Depends-on): Likewise.
118115         * modules/makepath (Depends-on): Likewise.
118116         * modules/mountlist (Depends-on): Likewise.
118117         * modules/nanosleep (Depends-on): Likewise.
118118         * modules/posixtm (Depends-on): Likewise.
118119         * modules/quotearg (Depends-on): Likewise.
118120         * modules/readtokens (Depends-on): Likewise.
118121         * modules/readtokens0 (Depends-on): Likewise.
118122         * modules/readutmp (Depends-on): Likewise.
118123         * modules/save-cwd (Depends-on): Likewise.
118124         * modules/strftime (Depends-on): Likewise.
118125         * modules/userspec (Depends-on): Likewise.
118126         * modules/utimecmp (Depends-on): Likewise.
118127         * modules/xgetcwd (Depends-on): Likewise.
118128         * modules/xnanosleep (Depends-on): Likewise.
118129         * modules/xstrtod (Depends-on): Likewise.
118130         * modules/yesno (Depends-on): Likewise.
118132 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118134         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118135         needless checks.
118137 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118139         Merge from coreutils.  Among other things,
118140         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118141         * lib/fd-safer.c: New file.
118142         * lib/fcntl-safer.h, open-safer.c: Remove.
118143         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118144         * lib/dup-safer.c: Include unistd-safer.h first.
118145         Don't include errno.h.
118146         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118147         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118148         * lib/file-type.c: Rely on file-type.h change.
118149         * lib/getloadavg.c: Include unistd-safer.h.
118150         (getloadavg): Use safer open.
118151         * lib/getusershell.c: Include "stdio-safer.h".
118152         (getusershell): Use safer fopen.
118153         * lib/long-options.c (long_options): Use NULL rather than 0.
118154         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118155         'free'.
118156         * lib/modechange.c: Likewise.
118157         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118158         (MODE_DONE): New constant.
118159         (struct mode_change): Remove 'next' member.
118160         (make_node_op_equals): New function; like the old one of the
118161         same name, except it allocates an array.
118162         (mode_compile, mode_create_from_ref): Use it.
118163         (mode_compile): Allocate result as an array, not a linked list.
118164         Parse octal string ourself, so that we catch mistakes like "+0".
118165         (mode_adjust): Arg is an array, not a linked list.
118166         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118167         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118168         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118169         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118170         Remove.  This is now stat-macros.h's job.
118171         (talloc): Remove.  All callers replaced by xalloc, so that
118172         our invokers don't have to worry about reporting memory failures.
118173         (make_node_op_equals): Remove.
118174         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118175         New constants.
118176         (struct mode_change): Moved here from modechange.h.
118177         (mode_append_entry): Remove.
118178         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118179         apps to have incorrect behavior.  Use simpler algorithm for head
118180         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118181         Detect more invalid usages rather than having somewhat-random behavior.
118182         Don't insert an "a=" action, as that leads to incorrect behavior.
118183         (mode_compile, mode_create_from_ref): Return NULL on error instead
118184         of an enum, since now there's only one way to have an error.  All
118185         callers changed.
118186         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118187         at the correct time.  Simplify calculation of "+u" and its ilk.
118188         Don't mishandle "+X".
118189         (mode_free): Remove "register" and localize decls.
118190         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118191         (struct mode_change): Move to modechange.c; callers don't
118192         need to see this stuff.
118193         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118194         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118195         (mode_change, mode_adjust): Reflect the new signatures noted above.
118196         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118197         that might redefine system include files.
118198         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118199         (my_usleep): Use NULL rather than (void *) 0.
118200         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118201         Use siginterrupt to specify that system calls should be interrupted.
118202         (rpl_nanosleep): Move initialization of suspended closer to call of
118203         my_usleep.
118204         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118205         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118206         (desirable_utmp_entry): New function.
118207         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118208         using x2nrealloc, to simplify logic.
118209         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118210         size calculation.  Do not assume utmp file is a regular file.
118211         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118212         (READ_UTMP_CHECK_PIDS): New constant.
118213         * lib/save-cwd.c: Include unistd-safer.h.
118214         (save_cwd): Use fd_safer.
118215         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118216         [!_LIBC] Include "stat-macros.h" instead.
118217         * lib/unistd-safer.h (fd_safer): New decl.
118219 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118221         * modules/getloadavg (Depends-on): Add unistd-safer.
118222         * modules/getusershell (Depends-on): Add stdio-safer.
118223         * modules/lstat (Depends-on): Remove xalloc.
118224         * modules/mkstemp (Depends-on): Add stat-macros.
118225         * modules/modechange (Depends-on): Remove xstrtol.
118226         Add stat-macros, xalloc.
118227         * modules/save-cwd (Depends-on): Add unistd-safer.
118228         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118229         * modules/unistd-safer (Files): Add lib/fd-safer.c
118230         (Makefile.am): Remove lib_SOURCES.
118232         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118233         Remove fcntl-safer; unistd-safer supersedes it.
118235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118237         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118238         AC_HEADER_STAT.
118239         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118240         (gl_PREREQ_CHOWN): Remove.
118241         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118242         it.  Don't require AC_HEADER_STAT.
118243         (gl_PREREQ_LSTAT): Remove.
118244         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118245         Don't require AC_HEADER_STAT.
118246         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118247         (gl_PREREQ_RMDIR): Remove.
118248         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118249         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118250         the stat-macros module a prerequisite.
118251         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118252         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118253         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118254         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118255         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118256         variable names.
118257         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118258         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118259         variable prefixes.
118260         * m4/fcntl-safer.m4: Remove.
118261         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118262         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118263         Invoke gl_PREREQ_FD_SAFER.
118264         (gl_PREREQ_FD_SAFER): New macro.
118265         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118266         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118267         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118268         Remove duplicate call to AC_LIBOBJ(readutmp).
118269         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118272         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118274 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118276         * MODULES.html.sh (Misc): Add byteswap.
118278 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118280         * modules/getcwd (Depends-on): Add extensions.
118281         * modules/openat (Depends-on): Likewise.
118283 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118285         * modules/byteswap: New file.
118287 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118289         * m4/byteswap.m4: New file.
118291 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118293         * lib/byteswap_.h: New file.
118295 2005-04-25  Karl Berry  <karl@gnu.org>
118297         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118299 2005-04-25  Albert Chin  <china@thewrittenword.com>
118301         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118302         Toolkit C bug.
118304 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118306         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118307         (func_ln_if_changed): Remove forcibly for no error message
118308         in case file does not exist.
118310 2005-04-19  Simon Josefsson  <jas@extundo.com>
118312         * gnulib-tool (Options): Make --symlink mean --symbolic.
118314 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118316         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118318 2005-04-16  Simon Josefsson  <jas@extundo.com>
118320         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118322 2005-04-15  Simon Josefsson  <jas@extundo.com>
118324         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118326 2005-04-15  Simon Josefsson  <jas@extundo.com>
118328         * gnulib-tool: Rename --symlink to --symbolic.
118330 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118332         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118333         symbolic links to files instead of copying/moving.  Add --aux-dir,
118334         specifying directory relative --dir where auxiliary build tools
118335         are placed.
118337 2005-04-14  Bruno Haible  <bruno@clisp.org>
118339         * modules/allocsa (License): Change to LGPL.
118340         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118342 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118344         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118345         that "UTC +1 second" continues to work.  Problem reported
118346         by Dmitry V. Levin.
118347         (relunit_snumber): New rule.
118348         (relunit): Use it.
118350 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118352         * lib/getdate.y (universal_time_zone_table): New constant.
118353         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118354         universal_time_zone_table.
118355         (lookup_zone): Prefer universal_time_zone_table to
118356         local_time_zone_table, so that "GMT" time stamps are allowed in
118357         London during the summer.  Problem reported by Ian Abbott.
118359 2005-04-12  Jim Meyering  <jim@meyering.net>
118361         * lib/human.c (humblock): Set *options even when returning due to
118362         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118363         warning from gcc-4.
118365 2005-04-09  Jim Meyering  <jim@meyering.net>
118367         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118368         -Wuninitialized: initialize tm0.tm_year.
118370 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118372         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118373         count, since there's no maximum.  All uses changed.
118374         Add member dsts_seen.
118375         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118376         not being INT_MAX.
118377         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118378         Use pc_rels_seen to decide whether a date is absolute.
118380         * lib/getdate.y (number): Don't overwrite year.
118381         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118382         check.
118384 2005-04-02  Simon Josefsson  <jas@extundo.com>
118386         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118387         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118389 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118391         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118392         where no absolute path name can be longer than PATH_MAX.
118394 2005-03-27  Jim Meyering  <jim@meyering.net>
118396         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118398 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118400         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118401         "one's complement" -> "ones' complement" in comment, as per Knuth.
118402         "value of type" -> "type or expression" in comment.
118403         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118405 2005-03-26  Jim Meyering  <jim@meyering.net>
118407         Comment nits.
118408         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118409         Correct typos: s/or/of/.
118411 2005-03-26  Jim Meyering  <jim@meyering.net>
118413         * modules/check-include-files: Move to ../ and rename to...
118414         * check-module: ...this.
118416 2005-03-25  Jim Meyering  <jim@meyering.net>
118418         * modules/xvasprintf (Files): Add xalloc.h.
118420 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118422         * modules/gettext (Files): config/config.rpath ->
118423         build-aux/config.rpath
118424         * modules/iconv (Files): Likewise.
118425         Problem reported by Oskar Liljeblad.
118427 2005-03-23  Jim Meyering  <jim@meyering.net>
118429         * modules/check-include-files: New script to check for
118430         missing dependencies, multiple includes, etc.
118432         * modules/c-strtold (Depends-on): Add xalloc.
118433         * modules/c-strtod (Depends-on): Add xalloc.
118434         * modules/hash (Depends-on): Add xalloc.
118435         (Files): Remove lib/xalloc.h.
118437         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118438         * modules/userspec (Files): Add lib/inttostr.h.
118440 2005-03-23  Jim Meyering  <jim@meyering.net>
118442         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118444 2005-03-22  Jim Meyering  <jim@meyering.net>
118446         * modules/stat-macros: New module.
118447         * modules/canonicalize, modules/euidaccess, modules/file-type,
118448         * modules/filemode, modules/lchown, modules/makepath,
118449         * modules/rmdir, modules/stat: Depend on new stat-macros module
118450         rather than listing lib/stat-macros.h manually.
118451         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118453 2005-03-22  Jim Meyering  <jim@meyering.net>
118455         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118457 2005-03-22  Bruno Haible  <bruno@clisp.org>
118459         * config/srclist.txt: Replace target directory 'config' with
118460         'build-aux'.
118461         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118462         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118463         ../build-aux/.
118465 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118467         * modules/chdir-long (Depends-on): Add mempcpy.
118469         * modules/acl, modules/backupfile, modules/c-strtod,
118470         modules/c-strtold, modules/canon-host, modules/canonicalize,
118471         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118472         modules/exclude, modules/exitfail, modules/file-type,
118473         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118474         modules/getdate, modules/getline, modules/getpagesize,
118475         modules/getpass, modules/getugroups, modules/group-member,
118476         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118477         modules/inttostr, modules/long-options, modules/makepath,
118478         modules/md5, modules/memcasecmp, modules/memcoll,
118479         modules/modechange, modules/mountlist, modules/path-concat,
118480         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118481         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118482         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118483         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118484         modules/strftime, modules/strndup, modules/strverscmp,
118485         modules/timespec, modules/unlocked-io, modules/userspec,
118486         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118487         modules/yesno:
118488         Remove lib_SOURCES line from Makefile.am section, as this is now
118489         done automatically by the corresponding Autoconf macro.
118491 2005-03-21  Jim Meyering  <jim@meyering.net>
118493         Changes imported from coreutils.
118495         * lib/cycle-check.c: Don't include xalloc.h.
118497         * lib/path-concat.c: Don't include assert.h.
118498         (path_concat): Remove assertion that would have triggered
118499         for ABASE starting with more than one slash.
118500         Reported by Andreas Schwab.
118502         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118503         properly when ABASE is an absolute file name.
118504         Correct the description of this function.
118505         Include <assert.h>.
118506         Add an assertion and a test driver.
118507         This fixes a bug introduced on 2004-07-02.
118508         Andreas Schwab reported the resulting failure of cp --parents:
118509         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118511 2005-03-21  Jim Meyering  <jim@meyering.net>
118513         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118514         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118516 2005-03-21  Jim Meyering  <jim@meyering.net>
118517         and  Paul Eggert  <eggert@cs.ucla.edu>
118519         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118520         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118521         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118522         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118523         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118524         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118525         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118526         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118527         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118528         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118529         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118530         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118531         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118532         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118533         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118534         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118535         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118536         for these modules.
118538 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118540         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118541         (which shouldn't happen), generate nothing instead of returning 0
118542         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118544 2005-03-16  Bruno Haible  <bruno@clisp.org>
118546         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118547         HAVE_LONGLONG_64BIT.
118549 2005-03-16  Bruno Haible  <bruno@clisp.org>
118551         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118552         HAVE_LONGLONG_64BIT.
118554 2005-03-16  Bruno Haible  <bruno@clisp.org>
118556         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118557         HAVE_LONGLONG_64BIT.
118559 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118561         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118562         reliably distinguish strftime failure from empty output on POSIX
118563         hosts.
118565 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118567         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118568         (iconv_string): Don't guess a size-zero buffer, as that might cause
118569         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118570         result would be 'too large', where 'too large' is (heuristically)
118571         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118572         overflow concerns.  This will prevent some unwanted malloc failures
118573         when the inputs are very large.
118575 2005-03-15  Karl Berry  <karl@gnu.org>
118577         * config/srclist.txt (config.rpath): from gettext.
118578         * config/config.rpath: update.
118580 2005-03-15  Bruno Haible  <bruno@clisp.org>
118582         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118583         to 'negate'.
118585         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118586         variable.
118588         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118589         results.
118591 2005-03-14  Simon Josefsson  <jas@extundo.com>
118593         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118594         <fx@gnu.org>.
118596 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118598         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118599         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118600         intprops.h.
118601         * lib/strtol.c: Likewise.
118603 2005-03-14  Jim Meyering  <jim@meyering.net>
118605         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118606         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118607         to be nonzero so that we (and caller) can detect the difference
118608         between a valid zero-length expansion and an error return, even
118609         when the underlying strftime fails before writing anything into
118610         that location.
118612 2005-03-14  Bruno Haible  <bruno@clisp.org>
118614         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118615         Update from GNU gettext 0.14.3.
118617 2005-03-10  Jim Meyering  <jim@meyering.net>
118619         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118621 2005-03-10  Jim Meyering  <jim@meyering.net>
118623         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118624         so that this module works on systems without fchdir.
118626 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118628         Factor int-properties macros into a single file, except for
118629         glibc-related files.
118630         * lib/intprops.h: New file.
118631         * lib/getloadavg.c: Include it instead of limits.h.
118632         (INT_STRLEN_BOUND): Remove.
118633         * lib/human.c: Include intprops.h.
118634         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118635         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118636         302/1000.
118637         * lib/inttostr.h: Include intprops.h instead of limits.h.
118638         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118639         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118640         for consistency with intprops.h.
118641         (time_t_is_integer, twos_complement_arithmetic): Use them.
118642         * lib/sig2str.h: Include <signal.h>, intprops.h.
118643         (INT_STRLEN_BOUND): Remove.
118644         * lib/strftime.c (TYPE_SIGNED): Remove.
118645         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118646         * lib/strtol.c: Adjust comments to match intprops.h.
118647         * lib/userspec.c: Include intprops.h.
118648         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118649         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118650         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118651         instead of rolling our own expressions.
118652         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118654         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118655         instead of int.
118656         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118657         the right thing even if adding 1900 would overflow.  Similarly
118658         for tm_mon + 1 and tm_yday + 1.
118659         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118660         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118661         (DO_SIGNED_NUMBER): New macro.
118662         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118664 2005-03-07  Bruno Haible  <bruno@clisp.org>
118666         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118668 2005-03-07  Bruno Haible  <bruno@clisp.org>
118670         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118672 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118674         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118675         (func_import): Only replace files via --import when they have actually
118676         changed.
118678 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118680         * m4/mmap-anon.m4: New file.
118681         * m4/pagealign_alloc.m4: New file.
118683 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118684             Bruno Haible  <bruno@clisp.org>
118686         * modules/pagealign_alloc: New file.
118687         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118689 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118690             Bruno Haible  <bruno@clisp.org>
118692         * lib/pagealign_alloc.h: New file.
118693         * lib/pagealign_alloc.c: New file.
118695 2005-03-03  Bruno Haible  <bruno@clisp.org>
118697         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118698         Use an all-permissive copyright notice, recommended by RMS.
118700 2005-03-02  Bruno Haible  <bruno@clisp.org>
118702         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118703         of AIX, the replacement has to be done only after <string.h> is
118704         included, therefore not in config.h. stpncpy.h does the replacement,
118705         and stpncpy.c uses it.
118707 2005-03-02  Bruno Haible  <bruno@clisp.org>
118709         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118710         stpncpy.c uses it.
118712 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118714         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118715         The workaround isn't strictly needed for POSIX conformance, and
118716         it's too much of a pain to configure and maintain.  We'll ask
118717         people to fix their kernels instead.
118718         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118719         (NANOSLEEP_BUG_WORKAROUND): Remove.
118720         (xnanosleep): Remove the workaround.
118722 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118724         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
118725         Reported by Derek Price.
118726         (Include): Add "timespec.h".
118728         * modules/xnanosleep (Depends-on): Remove gethrxtime.
118730 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118732         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
118733         to detect nanosleep bug.
118735 2005-03-01  Bruno Haible  <bruno@clisp.org>
118737         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
118739 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118741         * modules/gethrxtime: New file.
118742         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
118743         (Depends-on): Add gethrxtime.
118744         (configure.ac): Add gl_XNANOSLEEP.
118745         (Makefile.am): Remove lib_SOURCES line.
118747 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118749         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
118750         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
118752 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118754         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
118755         * lib/timespec.h (gettime): Return void, since it always
118756         succeeds now.  All uses changed.
118757         * lib/gettime.c (gettime): Likewise.
118758         [HAVE_NANOTIME]: Prefer nanotime.
118759         Assume gettimeofday succeeds, as POSIX requires.
118760         Assime time () succeeds, since other code already does.
118761         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
118762         (timespec_subtract): Remove.
118763         (NANOSLEEP_BUG_WORKAROUND): New constant.
118764         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
118765         things considerably.  Use it only on GNU/Linux hosts, since the
118766         workaround shouldn't be needed elsewhere.
118768 2005-02-24  Bruno Haible  <bruno@clisp.org>
118770         * modules/gettext (Files): Add m4/glibc2.m4.
118772 2005-02-24  Bruno Haible  <bruno@clisp.org>
118774         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
118775         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
118776         * m4/progtest.m4:
118777         Update from GNU gettext 0.14.2.
118778         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
118780 2005-02-24  Bruno Haible  <bruno@clisp.org>
118782         * lib/localcharset.c: Update from GNU gettext 0.14.2.
118783         * lib/config.charset: Update from GNU gettext 0.14.2.
118785 2005-02-24  Bruno Haible  <bruno@clisp.org>
118787         * lib/gettext.h: Update from GNU gettext 0.14.2.
118789 2005-02-23  Simon Josefsson  <jas@extundo.com>
118791         * m4/iconvme.m4: New file.
118793 2005-02-23  Jim Meyering  <jim@meyering.net>
118795         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
118796         change.
118797         Thanks to Bruno Haible for catching it.
118799 2005-02-22  Simon Josefsson  <jas@extundo.com>
118801         * modules/iconvme: New file.
118803         * MODULES.html.sh: Add iconvme.
118805 2005-02-22  Simon Josefsson  <jas@extundo.com>
118807         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
118809 2005-02-22  Simon Josefsson  <jas@extundo.com>
118811         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
118813 2005-02-22  Jim Meyering  <jim@meyering.net>
118815         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
118816         s/ifndef/ifdef/.
118818 2005-02-20  Neil Conway  <neilc@samurai.com>
118820         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
118821         returned by OSX/Darwin if the specified buffer is not large
118822         enough for the hostname.
118824 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118826         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
118827         pass it to _help, otherwise the latter coredumps trying to
118828         dereference state.root_argp.
118830 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118832         * modules/chdir-long (Depends-on): Add memrchr.
118833         * modules/memrchr (Files): Add lib/memrchr.h.
118834         (Include): "memrchr.h".
118836 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118838         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
118840 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118842         * lib/memrchr.h: New file.
118843         * lib/chdir-long.c: Include it.
118844         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
118845         Don't bother including stddef.h.
118847 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
118849         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
118850         inclusion.
118851         Include <sys/types.h>, for dev_t.
118852         (ME_DUMMY, ME_REMOTE): Move from here....
118853         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
118854         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
118855         Dmitry V. Levin.
118856         Include mountlist.h first, to test the interface.
118858 2005-01-29  Bruno Haible  <bruno@clisp.org>
118860         * lib/progname.c (program_name): Initialize.
118861         Needed when linking statically on MacOS X.
118863 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
118865         Sync from coreutils.
118866         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
118867         (Depends-on): Add c-strtod.
118868         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
118870 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
118872         Sync from coreutils.
118873         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
118875         Remove files that are specific to coreutils.
118876         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
118878 2005-01-28  Bruno Haible  <bruno@clisp.org>
118880         * modules/javacomp: New file.
118881         * MODULES.html.sh (Java): Add javacomp.
118883 2005-01-28  Bruno Haible  <bruno@clisp.org>
118885         * m4/javacomp.m4: New file, from GNU gettext.
118887 2005-01-28  Bruno Haible  <bruno@clisp.org>
118889         * lib/javacomp.sh.in: New file, from GNU gettext.
118890         * lib/javacomp.h: New file, from GNU gettext.
118891         * lib/javacomp.c: New file, from GNU gettext.
118893 2005-01-26  Simon Josefsson  <jas@extundo.com>
118895         * lib/gai_strerror.c: Use GPL in header.
118897 2005-01-26  Bruno Haible  <bruno@clisp.org>
118899         * modules/javaexec: New file.
118900         * MODULES.html.sh (Java): Add javaexec.
118902 2005-01-26  Bruno Haible  <bruno@clisp.org>
118904         * m4/javaexec.m4: New file, from GNU gettext.
118906 2005-01-26  Bruno Haible  <bruno@clisp.org>
118908         * lib/javaexec.sh.in: New file, from GNU gettext.
118909         * lib/javaexec.h: New file, from GNU gettext.
118910         * lib/javaexec.c: New file, from GNU gettext.
118912 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118914         * modules/lchown (Depends-on): Remove lchown.h
118916 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118918         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
118919         must be defined if the header file was not found, in order
118920         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
118922 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118924         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
118925         initializers for struct pentry_state.
118926         (__argp_error): Check return value of __asprintf
118927         (__argp_failure): Translate error message
118929         * lib/argp-parse.c: Removed braces around the expansion of N_()
118931 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118933         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
118934         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
118935         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
118936         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
118937         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
118938         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
118939         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
118940         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
118941         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
118942         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
118943         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
118944         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
118945         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
118946         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
118947         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
118948         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
118949         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
118950         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
118951         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
118952         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
118953         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
118954         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
118955         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
118956         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
118957         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
118958         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
118959         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
118960         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
118961         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
118962         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
118963         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
118964         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
118965         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
118966         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
118967         xstrtol.m4, xstrtoumax.m4, yesno.m4:
118968         Use an all-permissive copyright notice, recommended by RMS.
118970 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
118972         * modules/chdir-long (Depends-on): Remove mempcpy.
118974 2005-01-21  Jim Meyering  <jim@meyering.net>
118976         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
118977         same value as for Solaris 9.
118979         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
118980         component length.  This included changing the parameter to be
118981         of type `char *' rather than `char const *'.
118982         * lib/chdir-long.h (chdir_long): Update prototype.
118984         * lib/openat.c (fdopendir, fstatat): New functions.
118985         * lib/openat.h: Include headers required for use of DIR and struct
118986         stat.
118987         [AT_SYMLINK_NOFOLLOW]: Define.
118988         (fdopendir, fstatat): Add prototypes.
118990 2005-01-21  Bruno Haible  <bruno@clisp.org>
118992         * modules/classpath: New file.
118993         * MODULES.html.sh (Java): Add classpath.
118995 2005-01-21  Bruno Haible  <bruno@clisp.org>
118997         * lib/classpath.h: New file, from GNU gettext.
118998         * lib/classpath.c: New file, from GNU gettext.
119000 2005-01-20  Simon Josefsson  <jas@extundo.com>
119002         * modules/version-etc-fsf: New file.
119004 2005-01-20  Simon Josefsson  <jas@extundo.com>
119006         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119007         * lib/version-etc.c: Remove version_etc_copyright.
119008         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119009         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119011 2005-01-20  Simon Josefsson  <jas@extundo.com>
119013         * lib/base64.h (isbase64): Add.
119015         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119016         using a unsigned prototype, don't inline.
119017         (base64_decode): Use it.
119019 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119021         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119022         it.
119024 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119026         * lib/save-cwd.c (save_cwd): Remove code to support the case
119027         where fchdir is missing or flaky.
119029 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119031         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119033 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119035         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119036         AC_LIBSOURCES now does this.
119037         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119038         with new ullong_max module.
119040 2005-01-19  Bruno Haible  <bruno@clisp.org>
119042         * modules/sh-quote: New file.
119043         * MODULES.html.sh (Executing programs): Add sh-quote.
119045 2005-01-19  Bruno Haible  <bruno@clisp.org>
119047         * lib/sh-quote.h: New file, from GNU gettext.
119048         * lib/sh-quote.c: New file, from GNU gettext.
119050 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119052         Merge from coreutils.
119053         * m4/ullong_max.m4: New file.
119054         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119055         (gl_MACROS): Assume localeconv exists.
119057 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119059         Merge changes from coreutils, as described below in several
119060         changelogs dated today.
119062         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119063         (O_DIRECTORY): Remove; not needed here, since "." must be
119064         a directory.  All uses removed.
119065         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119066         universal on Suns, and we also need to test for IRIX.
119067         Revamp code to use 'if' rather than '#if'.
119068         Avoid unnecessary comparison of cwd->desc to 0.
119070         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119071         for known valid error numbers rather than observed invalid ones.
119073 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119075         * modules/ullong_max: New file.
119077         * modules/chdir-long, modules/openat: New files.
119078         * modules/save-cwd (Depends-on): Depend on chdir-long.
119079         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119081 2005-01-18  Jim Meyering  <jim@meyering.net>
119083         Merge from coreutils.
119084         * m4/chdir-long.m4, m4/openat.m4: New files.
119085         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119086         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119087         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119088         is sane and DOES follow symlinks.  Besides, testing 20 different
119089         systems found no broken chown implementations.
119090         Prompted by a change in rsync's copy of this macro.
119091         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119093         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119095         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119096         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119097         NULL-means-set-to-current-time semantics.
119098         Remove temporary file immediately, rather than waiting
119099         for configure's at-exit trap code to do it.
119101 2005-01-18  Jim Meyering  <jim@meyering.net>
119103         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119105         * lib/utimens.c (futimens): Account for the fact that futimes
119106         can also fail with errno == ENOSYS or errno == ENOENT.
119107         Patch from Dmitry V. Levin.
119109         Change the name of the robust chdir function from chdir to chdir_long.
119110         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119111         (restore_cwd): Use chdir_long, not chdir.
119112         * lib/chdir-long.c: Renamed from chdir.c.
119113         * lib/chdir-long.h: Renamed from chdir.h.
119114         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119115         Hurd.
119117 2005-01-18  Bruno Haible  <bruno@clisp.org>
119119         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119120         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119121         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119122         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119123         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119124         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119125         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119126         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119127         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119128         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119129         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119130         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119131         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119132         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119133         Use an all-permissive copyright notice, recommended by RMS.
119135 2005-01-18  Bob Proulx  <bob@proulx.com>
119137         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119138         simplify offsetof() macro construct to avoid compile failure with
119139         native HP-UX 11.0 ANSI C compiler.
119141 2005-01-17  Bruno Haible  <bruno@clisp.org>
119143         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119144         redundant because stpncpy.m4 takes care of it.
119146 2005-01-17  Bruno Haible  <bruno@clisp.org>
119148         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119150 2005-01-17  Bruno Haible  <bruno@clisp.org>
119152         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119153         used.
119155 2005-01-17  Bruno Haible  <bruno@clisp.org>
119157         * lib/fwriteerror.h (fwriteerror): Change specification to include
119158         fclose.
119159         * lib/fwriteerror.c: Include <stdbool.h>.
119160         (fwriteerror): At the end, close the file stream. Record whether
119161         stdout was already closed.
119163 2005-01-17  Bruno Haible  <bruno@clisp.org>
119165         * lib/execute.c (environ): Declare if needed.
119166         * lib/pipe.c (environ): Likewise.
119167         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119169 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119171         * modules/argp: Depend on vsnprintf
119173 2005-01-10  Jim Meyering  <jim@meyering.net>
119175         * modules/closeout (Depends-on): Add atexit.
119177 2005-01-06  Bruno Haible  <bruno@clisp.org>
119179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119181 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119183         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119184         definitions to be after all include files, to avoid collisions.
119185         Problem reported by Bob Proulx.
119187 2005-01-04  Jim Meyering  <jim@meyering.net>
119189         Changes imported from coreutils.
119190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119191         as the mkstemp template, use a temporary directory and an
119192         8.3-friendly template to avoid trouble on systems like DJGPP.
119193         Reported by Juan M. Guerrero via Stepan Kasal.
119194         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119195         close. Remove the temporary directory right away, rather than waiting
119196         for configure's at-exit trap code to do it.
119197         Suggestion from Stepan Kasal.
119199 2005-01-01  Simon Josefsson  <jas@extundo.com>
119201         * gnulib-tool: Print #include directives when --import'ing.
119203 2004-12-28  Simon Josefsson  <jas@extundo.com>
119205         * tests/test-base64.c: Include required header files.  Remove
119206         unused variables.
119208 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119210         * modules/error (Depends-on): Remove gettext.
119212 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119214         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119215         not needed.  This removes a dependency on the gettext module.
119216         [defined _LIBC]: Do not include <libintl.h>; not needed.
119218 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119220         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119221         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119223 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119225         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119226         HAVE_DECL_STRTOLD.
119228 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119230         * modules/getdate (Depends-on): Remove alloca-opt.
119232 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119234         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119236 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119238         * lib/argp-parse.c: Include <stddef.h>.
119239         (alignof, alignto): New macros.
119240         (parser_init): Don't assume that void * is aligned sufficiently
119241         for struct option.
119243         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119244         need to extend the stack.
119245         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119246         large.
119248 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119250         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119252 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119254         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119255         (2004-10-24) change.  Apparently this was a false alarm.
119257         * modules/getdate: Depend on alloca-opt, not alloca.
119259 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119261         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119262         Remove now-obsolete comment about AIX.
119263         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119264         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119265         (YYMAXDEPTH): New macro.
119267 2004-12-18  Simon Josefsson  <jas@extundo.com>
119269         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119271 2004-12-18  Bruno Haible  <bruno@clisp.org>
119273         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119275 2004-12-18  Bruno Haible  <bruno@clisp.org>
119277         * lib/fatal-signal.c (fatal_signals): Make non-const.
119278         (init_fatal_signals): New function.
119279         (uninstall_handlers, install_handlers): Ignore signals that were set to
119280         SIG_IGN.
119281         (at_fatal_signal): Call init_fatal_signals.
119282         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119283         SIG_IGN.
119284         Reported by Paul Eggert.
119286 2004-12-18  Bruno Haible  <bruno@clisp.org>
119288         * doc/alloca.texi: New file.
119289         * doc/alloca-opt.texi: New file.
119291 2004-12-17  Jim Meyering  <jim@meyering.net>
119293         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119294         Otherwise, install-sh could exit with improper exit status when
119295         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119297 2004-12-16  Simon Josefsson  <jas@extundo.com>
119299         * tests/test-base64.c: Add license.
119301 2004-12-15  Stepan Kasal  <address@hidden>
119303         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119305 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119307         * modules/getcwd (Files): Add m4/d-ino.m4.
119308         Suggested by Mark D. Baushke.
119310 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119312         * lib/getdate.y (textint): New member "negative".
119313         (time_zone_hhmm): New function.
119314         Expect 14 shift-reduce conflicts, not 13.
119315         (o_colon_minutes): New rule.
119316         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119317         (yylex): Set the "negative" member of signed numbers.
119319 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119321         * doc/getdate.texi (Time of day items, Time zone items):
119322         Describe new formats +00:00, UTC+00:00.
119324 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119326         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119327         spurious "-l"s.  Problem reported by Stepan Kasal.
119329 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119331         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119332         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119334 2004-12-04  Simon Josefsson  <jas@extundo.com>
119336         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119337         Vandoorselaere <yoann@prelude-ids.org>.
119339 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119341         Changes imported from coreutils.
119342         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119343         exist.
119344         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119346 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119348         Changes imported from coreutils.
119349         * lib/hard-locale.c: Assume <locale.h> exists.
119350         Include "strdup.h".
119351         (GLIBC_VERSION): New macro.
119352         (hard_locale): Assume setlocale exists.
119353         Rewrite to avoid #ifdef.
119354         Use strdup rather than malloc + strcpy.
119355         * lib/human.c: Assume <locale.h> exists.
119356         (human_readable): Assume localeconv exists.
119358 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119360         * modules/hard-locale (Depends-on): Add strdup.
119362 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119364         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119365         convert T2, not T.  (Imported from libc.)
119367 2004-11-30  Simon Josefsson  <jas@extundo.com>
119369         * modules/restrict (License): Change to LGPL.
119371 2004-11-30  Simon Josefsson  <jas@extundo.com>
119373         * m4/restrict.m4: Add copyright and copying conditions.
119375 2004-11-30  Simon Josefsson  <jas@extundo.com>
119377         * m4/base64.m4: New file.
119379 2004-11-30  Simon Josefsson  <jas@extundo.com>
119381         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119382         base64.
119384         * tests/test-base64.c: New file.
119386         * modules/base64: New file.
119388 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119390         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119391         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119393         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119395 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119397         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119398         (__getcwd.c): Don't restore errno; glibc doesn't.
119399         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119400         first, falling back to our code only if its results look suspicious.
119401         Ensure that the resulting buffer is only as large as necessary.
119403         * lib/readutmp.c: Include readutmp.h first.
119404         Include <errno.h>, since readutmp.h no longer does that.
119405         * lib/readutmp.h: Don't include <errno.h>,
119406         <sys/param.h>, <time.h>; not needed to establish interface.
119407         (errno): Remove decl.
119408         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119409         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119410         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119412 2004-11-28  Simon Josefsson  <jas@extundo.com>
119414         * lib/base64.h, base64.c: New file.
119416 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119418         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119420 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119422         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119423         (Depends-on): Remove pathmax, same.  Add mempcpy.
119424         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119425         (Makefile.am): Append getcwd.h to lib_SOURCES.
119426         (Include): Add getcwd.h.
119427         (Maintainer): Change from Jim Meyering to "all, glibc",
119428         since getdate now uses intended-for-glibc code.
119429         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119430         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119432 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119434         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119435         HP's ANSI C compiler.
119436         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119437         Declaring int functions causes warnings on some modern systems and
119438         shouldn't be needed to compile on ancient ones.
119439         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119440         defined.
119442         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119443         with the following changes.
119444         (__set_errno): Parenthesize properly.
119445         Include <stdbool.h>.
119446         (MIN, MAX, MATCHING_INO): New macros.
119447         (__getcwd): Define with prototype, not K&R form.
119448         Use heuristics to allocate default buffer on stack if possible.
119449         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119450         behavior, and to avoid the PATH_MAX limit when computing
119451         ../../../../...
119452         Use MATCHING_INO to compare inode number to file.
119453         Check for arithmetic overflow in size calculations.
119454         Fix bug in reallocation of dot array that caused getcwd to fail
119455         on directories nested deeper than 75.
119456         Be more careful about saving errno on error.
119457         Do not use realloc; use only free+malloc, as this is a bit
119458         more flexible and avoids a needless copy operation.
119459         Do not inspect st_dev and st_ino for symbolic links; POSIX
119460         doesn't specify the latter.
119461         Check for closedir errors.
119462         Avoid needless casts.
119463         Use "#ifdef weak_alias" around weak_alias, to be like other
119464         glibc code.
119465         The following changes to getcwd.c have effect only when used in
119466         gnulib; they have no effect inside glibc proper.
119467         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119468         as alloca isn't used.
119469         (alloca, __alloca): Likewise.
119470         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119471         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119472         unconditionally, as gnulib assumes C89 or better.
119473         Do not include <sys/param.h>.
119474         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119475         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119476         better.
119477         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119478         Include <dirent.h> in a way that is compatible with modern Autoconf.
119479         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119480         New macros, if not already defined.
119481         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119482         Use "_LIBC", not "defined _LIBC", for consistency.
119483         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119484         a mempcpy module.
119485         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119486         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119487         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119488         credit only to Jim Meyering and adjust the copyright dates.
119489         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119490         <stdlib.h>, <unistd.h>, "pathmax.h".
119491         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119492         (INITIAL_BUFFER_SIZE): Remove.
119493         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119495 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119497         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119498         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119499         Use the _ONCE methods, for efficiency.
119500         Check for fcntl.h.  In test program, include <errno.h>
119501         and <fcntl.h> if available.  Remove old K&R cruft from
119502         test program.  Check for common errors in GNU/Linux,
119503         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119504         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119505         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119506         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119507         name accordingly.
119508         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119509         accommodate new getcwd.c.
119510         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119511         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119512         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119513         that's all we need now.
119515 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119517         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119518         argp-parse.c depends on getopt internals, that means we should
119519         always use our getopt, to be on the safe side.
119520         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119521         order not to spoil the result of an eventual previous invocation
119522         of gl_GETOPT_SUBSTITUTE.
119524 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119526         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119527         redefinition warnings. To avoid them, include the defines
119528         in `#if !defined __need_getopt ... #endif'. The only place
119529         where __getopt_argv_const is used is in definitions
119530         of getopt_long and getopt_long_only below, which are as well
119531         protected by `#ifndef __need_getopt'.
119532         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119533         __need_getopt after including <stdio.h> and <unistd.h> These
119534         headers might have defined it.
119536 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119538         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119540 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119542         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119543         (futimens): New function, which uses futimes if available.
119544         (futimens, utimens): Support timespec==NULL, with same semantics
119545         as utime and utimens.
119546         * lib/utimens.h (futimens): New decl.
119548 2004-11-23  Jim Meyering  <jim@meyering.net>
119550         * lib/getopt_.h: Remove trailing blanks.
119552 2004-11-23  Jim Meyering  <jim@meyering.net>
119554         * lib/__fpending.c: Add comment.
119556 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119558         * modules/canonicalize (Depends-on): Add xreadlink.
119559         Problem reported by James Youngman.
119561 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119563         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119564         New macros.
119565         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119566         optopt): Use them instead of invoking ## directly; otherwise, the
119567         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119569 2004-11-19  Bruno Haible  <bruno@clisp.org>
119571         * lib/strtok_r.c: Move comments from here...
119572         * lib/strtok_r.h: ... to here.
119574 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119576         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119577         implementations that mishandle size_t overflow.
119579 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119581         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119582         might fail.  Problem reported by Yoann Vandoorselaere.
119583         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119584         implementations that mishandle size_t overflow.
119586 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119588         * modules/canon-host (Depends-on): Add strdup.
119590 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119592         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119594 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119596         * lib/canon-host.c: Include "strdup.h".
119597         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119598         Use strdup instead of malloc/strcpy to duplicate strings.
119600         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119601         (human_space_before_unit): New constant.
119602         * lib/human.c (human_readable): Support it.
119604         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119605         (xgetcwd): Set errno correctly when failing.
119606         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119607         the failure is actually due to a PATH_MAX problem.
119609         Further getopt changes to make it more likely that glibc will
119610         buy the changes back.
119611         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119612         (getopt): Use it, so to preserve glibc semantic
119613         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119614         when compiling for libc.
119615         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119616         (getopt_long, getopt_long_only): Use it.
119618         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119619         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119620         (getopt): Argv is now char * const *, as per standard.
119621         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119622         not char *__getopt_argv_const *.
119623         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119624         _getopt_long_only_r): Likewise.
119625         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119626         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119627         _getopt_long_r, _getopt_long_only_r): Likewise.
119628         * lib/getopt_.h (__getopt_argv_const): Remove.
119629         (getopt): Argv is now char * const *, as per standard.
119631         * lib/getdate.y (tORDINAL): New token.
119632         (day, relunit): Allow it for relative times.
119633         (relative_time_table): Use tORDINAL for ordinals.
119635 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119637         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119638         Document that "second" isn't allowed as an ordinal number.
119640 2004-11-16  Jim Meyering  <jim@meyering.net>
119642         * modules/closeout (Depends-on): Add fpending.
119644 2004-11-15  Jim Meyering  <jim@meyering.net>
119646         * lib/closeout.c: Include "__fpending.h" once again.
119647         Include <stdbool.h>.
119648         (close_stdout): Don't fail just because stdout was closed initially,
119649         since some programs don't write to stdout in the normal course of
119650         operation (other than --version and --help), and we don't want this
119651         function to make e.g. `touch file >&-' fail.
119652         But do fail if it was closed and someone has tried to write to it.
119653         E.g., `printf foo >&-' must fail.
119655 2004-11-13  Jim Meyering  <jim@meyering.net>
119657         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119659 2004-11-12  Simon Josefsson  <jas@extundo.com>
119661         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119662         small doc fix is still pending.
119664 2004-11-11  Simon Josefsson  <jas@extundo.com>
119666         * modules/strtok_r: New file.
119668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119669         strtok_r.
119671 2004-11-11  Simon Josefsson  <jas@extundo.com>
119673         * m4/strtok_r.m4: New file.
119675         * m4/getopt.m4: Replace opterr.
119677 2004-11-11  Simon Josefsson  <jas@extundo.com>
119679         * lib/strtok_r.h, strtok_r.c: New file.
119681 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119683         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119684         of replacing opterr, getopt, etc.  This should handle the
119685         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119687 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119689         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119690         we can stop lying to compilers about the constness of argv when we
119691         are compiled outside glibc.
119692         (getopt, getopt_long, getopt_long_only): Use it.
119693         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119694         _getopt_internal, getopt): Likewise.
119695         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119696         _getopt_long_only_r): Likewise.
119697         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119698         _getopt_long_r, _getopt_long_only_r): Likewise.
119700         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119701         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119702         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119703         the other external symbols.
119704         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119705         declaration, since the above renaming now works around collisions.
119707 2004-11-11  Jim Meyering  <jim@meyering.net>
119709         * lib/linebreak.c: Remove trailing blanks.
119710         * lib/alloca_.h: Likewise.
119711         * lib/acosl.c: Likewise.
119712         * lib/euidaccess.c: Likewise.
119713         * lib/allocsa.h: Likewise.
119715 2004-11-10  Simon Josefsson  <jas@extundo.com>
119717         * m4/getaddrinfo.m4: New file.
119719 2004-11-10  Simon Josefsson  <jas@extundo.com>
119721         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
119723 2004-11-10  Simon Josefsson  <jas@extundo.com>
119725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119726         getaddrinfo.
119728         * modules/getaddrinfo: New file.
119730 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119732         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
119734 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119736         * lib/mktime.c (SHR): New macro, which is a portable
119737         substitute for >> that should work even on Crays.
119738         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
119739         Problem reported by Mark D. Baushke in
119740         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
119741         * lib/getdate.y (SHR): Likewise.
119742         (tm_diff): Use it.
119743         * lib/strftime.c (SHR): Likewise.
119744         (tm_diff): Use it.
119745         * lib/quotearg.c (struct quoting_options): Use unsigned int for
119746         quote_these_too, so that right shifts are well defined.  All uses
119747         changed.
119749 2004-11-10  Jim Meyering  <jim@meyering.net>
119751         Ensure that no close failure goes unreported.
119752         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
119753         return early when it seems there's nothing to flush.
119754         Don't include __fpending.h.
119756 2004-11-10  Jim Meyering  <jim@meyering.net>
119758         * modules/closeout (Depends-on): Remove fpending.
119760 2004-11-10  Jim Meyering  <jim@meyering.net>
119762         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
119764 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119766         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
119767         gl_FUNC_STRFTIME.
119768         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
119769         and AC_REQUIRE when possible, to avoid duplicate checks.
119770         Check for <wchar.h>.
119772 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119774         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
119776 2004-11-09  Bruno Haible  <bruno@clisp.org>
119778         * m4/sockpfaf.m4: New file.
119780 2004-11-05  Bruno Haible  <bruno@clisp.org>
119782         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
119783         Reported by Mark D. Baushke <mdb@cvshome.org>.
119785 2004-11-04  Bruno Haible  <bruno@clisp.org>
119787         2004-09-11  Bruno Haible  <bruno@clisp.org>
119788                 * allocsa.valgrind: New file.
119789         2004-02-06  Bruno Haible  <bruno@clisp.org>
119790                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
119791                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
119792                 Reported by Christopher Seip <chris.seip@hp.com>.
119794 2004-11-04  Bruno Haible  <bruno@clisp.org>
119796         * modules/allocsa (Files): Add lib/allocsa.valgrind.
119797         (Makefile.am): Distribute it.
119799 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
119801         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
119802         with errno == ERANGE if the buffer is too small.
119803         Problem reported by Mark D. Baushke.
119805 2004-11-03  Albert Chin  <china@thewrittenword.com>
119806             Paul Eggert  <eggert@cs.ucla.edu>
119808         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
119809         equivalent, substitute $ac_type for equivalent type rather than
119810         blindly using uint32_t *always* which won't work if uint32_t is not
119811         available.  Define _UINT32_T to work around typedef of uint32_t if
119812         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
119813         2.5.1.
119815 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119817         * m4/jm-macros.m4: Sync from coreutils.
119818         (gl_MACROS): Check for mbrlen, for pathchk.
119819         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
119821 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119823         * lib/xreadlink.c (MAXSIZE): New macro.
119824         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
119825         size does not exceed MAXSIZE.  Avoid cast.
119826         As suggested by Mark D. Baushke in
119827         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
119828         if readlink fails with buffer size just under MAXSIZE, try again
119829         with MAXSIZE.
119831 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119833         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
119835 2004-11-02  Derek R. Price  <derek@ximbiot.com>
119836         and  Paul Eggert  <eggert@cs.ucla.edu>
119838         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
119839         (get_date): Overparenthesize to avoid GCC warning.
119841 2004-11-02  Bruno Haible  <bruno@clisp.org>
119843         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
119844         returns void.
119846 2004-11-02  Bruno Haible  <bruno@clisp.org>
119848         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
119849         function returns void.
119851 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119853         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
119854         fflush_unlocked, flockfile, funlockfile, funlockfile,
119855         fputs_unlocked, putc_unlocked.
119857 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119859         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119860         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
119861         already declared.
119863 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119865         * modules/getdate (Files): Add doc/getdate.texi.
119866         (Depends-on): Add setenv, xalloc.
119868 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119870         * lib/getdate.y: Add support for TZ="foo" within a date string.
119871         Fix some bugs near time_t boundaries.  Reject dates with
119872         out-of-range components, e.g., "Sept 31".
119873         Include <stdlib.h>, "setenv.h", "xalloc.h".
119874         (ISDIGIT_LOCALE): Remove; unused.
119875         Note that the TZ and time functions used here are not reentrant.
119876         (mktime_ok, get_tz): New functions.
119877         (TZBUFSIZE): New constant.
119878         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
119879         This requires that we sometimes generate our own TZ="XXX..." setting.
119881 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119883         * doc/getdate.texi: New file, from coreutils with modifications for
119884         the new TZ parsing.
119886 2004-10-27  Derek R. Price  <derek@ximbiot.com>
119888         * lib/mktime.c (not_equal_tm): Remove redundant check.
119890 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
119892         * modules/regex (lib_SOURCES): Add regex.c.
119893         Reported by James Youngman in
119894         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
119896 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
119898         * lib/getdate.y: Use Bison 1.875 features, and some minor
119899         code cleanups.  This change does not affect semantics.
119900         Don't include <stdlib.h>; no longer needed.
119901         Don't include unlocked-io.h; only the "#if TEST" code uses
119902         stdio, and performance isn't crucial there.
119903         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
119904         Bison 1.875 features as described below.
119905         All uses of "PC." replaced by "pc->".
119906         (YYSTYPE): Add a forward declaration.
119907         (yylex, yyerror): Use full prototypes in forward decls.
119908         Use "%pure-parser" rather than obsolescent "%pure_parser".
119909         Use %parse-param and %lex-param instead of obsolescent
119910         YYPARSE_PARAM and YYLEX_PARAM.
119911         (meridian_table, month_and_day_table, time_units_table,
119912         relative_time_table, time_zone_table, military_table,
119913         lookup_zone, lookup_word, get_date):
119914         Use NULL instead of 0 where appropriate.
119915         (to_hour): Avoid abort (), to avoid a dependency on
119916         stdlib.h.
119917         (yyerror, yylex): Now accepts parser_control * arg.
119918         (main) [TEST]: Use '\0' rather than 0 for char.
119920 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
119922         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
119924 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
119926         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
119927         It's now the caller's responsibility to handle the case where
119928         !HAVE_GETPAGESIZE && !defined getpagesize.
119930         * lib/mktime.c (leapyear): Arg is long int, not int.
119932 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
119934         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
119936 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
119938         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
119939         missing.  Problem reported by James Youngman.
119941 2004-10-16  Simon Josefsson  <jas@extundo.com>
119943         * gnulib-tool: Fix comments.  Fix parse problem.
119944         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
119946 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
119948         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
119949         implementation of getopt_long.  Problem reported by Alexander Taler in:
119950         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
119952 2004-10-15  Bruno Haible  <bruno@clisp.org>
119954         * gnulib-tool: Untabify. Initialize supplied_libname.
119955         (func_usage): More homogenous output.
119956         (func_modules_transitive_closure, func_modules_to_filelist,
119957         func_emit_lib_Makefile_am): New functions.
119958         (func_import): New function, extracted from big case statement. Use
119959         func_get_license, func_modules_transitive_closure,
119960         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
119961         opt_lgpl. Don't use test -a, as it's not portable.
119962         (func_create_testdir): Use func_modules_transitive_closure,
119963         func_modules_to_filelist, func_emit_lib_Makefile_am.
119965 2004-10-15  Bruno Haible  <bruno@clisp.org>
119967         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
119969 2004-10-15  Bruno Haible  <bruno@clisp.org>
119971         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
119972         the portions belonging to each module.
119973         Suggested by Derek Robert Price <derek@ximbiot.com>.
119975 2004-10-12  Simon Josefsson  <jas@extundo.com>
119977         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119978         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
119979         to real functions.
119981 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119983         * modules/vsnprintf: New file.
119985 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119987         * m4/vsnprintf.m4: New file.
119989 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
119991         * lib/vsnprintf.h: New file.
119992         * lib/vsnprintf.c: New file.
119994 2004-10-11  Bruno Haible  <bruno@clisp.org>
119996         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
119997         vsnprintf.
119999 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120001         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120003 2004-10-07  Bruno Haible  <bruno@clisp.org>
120005         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120006         fits into the provided buffer.
120008 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120010         * lib/diacrit.c, diacrit.h: Add GPL notice.
120012         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120013         notice.
120014         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120015         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120016         This avoids a potential constant-folding bug.
120018 2004-10-05  Bruno Haible  <bruno@clisp.org>
120020         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120021         for the declaration of strsep.
120023 2004-10-05  Bruno Haible  <bruno@clisp.org>
120025         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120027 2004-10-04  Simon Josefsson  <jas@extundo.com>
120029         * modules/memmem: New file.
120030         * tests/test-memmem.c: New file.
120031         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120033 2004-10-04  Simon Josefsson  <jas@extundo.com>
120035         * m4/memmem.m4: New file.
120037 2004-10-04  Simon Josefsson  <jas@extundo.com>
120039         * lib/memmem.h: New file.
120040         * lib/memmem.c: New file, taken from glibc.
120042 2004-10-04  Simon Josefsson  <jas@extundo.com>
120044         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120045         '#ifdef USE_UNLOCKED_IO'.
120047 2004-10-04  Simon Josefsson  <jas@extundo.com>
120049         * config/srclist.txt: Add memmem from glibc.
120051 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120053         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120055         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120056         modules/exclude, modules/getdate, modules/getline,
120057         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120058         modules/getusershell, modules/linebuffer, modules/md5,
120059         modules/mountlist, modules/posixtm, modules/readtokens,
120060         modules/readutmp, modules/regex, modules/sha1,
120061         modules/version-etc, modules/yesno:
120062         Remove dependency on unlocked-io.
120064 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120066         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120068         * m4/unlocked-io.m4: Add copyright notice.
120069         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120071 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120073         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120074         * lib/xmalloc.c (xmemdup): Likewise.
120075         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120076         XFREE): Remove these long-obsolescent macros.
120077         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120078         * lib/xstrdup.c: Remove.
120080         * lib/regex.c (re_comp): Cast gettext return value to char *,
120081         Problem reported by Martin Neitzel via Mark D. Baushke.
120083 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120085         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120086         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120087         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120088         regex.c, sha1.c, version-etc.c, yesno.c:
120089         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120090         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120091         the includer's responsibility.
120093         Sync from coreutils.
120095         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120096         points to the start of a string, as the C Standard says the
120097         resulting behavior is undefined.
120099         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120100         simple -> simple_backups, numbered_existing ->
120101         numbered_existing_backups, numbered -> numbered_backups
120102         to avoid shadowing problems.  All uses changed.
120103         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120104         * lib/backupfile.c (check_extension, numbered_backup):
120105         Rename locals to avoid shadowing 'basename'.
120106         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120107         once.
120109         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120110         * lib/.cvsignore: Add getopt.h.
120112 2004-10-04  Bruno Haible  <bruno@clisp.org>
120114         * modules/README: New file.
120115         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120116         not a module.
120118 2004-10-02  Jim Meyering  <jim@meyering.net>
120120         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120122 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120124         * modules/strsep: New file.
120126 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120128         * m4/strsep.m4: New file.
120130 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120132         * lib/strsep.h: New file.
120133         * lib/strsep.c: New file.
120135 2004-10-01  Simon Josefsson  <jas@extundo.com>
120137         * lib/snprintf.c (snprintf): Handle size==0.
120139 2004-10-01  Simon Josefsson  <jas@extundo.com>
120140             Bruno Haible  <bruno@clisp.org>
120142         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120143         (snprintf): Declare 'args'.
120145 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120147         * lib/snprintf.c: Remove comments as to why each header is needed.
120149 2004-10-01  Bruno Haible  <bruno@clisp.org>
120151         * MODULES.html.sh: Add strsep.
120153 2004-09-30  Simon Josefsson  <jas@extundo.com>
120155         * modules/snprintf: New file.
120157 2004-09-30  Simon Josefsson  <jas@extundo.com>
120159         * m4/snprintf.m4: New file.
120161 2004-09-30  Simon Josefsson  <jas@extundo.com>
120163         * lib/snprintf.h, lib/snprintf.c: New files.
120165 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120167         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120168         (hol_entry_help): Never translate an empty string.
120169         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120170         * lib/argp.h (OPTION_NO_TRANS): New option.
120172 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120174         * modules/argp (Maintainer): Replace Simon Josefsson
120175         by Sergey Poznyakoff.
120177 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120179         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120180         changes merged back into glibc.
120182 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120184         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120186 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120188         * lib/xvasprintf.c: Include xalloc.h.
120189         (xvasprintf): Use xalloc_die, not xmalloc_die.
120191 2004-09-29  Bruno Haible  <bruno@clisp.org>
120193         * modules/alloca-opt: New file, derived from modules/alloca.
120194         * modules/allocsa: Depend on alloca-opt instead of alloca.
120195         * modules/setenv: Likewise.
120196         * modules/vasnprintf: Likewise.
120197         * MODULES.html.sh: Add alloca-opt.
120199 2004-09-28  Simon Josefsson  <jas@extundo.com>
120201         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120202         LGPL, and to replace license template from GPL to LGPL.
120204 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120206         * modules/dummy: Change license to LGPL.
120208 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120210         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120212 2004-09-24  Simon Josefsson  <jas@extundo.com>
120214         * modules/minmax (License): Change from GPL to LGPL.
120216 2004-09-23  Simon Josefsson  <jas@extundo.com>
120218         * gnulib-tool (--import): Typo.
120220 2004-09-23  Simon Josefsson  <jas@extundo.com>
120222         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120224 2004-09-22  Bruno Haible  <bruno@clisp.org>
120226         * modules/*: Add 'License' field.
120227         * gnulib-tool: Accept --extract-license option.
120228         (func_get_license): New function.
120230 2004-09-21  Bruno Haible  <bruno@clisp.org>
120232         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120233         Reported by Simon Josefsson.
120235 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120237         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120238         gl_AC_TYPE_LONG_LONG.
120240 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120242         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120244 2004-09-18  Simon Josefsson  <jas@extundo.com>
120245         and  Paul Eggert  <eggert@cs.ucla.edu>
120247         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120248         calls with autoreconf.  Define GL_LIB.
120250 2004-09-14  Karl Berry  <karl@gnu.org>
120252         * config/srclist.txt: unsync setenv.c, sigh.
120254 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120256         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120257         Problem reported by Bruno Haible in:
120258         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120260 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120262         * config/srclist.txt: Comment out argp-pvh.c.
120264 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120266         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120267         in case some system header has #define'd it.  Problem reported by
120268         Soeren D. Schulze in
120269         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120271 2004-09-09  Karl Berry  <karl@gnu.org>
120273         * regex.[ch]: delete from the root.  These were supposed to be
120274                 synced with emacs cvs, but this has not happened for about
120275                 a year, and anyway nothing else uses emacs regex.[ch].
120276                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120277                 lib/regex[.ch] is untouched.
120279 2004-09-09  Bruno Haible  <bruno@clisp.org>
120281         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120283 2004-09-09  Bruno Haible  <bruno@clisp.org>
120285         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120286         modifications.
120287         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120289 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120291         * modules/xvasprintf: New file.
120292         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120294 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120296         * lib/xvasprintf.h: New file.
120297         * lib/xvasprintf.c: New file.
120298         * lib/xasprintf.c: New file.
120300 2004-09-08  Bruno Haible  <bruno@clisp.org>
120302         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120304 2004-09-08  Bruno Haible  <bruno@clisp.org>
120306         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120307         length is > INT_MAX.
120308         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120309         more.
120311 2004-09-08  Bruno Haible  <bruno@clisp.org>
120313         * lib/stdint_.h: New file, taken from GNU clisp.
120315 2004-09-08  Bruno Haible  <bruno@clisp.org>
120316             Oskar Liljeblad  <oskar@osk.mine.nu>
120318         * modules/stdint: New file.
120319         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120321 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120323         Import from coreutils.
120324         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120325         strings on unbounded length.  alloca's performance benefits aren't
120326         that important here.
120327         (V_STRDUP): Remove.
120328         (parse_with_separator): New function, with most of the internals
120329         of the old parse_user_spec.  Allow user to omit both user and group,
120330         for compatibility with FreeBSD.
120331         Clone only the user name, not the entire spec.
120332         Do not set *uid, *gid unless entirely successful.
120333         Avoid memory leak in some failing cases.
120334         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120335         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120336         (parse_user_spec): Rewrite to use parse_with_separator.
120338 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120340         * modules/userspec: Don't depend on alloca.
120342 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120344         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120346 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120348         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120349         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120350         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120352 2004-08-16  Simon Josefsson  <jas@extundo.com>
120354         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120355         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120356         Add --dry-run for --import.
120357         Let user provided command line parameters override configure.ac
120358         settings.
120360 2004-08-12  Simon Josefsson  <jas@extundo.com>
120362         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120363         as discussed with Paul Eggert in threads rooted at
120364         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120365         and
120366         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120367         Before, the test was empty, and relied on ELIDE_CODE in source
120368         code.)
120369         (gl_PREREQ_GETOPT): New macro.
120370         (gl_GETOPT): Use them.
120372 2004-08-12  Simon Josefsson  <jas@extundo.com>
120374         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120375         * lib/getopt_.h: Renamed from getopt.h.
120377 2004-08-12  Simon Josefsson  <jas@extundo.com>
120379         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120380         Change default library name from libfoo to libgnu.
120381         Now, if you have a configure.ac that says:
120382                 gl_SOURCE_BASE(gl)
120383                 gl_M4_BASE(gl/m4)
120384                 gl_MODULES(error getopt etcetera)
120385                 gl_INIT
120386         you can import all you need by running:
120387                 ../gnulib/gnulib-tool --import
120389         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120390         (Makefile.am): Rewrite, use logic from argz.
120391         (Include): Use <getopt.h> instead of "getopt.h".
120393 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120395         * modules/argp (Files): Add m4/unlocked-io.m4.
120396         (Depends-on): Add extensions.
120398 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120400         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120401         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120402         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120403         Check for program_invocation_name, program_invocation_short_name,
120404         flockfile, funlockfile, features.h, _getopt_long_only_r.
120406 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120408         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120409         its complicated substitute.
120410         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120411         and program_invocation_name.
120412         (__argp_basename) [!_LIBC]: Remove; the only use was
120413         replaced by its body.
120414         (__argp_short_program_name): Change condition from
120415         !defined __argp_short_program_name to
120416         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120417         to match argp-namefrob.h.
120418         (__argp_failure): Don't assume strerror_r returns char *.
120419         * lib/argp-parse.c (N_): Define unconditionally.
120420         (argp_default_options): Fill out initializers with 0 to avoid
120421         gcc warnings.
120423 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120425         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120426         getopt1.c.
120428 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120430         Merge from coreutils.
120432         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120434         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120435         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120437 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120439         Merge from coreutils.
120441         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120442         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120443         for Reliant Unix 5.43.
120445         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120446         (union fooround): Use uintmax_t, not long int.
120447         The rest is a merge from libc:
120448         [defined _LIBC]: Include <shlib-compat.h>.
120449         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120451         * lib/settime.c (settime): Recode to avoid warning with
120452         Sun Forte C 6U2.
120454         * lib/strverscmp.c: Convert to UTF-8.
120456 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120458         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120459         m4/uintmax_t.m4.
120461 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120463         * modules/xalloc-die: New file.
120464         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120466         * modules/md5 (Files): Add m4/uint32_t.m4.
120467         * modules/sha1: Renamed from modules/sha.
120468         (Files):
120469         Rename lib/sha.h to lib/sha1.h.
120470         Rename lib/sha.c to lib/sha1.c.
120471         Rename m4/sha.m4 to m4/sha1.m4.
120472         (lib_SOURCES): Likewise.
120473         (configure.ac): Rename gl_SHA to gl_SHA1.
120474         (Include): sha.h -> sha1.h.
120476 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120478         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120479         * m4/sha1.m4: Renamed from sha.m4.
120480         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120482 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120484         * lib/obstack.h (obstack_empty_p):
120485         Don't assume that chunk->contents is suitably aligned.
120486         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120487         Likewise. Problem reported by Benno in
120488         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120490         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120491         readable.  This could be improved further but it'd take some work.
120493 2004-08-08  Simon Josefsson  <jas@extundo.com>
120495         * modules/xgethostname (Depends-on): Remove exit and error (not
120496         used).
120498         * modules/getpass-gnu: Add getpass.h.
120499         (Depends-on): Add stdbool.
120500         * modules/getpass: Add getpass.h.
120502 2004-08-08  Simon Josefsson  <jas@extundo.com>
120504         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120505         Check getpass declaration.
120507 2004-08-08  Simon Josefsson  <jas@extundo.com>
120509         * lib/xgethostname.c: Don't include error.h (not used).
120511         * lib/getpass.h: Add.
120512         * lib/getpass.c: Include getpass.h first.
120514 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120516         * lib/xalloc-die.c: New file.
120517         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120518         All uses removed.
120519         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120520         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120521         xalloc-die.c.
120522         (_, N_, xalloc_die): Move to xalloc-die.c.
120523         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120524         so that we needn't mess with xalloc_msg_memory_exhausted.
120526         * lib/sha1.h: Renamed from sha.h.
120527         (SHA1_H): Renamed from _SHA_H.
120528         (sha1_ctx): Renamed from sha_ctx.
120529         (sha1_init_ctx): Renamed from sha_init_ctx.
120530         (sha1_process_block): Renamed from sha_process_block.
120531         (sha1_process_bytes): Renamed from sha_process_bytes.
120532         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120533         (sha1_read_ctx): Renamed from sha_read_ctx.
120534         (sha1_stream): Renamed from sha_stream.
120535         (sha1_buffer): Renamed from sha_buffer.
120536         * lib/sha1.c: Likewise; renamed from sha.c.
120537         Do not include <sys/types.h>.
120538         Include <stddef.h> rather than <stdlib.h>.
120540 2004-08-08  Bruno Haible  <bruno@clisp.org>
120542         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120543         FILESYSTEM_PREFIX_LEN.
120544         * lib/progreloc.c: Likewise.
120545         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120547 2004-08-06  Simon Josefsson  <jas@extundo.com>
120549         * modules/progname (Depends-on): Don't depend on stdbool.
120551 2004-08-06  Simon Josefsson  <jas@extundo.com>
120553         * modules/getsubopt: New file.
120554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120555         getsubopt.
120557 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120559         More merge from coreutils.
120561         * m4/utimens.m4, m4/utimecmp.m4: New files.
120562         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120563         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120564         prereq.m4, sha.m4: Import changes from coreutils.
120566 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120568         More merge from coreutils.
120569         * modules/raise, modules/readtokens0, modules/utimens:
120570         * modules/utimecmp, module/xnanosleep: New files.
120571         * modules/strftime: Add lib/strftime.h.
120572         Change include from <time.h> to "strftime.h".
120573         * modules/yesno: Add lib/yesno.h.
120574         * modules/backupfile: Remove lib/addext.c.
120575         * modules/euidaccess: Add stat-macros.h.
120576         * modules/canonicalize, modules/euidaccess,
120577         modules/filemode, modules/lchown, modules/makepath,
120578         modules/rmdir, modules/stat: Likewise.
120580 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120582         Merge from tar.
120583         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120584         SIZE_MAX is a valid preprocessor constant.
120585         (__argp_basename): Change from "#ifndef _LIBC"
120586         to "#ifndef __argp_short_program_name", so that
120587         we don't compile these functions for tar.
120589         More merges from coreutils.
120590         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120591         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120592         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120593         * lib/addext.c: Remove; no longer needed.
120594         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120595         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120596         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120597         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120598         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120599         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120600         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120601         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120602         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120603         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120604         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120605         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120606         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120607         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120608         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120609         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120610         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120611         Import changes from coreutils.
120613 2004-08-05  Simon Josefsson  <jas@extundo.com>
120615         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120617 2004-08-05  Simon Josefsson  <jas@extundo.com>
120619         * m4/getsubopt.m4: New file.
120621 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120623         Merge from coreutils.
120625         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120626         * m4/getcwd-path-max.m4: New files.
120628         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120629         FILESYSTEM_PREFIX_LEN ->
120630         FILE_SYSTEM_PREFIX_LEN.
120631         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120632         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120633         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120634         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120636         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120637         prerequisite modules now handle the DOS stuff.
120638         Don't check for unistd.h.
120640 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120642         Merge from coreutils.
120644         * lib/.gdb-history: Remove; this doesn't belong here.
120646         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120647         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120648         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120649         * lib/getcwd.c: New files.
120651         * lib/dirname.h: Include <stdbool.h>.
120652         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120653         for consistency with POSIX terminology.  All uses changed.
120654         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120655         (strip_trailing_slashes): Use bool for booleans.
120656         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120658         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120659         sometimes returns a positive errno value even when it succeeds.
120660         (print_errno_message) [!LIBC]: Fall back on strerror if
120661         __strerror_r fails.
120663         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120664         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120665         (longest_relative_suffix): New function.
120666         (path_concat): Use it.  Assume first argument is not NULL.
120667         Port to DOS.  Omit redundant separators.
120668         Report an error instead of returning NULL.
120669         Use mempcpy instead of memcpy.
120670         (xpath_concat): Remove: not declared or used.
120672         * lib/same.h: Include <stdbool.h>
120673         (same_name): Return bool, not int.
120674         * lib/same.c (same_name): Likewise.
120675         (errno): Don't declare; we assume C89 or better now.
120677         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120678         if not already defined.
120680         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120681         * lib/dup-safer.c (errno): Likewise.
120683 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120685         Merge from coreutils.
120686         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120687         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120688         * modules/path-concat: Don't depend on strdup.
120690 2004-08-03  Simon Josefsson  <jas@extundo.com>
120692         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120693         * lib/progname.h: Don't include stdbool.h.
120695 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120697         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120698         * MODULES.html.sh (func_all_modules): Remove fatal.
120700 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120702         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120704 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120706         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120707         working.
120709 2004-08-02  Simon Josefsson  <jas@extundo.com>
120711         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120712         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120713         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120715 2004-08-01  Simon Josefsson  <jas@extundo.com>
120717         * lib/xgetdomainname.c: Include stdlib.h, for free().
120719 2004-07-19  Bruno Haible  <bruno@clisp.org>
120721         * MODULES.html.sh (func_all_modules): Add dummy.
120723 2004-07-16  Simon Josefsson  <jas@extundo.com>
120725         * modules/dummy: New file.
120727 2004-07-16  Simon Josefsson  <jas@extundo.com>
120729         * lib/dummy.c: New file.
120731 2004-07-16  Bruno Haible  <bruno@clisp.org>
120733         * lib/backupfile.h: Add extern "C" for C++.
120734         * lib/closeout.h: Likewise.
120735         * lib/copy-file.h: Likewise.
120736         * lib/findprog.h: Likewise.
120737         * lib/full-write.h: Likewise.
120738         * lib/pathname.h: Likewise.
120739         * lib/progname.h: Likewise.
120740         * lib/stpcpy.h: Likewise.
120741         * lib/stpncpy.h: Likewise.
120742         * lib/strcase.h: Likewise.
120743         * lib/strstr.h: Likewise.
120744         * lib/xalloc.h: Likewise.
120746         * lib/mbswidth.h: Add extern "C" for C++.
120747         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
120749 2004-07-13  Robert Millan  <robertmh@gnu.org>
120751         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
120753 2004-07-09  Simon Josefsson  <jas@extundo.com>
120755         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
120756         failed without this.)
120758 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120760         * modules/chown (Files): Add lib/fchown-stub.c, since
120761         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
120763 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120765         * lib/fchown-stub.c: New file.
120767 2004-06-24  Jim Meyering  <jim@meyering.net>
120769         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
120771 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120773         * modules/argz: Omit "#include".
120775         * MODULES.html.sh (func_all_modules): Add calloc, to match
120776         2004-06-01 addition of calloc module.
120778 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120780         * m4/argz.m4: New file, which is autoupdated from libtool.
120782 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120784         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
120785         libtool.
120787 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120789         * config/srclist-update: Don't insist on "USA." before the
120790         close-comment, as libtool omits the period and puts the */ on a
120791         separate line.
120792         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
120793         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
120795 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
120797         * modules/argz: New file.
120798         * MODULES.html.sh (func_all_modules): Add argz.
120800 2004-06-12  Jim Meyering  <jim@meyering.net>
120801         and  Paul Eggert  <eggert@cs.ucla.edu>
120803         * modules/hash (Files): Add lib/xalloc.h.
120804         * modules/pipe (Depends-on): Add wait-process.
120805         * modules/stat (Depends-on): Add xalloc.
120806         * modules/userspec (Files): Add lib/userspec.h.
120807         * modules/xstrto
120809         Upgrade from gettext-0.13.
120810         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
120811         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
120812         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
120814 2004-06-10  Jim Meyering  <jim@meyering.net>
120816         * lib/calloc.c: New file.
120818 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
120820         * lib/getdate.y (yylex): Allow space between sign and number.
120821         Problem reported by Dan Jacobson.
120823 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120825         Merge from coreutils CVS.
120827         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
120828         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
120829         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
120830         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
120831         xstrtol.m4: Fix copyright date and/or serial number.
120833         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
120834         See if we need an fchown replacement.
120835         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
120836         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
120837         and use the replacement function if we detect either defect.
120839         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
120840         gl_UTIMECMP.
120842 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120843         and  Jim Meyering  <jim@meyering.net>
120845         Merge from coreutils CVS.
120847         * lib/stat-macros.h: New file, with contents from file-type.h
120848         and coreutils' system.h.
120849         * lib/file-type.c: Include "stat-macros.h".
120850         * lib/file-type.h (file_type): Move all macro definitions to new file,
120851         stat-macros.h.
120853         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
120854         Wrap old code with this conditional.
120855         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
120856         function that does not dereference symlinks.
120857         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
120859         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
120860         dependency problems.
120861         (xreadlink): Accept new arg SIZE, for efficiency.
120862         All decls and uses changed.
120863         * lib/xreadlink.h: Include <stddef.h>, for size_t.
120865         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
120866         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
120868         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
120869         sysexits.h.
120871 2004-06-01  Jim Meyering  <jim@meyering.net>
120873         * m4/calloc.m4: New file.
120875 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
120877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
120878         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
120879         Also, fix a typo in a diagnostic.
120881 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
120883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
120884         or AC_FUNC_REALLOC.
120886 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
120888         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
120889         macros to be defined.
120890         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
120891         the allocator returns NULL because the requested size is zero.
120893 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120895         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
120896         var.  Add comment explaining why libc still defines it.  This
120897         merges the following patch from glibc:
120898         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
120900 2004-05-20  Andreas Schwab  <schwab@suse.de>
120902         * m4/free.m4: Replace free if it not known to work, not the other
120903         way round.
120905 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
120907         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
120908         present in glibc since revision 1.1 of this file.
120909         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
120910         obstack_alignment_mask, obstack_alloc, obstack_base,
120911         obstack_blank, obstack_blank_fast, obstack_chunk_size,
120912         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
120913         obstack_grow0, obstack_init, obstack_int_grow,
120914         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
120915         obstack_next_free, obstack_object_size, obstack_ptr_grow,
120916         obstack_ptr_grow_fast, obstack_room): Remove declarations of
120917         nonexistent functions.
120919 2004-05-18  Karl Berry  <karl@gnu.org>
120921         * config/srclist.txt: break link for vasnprintf.c.
120923 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
120925         Port obstack to the AS/400, where pointers are 16 bytes wide and
120926         you cannot cast an integer to a valid pointer.  This patch is
120927         currently waiting to be integrated into glibc; see
120928         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
120930         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
120931         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
120932         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
120933         (struct obstack): temp member is now a union of a pointer and
120934         an integer, instead of an integer.  All integer uses changed.
120935         This does not affect the physical layout of struct obstack,
120936         except on hosts (like the AS/400) where the size or alignment of
120937         void * is greater than that of ptrdiff_t.
120938         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
120939         __STDC__)]: Store temporary in pointer member of union, not
120940         integer member.
120941         * lib/obstack.c: Include <stddef.h>, for offsetof.
120942         (struct fooalign): Remove; it doesn't need a name.
120943         (union fooround): Change double to long double, and add void *.
120944         (DEFAULT_ALIGNMENT): Use offsetof to compute.
120945         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
120946         not a macro.  Hence the values are always int; so remove all
120947         casts-to-int in uses.
120949 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
120951         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
120952         we can get this patch merged into glibc.
120954 2004-05-17  Derek R. Price  <derek@ximbiot.com>
120955             Paul Eggert  <eggert@cs.ucla.edu>
120957         * m4/argp: Depend on alloca.
120959 2004-05-17  Derek R. Price  <derek@ximbiot.com>
120960             Paul Eggert  <eggert@cs.ucla.edu>
120962         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
120963         freecoding.
120965 2004-05-17  Bruno Haible  <bruno@clisp.org>
120967         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
120968         precision that consists of a '.' followed by an empty digit string.
120969         Patch by Tor Lillqvist <tml@iki.fi>.
120971 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
120973         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
120974         for backward compatibility with older code.  We need our own
120975         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
120976         it under some other name, and our alloca.h will define it.
120978 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
120979             Derek Price  <derek@ximbiot.com>
120981         * lib/alloca.c: Include <alloca.h>, to get our interface.
120982         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
120983         include <alloca.h> first.  Use C89 prototype for alloca; this
120984         requires including <stddef.h> for size_t.  Use extern "C" if C++.
120985         Use #elif for simplicity, since we can assume C89 now.
120986         Don't try to source the system alloca.h since it will not be found
120987         and to prevent recursively including its replacement.
120988         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
120989         * lib/regex.c: Likewise.
120991 2004-05-16  Derek Price  <derek@ximbiot.com>
120992             Paul Eggert  <eggert@cs.ucla.edu>
120994         getline cleanup.  This changes the getndelim2 API: both order of
120995         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
120996         no delimiter).
120998         * lib/getline.c: Don't include stddef.h or stdio.h, since our
120999         interface does that.
121000         (getline): Always use getdelim, so that we don't have two
121001         copies of this code.
121002         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121003         if available.
121004         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121005         (GETNDELIM2_MAXIMUM): New macro.
121006         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121007         instead of the old practice of delim2==0.  All callers changed.
121008         Return -1 on overflow, instead of returning junk.
121009         Do not set *linesize unless allocation succeeds.
121010         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121011         that we include sys/types.h.
121012         * lib/getnline.h: Likewise.
121013         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121014         (getndelim2): Reorder arguments.
121015         * lib/getnline.c (getnline, getndelim):
121016         Don't discard the NMAX argument.
121017         (getnline): Invoke getndelim, to avoid code duplication.
121018         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121019         of (size_t) -1 by callers of the getnline family.
121021 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121023         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121024         Check for gettimeofday.
121025         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121026         Check for settimeofday, stime.
121028 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121030         * lib/nanosleep.c (suspended): Change its type from int to
121031         sig_atomic_t volatile.
121032         (first_call): Make it private to rpl_nanosleep, and have it
121033         be zero initially as that's a bit faster.
121034         (my_usleep): Round up fractional times instead of truncating them,
121035         as this is the usual meaning for 'sleep'.
121037         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121038         doesn't work.
121039         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121040         (ENOSYS): Define if not defined.
121041         (settime): Fall back on stime if it exists and settimeofday fails.
121042         But don't bother with fallbacks if a method fails with errno == EPERM.
121044 2004-05-11  Jim Meyering  <jim@meyering.net>
121046         Prior to this change, the save_cwd caller required read access to the
121047         current directory on most systems (ones with the fchdir function).
121049         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121050         fails, try write-only, and finally, resort to using xgetcwd.
121052 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121054         * lib/obstack.c, obstack.h: Import changes from libc.
121056 2004-04-28  Bruno Haible  <bruno@clisp.org>
121058         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121059         also implicitly appends .exe to executables.
121060         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121061         accepts Windows pathnames.
121062         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121063         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121064         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121065         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121066         Reported by Derek Robert Price <derek@ximbiot.com>.
121068 2004-04-21  Karl Berry  <karl@gnu.org>
121070         * config/srclist.txt (localcharset.c): break sync.
121072 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121074         * m4/host-os.m4: Add a copyright notice.
121076 2004-04-20  Jim Meyering  <jim@meyering.net>
121078         Change UTILS_ to gl_ in AC_DEFINE'd names.
121079         Change utils_- and jm_-prefixed variables, too.
121080         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121081         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121084         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121085         Don't emit trailing blanks.
121086         Also rename jm_-prefixed variables to have gl_ prefix.
121088         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121089         Also rename jm_-prefixed variables to have gl_ prefix.
121091         * m4/jm-macros.m4: Reflect the renamings.
121092         * m4/prereq.m4: Likewise.
121094 2004-04-20  Jim Meyering  <jim@meyering.net>
121096         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121097         memory.
121099 2004-04-20  Jim Meyering  <jim@meyering.net>
121100             Bruno Haible  <bruno@clisp.org>
121102         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121103         memory when realloc fails.
121105 2004-04-19  Jim Meyering  <jim@meyering.net>
121107         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121108         now that readutmp.c may call `free (0)'.
121110 2004-04-19  Bruno Haible  <bruno@clisp.org>
121112         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121113         * m4/inttypes_h.m4: Likewise.
121114         * m4/stdint_h.m4: Likewise.
121115         * m4/intmax_t.m4: Likewise.
121116         * m4/uintmax_t.m4: Likewise.
121118 2004-04-18  Jim Meyering  <jim@meyering.net>
121120         * m4/prereq.m4: Don't forbid jm_ prefix.
121122         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121123         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121124         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121125         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121126         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121127         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121128         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121129         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121130         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121131         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121132         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121133         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121134         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121135         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121136         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121137         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121138         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121139         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121140         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121142 2004-04-18  Jim Meyering  <jim@meyering.net>
121144         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121145         failure, don't leak memory and do call END_UTMP_ENT.
121147 2004-04-16  Jim Meyering  <jim@meyering.net>
121149         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121150         coreutils' stat program.
121151         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121153 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121155         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121156         C89.
121157         (CHAR_BIT): Remove, since we assume C89.
121158         Include <stdint.h> if available, as per current Autoconf CVS advice.
121160 2004-03-31  Jim Meyering  <jim@meyering.net>
121162         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121163         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121164         * m4/xalloc.m4: Likewise.
121166 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121168         Merge from coreutils.
121170         * m4/inttostr.m4: New file.
121171         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121172         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121173         Require gl_CLOCK_TIME.
121174         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121176 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121178         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121179         not bool, to be more consistent with Unix conventions.
121180         Suggested by Bruno Haible.
121182         Merge from coreutils.
121184         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121185         * lib/umaxtostr.c: New files.
121187         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121188         the usual <time.h> dance.
121189         (get_date): Change signature to support fractional time stamps.
121190         All callers changed.
121191         * lib/getdate.y: Include "getdate.h" first, as we can now
121192         assume C89 and don't need to worry about 'const'.
121193         Similarly, include "unlocked-io.h" near start, not in middle.
121194         Include <limits.h>.
121195         (textint.value): Use long int rather than int.
121196         (textint.digits): Use size_t rather than int.
121197         (BILLION, LOG10_BILLION): New constants.
121198         (parser_control): New member rel_ns.  Members day_ordinal,
121199         time_zone, month, day, hour, minutes, rel_year, rel_month,
121200         rel_day, rel_hour, rel_minutes, rel_seconds
121201         are now long int, not int.  Member seconds is now struct timespec,
121202         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121203         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121204         not int.
121205         (%union.intval): Now long int, not int.
121206         New member timespec.
121207         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121208         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121209         (spec): Now is a timespec or an item list.
121210         (timespec, items): New nonterminals.
121211         (time, rel, relunit, number, get_date):
121212         Add support for fractional seconds.
121213         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121214         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121215         (to_hour): First arg is now long int, not int.
121216         (to_year): Returns long int, not int.
121217         Don't treat year -70 like 70.
121218         (tm_diff): Returns long int, not int.
121219         (lookup_word): Use bool instead of int when appropriate.
121220         (yylex): Use size_t for count, not int.
121221         Detect overflow when parsing large integer constants.
121222         Add support for fractions.
121223         (get_date): Make pointers 'const' if possible.
121224         Use more-portable code to detect integer overflow.
121225         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121226         Don't use ctime; it's not reliable if the year has >4 digits.
121228         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121229         This is for compatibility with BSD.
121231         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121232         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121233         From coreutils' system.h.
121235         * lib/userspec.c: Don't include "posixver.h".
121236         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121237         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121238         compatible extension.  Simplify code by removing a boolean int
121239         that was always nonzero if a string was nonnull.
121241 2004-03-30  Jim Meyering  <jim@meyering.net>
121243         Merge from coreutils.
121245         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121246         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121247         on some systems one must include <grp.h> before it.
121248         Reported by Christian Krackowizer.
121250 2004-03-30  Jim Meyering  <jim@meyering.net>
121252         Merge from coreutils.
121254         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121256         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121257         an empty input stream.
121259         * lib/readtokens.c: Include <stdbool.h>.
121260         (readtoken): Use `size_t' rather than int/long.
121261         All callers adjusted.
121262         Use `bool' rather than `int' where appropriate.
121263         Use memset rather than an explicit loop.
121264         Use x2nrealloc rather than xrealloc.
121265         Allow the use of `\0' as a delimiter.
121266         (readtokens): Likewise.
121267         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121269 2004-03-30  Jim Meyering  <jim@meyering.net>
121271         * m4/realloc.m4: Remove file, since now it does no more than
121272         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121273         the `configure.ac' section of module/realloc.
121274         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121276 2004-03-30  Bruno Haible  <bruno@clisp.org>
121278         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121279         nonnull.
121281 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121283         Merge changes to getloadavg.c from coreutils and Emacs.
121285         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121286         Define to an expression, not to the empty string.
121287         Include cloexec.h and xalloc.h.
121288         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121289         Use set_cloexec_flag rather than rolling our own.
121290         * lib/cloexec.c, lib/cloexec.h: New files.
121292 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121294         * m4/cloexec.m4: New file.
121296 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121298         * lib/getopt.h: Sync with libc CVS.
121300 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121301             Bruno Haible  <bruno@clisp.org>
121303         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121304         mbswidth.
121306 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121307             Bruno Haible  <bruno@clisp.org>
121309         * lib/mbswidth.h: Include <wchar.h> only if
121310         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121311         <wchar.h>.
121312         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121314 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121316         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121317         Sync with libc CVS.
121318         * lib/getopt_int.h: New file, also synced from libc.
121320 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121322         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121323         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121324         Bring back getopt.c, getopt.h, getopt1.c.
121326 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121328         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121329         All uses changed.  Check for sa_sigaction member; this fixes
121330         a bug first reported by Jason Andrade in
121331         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121333 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121335         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121336         '#if' expressions.  Unlike the code it replaces, it does not
121337         depend on (defined _SC_PAGESIZE).  However, it does depend on
121338         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121339         first reported by Jason Andrade in
121340         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121342 2004-02-25  Simon Josefsson  <jas@extundo.com>
121344         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121346 2004-02-25  Simon Josefsson  <jas@extundo.com>
121348         * lib/strdup.h: New file.
121349         * lib/strdup.c: Include it.
121350         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121351         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121353 2004-02-23  Karl Berry  <karl@gnu.org>
121355         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121356         (from fencepost.gnu.org:/gd/gnuorg).
121358 2004-02-23  Karl Berry  <karl@gnu.org>
121360         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121361         * config/srclist.txt: add maintain/standards documents.
121363 2004-02-18  Bruno Haible  <bruno@clisp.org>
121365         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121366         Reported by Derek Robert Price <derek@ximbiot.com>.
121368 2004-02-16  Karl Berry  <karl@gnu.org>
121370         * config/mkinstalldirs, install-sh: update from automake.
121372 2004-02-06  Karl Berry  <karl@gnu.org>
121374         * m4/po.m4: update from gettext 0.14.1.
121376 2004-02-06  Karl Berry  <karl@gnu.org>
121378         * lib/config.charset: update from gettext 0.14.1.
121380 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121382         Add comments and code, prompted by suggestions from Bruno Haible
121383         for sh-quote.
121384         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121385         describing the enum quoting_style values.
121386         * lib/quotearg.c (quotearg_alloc): New function.
121387         (quotearg_buffer_restyled): Treat lone { and } as special.
121388         Treat = as special.  Work around bug with older shells
121389         that "see" a '\' that is really the 2nd byte of a multibyte char.
121390         Quote empty string with shell_quoting_style.
121392 2004-02-03  Bruno Haible  <bruno@clisp.org>
121394         * m4/pipe.m4: New file, from GNU gettext.
121396 2004-02-03  Bruno Haible  <bruno@clisp.org>
121398         * lib/pipe.h: New file, from GNU gettext.
121399         * lib/pipe.c: New file, from GNU gettext.
121401 2004-01-27  Bruno Haible  <bruno@clisp.org>
121403         * m4/execute.m4: New file, from GNU gettext.
121405 2004-01-27  Bruno Haible  <bruno@clisp.org>
121407         * lib/execute.h: New file, from GNU gettext.
121408         * lib/execute.c: New file, from GNU gettext.
121409         * lib/w32spawn.h: New file, from GNU gettext.
121411 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121413         Merge from diffutils.
121415         * lib/file-type.c (file_type): Add typed memory objects.
121416         * lib/file-type.h (S_TYPEISTMO): New macro.
121418         * lib/c-stack.h (c_stack_action): Remove argv argument.
121419         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121420         (die): Don't calculate message unless segv_action returns.
121421         (get_stack_location, min_address_from_argv, max_address_from_argv,
121422         volatile stack_base, volatile_stack_size): Remove.
121423         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121424         that every segmentation violation is a stack overflow.  (Ouch!)
121425         See Debian bug 136249 (still outstanding) for more info about why
121426         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121428 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121430         Exit-status fix from coreutils.
121432         Use exit_failure consistently in place of EXIT_FAILURE,
121433         so that program exit statuses are consistent on failure.
121435         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121436         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121437         * lib/argmatch.h: Comment fix to match the above.
121438         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121439         Now a macro referring to exit_failure, instead of a separate
121440         variable.  Include "exitfail.h" to get it.
121441         * lib/xstrtol.h: Include "exitfail.h".
121442         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121444         * lib/long-options.c (parse_long_options): Use prototype
121445         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121446         for clarity.
121448 2004-01-21  Jim Meyering  <jim@meyering.net>
121450         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121451         so as not to conflict with a different-sized __mktime_internal
121452         function in GNU libc.
121453         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121454         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121456 2004-01-20  Karl Berry  <karl@gnu.org>
121458         * config/config.guess: update from config.
121460         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121462 2004-01-20  Bruno Haible  <bruno@clisp.org>
121464         Safer stack allocation.
121465         * lib/setenv.c: Include allocsa.h.
121466         (alloca): Remove fallback definition.
121467         (freea): Remove macro.
121468         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121469         instead of freea.
121471 2004-01-20  Bruno Haible  <bruno@clisp.org>
121473         * m4/eealloc.m4: New file, from GNU gettext.
121475 2004-01-20  Bruno Haible  <bruno@clisp.org>
121477         * m4/allocsa.m4: New file, from GNU gettext.
121479 2004-01-20  Bruno Haible  <bruno@clisp.org>
121481         * lib/xallocsa.h: New file, from GNU gettext.
121482         * lib/xallocsa.c: New file, from GNU gettext.
121484 2004-01-20  Bruno Haible  <bruno@clisp.org>
121486         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121488 2004-01-20  Bruno Haible  <bruno@clisp.org>
121490         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121491         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121492         specially.
121494 2004-01-20  Bruno Haible  <bruno@clisp.org>
121496         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121497         patch.
121499 2004-01-20  Bruno Haible  <bruno@clisp.org>
121501         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121503 2004-01-20  Bruno Haible  <bruno@clisp.org>
121505         * lib/eealloc.h: New file.
121507 2004-01-20  Bruno Haible  <bruno@clisp.org>
121509         * lib/binary-io.h: Avoid warnings on Cygwin.
121511 2004-01-20  Bruno Haible  <bruno@clisp.org>
121513         * lib/allocsa.h: New file, from GNU gettext.
121514         * lib/allocsa.c: New file, from GNU gettext.
121516 2004-01-18  Karl Berry  <karl@gnu.org>
121518         * doc/gpl.texi, doc/lgpl.texi: new files.
121520 2004-01-18  Karl Berry  <karl@gnu.org>
121522         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121523         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121525 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121527         Merge from coreutils.
121529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121530         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121531         (gl_DEFAULT_POSIX2_VERSION): Move
121532         the documentation from 'configure' into 'config.hin',
121533         so that 'configure --help' isn't burdened by it and
121534         we don't have to worry about its formatting there.
121535         Reword the documentation so that it's more succinct
121536         and can be run together into a single paragraph.
121537         * m4/same.m4 (gl_SAME): Check for pathconf.
121539 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121541         Merge from coreutils.
121543         * lib/posixver.c: Include posixver.h.
121545         * lib/same.c: Include <stdbool.h>, <limits.h>.
121546         (_POSIX_NAME_MAX): Define if not defined.
121547         (MIN): New macro.
121548         (same_name): If file names are silently truncated, report
121549         that the file names are the same if they are the same after
121550         the silent truncation.
121552         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121553         conversion function.
121554         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121555         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121556         longer needed.
121558 2004-01-15  Jim Meyering  <jim@meyering.net>
121560         Merge from coreutils.
121562         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121563         if no library is required.
121564         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121565         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121566         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121567         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121568         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121569         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121570         value, $ac_cv_search_crypt, if it's "none required".
121571         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121572         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121573         not gl_FUNC_GETLOADAVG.
121574         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121575         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121577 2004-01-15  Jim Meyering  <jim@meyering.net>
121579         Merge from coreutils.
121581         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121582         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121583         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121585         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121586         optional configure-time default.
121588         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121590         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121592 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121594         Merge from coreutils.
121596         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121597         value, $ac_cv_search_nanosleep, if it's "none required".
121599 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121601         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121602         with like-named macro in fnmatch.c.
121603         (EXT): Use an internal constant instead.
121605         Merge fnmatch patches from glibc.
121606         * lib/fnmatch.c (mbsinit): Remove define.
121607         Add libc_hidden_ver (__fnmatch, fnmatch).
121608         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121609         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121611 2004-01-14  Karl Berry  <karl@gnu.org>
121613         * config/install-sh: update from automake.
121615 2004-01-13  Karl Berry  <karl@gnu.org>
121617         * config/install-sh: update from automake.
121619 2004-01-09  Karl Berry  <karl@gnu.org>
121621         * config/install-sh: update from automake.
121623 2004-01-05  Karl Berry  <karl@gnu.org>
121625         * config/config.{sub,guess}: update from config.
121627 2003-12-31  Karl Berry  <karl@gnu.org>
121629         * config/depcomp: update from automake.
121631 2003-12-14  Karl Berry  <karl@gnu.org>
121633         * lib/config.charset: update from gettext-runtime.
121635 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121637         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121638         Bug reported by Alfred M. Szmidt.
121640 2003-12-03  Bruno Haible  <bruno@clisp.org>
121642         * m4/gettext.m4: Upgrade from gettext-0.13.
121643         * m4/po.m4: Upgrade from gettext-0.13.
121644         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121645         * m4/intmax.m4: New file, from gettext-0.13.
121646         * m4/printf-posix.m4: New file, from gettext-0.13.
121648 2003-11-29  Karl Berry  <karl@gnu.org>
121650         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121652 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121653             Bruno Haible  <bruno@clisp.org>
121655         * lib/printf-parse.h: Don't include sys/types.h.
121656         (ARG_NONE): New macro.
121657         (char_directive): Change type of *arg_index fields to size_t.
121658         * lib/printf-parse.c: Don't include sys/types.h.
121659         (SSIZE_MAX): Remove macro.
121660         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121661         Remove unnecessary overflow check.
121662         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121663         fields.
121665 2003-11-25  Bruno Haible  <bruno@clisp.org>
121667         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121669 2003-11-25  Bruno Haible  <bruno@clisp.org>
121671         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121672         gt_TYPE_SSIZE_T.
121674 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121676         * modules/alloca: Remove dependency on xalloc.
121678 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121680         * lib/alloca.c: Remove dependency on xalloc module.
121681         (xalloc_die): Remove.
121682         (memory_full) [!defined emacs]: New macro.
121683         [!defined emacs]: Don't include xalloc.h.
121684         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121685         address arithmetic overflows.  Change datatypes a bit to avoid
121686         unnecessary casts.
121688 2003-11-22  Jim Meyering  <jim@meyering.net>
121690         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121691         s/size/size_t/.
121693 2003-11-21  Karl Berry  <karl@gnu.org>
121695         * config/config.{sub,guess}: update from config.
121697 2003-11-18  Karl Berry  <karl@gnu.org>
121699         * config/config.{sub,guess}: update from config.
121701         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121703 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121705         * README: Mention that S+T cannot overflow if S is the size of
121706         an existing object and T is sufficiently small.
121708 2003-11-17  Jim Meyering  <jim@meyering.net>
121710         On systems without utime and without a utimes function capable of
121711         dealing with a NULL struct utimbuf* argument, this utime replacement
121712         could -- in unusual circumstances -- leak a file descriptor.
121713         * lib/utime.c: Include <unistd.h> and <errno.h>.
121714         (utime_null): Be sure to close `fd' and to preserve errno.
121715         Reported by Geoff Collyer via Arnold Robbins.
121717 2003-11-17  Bruno Haible  <bruno@clisp.org>
121719         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
121720         (Depends-on): Add xsize.
121722 2003-11-17  Bruno Haible  <bruno@clisp.org>
121724         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
121726 2003-11-17  Bruno Haible  <bruno@clisp.org>
121728         * lib/vasnprintf.c (alloca): Remove fallback definition.
121729         (freea): Remove definition.
121730         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
121731         Reported by Paul Eggert.
121733 2003-11-16  Paul Eggert  <eggert@twinsun.com>
121734             Bruno Haible  <bruno@clisp.org>
121736         Protect against address arithmetic overflow.
121737         * lib/printf-args.h: Include stddef.h.
121738         (arguments): Change type of field 'count' to size_t.
121739         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
121740         'unsigned int' where appropriate.
121741         * lib/printf-parse.h: Include sys/types.h.
121742         (char_directive): Change type of *arg_index fields to ssize_t.
121743         (char_directives): Change type of fields 'count', max_*_length to
121744         size_t.
121745         * lib/printf-parse.c: Include sys/types.h and xsize.h.
121746         (SSIZE_MAX): Define fallback value.
121747         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
121748         instead of 'int' where appropriate. Check a_allocated, d_allocated
121749         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
121750         * lib/vasnprintf.c: Include xsize.h.
121751         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
121752         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
121753         overflow. Avoid wraparound when converting a width or precision from
121754         decimal to binary.
121756 2003-11-16  Bruno Haible  <bruno@clisp.org>
121758         Update from GNU gettext.
121759         * lib/printf-parse.c: Generalize to it can be compiled for wide
121760         strings.
121761         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
121762         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
121763         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
121764         SNPRINTF): New macros.
121765         Don't include <alloca.h> if the file is used inside libintl.
121766         (local_wcslen): New function, for Solaris 2.5.1.
121767         (VASNPRINTF): Use it instead of wcslen.
121769 2003-11-16  Bruno Haible  <bruno@clisp.org>
121771         * lib/xsize.h (xmax): New function.
121772         (xsum, xsum3, xsum4): Declare as "pure" functions.
121774 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121776         * modules/xalloc (Files): Undo latest change, since xalloc.h
121777         no longer needs SIZE_MAX or PTRDIFF_MAX.
121779 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121781         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
121782         gl_PTRDIFF_MAX.
121784 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121786         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
121787         "return", to pacify some unknown compiler.  Problem reported
121788         by Joerg Schilling.
121790 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121792         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
121793         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
121794         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
121795         heuristic is just as accurate as far as we know, and it removes a
121796         dependency on size_max.m4 and ptrdiff_max.m4.
121798 2003-11-11  Bruno Haible  <bruno@clisp.org>
121800         * modules/xsize (Files): Add m4/size_max.m4.
121801         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
121803 2003-11-11  Bruno Haible  <bruno@clisp.org>
121805         * m4/size_max.m4: New file.
121806         * m4/ptrdiff_max.m4: New file.
121807         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
121808         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
121809         (gl_XALLOC): Invoke it.
121811 2003-11-11  Bruno Haible  <bruno@clisp.org>
121813         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
121814         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
121815         defined.
121817 2003-11-10  Paul Eggert  <eggert@twinsun.com>
121819         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
121820         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
121821         rejected some allocations of exactly SIZE_MAX - 2 bytes.
121822         From Bruno Haible.
121823         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
121824         not (size_t) -1, since it's defined here.
121826 2003-11-09  Karl Berry  <karl@gnu.org>
121828         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
121830 2003-11-06  Paul Eggert  <eggert@twinsun.com>
121832         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
121833         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
121834         Reject sizes of exactly SIZE_MAX bytes.
121835         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
121836         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
121838 2003-11-05  Bruno Haible  <bruno@clisp.org>
121840         * lib/xsize.h: Include limits.h, to avoid a possible collision with
121841         SIZE_MAX defined in <limits.h> on Solaris.
121843 2003-11-04  Jim Meyering  <jim@meyering.net>
121845         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
121846         variable names, rather than @VAR@.
121847         * modules/poll: Likewise.
121849 2003-11-04  Bruno Haible  <bruno@clisp.org>
121851         * modules/xsize: New file.
121852         * modules/linebreak: Depend on xsize.
121853         * MODULES.html.sh (func_all_modules): Add xsize.
121855 2003-11-04  Bruno Haible  <bruno@clisp.org>
121857         * m4/xsize.m4: New file.
121859 2003-11-04  Bruno Haible  <bruno@clisp.org>
121861         * lib/xsize.h: New file.
121862         * lib/linebreak.c: Include xsize.h.
121863         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
121864         argument for overflow.
121865         Suggested by Paul Eggert.
121867 2003-11-03  Karl Berry  <karl@gnu.org>
121869         * config/config.{guess,sub}: update from config.
121871 2003-11-03  Jim Meyering  <jim@meyering.net>
121873         * modules/userspec (lib_SOURCES): Add userspec.h.
121874         (Include): Add "userspec.h".
121875         Improve description.
121877 2003-11-03  Jim Meyering  <jim@meyering.net>
121879         * lib/userspec.c: Include "userspec.h".
121880         * lib/userspec.h: New file.
121882 2003-11-03  Bruno Haible  <bruno@clisp.org>
121884         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
121886 2003-11-03  Bruno Haible  <bruno@clisp.org>
121888         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
121889         available, to avoid (extremely rare) race condition.
121890         Suggested by Paul Eggert.
121892 2003-11-02  Karl Berry  <karl@gnu.org>
121894         * config/srclist.txt (vasprintf.c): sync broken, sigh.
121896 2003-10-31  Paul Eggert  <eggert@twinsun.com>
121898         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
121899         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
121900         (read_filesystem_list): Set and use me_type_malloced.
121901         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
121902         whatever the type happens to be), for brevity and consistency.
121903         Check for size calculation overflow on Alphas running OSF/1.
121905 2003-10-31  Jim Meyering  <jim@meyering.net>
121907         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
121909         * lib/linebuffer.c: Include <string.h> for declaration of memset.
121911 2003-10-30  Paul Eggert  <eggert@twinsun.com>
121912             Bruno Haible  <bruno@clisp.org>
121914         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
121915         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
121917 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
121919         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
121920         netbsd*-gnu*.  Suggested by Robert Millan.
121922 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121924         * modules/group-member: Depend on stdbool.
121926 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121928         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
121930 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121932         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
121933         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
121934         after the 'gnu' in these cases.  This fixes some bugs in the
121935         previous change, and is based on suggestions by Robert Millan.
121937 2003-10-29  Paul Eggert  <eggert@twinsun.com>
121939         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
121940         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
121941         no longer needed.
121942         * lib/quotearg.c (quotearg_n_options): Use it.
121943         * lib/group-member.c: Include <stdbool.h>.
121944         (free_group_info): Arg is now const *; don't free arg.
121945         (get_group_info): Now returns bool and accepts struct group_info *,
121946         rather than returning a malloc'ed struct group_info *.
121947         All uses changed.  Check for overflow in internal size calculation.
121949         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
121950         rather than xmalloc/xrealloc.
121951         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
121952         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
121953         conformance bug: the old code used a pointer after freeing the
121954         storage that it addressed.
121955         * lib/hash.c (hash_initialize): Simplify the code by using
121956         xalloc_oversized rather than doing it by hand.
121957         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
121958         the buffer preserved.  Use free and xmalloc instead.
121959         * lib/quotearg.c (quotearg_n_options): Likewise.
121960         Use a simpler test for size overflow.  Don't use xalloc_oversized
121961         because unsigned int might be wider than size_t (!); this suggests
121962         that we should switch from unsigned int to size_t for slot numbers.
121964 2003-10-28  Paul Eggert  <eggert@twinsun.com>
121966         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
121967         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
121968         NetBSD kernels.  Requested by Richard Stallman.
121970 2003-10-27  Paul Eggert  <eggert@twinsun.com>
121972         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
121973         to allocate the returned structure.  Do not allocate a subarray,
121974         as x2nrealloc will do that.
121975         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
121976         instead of xnrealloc.
121977         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
121979 2003-10-27  Bruno Haible  <bruno@clisp.org>
121981         * lib/stdbool_.h: Better support for BeOS.
121983 2003-10-26  Paul Eggert  <eggert@twinsun.com>
121985         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
121986         now uses inline.
121988 2003-10-26  Paul Eggert  <eggert@twinsun.com>
121990         * lib/xalloc.h (xalloc_oversized): New static inline function, for
121991         callers that want to do their own size-overflow checking.  Include
121992         <stdbool.h>, since xalloc_oversized returns bool.
121993         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
121994         to use xalloc_oversized.
121996         Add two functions x2realloc, x2nrealloc, for programs that grow
121997         arrays dynamically by doubling their sizes.
121998         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
121999         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122000         New functions.
122002         Port to C99 semantics for 'inline' of external functions.
122003         Bug reported by Bruno Haible.
122004         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122005         with the old contents of xnmalloc.
122006         (xnmalloc, xmalloc): Use it.
122007         (xnrealloc_inline): New static inline function,
122008         with the old contents of xnrealloc.
122009         (xnrealloc, xrealloc): Use it.
122011         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122012         that.
122014 2003-10-26  Karl Berry  <karl@gnu.org>
122016         * config/srclist.txt (COPYING.DOC): no longer available from
122017         /gd/gnuorg; don't know where the ultimate source is.
122019 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122021         Fix several address-calculation bugs in the hash modules,
122022         plus some minor code cleanup.
122024         * lib/hash.h: Include <stdbool.h>, for bool.
122025         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122026         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122027         hash_get_n_entries, hash_get_max_bucket_length,
122028         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122029         hash_rehash): Use size_t rather than unsigned.
122030         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122031         hash_get_n_buckets_used, hash_get_n_entries,
122032         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122033         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122034         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122035         Likewise.
122036         (SIZE_MAX): Define if not defined.
122037         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122038         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122039         hash_print):
122040         Use const * when possible.
122041         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122042         (check_tuning): Fix bug: if tuning parameters were very close to
122043         0 or 1, rounding errors could have caused subscript violations.
122044         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122045         (hash_initialize): Add 'fail:' label
122046         to free table and return NULL, and use it to simplify code.
122047         Use calloc rather than clearing the storage ourself.
122048         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122049         buffer size calculations.
122050         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122051         Include <stddef.h>, for size_t.
122052         * lib/hash-pjw.c (hash_pjw): Likewise.
122053         Switch to method described by Bruno Haible.
122054         Include <limits.h>, for CHAR_BIT.
122055         (SIZE_BITS): New macro.
122057 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122059         * m4/getline.m4 (AM_FUNC_GETLINE):
122060         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122061         hosts.  Problem reported by Derek Robert Price in
122062         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122063         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122064         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122066 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122068         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122069         ceiling the allocation at NMAX bytes rather than silently
122070         discarding input bytes before NMAX is reached.  This makes
122071         a difference only if NMAX exceeds SIZE_MAX / 2.
122073         * lib/obstack.c: Merge from glibc.
122074         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122075         Add libc_hidden_def (_obstack_newchunk).
122076         (_obstack_free) [! defined _LIBC]: Remove.
122077         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122078         a clone of the function body.
122079         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122080         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122082         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122083         glibc.
122084         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122085         arg to memcpy.
122087         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122088         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122089         Don't use lvalue casts, as GCC plans to remove support for them
122090         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122091         was also present in the non-GCC version, indicating that this
122092         code had always been buggy and had never been widely used.
122093         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122094         Use the fast variant of each macro, rather than copying the
122095         definiens of the fast variant; that way, we'll be more likely to
122096         catch future bugs in the fast variants.
122098 2003-10-20  Bruno Haible  <bruno@clisp.org>
122100         * modules/wait-process: New file.
122101         * MODULES.html.sh (func_all_modules): Add wait-process.
122103 2003-10-20  Bruno Haible  <bruno@clisp.org>
122105         * m4/wait-process.m4: New file.
122107 2003-10-20  Bruno Haible  <bruno@clisp.org>
122109         * lib/wait-process.h: New file, from GNU gettext.
122110         * lib/wait-process.c: New file, from GNU gettext.
122112 2003-10-19  Jim Meyering  <jim@meyering.net>
122114         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122115         HPUX 10.20.
122117 2003-10-18  Karl Berry  <karl@gnu.org>
122119         * config/config.guess: update from config.
122121 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122123         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122124         (getgroups): First arg is int, not size_t.
122125         Don't let 'free' mangle errno.
122127 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122129         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122131 2003-10-16  Karl Berry  <karl@gnu.org>
122133         * config/config.{guess,sub}: update from config.
122135 2003-10-16  Jim Meyering  <jim@meyering.net>
122137         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122138         memcpy.
122140 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122142         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122143         (SIZE_MAX): Remove.
122144         (new_exclude, add_exclude_file): Initial size no longer needs to
122145         be a power of 2.
122146         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122147         our own address arithmetic overflow checking.
122149         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122150         (fnmatch): Do not alloca more than 2000 wide characters;
122151         instead, use malloc for large buffers.
122152         Check for address arithmetic overflow, and return -1
122153         with errno set to ENOMEM in that case.
122154         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122155         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122156         instead, return -1.  Check for address arithmetic overflow.
122158 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122160         Handle invalid suffixes and overflow independently, so that
122161         callers can treat them independently as needed.  Fix some bugs in
122162         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122163         suffix for a human-readable blocksize.  The major caller-visible
122164         change is the addition of a new
122165         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122166         that both overflow and suffix chars were found.
122168         * lib/human.c (humblock): Don't check separately for invalid suffix
122169         char; that is xstrtoumax's job (now that its bug is fixed).
122170         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122171         INTMAX_MAX]: New macros.
122172         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122173         TYPE_MAXIMUM): New macros.
122174         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122175         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122176         if overflow occurs, as it's what __strtol does and it's more useful
122177         in practice.
122178         (__xstrtol): If __strtol reports some error other than ERANGE,
122179         reflect it to the caller as LONGINT_INVALID.  If it reports
122180         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122181         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122182         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122183         value.
122184         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122185         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122186         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122187         [defined UINTMAX_MAX]: New macros.
122189 2003-10-14  Bruno Haible  <bruno@clisp.org>
122191         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122193 2003-10-14  Bruno Haible  <bruno@clisp.org>
122195         * m4/sig_atomic_t: New file, from GNU gettext.
122196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122198 2003-10-14  Bruno Haible  <bruno@clisp.org>
122200         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122201         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122202         Also use volatile where needed.
122204 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122206         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122207         Change maintainer from Bruno Haible to 'all'.
122209 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122211         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122213 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122215         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122216         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122217         and define in terms of the other primitives.
122218         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122219         (SIZE_MAX): Define if not already defined.
122220         (array_size_overflow): New function.
122221         (xalloc_die): Abort instead of exiting if 'error' returns.
122222         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122223         (xmalloc, xrealloc): Use them.
122224         (xcalloc): Check for address arithmetic overflow.
122225         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122226         a bit faster than strcpy.
122228 2003-10-10  Simon Josefsson  <jas@extundo.com>
122230         * modules/argp (Depends-on): Add restrict and strcase.
122232 2003-10-10  Simon Josefsson  <jas@extundo.com>
122234         * m4/argp.m4: Add AC_C_INLINE.
122236 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122238         Merge getpass from libc, plus a few fixes.
122240         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122241         Include <stdbool.h>.
122242         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122243         __fsetlocking to empty.
122244         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122245         do include <bits/libc-lock.h>.
122246         Do not include <fcntl.h>; not needed.
122247         [_LIBC]: Include <wchar.h>.
122248         (NOTCANCEL_MODE): New macro.
122249         (flockfile, funlockfile) [_LIBC]: New macros.
122250         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122251         [!_LIBC]: New macros.
122252         (call_fclose): New function.
122253         (getpass): Use it.  Save tty stream separately; this simplifies the
122254         code and makes it more reliable if stdin happens to equal stdout.
122255         Invoke __fsetlocking on tty.
122256         Handle thread cancellation if needed.
122257         Namespace cleanup (use __tcgetattr, __getline).
122258         Use bool for Booleans.
122259         [USE_IN_LIBIO]: Handle wide streams.
122260         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122261         stream might go where.
122263         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122264         doesn't have to include <stdio.h> before us.
122265         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122266         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122267         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122268         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122269         if not declared, so that we can use getpass.c code from libc without
122270         rewriting it.
122271         (flockfile, ftrylockfile, funlockfile): New macros.
122273 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122275         * modules/getpass: Depend on stdbool.
122277 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122279         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122281 2003-10-07  Karl Berry  <karl@gnu.org>
122283         * config/config.{guess,sub}: update from config.
122285 2003-10-06  Jim Meyering  <jim@meyering.net>
122286             Bruno Haible  <bruno@clisp.org>
122288         This lets translators provide better translations for the
122289         "Written by ..." part of --version output.
122290         * lib/version-etc.h: Include stdarg.h.
122291         (version_etc_copyright): Declare as readonly.
122292         (version_etc): Make this function variadic with a NULL-terminated list
122293         of author name strings.
122294         (version_etc_va): New declaration.
122295         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122296         (version_etc_copyright): Declare as readonly.
122297         (version_etc_va): New function. Provide a different translatable string
122298         for each possible number of authors < 10. Abbreviate when there are 10
122299         authors or more.
122300         (version_etc): Make this function variadic. Call version_etc_va.
122301         Suggestion from Gary V. Vaughan.
122303         * lib/long-options.h (parse_long_options): Change prototype: the
122304         authors string is moved to the end and becomes variadic.
122305         * lib/long-options.c: Include stdarg.h.
122306         (parse_long_options): Make this function variadic, too.
122307         Call version_etc_va, not version_etc.
122309 2003-10-06  Bruno Haible  <bruno@clisp.org>
122311         * modules/version-etc-2: Remove file.
122312         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122314 2003-10-06  Bruno Haible  <bruno@clisp.org>
122316         * modules/fatal-signal: New file.
122317         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122319 2003-10-06  Bruno Haible  <bruno@clisp.org>
122321         * m4/fatal-signal.m4: New file.
122322         * m4/signalblocking.m4: New file, from GNU gettext.
122324 2003-10-06  Bruno Haible  <bruno@clisp.org>
122326         * lib/version-etc-2.h: Remove file.
122327         * lib/version-etc-2.c: Remove file.
122329 2003-10-06  Bruno Haible  <bruno@clisp.org>
122331         * lib/fatal-signal.h: New file, from GNU gettext.
122332         * lib/fatal-signal.c: New file, from GNU gettext.
122334 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122336         * README: Rework advice for preventing empty .o files.
122337         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122338         not <sys/types.h>.
122340 2003-10-04  Karl Berry  <karl@gnu.org>
122342         * lib/argp*: update from libc.
122344 2003-10-04  Karl Berry  <karl@gnu.org>
122346         * config/config.{guess,sub}: update from config.
122348 2003-10-02  Bruno Haible  <bruno@clisp.org>
122350         * modules/lchown (Include): Add lchown.h.
122351         * modules/time_r (Include): Use "..." syntax.
122352         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122354 2003-10-01  Simon Josefsson  <jas@extundo.com>
122356         * MODULES.html.sh (func_all_modules): Move gethostname from section
122357         'based on' to section 'lacking' POSIX:2001.
122359 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122361         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122362         to output mode on the same stream.
122364 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122366         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122367         Fix arg typo in previous patch.
122369 2003-09-28  Jim Meyering  <jim@meyering.net>
122371         * lib/error.c: Correct cpp indentation.
122373 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122375         * modules/free: New file.
122377 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122379         * m4/free.m4: New file.
122381 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122383         * lib/minmax.h (MIN, MAX)
122384         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122385         Omit the special code that used __typeof__, since we worry that
122386         it could be more trouble than it's worth.  See:
122387         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122388         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122390         * lib/free.c: New file.
122392 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122394         Trivial fixes to Makefile.am parts of module listings.
122395         * modules/strstr: Append strstr.h to lib_SOURCES.
122396         * modules/strcase: Likewise, for strcase.h.
122398 2003-09-27  Karl Berry  <karl@gnu.org>
122400         * config/mkinstalldirs: update from automake.
122402 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122404         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122405         (error_tail): Do not loop, reallocating temporary buffer, since
122406         the output cannot contain more wide characters than the input
122407         contains bytes, the size must be big enough already.  This avoids
122408         one potential size overflow calculation.  Check for size overflow
122409         when calculating temporary buffer size.  Free temporary buffer
122410         when done, if it was allocated with malloc; this plugs a memory
122411         leak.  Remove casts from void * to pointers, that are no longer
122412         needed now that we're assuming C89 or better.
122414         Merge error changes from glibc.
122416         * lib/error.c, error.h: Update copyright notice header to match glibc.
122417         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122418         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122419         Disable cancellation while printing error.
122420         * lib/error.h: Prepend __ to parameter names.
122422 2003-09-26  Jim Meyering  <jim@meyering.net>
122424         * lib/error.c (error_tail): Move some declarations
122425         into inner scope where the local variables are used.
122427 2003-09-26  Bruno Haible  <bruno@clisp.org>
122429         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122430         stpncpy().
122431         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122433 2003-09-26  Bruno Haible  <bruno@clisp.org>
122435         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122436         (stpncpy): Define as alias for gnu_stpncpy.
122437         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122439 2003-09-25  Simon Josefsson  <jas@extundo.com>
122441         * lib/xgetdomainname.h: New file.
122442         * lib/xgetdomainname.c: New file.
122444 2003-09-25  Simon Josefsson  <jas@extundo.com>
122445             Bruno Haible  <bruno@clisp.org>
122447         * modules/getdomainname: New file.
122448         * modules/xgetdomainname: New file.
122449         * MODULES.html.sh (func_all_modules): Add getdomainname,
122450         xgetdomainname.
122452 2003-09-25  Simon Josefsson  <jas@extundo.com>
122453             Bruno Haible  <bruno@clisp.org>
122455         * m4/getdomainname.m4: New file.
122457 2003-09-25  Simon Josefsson  <jas@extundo.com>
122458             Bruno Haible  <bruno@clisp.org>
122460         * lib/getdomainname.h: New file.
122461         * lib/getdomainname.c: New file.
122463 2003-09-25  Karl Berry  <karl@gnu.org>
122465         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122467 2003-09-25  Karl Berry  <karl@gnu.org>
122469         * config/install-sh: update from automake.
122471 2003-09-25  Bruno Haible  <bruno@clisp.org>
122473         * modules/version-etc-2: New file, from modules/version-etc with
122474         modifications.
122475         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122477 2003-09-25  Bruno Haible  <bruno@clisp.org>
122479         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122480         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122482 2003-09-24  Simon Josefsson  <jas@extundo.com>
122484         * modules/xgethostname: Add xgethostname.h.
122486 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122488         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122489         the buffer associated with the argument.  Bug reported by
122490         Simon Josefsson.
122492 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122494         * README: Document assumptions that 'int' is at least 32 bits
122495         wide, that integer arithmetic is 2's complement without overflow,
122496         that there are no holes in integer values, that adding sizes of
122497         two nonoverlapping objects can't overflow, and that all-bits-zero
122498         yields scalar zero.  Fix spelling and capitalization typos.
122500 2003-09-19  Karl Berry  <karl@gnu.org>
122502         * lib/argp.h: update from libc.
122504 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122507         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122508         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122510 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122512         * gnulib-tool: Use "test -h", not "test -L", for portability
122513         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122514         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122515         (sed_extract_prog): Issue s commands one-by-one, rather than
122516         using \| in one s command.
122518 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122520         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122521         input error, instead of returning NULL the next time we are called
122522         (and therefore losing track of errno).
122524 2003-09-16  Bruno Haible  <bruno@clisp.org>
122526         * gnulib-tool (func_create_testdir): Warn about duplicated
122527         dependencies.
122529 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122531         * modules/argmatch, modules/fatal, modules/obstack,
122532         modules/xalloc, modules/xgethostname: Sort dependencies by
122533         importance, not alphabetically.
122535 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122537         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122538         fails, so that the caller gets the proper errno.
122540         * lib/readutmp.c (read_utmp): Likewise.
122541         Check for fstat error.  Close stream and free storage
122542         when failing.
122544 2003-09-14  Karl Berry  <karl@gnu.org>
122546         * config/srclist.txt (strdup.c): disable for c89 changes.
122548 2003-09-14  Jim Meyering  <jim@meyering.net>
122550         * lib/getloadavg.c: Correct cpp indentation.
122551         * lib/strdup.c: Likewise.
122552         * lib/vasnprintf.c: Likewise.
122554 2003-09-14  Bruno Haible  <bruno@clisp.org>
122556         * modules/fwriteerror: New file.
122557         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122559 2003-09-14  Bruno Haible  <bruno@clisp.org>
122561         * lib/fwriteerror.h: New file.
122562         * lib/fwriteerror.c: New file.
122564 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122566         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122567         modules/xgethostname, modules/xalloc: Depend on exit.
122569 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122571         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122574         and AC_MINIX, too, so that their extensions are available.
122576         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122577         This macro has been superseded by gl_BACKUPFILE.
122579         More patches to assume C89 or better.
122581         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122583         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122584         unconditionally.
122585         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122586         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122587         Include <string.h>, <stdlib.h> unconditionally.
122588         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122589         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122590         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122591         headers or for string.h.
122592         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122593         or strtoul.
122595         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122596         headers.
122597         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122598         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122599         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122600         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122601         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122602         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122603         memcpy, memset.
122604         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122605         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122606         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122607         strtol.
122608         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122609         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122610         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122611         strtoul.
122613 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122615         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122616         * lib/obstack.c [!defined _LIBC]: Likewise.
122617         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122618         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122619         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122621         More changes to assume C89 or better.
122623         * lib/error.c (error_tail): Assume vprintf.
122625         * lib/argmatch.c (getenv): Remove decl.
122626         * lib/progreloc.c (get_full_program_name): Define via prototype.
122627         * lib/setenv.c (clearenv): Likewise.
122628         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122629         needed.
122630         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122631         (malloc, memcpy): Remove decls.
122632         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122633         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122634         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122635         (memcpy): Remove macro.
122636         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122637         (__P): Remove.  All uses removed.
122638         (PTR): Remove.  All uses changed to void *.
122639         (CHAR_BIT, NULL): Remove.
122640         (spaces, zeros, memset_space, memset_zero)
122641         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122642         Remove.
122643         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122644         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122645         Define with prototype.
122646         Remove now-unnecessary prototype decl.
122647         (extra_args_spec): Assume ANSI C.  All uses changed.
122648         (extra_args_spec_iso): Remove.
122649         (my_strftime, emacs_strftimeu): Define via prototype.
122650         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122651         unconditionally.
122652         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122653         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122654         (strtoul, strtol): Remove decls.
122655         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122656         LONG_MAX): Remove.
122657         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122658         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122659         (LOCALE_PARAM_PROTO): New macro.
122660         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122661         (INTERNAL (strtol), strtol): Define with a prototype.
122662         (PARAMS): Remove.  All uses removed.
122663         * lib/tempname.c: Include <string.h> unconditionally.
122664         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122665         * lib/xgethostname.c (main): Define with a prototype.
122666         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122667         Include <stdlib.h> unconditionally.
122668         (calloc, malloc, realloc, free): Remove decls.
122669         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122670         Include <stdlib.h> unconditionally.  Sort include file names.
122671         (strtod): Remove.
122672         (xstrtod): Define with a prototype.
122673         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122674         (strtol, strtoul): Remove decls.
122676 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122678         More patches to assume C89 or better.
122679         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122680         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122681         string.h, memchr, STDC_HEADERS.
122683 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122685         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122686         Include <stdlib.h>, <string.h> unconditionally.
122687         Remove now-unnecessary cast to char *.
122688         * lib/strnlen.c: Include <string.h> unconditionally.
122689         * lib/yesno.c (yesno): Define with a prototype.
122691 2003-09-11  Bruno Haible  <bruno@clisp.org>
122693         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122695 2003-09-10  Jim Meyering  <jim@meyering.net>
122697         * lib/error.c: Correct indentation of cpp directives.
122699 2003-09-10  Bruno Haible  <bruno@clisp.org>
122701         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122702         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122703         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122704         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122705         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122706         <stdlib.h> and <string.h> checks.
122707         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122708         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122710 2003-09-10  Bruno Haible  <bruno@clisp.org>
122712         * lib/strcspn.c: Include <string.h> unconditionally.
122713         * lib/strpbrk.c: Include <string.h> unconditionally.
122714         * lib/strstr.c: Include <string.h> unconditionally.
122715         * lib/unicodeio.c: Include <string.h> unconditionally.
122716         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122717         * lib/unsetenv.c: Likewise.
122718         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122719         * lib/yesno.c: Include <stdlib.h> unconditionally.
122720         (rpmatch): Add prototype.
122722 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122724         More patches to assume C89 or better.
122725         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
122726         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
122727         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
122728         or for string.h.
122729         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
122730         stdlib.h.
122731         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
122732         C headers.
122733         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
122734         string.h.
122735         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
122736         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
122737         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
122738         or for string.h.
122739         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
122740         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
122741         C headers.
122742         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
122743         memcpy.
122744         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
122745         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
122746         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
122747         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
122748         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
122749         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
122750         string.h, free.
122751         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
122752         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
122753         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
122754         C headers, or for string.h.
122755         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
122756         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
122757         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
122758         headers, memory.h, stdlib.h, string.h, strings.h.
122759         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
122760         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
122761         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
122762         strchr.
122763         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
122764         headers, memory.h, string.h.
122765         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
122766         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
122767         free.
122768         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
122769         headers.
122770         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
122771         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
122772         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
122773         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
122774         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
122776 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122778         More K&R removal.
122780         * lib/acosl.c (main): Use a prototype.
122781         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
122782         tanl.c: Likewise.
122784         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
122786         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
122787         (getopt, etopt_long, getopt_long_only, _getopt_internal)
122788         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
122789         with a prototype.
122790         * lib/getopt.c (const): Remove macro.
122791         Include <string.h> unconditionally.
122792         (my_index): Remove; all uses changed to strchr.
122793         (strlen): Remove decl.
122794         (exchange): Remove forward decl; no longer needed.
122795         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
122796         Define with prototype.
122797         * lib/getopt1.c (const): Remove macro.
122798         (getopt_long, getopt_long_only, main): Define with prototype.
122800         * lib/getugroups.c: Include <string.h> unconditionally.
122802         * lib/getusershell.c: Include <stdlib.h> unconditionally.
122803         (getusershell, setusershell, endusershell, readname, main):
122804         Define with prototypes.
122806         * lib/group-member.c: Include group-member.h first.
122807         Include <stdlib.h> unconditionally.
122809         * lib/hard-locale.c: Include hard-locale.h first.
122810         Include <stdlib.h>, <string.h> unconditionally.
122812         * lib/hash.c (free, malloc): Remove decls.
122813         Include <stdlib.h> unconditionally.
122815         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
122816         (getenv): Do not declare.
122818         * lib/idcache.c: Include <string.h> unconditionally.
122820         * lib/long-options.c: Include long-options.h first, to test interface.
122821         Include <stdlib.h> unconditionally.
122823         * lib/makepath.c: Include makepath.h first, to test interface.
122824         Include <stdlib.h> and <string.h> unconditionally.
122826         * lib/linebuffer.c: Include <stdlib.h>.
122827         (free): Remove decl.
122829         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
122830         stddef.h. rpl_malloc returns void *, not char *.
122831         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
122832         prototype.
122834         * lib/md5.h: Include <limits.h> unconditionally.
122835         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
122836         (__P): Remove; all uses removed.
122837         * lib/md5.c: Include "md5.h" first.
122838         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
122839         md5_buffer, md5_process_bytes, md5_process_block):
122840         Define with prototypes.
122841         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
122842         * lib/sha.c: Include "sha.h" first.
122843         Include <stdlib.h>, <string.h> unconditionally.
122845         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
122846         * lib/memcmp.c (__ptr_t): Likewise.
122847         * lib/memrchr.c (__ptr_t): Likewise.
122848         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
122849         Include <string.h> unconditionally.
122850         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
122851         * lib/memchr.c: Include <stdlib.h> unconditionally.
122852         * lib/memchr.c (LONG_MAX): Remove.
122853         * lib/memrchr.c (LONG_MAX): Likewise.
122854         * lib/memchr.c (__memchr): Define via a prototype.
122855         * lib/memrchr.c (__memrchr): Likewise.
122856         * lib/memcmp.c (__P): Remove, and remove all uses.
122857         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
122858         Remove forward decls; no longer needed.
122859         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
122860         Use types required by C89 in prototype.
122862         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
122863         * lib/savedir.c: Likewise.
122864         * lib/mkdir.c (free): Remove decl.
122865         * lib/rmdir.c (rmdir): Define with a prototype.
122866         * lib/savedir.c: Include savedir.h first, to test interface.
122868         * lib/mktime.c (STDC_HEADERS): Remove.
122869         Include <stdlib.h>, <string.h> unconditionally.
122871         * lib/modechange.c: Include <stdlib.h> unconditionally.
122872         (malloc): Remove decl.
122874         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
122875         (free): Remove decl.
122877         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
122878         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
122879         (This type really should be intptr_t, but that's a C99ism.)
122880         (_obstack_memcpy): Remove: all uses changed to memcpy.
122881         Include <string.h> unconditionally.
122882         (struct obstack): Assume __STDC__ for types of members
122883         chunkfun, freefun, extra_arg.
122884         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
122885         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
122886         obstack_begin, obstack_specify_allocation,
122887         obstack_specify_allocation_with_arg, obstack_chunkfun,
122888         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
122889         Remove unprototyped decls and the macros that use them.
122890         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
122891         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
122892         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
122893         (defined __STDC__ && __STDC__)]:
122894         Remove nonprototyped code.
122895         Include <stdlib.h> unconditionally.
122896         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
122897         _obstack_allocated_p, _obstack_free, obstack_free,
122898         _obstack_memory_used, print_and_abort):
122899         Define using prototypes.
122900         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
122901         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
122902         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
122903         obstack_next_free, obstack_object_size, obstack_room) [0]:
122904         Remove unused, unprototyped code.
122906         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
122908         * lib/physmem.c (physmem_total, physmem_available, main): Define
122909         with prototypes.
122911         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
122912         (main): Define with a prototype.
122914         * lib/posixver.c (getenv): Remove decl.
122916         * lib/putenv.c (malloc): Returns void *, not char *.
122917         Include <string.h> unconditionally.
122918         (strchr, memcpy, NULL): Do not define.
122920         * lib/readtokens.c: Include readtokens.h first, to test interface.
122921         Include <stdlib.h>, <string.h> unconditionally.
122922         (init_tokenbuffer): Define with a prototype.
122924         * lib/regex.c (PARAMS): Remove.  All uses removed.
122925         All uses of _RE_ARGS removed, too.
122926         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122927         unconditionally.
122928         (bzero): Assume memset exists.
122929         (memcmp, memcpy, NULL): Remove.
122930         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
122931         char, or assignments to local vars of type signed char.
122932         (init_syntax_once, PREFIX(extract_number_and_incr),
122933         PREFIX(print_partial_compiled_pattern),
122934         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
122935         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
122936         PREFIX(regex_grow_registers), PREFIX(regex_compile),
122937         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
122938         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
122939         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
122940         wcs_compile_range, byte_compile_range, truncate_wchar,
122941         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
122942         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
122943         count_mbs_length, wcs_re_match_2_internal,
122944         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
122945         PREFIX(alt_match_null_string_p),
122946         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
122947         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
122948         regfree, PREFIX(extract_number)): Define with prototype.  Remove
122949         now-unnecessary declaration, if any.
122950         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
122951         regcomp, regexec):
122952         Remove now-unnecessary casts among pointer types.
122953         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
122955         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
122956         (free): Remove decl.
122958         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
122960         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
122961         (free): Remove decl.
122963         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
122964         * lib/xgetcwd.c: Likewise.
122966         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
122967         (free): Remove decl.
122969         * lib/strchrnul.c (strchrnul): Define with a prototype.
122970         Fix bug: c_in was not converted to char before searching.
122972         The following changes are not K&R related:
122974         * lib/group-member.h: Include <sys/types.h>, so that this file is
122975         self-contained.
122976         * lib/makepath.h: Likewise.
122978         * lib/getusershell.c (readname, default_index, line_size, readname):
122979         Use size_t, not int, for sizes.
122980         (readname): If the size overflows, report an error instead of
122981         looping forever.
122983 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122985         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
122986         libc.
122988 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122990         * README: New section: portability guidelines.
122992 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
122994         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
122995         C89 spec.
122997 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
122999         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123001 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123003         Assume C89 or better; remove K&R cruft.
123004         A few of these changes were first proposed by Derek Robert Price
123005         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123007         * lib/addext.c: Include <string.h> unconditionally.
123008         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123009         Don't declare getenv or malloc.
123011         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123012         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123013         (NULL): Remove.
123014         (find_stack_direction, alloca): Use prototypes.
123016         * lib/atexit.c (atexit): Define using a prototype.
123018         * lib/basename.c, dirname.c, stripslash.c:
123019         Include <string.h> unconditionally.
123021         * lib/bcopy.c: Include <stddef.h>.
123022         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123024         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123026         * lib/error.h (error, error_at_line, error_print_progname)
123027         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123028         * lib/error.c: Include error.h first, to check interface.
123029         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123030         (VA_START): Remove; all uses changeed to va_start.
123031         (exit, strerror): Remove decls.
123032         (error_print_progname): Prototype uncondionally.
123033         Don't include <errno.h>; no longer needed.
123034         (private_strerror): Remove.
123035         (error_tail): Always define.
123036         (error, error_at_line): Assume C89 or better; always use prototypes.
123037         * lib/fatal.c: Include "fatal.h" first, to test interface.
123038         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123039         (VA_START): Remove; all uses changed to va_start.
123040         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123041         this case.
123042         (exit): Remove decl.
123043         (fatal): Prototype unconditionally.  Assume va_start works.
123044         Abort at end, to pacify gcc.
123046         * lib/euidaccess.c (main): Define with a prototype.
123048         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123050         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123052         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123053         prototypes.
123054         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123055         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123056         (getenv): Remove decl.
123057         (fnmatch): Define using a prototype.
123058         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123059         (FCT): Define using a prototype.
123061         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123063         * lib/gethostname.c: Include <stddef.h>.
123064         (gethostname): Define with prototype.  Length is size_t, not int.
123066 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123068         Assume C89 or better; remove K&R cruft.
123069         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123070         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123071         string.h, getenv, malloc.
123072         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123073         headers.
123074         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123075         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123076         do not check for strerror.
123077         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123078         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123079         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123080         do not check for doprnt or vprintf.
123081         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123082         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123084 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123086         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123087         getversion.c should have been removed then, but was accidentally
123088         preserved.
123090         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123091         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123093 2003-09-08  Karl Berry  <karl@gnu.org>
123095         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123096                 config, forget about prep.
123098         * config/depcomp, missing: update from automake.
123100 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123102         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123103         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123105 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123107         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123108         copy_tm_result.  Bug reported by Simon Josefsson in
123109         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123111 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123113         * m4/time_r.m4: New file.
123114         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123115         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123116         is. Check for timegm declaration.
123117         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123118         Do not check for gmtime_r.
123119         Replace mktime if __mktime_internal does not exist and if mktime
123120         hasn't been replaced already.
123122 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123124         * lib/time_r.c, lib/time_r.h: New files.
123126         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123127         __localtime_r.
123128         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123129         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123131         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123132         __gmtime_r.
123133         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123134         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123135         Include <time_r.h>.
123137         * lib/timegm.c: Switch to glibc implementation, with the following
123138         changes:
123139         [defined HAVE_CONFIG_H]: Include <config.h>.
123140         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123141         (__mktime_internal) [!defined _LIBC]: New decl.
123142         (__gmtime_r) [!defined _LIBC]: New macro and function.
123143         (timegm): Use a prototype, since gnulib assumes C89.
123144         Do not bother declaring tmp to be const, as it's not really usefu.
123145         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123146         (timegm): Declare only if HAVE_DECL_TIMEGM.
123148 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123150         * MODULES.html.sh (func_all_modules): Add time_r.
123151         * modules/time_r: New file.
123152         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123153         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123155 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123157         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123158         Bug reported by Lute Kamstra in
123159         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123161         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123162         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123163         course with correspondingly smaller numbers for tomorrow and
123164         yesterday.  From Tadayoshi Funaba.  Originally installed into
123165         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123166         coreutils merge?).
123168 2003-08-31  Simon Josefsson  <jas@extundo.com>
123170         * modules/timegm: New file.
123171         * MODULES.html.sh (func_all_modules): Add timegm.
123173 2003-08-31  Simon Josefsson  <jas@extundo.com>
123175         * m4/timegm.m4: New file.
123177 2003-08-31  Simon Josefsson  <jas@extundo.com>
123179         * lib/timegm.h: New file.
123180         * lib/timegm.c: New file.  Based on
123181         wget-1.8.2/src/http.c:mktime_from_utc.
123183 2003-08-31  Karl Berry  <karl@gnu.org>
123185         * lib/argp.h: update from libc.
123187 2003-08-28  Bruno Haible  <bruno@clisp.org>
123189         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123190         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123191         followed by '#define fnmatch fnmatch_posix' gives an error.
123193 2003-08-28  Bruno Haible  <bruno@clisp.org>
123195         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123196         warning on QNX, which defines O_BINARY to 000000.
123198 2003-08-27  Jim Meyering  <jim@meyering.net>
123200         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123201         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123202         would fail after 32.  Reported by Danny Levinson.  Details here:
123203         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123205 2003-08-24  Bruno Haible  <bruno@clisp.org>
123207         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123208         MSVC7 <stdio.h> is included later.
123210 2003-08-22  Simon Josefsson  <jas@extundo.com>
123212         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123214 2003-08-20  Karl Berry  <karl@gnu.org>
123216         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123218 2003-08-20  Bruno Haible  <bruno@clisp.org>
123220         * modules/progname: New file.
123221         * MODULES.html.sh (func_all_modules): Add progname.
123223 2003-08-20  Bruno Haible  <bruno@clisp.org>
123225         * lib/progname.h: New file, from GNU gettext.
123226         * lib/progname.c: New file, from GNU gettext.
123227         * lib/progreloc.c: New file, from GNU gettext.
123229 2003-08-19  Jim Meyering  <jim@meyering.net>
123231         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123232         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123234 2003-08-19  Bruno Haible  <bruno@clisp.org>
123236         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123237         more.
123239 2003-08-19  Bruno Haible  <bruno@clisp.org>
123241         * lib/xstrdup.c: Assume <string.h> exists.
123243 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123245         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123246         in makefile rules.
123248 2003-08-18  Jim Meyering  <jim@meyering.net>
123250         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123251         * m4/lib-ld.m4: Likewise.
123253 2003-08-18  Jim Meyering  <jim@meyering.net>
123255         * lib/setenv.h: Indent nested cpp directive.
123256         * lib/vasnprintf.c: Remove trailing blanks.
123258 2003-08-17  Simon Josefsson  <jas@extundo.com>
123260         * modules/xstrndup: New file.
123261         * MODULES.html.sh (func_all_modules): Add xstrndup.
123263 2003-08-17  Simon Josefsson  <jas@extundo.com>
123265         * modules/argp: Fix autoconf macro name. Add more dependencies.
123267 2003-08-17  Simon Josefsson  <jas@extundo.com>
123269         * m4/xstrndup.m4: New file.
123271 2003-08-17  Simon Josefsson  <jas@extundo.com>
123273         * m4/argp.m4: New file.
123275 2003-08-17  Simon Josefsson  <jas@extundo.com>
123276             Bruno Haible  <bruno@clisp.org>
123278         * lib/xstrndup.h: New file.
123279         * lib/xstrndup.c: New file.
123281 2003-08-17  Bruno Haible  <bruno@clisp.org>
123283         * modules/strndup (Files, Include): Add lib/strndup.h.
123285 2003-08-17  Bruno Haible  <bruno@clisp.org>
123287         * modules/euidaccess (Files): Add lib/euidaccess.h.
123289 2003-08-17  Bruno Haible  <bruno@clisp.org>
123291         * lib/strndup.h: New file.
123293 2003-08-17  Bruno Haible  <bruno@clisp.org>
123295         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123296         like AC_GNU_SOURCE.
123297         * modules/extensions (configure.ac): Comment out the invocation of
123298         gl_USE_SYSTEM_EXTENSIONS.
123300 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123302         Merges from coreutils, etc.
123303         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123304         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123305         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123306         fixing a typo.
123307         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123308         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123310 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123312         Document merge from coreutils.
123313         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123314         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123315         * modules/utime: Add m4/utimes-null.m4.
123317 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123319         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123320         space, undoing this 2003-08-12 change:
123321         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123323 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123325         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123326         strtoul.c from libc, undoing this 2003-08-12 change:
123327         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123329 2003-08-16  Jim Meyering  <jim@meyering.net>
123331         Merges from coreutils.
123332         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123333         prefix.  Adjust cache variables similarly.  Create 500 rather than
123334         just 300 files, to exercise bug on Darwin6.5, too.
123335         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123336         $missing_dir.
123337         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123338         AM_SYS_POSIX_TERMIOS.
123339         Reported by mkc@mathdogs.com.
123340         Also change use of $am_cv_sys_posix_termios
123341         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123342         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123343         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123344         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123345         in /proc/mounts until it finds one with matching device number.  This
123346         is unnecessary when the FILE argument *is* a mount point.  No stat call
123347         is necessary in that case.  So, disable the statvfs-testing code on
123348         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123349         as RedHat bug# 84846.
123350         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123351         to 1MB, so as not to render systems with no stack size limit (e.g.,
123352         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123353         Include <unistd.h>.  On some systems,
123354         it is required for the definition of _SC_PAGESIZE.
123356 2003-08-16  Jim Meyering  <jim@meyering.net>
123358         Merge from coreutils.
123359         * lib/xstrtoimax.c: #else #if -> #elif.
123360         * lib/xstrtoumax.c: Likewise.
123362 2003-08-16  Jim Meyering  <jim@meyering.net>
123364         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123365         * m4/utimes.m4: Removed.
123366         * m4/utimes-null.m4: Renamed from utimes.m4.
123368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123369         to 1MB, so as not to render systems with no stack size limit (e.g.,
123370         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123371         Include <unistd.h>.  On some systems,
123372         it is required for the definition of _SC_PAGESIZE.
123374 2003-08-16  Jim Meyering  <jim@meyering.net>
123375         and Paul Eggert  <eggert@cs.ucla.edu>
123377         Merges from coreutils, etc.
123379         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123380         using the latest version from cvs.  This avoids problems with #line
123381         directives using a vendor (Sun) compiler.
123382         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123383         Don't set GETGROUPS_LIB here; now it's
123384         done via getgroups.m4's wrapper function.
123385         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123386         rather than just in sh-util/configure.in, so that the
123387         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123388         same.
123389         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123390         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123391         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123392         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123393         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123394         Remove code that is now done by the newly-required macros.
123395         Append $(EXEEXT) to DF_PROG.
123396         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123397         Do not invoke or require the following here,
123398         since prereq.m4 or some gnulib .m4 now does this for us:
123399         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123400         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123401         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123402         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123403         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123404         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123405         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123406         AC_FUNC_OBSTACK.
123407         Do not replace the following functions, as this is now the job
123408         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123409         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123410         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123411         atexit getpass, strdup, getpagesize.
123412         Replace 'raise'.
123413         Do not check for the following functions, as this is now the job
123414         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123415         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123416         setregid.
123417         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123418         Check for sys/sysctl.h.
123419         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123420         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123421         of checking for ssize_t ourselves.
123423         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123424         Require every macro that gnulib/modules/* suggests for us.
123425         (jm_PREREQ_ADDEXT): New macro.
123426         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123427         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123429         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123430         (gl_PHYSMEM): Use it.
123431         Also check for `table' function.
123432         Check for new headers and functions.
123433         Add check for sys/sysmp.h.
123434         With suggestions from Kaveh Ghazi.
123435         Ignore headers that are present but cannot be compiled.  This
123436         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123437         C 5.4.
123439 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123441         Document merge from coreutils.
123442         * modules/userspec: Depend on posixver.
123443         * modules/strftime: Depend on tzset.
123445 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123447         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123448         rather than tab, after '#' in shell-script copyright notices.
123449         Suggested by Bruno Haible.
123451 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123453         * config/srclist-update: Use three spaces, rather than tab, after '#'
123454         in shell-script copyright notices.  Suggested by Bruno Haible.
123455         Remove unnecessary parenthesization in regular expression.
123457 2003-08-15  Jim Meyering  <jim@meyering.net>
123459         Merge from coreutils.
123460         * lib/xgethostname.c: Include <stdlib.h>.
123461         (xghostname): Don't exit for anything other than memory-related
123462         failure; just return NULL.
123463         * lib/userspec.c: Include "posixver.h".
123464         (parse_user_spec): Accept `.' as a separator only
123465         in pre-POSIX-200112 mode.
123466         * lib/strtoimax.c: Use #elif rather than #else #if.
123467         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123468         Remove function, now that we can rely on a working tzset function.
123469         [!_LIBC]: Ensure that the required autoconf test has been run.
123470         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123471         Use underlying_strftime for %r.
123472         * lib/sha.c: Merge in some clean-up and optimization changes from
123473         glibc.
123474         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123475         Ensure that it is a multiple of 64.
123476         Rearrange loop exit tests so as to avoid performing an
123477         additional fread after encountering an error or EOF.
123478         * lib/realloc.c: Update copyright date.
123480 2003-08-15  Jim Meyering  <jim@meyering.net>
123481         and Paul Eggert  <eggert@twinsun.com>
123483         Merge from coreutils.
123484         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123485         member but strut utmpx does not.  Needed for AIX 4.3.3.
123486         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123488 2003-08-15  Jim Meyering  <jim@meyering.net>
123489         and Paul Eggert  <eggert@cs.ucla.edu>
123491         Merges from coreutils, etc.
123492         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123493         Require gl_FUNC_TZSET_CLOBBER.
123494         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123495         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123496         members.
123498 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123500         Help the merge from coreutils.
123501         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123502         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123503         * m4/tzset.m4: Use it too.
123505 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123507         * modules/tzset: New file.
123509 2003-08-14  Jim Meyering  <jim@meyering.net>
123511         Merges from coreutils.
123512         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123513         variable names, rather than @FNMATCH_H@.
123514         * modules/alloca: Likewise for $(ALLOCA_H).
123516         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123517         the three copies of the literal target, `fnmatch.h'.
123518         * modules/alloca (alloca.h): Likewise.
123520 2003-08-14  Jim Meyering  <jim@meyering.net>
123522         Merge from coreutils.
123523         * m4/tzset.m4: New file.
123524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123525         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123526         otherwise, AIX 5.1 systems would end up using the latter.
123527         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123528         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123529         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123530         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123532 2003-08-14  Jim Meyering  <jim@meyering.net>
123534         Merge from coreutils.
123535         * lib/obstack.h: Whitespace changes.
123536         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123537         and xcalloc return values.
123538         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123539         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123540         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123541         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123542         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123543         error from mntctl.
123544         Use mntctl's return value to drive the entry-processing loop, since
123545         we can't rely on the value of the vmt_length member in the last
123546         entry.  On some systems doing so could result in exhausting
123547         virtual memory.  Based in part on a patch from Mike Jetzer.
123549 2003-08-14  Jim Meyering  <jim@meyering.net>
123550         and Paul Eggert  <eggert@twinsun.com>
123552         Merges from coreutils, plus other fixes.
123553         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123554         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123555         for credits and details.  Thanks to Kaveh Ghazi for helping
123556         to keep these files in sync.
123557         (ARRAY_SIZE): Define it.
123558         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123559         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123560         (memcasecmp): Don't assume size_t fits in unsigned int.
123561         Remove casts and duplicate code.
123562         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123563         (memcpy): Remove definition.
123564         Merge in some clean-up and optimization changes from glibc.
123565         [BLOCKSIZE]: Move definition to top of file.
123566         Ensure that it is a multiple of 64.
123567         Rearrange loop exit tests so as to avoid performing an
123568         additional fread after encountering an error or EOF.
123569         * lib/md5.h (md5_uintptr): Define.
123570         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123571         return to the initial working directory.  Preserve errno
123572         for caller.
123573         * lib/idcache.c: Include "xalloc.h".
123574         (xmalloc, xrealloc): Remove decls.
123575         (getuser): Remove casts no longer required in C89.
123576         * lib/human.c: Include stdio.h, for sprintf.
123577         * lib/group-member.c: Include "xalloc.h".
123578         (xmalloc, xrealloc): Remove decls.
123579         (get_group_info): Remove casts no longer required in C89.
123580         * lib/getusershell.c (readname): Remove casts no longer required in
123581         C89.
123582         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123583         * lib/getline.c: Whitespace fix, from coreutils.
123585 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123587         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123588         Check for isascii.
123590         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123591         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123592         Undo previous (whitespace-only) change.
123594 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123596         * lib/exclude.c: Include <ctype.h>
123597         (IN_CTYPE_DOMAIN): New macro.
123598         (is_space): New fn.
123599         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123600         and empty lines.
123602         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123603         Undo previous (whitespace-only) change.
123605 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123607         * config/srclist-update: Change update back to the old behavior,
123608         leaving whitespace alone.  Use one 'sed' command rather than a
123609         pipeline.
123610         (fixlicense): Now a variable, not a function.
123611         (remove_trailing_blanks): Remove.
123612         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123613         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123614         Undo previous (whitespace-only) change.
123616 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123618         Merge from coreutils.
123619         * modules/euidaccess: Add lib_SOURCES, include for new
123620         file euidaccess.h
123622 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123624         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123625         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123626         Normalize leading white space and remove trailing white space.
123628         Merge from coreutils
123629         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123631         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123632         0.12.1.  These files are now being upgraded automatically by
123633         ../config/srclist-update.
123635 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123637         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123638         Normalize leading white space and remove trailing white space.
123639         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123640         notice, as per ../config/srclist-update.
123642         Merge from coreutils.
123643         * lib/euidaccess.h: New file.
123644         * lib/euidaccess.c: Include it.
123645         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123646         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123647         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123649 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123651         * config/srclist-update: Add copyright notice.
123652         (remove_id_lines, remove_trailing_blanks): New constants.
123653         (fixfile): Use them to normalize spacing a bit in copied files.
123654         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123655         Normalize leading white space and remove trailing white space.
123657         * config/texinfo.tex: Sync with texinfo.
123659         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123660         strtoul.c from libc, to merge coreutils whitespace changes.
123662         * config/srclist.txt: Get the following m4 files from gettext:
123663         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123664         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123665         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123666         wint_t.m4.
123668 2003-08-12  Karl Berry  <karl@gnu.org>
123670         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123671         been made.
123673 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123675         * modules/gnu-source, m4/gnu-source.m4:
123676         Remove; we're assuming Autoconf 2.54 or later now.
123677         Suggested by Bruno Haible.
123678         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123680 2003-08-11  Bruno Haible  <bruno@clisp.org>
123682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123684 2003-08-11  Bruno Haible  <bruno@clisp.org>
123686         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123687         (vasnprintf): Use it instead of wcslen.
123689 2003-08-11  Bruno Haible  <bruno@clisp.org>
123691         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123692         value to ensure that _Bool promotes to int. Use #define for _Bool when
123693         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123695 2003-08-10  Karl Berry  <karl@gnu.org>
123697         * lib/regex.h: update from libc (whitespace fix).
123699 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123701         Merge some files from coreutils.  These changes were
123702         originally made by Jim Meyering.
123703         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123704         many older Unixes require this.
123705         * lib/alloca.c (alloca): Remove cast to argument of free;
123706         no longer needed in C89.
123707         * lib/alloca_.h, regex.h: Fix white space to match
123708         what GNU indent does.
123710 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123712         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123713         apparently Emacs's Unicode mode got confused before my 2003-08-05
123714         checkin.
123716 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123718         * m4/extensions.m4: New file.
123719         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
123720         Require gl_USE_SYSTEM_EXTENSIONS.
123721         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
123722         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
123724 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123726         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
123727         * modules/extensions, modules/gnu-source: New files.
123728         * modules/timespec, modules/unlocked-io: Depend on extensions.
123730 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123732         * modules/restrict: New file.
123733         * MODULES.html.sh (func_all_modules): Add restrict.
123734         * modules/regex: Depend on restrict.
123736 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123738         * m4/restrict.m4: New file.
123739         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
123741 2003-08-07  Bruno Haible  <bruno@clisp.org>
123743         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
123744         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
123746 2003-08-07  Bruno Haible  <bruno@clisp.org>
123748         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
123749         makes the module 'getndelim2' compatible with the module 'getline'.
123751 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123753         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
123754         byte with "\201" to avoid glitches when editing that source file
123755         with multi-gnome-terminal.
123757 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123759         * lib/bumpalloc.h: Remove.
123761 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123763         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
123764         * modules/bumpalloc: Remove.
123766 2003-08-04  Paul Eggert  <eggert@twinsun.com>
123768         * lib/getloadavg.c: Change copyright notice and spacing to conform to
123769         GNU coding style.
123771         Merge from coreutils.
123772         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
123773         1. From glibc.
123774         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
123775         from Karl Berry, implemented by Jim Meyering.
123776         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
123777         from Dmitry V. Levin.
123778         Remove anachronistic cast of xrealloc.
123779         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
123780         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
123781         type. Otherwise, it wouldn't compile with at least /bin/cc on
123782         ymp-cray-unicos9.0.2.X.
123783         Combine two mostly-identical uses of alloca into one.
123784         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
123786 2003-08-04  Dave Love  <d.love@dl.ac.uk>
123788         [From Emacs.]
123790         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
123791         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
123792         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
123793         obsolete NLIST_NAME_UNION.
123794         [__GNU__]: Undef BSD and FSCALE.
123795         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
123797 2003-08-03  Paul Eggert  <eggert@twinsun.com>
123799         * lib/stdbool_.h (_Bool): Make it signed char, instead of
123800         an enum type, so that it's guaranteed to promote to int.  See:
123801         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
123803 2003-08-03  Karl Berry  <karl@gnu.org>
123805         * config/depcomp: update from automake.
123807 2003-07-31  Paul Eggert  <eggert@twinsun.com>
123809         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
123810         (strerror): Don't assume that a printable int fits in 14 bytes.
123812 2003-07-31  Bruno Haible  <bruno@clisp.org>
123814         * modules/getpass-gnu: New file.
123815         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
123817 2003-07-31  Bruno Haible  <bruno@clisp.org>
123819         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
123821 2003-07-24  Karl Berry  <karl@gnu.org>
123823         * config/missing: update from automake.
123825 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
123826             Bruno Haible  <bruno@clisp.org>
123828         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
123829         * lib/getline.c (getline, getdelim): Likewise.
123830         Remove _GNU_SOURCE define; now it's defined in config.h through
123831         m4/getline.m4.
123833 2003-07-23  Karl Berry  <karl@gnu.org>
123835         * config/config.sub: update from prep.
123837 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123839         * modules/xalloc (Depends-on): Add exitfail.
123840         * modules/xmemcoll: Likewise.
123842 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123844         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
123845         over-parenthesization in macros.
123847         Sync with coreutils.
123849         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
123850         required by C99.
123852         Use `exit_failure' for xalloc and xmemcoll instead of their own
123853         private exit-failure variables.
123854         * lib/xalloc.h (xalloc_exit_failure): Remove.
123855         * lib/xmalloc.c: Likewise.  Include exitfail.h.
123856         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
123857         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
123858         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
123859         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
123861 2003-07-20  Jim Meyering  <jim@meyering.net>
123863         * modules/closeout (Depends-on): Add exitfail.
123864         Suggestion from Bruno Haible.
123866 2003-07-19  Karl Berry  <karl@gnu.org>
123868         * config/config.sub: update from prep.
123870 2003-07-18  Paul Eggert  <eggert@twinsun.com>
123872         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
123873         Remove.
123874         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
123875         to test that it can stand by itself.  Include "exitfail.h".
123876         Clients should set exit_failure instead.
123877         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
123879 2003-07-18  Bruno Haible  <bruno@clisp.org>
123881         * modules/getndelim2: New file.
123882         * modules/getline: Share files with module getndelim2.
123883         * modules/getnline: Depend on getndelim2 instead of sharing files with
123884         it. Add getnline.c to lib_SOURCES.
123885         * MODULES.html.sh (func_all_modules): Add getndelim2.
123887 2003-07-18  Bruno Haible  <bruno@clisp.org>
123889         * m4/getndelim2.m4: New file.
123890         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
123891         invoke gl_PREREQ_GETNDELIM2.
123892         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
123893         gl_PREREQ_GETNDELIM2.
123894         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
123895         gl_GETNDELIM2.
123897 2003-07-18  Bruno Haible  <bruno@clisp.org>
123899         * lib/getndelim2.h: New file.
123900         * lib/getndelim2.c: Make into a module of its own. Include config.h,
123901         getndelim2.h.
123902         (getndelim2): Make non-static. Change return type to ssize_t.
123903         * lib/getline.h: Change argument names.
123904         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
123905         * lib/getnline.c: Include getndelim2.h.
123907 2003-07-18  Andreas Schwab  <schwab@suse.de>
123909         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
123911 2003-07-17  Karl Berry  <karl@gnu.org>
123913         * config/config.sub: update from prep.
123915 2003-07-17  Bruno Haible  <bruno@clisp.org>
123917         * modules/getnline: New file.
123918         * modules/getline: Add lib/getndelim2.c to source file list.
123919         * MODULES.html.sh (func_all_modules): Add getnline.
123921 2003-07-17  Bruno Haible  <bruno@clisp.org>
123923         * m4/getnline.m4: New file.
123925 2003-07-17  Bruno Haible  <bruno@clisp.org>
123927         * m4/Makefile.am.in: Remove file.
123928         * m4/Makefile.am: Remove file.
123929         * m4/Makefile.in: Remove file.
123931 2003-07-17  Bruno Haible  <bruno@clisp.org>
123933         * lib/getnline.h: New file.
123934         * lib/getnline.c: New file.
123935         * lib/getndelim2.c: New file, extracted from getline.c.
123936         (getndelim2): Renamed from getdelim2, with added nmax argument.
123937         * lib/getline.c: Include getndelim2.c.
123938         (getdelim2): Moved out to getndelim2.c.
123939         (getline, getdelim): Update.
123941 2003-07-17  Bruno Haible  <bruno@clisp.org>
123943         * lib/Makefile.am: Remove file.
123944         * lib/Makefile.in: Remove file.
123946 2003-07-17  Bruno Haible  <bruno@clisp.org>
123948         * configure.in: Remove file.
123949         * Makefile.in: Remove file.
123951 2003-07-17  Bruno Haible  <bruno@clisp.org>
123953         * MODULES.html.sh: Put the </BODY> right before </HTML>.
123955 2003-07-16  Karl Berry  <karl@gnu.org>
123957         * config/srclist-update: was running fixlicense twice, which caused
123958                 texinfo.tex to be nullified for some reason.  Simplify,
123959                 $gplsrc is no longer needed as far as I can see?
123961 2003-07-16  Jim Meyering  <jim@meyering.net>
123963         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
123965 2003-07-15  Paul Eggert  <eggert@twinsun.com>
123967         * config/srclist.txt: Get the following files from gettext-runtime/intl
123968         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
123969         ref-del.sin.  From Bruno Haible.
123970         * config/srclist-update (fixfile): Change grep pattern again, since the
123971         previous fix didn't work (there was another trailing $).  Use
123972         '[$]' to escape the $s.
123974 2003-07-15  Karl Berry  <karl@gnu.org>
123976         * lib/vasnprintf.c: update from gettext.
123978 2003-07-15  Karl Berry  <karl@gnu.org>
123980         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
123981         gets expanded when surrounded by '$'.
123983 2003-07-15  Jim Meyering  <jim@meyering.net>
123985         * modules/save-cwd: Don't depend on error.  From Derek Price.
123987 2003-07-15  Jim Meyering  <jim@meyering.net>
123989         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
123991 2003-07-14  Simon Josefsson  <jas@extundo.com>
123993         * modules/mempcpy: New file.
123994         * MODULES.html.sh (func_all_modules): Add mempcpy.
123996 2003-07-14  Simon Josefsson  <jas@extundo.com>
123998         * m4/mempcpy.m4: New file.
124000 2003-07-14  Simon Josefsson  <jas@extundo.com>
124002         * lib/mempcpy.h: New file.
124003         * lib/mempcpy.c: New file.
124005 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124007         * modules/getdate, modules/posixtm: Depend on mktime.
124009 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124011         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124012         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124013         unicodeio.c, unicodeio.h, unlocked-io.h:
124014         Switch from LGPL to GPL.
124016 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124018         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124019         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124020         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124021         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124022         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124023         updated automatically by ../config/srclist-update.  This changes
124024         their license from LPGL to GPL.
124026 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124028         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124029         assumed to refer to the root of the most recent stable gettext version.
124030         * config/srclistvars.sh: Add defaults for eggert.
124031         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124032         Match "This program" as well as "The program".  This is needed
124033         for gettext.
124035 2003-07-14  Jim Meyering  <jim@meyering.net>
124037         Don't emit diagnostics.  Let callers do that.
124038         * lib/save-cwd.c: Don't include "error.h".
124039         (save_cwd): Don't call error.  Ensure that errno is valid
124040         when returning nonzero.
124042         * lib/save-cwd.h (restore_cwd): Update prototype.
124043         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124044         Simplify.  Don't call error upon failure.  Let callers do that.
124045         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124046         when auditing is enabled.  But don't bother updating the #if.
124048 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124050         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124051         it breaks C++ compilation.
124052         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124054 2003-07-10  Simon Josefsson  <jas@extundo.com>
124056         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124058 2003-07-10  Jim Meyering  <jim@meyering.net>
124060         * m4/clock_time.m4: Remove trailing blank.
124061         * m4/intmax_t.m4: Likewise.
124063 2003-07-10  Jim Meyering  <jim@meyering.net>
124065         * lib/vasnprintf.c: Remove trailing blanks.
124066         Make cpp indentation consistent.
124068 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124070         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124071         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124072         Switch from LGPL to GPL.
124074 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124076         * config/srclist.txt: Sort sublists.  Add
124077         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124078         that differ from gnulib for one reason or another; we'd like this list
124079         to be smaller but for now let's document what we have.
124081 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124083         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124084         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124085         and sweeter "eval x=$x".
124086         * config/srclist.txt: Get lib/argp* from glibc.
124088 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124090         * lib/mktime.c: Fix some boundary cases and remove need for floating
124091         point.
124093         Issue a compile-time diagnostic if time_t is floating point, or if
124094         two's complement arithmetic is not in effect, or if arithmetic
124095         right shift does not propagate the sign.  These assumptions were
124096         all in the original code but they weren't checked.
124098         (TIME_T_MIDPOINT, verify): New macros.
124099         (__isleap): Remove; it has integer overflow problems.
124100         (leapyear): New function, without those problems.
124101         (ydhms_tm_diff): Remove; splitting into two parts.
124102         (ydhms_diff): New function, containing the arithmetic part of
124103         the old ydhms_tm_diff function.  Issue a compile-time
124104         diagnostic if we are not using C99 integer division.
124105         Avoid casts when possible.
124106         (guess_time_tm): New function, containing the checking part of
124107         the old ydhms_tm_diff function.  Return the new value, rather than
124108         the difference between it and the old.  Accept a new argument T
124109         so that *T specifies the old value.  Check for overflow in the result.
124111         (__mktime_internal): Use a time_t offset, not a long int offset.
124112         This undoes the 2003-06-04 change, which is no longer needed now
124113         that we have better overflow checking.
124114         (localtime_offset): Likewise.
124116         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124117         and long are 64-bit but int is only 32-bit.
124118         (ydhms_diff): Use long int to store year1 and yday1.
124119         Issue a compile-time diagnostic if long int is not wide enough.
124121         (__mktime_internal): Use long int to store adjusted year and yday.
124122         Use plain C rather than preprocessor commands, if that doesn't
124123         affect efficiency.
124124         Check for overflow (and try to repair) after each probe
124125         rather than checking only at the very end.  This avoids some bugs
124126         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124127         does not equal GMT offset at maximum time).
124128         Use integer to check for overflow rather than floating point; this
124129         is more portable to non-IEEE hosts, and is a tad faster.
124130         When we detect that we are oscillating between two values,
124131         don't check whether tm_isdst has the requested value, since
124132         we already know the answer.  When tm_isdst has the wrong value,
124133         use a different heuristic to find the right one, based on the
124134         extreme values actually observed in practice in tz2003a,
124135         rather than the (overly optimistic) "previous 3 calendar quarters".
124137         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124138         "T const" to accommodate glibc style.
124139         (check_result): Use less-confusing report format.  "long" -> "long int.
124140         (main): Likewise.
124141         Don't loop if the iteration overflows time_t.
124142         Allow a negative step in the iteration.
124144 2003-07-06  Karl Berry  <karl@gnu.org>
124146         * config/depcomp: update from automake.
124147         * config/config.sub: update from prep.
124149 2003-07-03  Karl Berry  <karl@gnu.org>
124151         * config/config.guess: update from prep.
124153 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124155         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124156         xreadlink.c now includes it unconditionally.
124158 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124160         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124161         having it depend on HAVE_SYS_TYPES_H.
124163 2003-07-01  Bruno Haible  <bruno@clisp.org>
124165         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124166         <sys/types.h> should be sufficient.
124167         Reported by Paul Eggert.
124169 2003-06-26  Karl Berry  <karl@gnu.org>
124171         * config/depcomp: update from automake.
124173 2003-06-26  Bruno Haible  <bruno@clisp.org>
124175         * modules/human: Depend on module stdbool.
124177 2003-06-25  Bruno Haible  <bruno@clisp.org>
124179         * modules/readlink: New file.
124180         * modules/xreadlink: Depend on it.
124181         * MODULES.html.sh (func_all_modules): Add readlink.
124183 2003-06-25  Bruno Haible  <bruno@clisp.org>
124185         * m4/readlink.m4: New file.
124187 2003-06-25  Bruno Haible  <bruno@clisp.org>
124189         * lib/readlink.c: New file.
124191 2003-06-22  Karl Berry  <karl@gnu.org>
124193         * config/srclist.txt: update mkinstalldirs from automake.
124194         * config/mkinstalldirs: update.
124196 2003-06-22  Bruno Haible  <bruno@clisp.org>
124198         Portability to mingw32.
124199         * m4/ssize_t.m4: New file, from GNU gettext.
124200         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124201         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124203 2003-06-22  Bruno Haible  <bruno@clisp.org>
124205         * modules/safe-read: Add m4/ssize_t.m4.
124206         * modules/xreadlink: Add m4/ssize_t.m4.
124208 2003-06-20  Bruno Haible  <bruno@clisp.org>
124210         Assume C89, so PARAMS isn't needed.
124211         * lib/unicodeio.h (PARAMS): Remove.
124212         * lib/unicodeio.c: Don't use PARAMS.
124214 2003-06-18  Karl Berry  <karl@gnu.org>
124216         * config/config.{guess,sub}: update from prep.
124218 2003-06-18  Jim Meyering  <jim@meyering.net>
124220         Merge changes from coreutils.
124221         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124222         Remove explicit declarations of xmalloc and realloc.
124223         Include xalloc.h.
124224         (read_utmp): Remove anachronistic cast of xmalloc.
124226 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124228         Assume C89, so PARAMS isn't needed.
124229         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124230         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124231         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124232         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124233         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124234         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124235         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124236         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124237         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124238         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124239         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124240         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124241         no longer needed. Anyway, config.h should always be included before any
124242         other file.
124244 2003-06-11  Simon Josefsson  <jas@extundo.com>
124246         * modules/sysexits: New file.
124247         * MODULES.html.sh (func_all_modules): Add sysexits.
124249 2003-06-11  Simon Josefsson  <jas@extundo.com>
124251         * lib/sysexit_.h: New file.
124253 2003-06-11  Derek Price  <derek@ximbiot.com>
124255         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124256         necessary.
124258 2003-06-11  Bruno Haible  <bruno@clisp.org>
124260         * m4/sysexits.m4: New file.
124262 2003-06-10  Simon Josefsson  <jas@extundo.com>
124264         * lib/argp.h: New file, from glibc.
124265         * lib/argp-ba.c: New file, from glibc.
124266         * lib/argp-eexst.c: New file, from glibc.
124267         * lib/argp-fmtstream.c: New file, from glibc.
124268         * lib/argp-fmtstream.h: New file, from glibc.
124269         * lib/argp-fs-xinl.c: New file, from glibc.
124270         * lib/argp-help.c: New file, from glibc.
124271         * lib/argp-namefrob.h: New file, from glibc.
124272         * lib/argp-parse.c: New file, from glibc.
124273         * lib/argp-pv.c: New file, from glibc.
124274         * lib/argp-pvh.c: New file, from glibc.
124275         * lib/argp-xinl.c: New file, from glibc.
124277 2003-06-10  Simon Josefsson  <jas@extundo.com>
124279         * modules/strchrnul: New file.
124281 2003-06-10  Simon Josefsson  <jas@extundo.com>
124283         * modules/argp: New file.
124285 2003-06-10  Simon Josefsson  <jas@extundo.com>
124287         * m4/strchrnul.m4: New file.
124289 2003-06-10  Simon Josefsson  <jas@extundo.com>
124291         * lib/strchrnul.h: New file.
124292         * lib/strchrnul.c: New file.
124294 2003-06-10  Bruno Haible  <bruno@clisp.org>
124296         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124298 2003-06-07  Karl Berry  <karl@gnu.org>
124300         * config/config.{guess,sub}: update from prep.
124302 2003-06-07  Jim Meyering  <jim@meyering.net>
124304         * modules/strtod: Use $(...) notation, not @...@ for
124305         AC_REPLACE'd variables.
124306         * modules/localcharset: Likewise.
124308 2003-06-07  Jim Meyering  <jim@meyering.net>
124310         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124311         in place of my name in the copyright comment.
124312         Remove definition and uses of __P.
124314         From coreutils.
124315         * lib/stat.c: Don't declare xmalloc explicitly.
124316         Instead, include "xalloc.h".
124317         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124318         xrealloc, and xcalloc return values.
124319         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124320         Improve comment.
124321         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124323 2003-06-07  Bruno Haible  <bruno@clisp.org>
124325         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124326         avoid AC_CONFIG_LINKS.
124327         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124328         fnmatch.h, to avoid AC_CONFIG_LINKS.
124329         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124331 2003-06-07  Bruno Haible  <bruno@clisp.org>
124333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124334         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124335         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124336         directory.
124337         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124338         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124339         directory.
124341 2003-06-06  Jim Meyering  <jim@meyering.net>
124343         Merge from coreutils.
124344         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124345         Consolidate declarations and initializations of *_base* locals.
124347         Merge from coreutils.
124348         This avoids a core dump on systems without GNU putenv,
124349         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124350         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124351         (unsetenv): New static function, from GNU libc.
124352         (rpl_putenv): Use it.
124354         * lib/modechange.c: Remove trailing blanks.
124356         Merge from coreutils.
124357         * lib/fsusage.c: Remove declaration of statfs.
124358         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124360         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124362 2003-06-06  Jim Meyering  <jim@meyering.net>
124364         * lib/stdbool_.h: Renamed from stdbool.h.in.
124366 2003-06-06  Jim Meyering  <jim@meyering.net>
124367             Bruno Haible  <bruno@clisp.org>
124369         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124370         Adjust Makefile.am snippet not to redirect directly to target.
124371         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124373 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124375         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124376         mismatch, look in future quarters as well as past.  This fixes a
124377         bug when processing fall-backwards gaps immediately after a long
124378         period of daylight-saving time.
124380         * lib/mktime.c: Assume freestanding C89 or better.
124381         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124382         (__P): Remove; not used.
124383         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124384         (mktime, not_equal_tm, print_tm, check_result,
124385         main): Use prototypes.  Use const * where appropriate.
124386         (main): Fix typo in testing code that uncovered by above changes.
124387         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124389 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124391         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124392         locale.h, localeconv.  This merges changes from coreutils.
124394         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124395         It can be removed after the next Autoconf is released.
124396         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124397         needed.
124399 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124401         * lib/mktime.c: Fix Debian bug 177940
124402         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124403         (localtime_offset): Now long int, not time_t, because we want it
124404         to be guaranteed to be signed.  All uses changed.
124405         (__mktime_internal): If overflow would occur when adding offset,
124406         don't add it.
124408         Merge 'human' changes from coreutils.  Rewrite to support
124409         locale-specific notations like thousands separators.
124410         * lib/human.c: Simplify authorship notice.
124411         Include human.h immediately after config.h.
124412         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124413         <limits.h>: Do not include, since human.h does.
124414         (SIZE_MAX, UINTMAX_MAX): New macros.
124415         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124416         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124417         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124418         (power_letter): Renamed from suffixes.
124419         (generate_suffix_backwards): Remove.
124420         (adjust_value): Now takes int style (because of human.h changes)
124421         and long double value (for greater precision on some platforms).
124422         (group_number): New function.
124423         (human_readable): Use it.  Use integer options, not enum.
124424         Put the options before the sizes in the arg list.
124425         Support all the new options.
124426         The old human_readable function has been removed;
124427         use inttostr.h instead.
124428         (human_readable, default_block_size, humblock):
124429         Use uintmax_t, not int, for block sizes.
124430         (human_readable_inexact, block_size_types): Remove.
124431         (block_size_opts): New constant.
124432         (human_options): Renamed from human_block_size, with new signature
124433         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124434         * lib/human.h: Add copyright and authorship notice.
124435         Include <limits.h> and <stdbool.h> unconditionally.
124436         (PARAMS): Remove.  All uses removed.
124437         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124438         (enum human_inexact_style): Remove tag; now a nameless enum.
124439         (human_floor, human_ceiling, human_round_to_even): Now have
124440         values 2, 0, 1 rather than -1, 1, 0.
124441         (human_group_digits, human_suppress_point_zero, human_autoscale,
124442         human_base_1024, human_SI, human_B): New constants.
124443         (human_readable_inexact, human_block_size): Remove.
124444         (human_readable): Size args are now uintmax_t, not int.
124445         (human_options): New decl.
124447         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124448         unnecessary now that we assume C89 or better.  This change
124449         imported from coreutils.
124451         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124452         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124453         in the 2003-05-30 sync from glibc.
124455         .h files should stand alone, but we shouldn't include <sys/types.h>
124456         if we can get away with just <stddef.h>.
124458         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124459         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124460         rather than <sys/types.h>, as we merely need size_t.
124461         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124462         to get size_t.
124463         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124464         Include <stdio.h>, to get FILE.
124465         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124466         memcasecmp.h has included <stddef.h> and all we need is size_t.
124467         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124468         our interface, instead of including <sys/types.h>
124470 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124472         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124473         now, as glibc mktime is buggy on non-glibc systems.
124475 2003-06-03  Karl Berry  <karl@gnu.org>
124477         * config/config.sub: update from prep.
124479 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124481         [from coreutils]
124482         Fix some minor time-related bugs with POSIX time arguments.
124483         Some valid time stamps were being rejected (notably -1, and
124484         time stamps before 1900 on 64-bit hosts).  And some invalid
124485         time stamps were being accepted, e.g. September 31.
124487         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124488         that we can return (time_t) -1 successfully.
124489         * lib/posixtm.c: Likewise.
124490         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124491         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124492         (t): Remove static var.
124493         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124494         of static var.  All uses changed.
124495         (year): Do not reject years before 1900; they can occur with
124496         64-bit time_t.
124497         (posix_time_parse): Do not check for out-of-range components;
124498         that is now the caller's responsibility, since our checks were
124499         only approximations.
124500         (posixtime): Use mktime to check for out-of-range components,
124501         since it knows them exactly.
124502         If mktime returns (time_t) -1, check whether an error actually occurred
124503         by invoking localtime on -1.
124504         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124505         posixtime failures better.
124506         Improve the test data (in comments only).
124508 2003-06-02  Karl Berry  <karl@gnu.org>
124510         * config/mkinstalldirs (version): new variable.
124511         (--version): new option.
124512         (usage): improve message.
124514 2003-05-30  Karl Berry  <karl@gnu.org>
124516         * lib/mktime.c: update from libc.
124518 2003-05-30  Bruno Haible  <bruno@clisp.org>
124520         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124521         * config/config.rpath: Upgrade to gettext-0.12.1.
124523 2003-05-30  Bruno Haible  <bruno@clisp.org>
124525         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124526         * m4/nls.m4: New file, from gettext-0.12.1.
124527         * m4/po.m4: New file, from gettext-0.12.1.
124528         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124530 2003-05-30  Bruno Haible  <bruno@clisp.org>
124532         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124533         * lib/localcharset.h: Likewise.
124534         * lib/localcharset.c: Likewise.
124536 2003-05-29  Karl Berry  <karl@gnu.org>
124538         * config/config.rpath: update from gettext.
124540 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124542         Assume the headers required for C89 freestanding compilers.
124543         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124544         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124545         * m4/human.m4 (gl_HUMAN): Likewise.
124546         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124547         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124548         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124549         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124550         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124551         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124553 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124555         Assume the headers required for C89 freestanding compilers.
124556         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124557         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124558         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124559         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124560         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124561         define, since <limits.h> is guaranteed to do that.
124562         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124563         * lib/exclude.c: Include <stdbool.h> unconditionally.
124564         * lib/tempname.c: Include <stddef.h> unconditionally.
124565         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124566         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124567         <stddef.h> does that.
124568         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124569         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124570         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124571         needed.
124572         * lib/xstrtol.c: Likewise.
124573         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124574         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124576         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124577         warnings on some platforms.
124579         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124580         arbitrarily.
124582 2003-05-26  Jim Meyering  <jim@meyering.net>
124584         Merge in a change from coreutils:
124585         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124586         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124587         that condition, rather than `-1' which is slightly misleading.
124588         Change the name of the cache variable to have the gl_ prefix.
124589         Prompted by a patch from Richard Dawe for DJGPP.
124591 2003-05-24  Karl Berry  <karl@gnu.org>
124593         * config/config.guess: update from prep.
124595 2003-05-22  Karl Berry  <karl@gnu.org>
124597         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124599 2003-05-20  Karl Berry  <karl@gnu.org>
124601         * config/config.guess: update from prep.
124603 2003-05-18  Karl Berry  <karl@gnu.org>
124605         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124606         might actually be set by the user.
124608         * config/depcomp, install-sh, mdate-sh: update from automake.
124610 2003-05-17  Bruno Haible  <bruno@clisp.org>
124612         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124613         invalid expansion for AC_EGREP_CPP.
124614         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124615         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124616         Suggested by Akim Demaille <akim@epita.fr> in
124617         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124619 2003-05-12  Jim Meyering  <jim@meyering.net>
124621         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124622         the space-padded-by-default conversion specifiers, %e, %k, %l.
124624 2003-05-12  Bruno Haible  <bruno@clisp.org>
124626         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124627         the string is longer than 4 KB.
124629 2003-05-11  Karl Berry  <karl@gnu.org>
124631         * config/config.{guess,sub}: update from prep.
124633 2003-05-09  Bruno Haible  <bruno@clisp.org>
124635         * modules/error: Add m4/strerror_r.m4 to file list.
124637 2003-05-03  Bruno Haible  <bruno@clisp.org>
124639         Upgrade to Unicode-4.0.
124640         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124641         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124642         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124643         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124644         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124645         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124646         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124647         Change width of U+E0100..U+E01EF from 1 to 0.
124649 2003-04-25  Jim Meyering  <jim@meyering.net>
124651         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124652         of type size_t, not int.
124654 2003-04-25  Bruno Haible  <bruno@clisp.org>
124656         * lib/copy-file.c: Include <stddef.h>, for size_t.
124658 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124660         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124661         code which expansion is under static control.  Patch imported from
124662         Akim Demaille's patch to Bison; see
124663         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124665 2003-04-14  Bruno Haible  <bruno@clisp.org>
124667         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124669 2003-04-11  Jim Meyering  <jim@meyering.net>
124671         Merge changes from Coreutils.
124673         2003-03-22  Jim Meyering  <jim@meyering.net>
124675         * lib/strftime.c (widen): Cast alloca return value to proper type.
124677         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124679         From GNU libc.
124680         * lib/strftime.c (my_strftime): Handle very large width
124681         specifications for numeric values correctly.  Improve checks for
124682         overflow.
124684         2003-01-19  Jim Meyering  <jim@meyering.net>
124686         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124687         definitions.
124688         (nl_get_alt_digit) [! defined my_strftime]: Define.
124689         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124690         _nl_get_alt_digit and _nl_get_walt_digit.
124692         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124693         libc. These changes have no effect outside of _LIBC.
124695 2003-04-10  Bruno Haible  <bruno@clisp.org>
124697         * modules/findprog: New file.
124698         * MODULES.html.sh (func_all_modules): Add it.
124700 2003-04-10  Bruno Haible  <bruno@clisp.org>
124702         * m4/findprog.m4: New file.
124703         * m4/eaccess.m4: New file.
124705 2003-04-10  Bruno Haible  <bruno@clisp.org>
124707         * lib/findprog.h: New file, from GNU gettext.
124708         * lib/findprog.c: New file, from GNU gettext.
124710 2003-04-05  Jim Meyering  <jim@meyering.net>
124712         Merge changes from Coreutils.
124714         * lib/exclude.h (PARAMS): Remove definition and uses.
124715         * lib/exclude.c: Remove uses of `PARAMS'.
124717         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124718         Add test-cases for DOS filenames. Declare program_name.
124719         (main): Set up program_name.  Patch by Rich Dawe.
124721         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124722         error from mntctl.
124723         Use mntctl's return value to drive the entry-processing loop, since
124724         we can't rely on the value of the vmt_length member in the last
124725         entry.  On some systems doing so could result in exhausting
124726         virtual memory.  Based in part on a patch from Mike Jetzer.
124728 2003-04-04  Bruno Haible  <bruno@clisp.org>
124730         * modules/linebreak: New file.
124731         * MODULES.html.sh (func_all_modules): Add it.
124733 2003-04-04  Bruno Haible  <bruno@clisp.org>
124735         * m4/linebreak.m4: New file.
124737 2003-04-04  Bruno Haible  <bruno@clisp.org>
124739         * lib/linebreak.h: New file, from GNU gettext.
124740         * lib/linebreak.c: New file, from GNU gettext with slight
124741         modifications.
124742         * lib/lbrkprop.h: New file, from GNU gettext.
124744 2003-04-03  Bruno Haible  <bruno@clisp.org>
124746         * modules/utf8-ucs4: New file.
124747         * modules/utf16-ucs4: New file.
124748         * modules/ucs4-utf8: New file.
124749         * modules/ucs4-utf16: New file.
124750         * MODULES.html.sh (func_all_modules): Add them.
124752 2003-04-03  Bruno Haible  <bruno@clisp.org>
124754         * m4/utf-ucs4.m4: New file.
124755         * m4/ucs4-utf.m4: New file.
124757 2003-04-03  Bruno Haible  <bruno@clisp.org>
124759         * lib/utf8-ucs4.h: New file, from GNU gettext.
124760         * lib/utf16-ucs4.h: New file, from GNU gettext.
124761         * lib/ucs4-utf8.h: New file, from GNU gettext.
124762         * lib/ucs4-utf16.h: New file, from GNU gettext.
124764 2003-04-02  Bruno Haible  <bruno@clisp.org>
124766         * modules/binary-io: New file.
124767         * MODULES.html.sh (func_all_modules): Add it.
124769 2003-04-02  Bruno Haible  <bruno@clisp.org>
124771         * lib/binary-io.h: New file, from GNU gettext.
124773 2003-04-01  Bruno Haible  <bruno@clisp.org>
124775         * modules/pathname: New file.
124776         * MODULES.html.sh (func_all_modules): Add it.
124778 2003-04-01  Bruno Haible  <bruno@clisp.org>
124780         * lib/pathname.h: New file, from GNU gettext.
124781         * lib/concatpath.c: New file, from GNU gettext.
124783 2003-03-30  Bruno Haible  <bruno@clisp.org>
124785         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
124787 2003-03-30  Bruno Haible  <bruno@clisp.org>
124789         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
124790         function chown() doesn't exist.
124792 2003-03-28  Bruno Haible  <bruno@clisp.org>
124794         * modules/copy-file: New file.
124795         * MODULES.html.sh (func_all_modules): Add it.
124797 2003-03-28  Bruno Haible  <bruno@clisp.org>
124799         * m4/copy-file.m4: New file.
124801 2003-03-28  Bruno Haible  <bruno@clisp.org>
124803         * lib/copy-file.h: New file, from GNU gettext.
124804         * lib/copy-file.c: New file, from GNU gettext.
124806 2003-03-18  Jim Meyering  <jim@meyering.net>
124808         * lib/quote.c (quote_n): Fix typo in comment.
124810 2003-03-18  Bruno Haible  <bruno@clisp.org>
124812         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
124813         checking.
124814         * m4/onceonly_2_57.m4: Likewise.
124816 2003-03-17  Bruno Haible  <bruno@clisp.org>
124818         * m4/onceonly.m4: Require autoconf 2.54 or newer.
124819         (m4_quote): Remove macro.
124820         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
124822 2003-03-14  Jim Meyering  <jim@meyering.net>
124824         Merge changes from Coreutils.
124825         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
124826         to be const, in order to avoid warnings.
124827         (obstack_room): Likewise.
124828         (obstack_empty_p): Likewise.
124830 2003-03-14  Bruno Haible  <bruno@clisp.org>
124832         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
124833         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
124835 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124837         Merge changes from Bison.
124838         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
124839         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
124840         when compiling Bison 1.875's `bitset bset = obstack_alloc
124841         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
124842         * lib/hash.c: Include <stdbool.h> unconditionally.
124844 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124846         * m4/onceonly.m4 (m4_quote): New macro.
124847         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
124848         Quote AC_FOREACH variable-expansions properly.
124850 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124852         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
124854 2003-03-09  Paul Eggert  <eggert@twinsun.com>
124856         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
124857         Reported by Bruce Becker; see:
124858         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
124860 2003-03-03  Paul Eggert  <eggert@twinsun.com>
124861             Bruno Haible  <bruno@clisp.org>
124863         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
124864         Reported by John Hughes, see
124865         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
124867 2003-02-20  Bruno Haible  <bruno@clisp.org>
124869         * MODULES.html.sh (func_all_modules): Add poll.
124871 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124873         * modules/poll: New file.
124875 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124877         * lib/poll_.h: New file.
124878         * lib/poll.c: New file.
124880 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
124882         * m4/poll.m4: New file.
124884 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124886         * modules/mathl: New file.
124888 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124890         * lib/mathl.h: New file.
124891         * lib/acosl.c: New file.
124892         * lib/asinl.c: New file.
124893         * lib/atanl.c: New file.
124894         * lib/ceill.c: New file.
124895         * lib/cosl.c: New file.
124896         * lib/expl.c: New file.
124897         * lib/floorl.c: New file.
124898         * lib/frexpl.c: New file.
124899         * lib/ldexpl.c: New file.
124900         * lib/logl.c: New file.
124901         * lib/sincosl.c: New file.
124902         * lib/sinl.c: New file.
124903         * lib/sqrtl.c: New file.
124904         * lib/tanl.c: New file.
124905         * lib/trigl.c: New file.
124906         * lib/trigl.h: New file.
124908 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
124910         * m4/mathl.m4: New file.
124912 2003-02-18  Bruno Haible  <bruno@clisp.org>
124914         * MODULES.html.sh (func_all_modules): Add mathl.
124916 2003-02-17  Bruno Haible  <bruno@clisp.org>
124918         * modules/mkdtemp: New module.
124919         * MODULES.html.sh (func_all_modules): Add it.
124921 2003-02-17  Bruno Haible  <bruno@clisp.org>
124923         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
124925 2003-02-17  Bruno Haible  <bruno@clisp.org>
124927         * lib/mkdtemp.h: New file, from GNU gettext.
124928         * lib/mkdtemp.c: New file, from GNU gettext.
124930 2003-02-02  Jim Meyering  <jim@meyering.net>
124932         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
124933         e.g. glibc-2.2.93.
124935 2003-01-31  Bruno Haible  <bruno@clisp.org>
124937         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
124938         'rpl_rename'.
124939         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
124940         'rpl_strnlen'.
124941         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
124942         'rpl_strtod'.
124943         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
124944         'rpl_utime'.
124946 2003-01-31  Bruno Haible  <bruno@clisp.org>
124948         * lib/rename.c: #undef rename before defining rpl_rename.
124949         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
124951 2003-01-30  Bruno Haible  <bruno@clisp.org>
124953         * modules/vasnprintf, modules/vasprintf: New modules.
124954         * MODULES.html.sh (func_all_modules): Add them.
124956 2003-01-30  Bruno Haible  <bruno@clisp.org>
124958         * m4/signed.m4: New file, from GNU gettext.
124959         * m4/longdouble.m4: New file, from GNU gettext.
124960         * m4/wchar_t.m4: New file, from GNU gettext.
124961         * m4/wint_t.m4: New file, from GNU gettext.
124962         * m4/vasnprintf.m4: New file.
124963         * m4/vasprintf.m4: New file.
124965 2003-01-30  Bruno Haible  <bruno@clisp.org>
124967         * lib/printf-args.h: New file, from GNU gettext.
124968         * lib/printf-args.c: New file, from GNU gettext.
124969         * lib/printf-parse.h: New file, from GNU gettext.
124970         * lib/printf-parse.c: New file, from GNU gettext.
124971         * lib/vasnprintf.h: New file, from GNU gettext.
124972         * lib/vasnprintf.c: New file, from GNU gettext.
124973         * lib/asnprintf.c: New file, from GNU gettext.
124974         * lib/vasprintf.h: New file, from GNU gettext with modifications.
124975         * lib/vasprintf.c: New file, from GNU gettext.
124976         * lib/asprintf.c: New file, from GNU gettext.
124978 2003-01-29  Bruno Haible  <bruno@clisp.org>
124980         * modules/stpncpy: New module.
124981         * MODULES.html.sh (func_all_modules): Add it.
124983 2003-01-29  Bruno Haible  <bruno@clisp.org>
124985         * m4/stpncpy.m4: New file.
124987 2003-01-29  Bruno Haible  <bruno@clisp.org>
124989         * lib/stpncpy.h: New file, from GNU gettext with modifications.
124990         * lib/stpncpy.c: New file, from GNU gettext with modifications.
124992 2003-01-28  Bruno Haible  <bruno@clisp.org>
124994         * modules/c-ctype: New module.
124995         * MODULES.html.sh (func_all_modules): Add it.
124997 2003-01-28  Bruno Haible  <bruno@clisp.org>
124999         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125000         Paul Eggert.
125001         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125002         Paul Eggert.
125004 2003-01-27  Bruno Haible  <bruno@clisp.org>
125006         * modules/xsetenv: New module.
125007         * MODULES.html.sh (func_all_modules): Add it.
125009 2003-01-27  Bruno Haible  <bruno@clisp.org>
125011         * lib/xsetenv.h: New file, from GNU gettext.
125012         * lib/xsetenv.c: New file, from GNU gettext.
125014 2003-01-23  Jim Meyering  <jim@meyering.net>
125016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125017         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125019 2003-01-23  Bruno Haible  <bruno@clisp.org>
125021         * modules/minmax: New module.
125022         * MODULES.html.sh (func_all_modules): Add it.
125024 2003-01-23  Bruno Haible  <bruno@clisp.org>
125026         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125027         Eggert.
125029 2003-01-22  Bruno Haible  <bruno@clisp.org>
125031         * modules/exit: New module.
125032         * MODULES.html.sh (func_all_modules): Add it.
125034 2003-01-22  Bruno Haible  <bruno@clisp.org>
125036         * lib/exit.h: New file, from GNU gettext.
125038 2003-01-19  Bruno Haible  <bruno@clisp.org>
125040         * gnulib-tool: Recognize option --extract-maintainer.
125041         (func_get_maintainer): New function.
125042         * modules/*: Add Maintainer entry.
125044 2003-01-16  Jim Meyering  <jim@meyering.net>
125046         * m4/regex.m4: The `regex' struct is both input and output.
125047         Initialize it before each use.  Patch by Tim Waugh.
125049 2003-01-16  Bruno Haible  <bruno@clisp.org>
125051         * MODULES.html.sh: Add a table of contents. Add the module name as
125052         leftmost column. Add hyperlinks.
125054 2003-01-15  Bruno Haible  <bruno@clisp.org>
125056         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125058 2003-01-15  Bruno Haible  <bruno@clisp.org>
125060         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125061         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125062         suffix.
125064 2003-01-15  Bruno Haible  <bruno@clisp.org>
125066         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125068 2003-01-15  Bruno Haible  <bruno@clisp.org>
125070         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125071         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125073 2003-01-14  Jim Meyering  <jim@meyering.net>
125075         * lib/same.c (same_name): Tweak a comment.
125077 2003-01-14  Bruno Haible  <bruno@clisp.org>
125079         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125080         when a string comparison is sufficient.
125082 2003-01-14  Bruno Haible  <bruno@clisp.org>
125084         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125085         'unsigned int'.
125087 2003-01-14  Bruno Haible  <bruno@clisp.org>
125089         * lib/hash-pjw.c: Add comment about low quality of this function.
125091 2003-01-13  Bruno Haible  <bruno@clisp.org>
125093         * modules/stpcpy: Distribute lib/stpcpy.h.
125094         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125096 2003-01-13  Bruno Haible  <bruno@clisp.org>
125098         * modules/*: Add a description.
125099         * modules/strpbrk: Fix Makefile.am snippet.
125100         * modules/strtoimax: Fix dependencies.
125101         * modules/strtoumax: Likewise.
125103 2003-01-13  Bruno Haible  <bruno@clisp.org>
125105         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125106         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125107         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125109 2003-01-13  Bruno Haible  <bruno@clisp.org>
125111         * gnulib-tool (func_create_testdir): Store config/* files in the main
125112         directory.
125113         * config.rpath: Move to ...
125114         * config/config.rpath: ... here.
125115         * modules/gettext: Contains config/config.rpath, not config.rpath.
125116         * modules/iconv: Likewise.
125118 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125120         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125121         to avoid collisions with libcurses and libreadline.
125123         * m4/getstr.m4: Remove.
125124         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125126 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125128         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125129         to avoid collisions with libcurses and libreadline.
125131         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125132         * lib/getstr.h, getstr.c: Remove.
125133         * lib/getline.c: Include "getline.h", to check interface.
125134         Move body of old getstr.c here: this defines MIN_CHUNK and
125135         declares getdelim2, which is renamed from getstr.
125136         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125138         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125139         All uses changed.
125140         * lib/linebuffer.h: Likewise.
125141         (readline): Remove backward-compatibility macro.
125143 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125145         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125146         to avoid collisions with libcurses and libreadline.
125147         * getstr: Remove.
125148         * MODULES.html.sh: Remove getstr.
125149         * modules/getline: Depend on unlocked-io, not getstr.
125151 2003-01-12  Jim Meyering  <jim@meyering.net>
125153         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125155 2003-01-10  Bruno Haible  <bruno@clisp.org>
125157         * modules/alloca: Change Makefile.am requirements. Simplify Include
125158         requirements. Add lib/alloca_.h to file list.
125160 2003-01-10  Bruno Haible  <bruno@clisp.org>
125162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125164 2003-01-10  Bruno Haible  <bruno@clisp.org>
125166         * lib/alloca_.h: New file.
125167         * lib/getdate.y: Unconditionally include alloca.h.
125168         * lib/makepath.c: Likewise.
125169         * lib/setenv.c: Likewise.
125170         * lib/userspec.c: Likewise.
125172 2003-01-09  Karl Berry  <karl@gnu.org>
125174         * MODULES.html.sh: include `dirname $0` in PATH, to find
125175         gnulib-tool.
125177 2003-01-09  Bruno Haible  <bruno@clisp.org>
125179         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125180         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125182 2003-01-09  Bruno Haible  <bruno@clisp.org>
125184         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125186 2003-01-09  Bruno Haible  <bruno@clisp.org>
125188         * lib/stdbool.h.in: New file.
125190 2003-01-09  Bruno Haible  <bruno@clisp.org>
125192         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125193         * MODULES.html.sh: Likewise.
125195 2003-01-08  Jim Meyering  <jim@meyering.net>
125197         * lib/full-write.c: Undefine and define-away `const' after inclusion
125198         of errno.h, not before.  Suggestion from Bruno Haible.
125200 2003-01-08  Bruno Haible  <bruno@clisp.org>
125202         * modules/full-read: Depend on full-write.
125204 2003-01-08  Bruno Haible  <bruno@clisp.org>
125206         * lib/safe-read.c: Include specification header first, to ensure its
125207         selfcontainedness.
125208         * lib/full-write.c: Likewise.
125210 2003-01-07  Jim Meyering  <jim@meyering.net>
125212         * lib/full-write.c: Rework so that it may serve to define full_read,
125213         too.
125214         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125216 2003-01-07  Bruno Haible  <bruno@clisp.org>
125218         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125219         <inttypes.h>.
125220         * lib/xstrtol.h: Likewise.
125221         * lib/xstrtoimax.c: Likewise.
125222         * lib/xstrtoumax.c: Likewise.
125223         * lib/human.h: Likewise.
125225         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125226         on systems that have <inttypes.h> but not <stdint.h>.
125228 2003-01-07  Bruno Haible  <bruno@clisp.org>
125230         * MODULES.html.sh: Add copyright notice.
125231         (missed_files): Omit CVS directory entries.
125232         (func_module): Make it work with sed-3.02.
125233         * MODULES.txt: Remove file.
125235 2003-01-06  Jim Meyering  <jim@meyering.net>
125237         * lib/version-etc.c: Update year in translatable copyright string.
125239 2003-01-03  Karl Berry  <karl@gnu.org>
125241         * config/config.{guess,sub}: update from prep.
125243 2003-01-02  Karl Berry  <karl@gnu.org>
125245         * doc/COPYING.DOC: belatedly updated to 1.2.
125247 2003-01-01  Karl Berry  <karl@gnu.org>
125249         * gnulib-tool (func_verify_module): report module name $module in
125250         error message, not $1.
125251         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125252         be created, only if it doesn't exist.
125253         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125255 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125257         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125259 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125261         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125262         memcmp if strcoll doesn't work.
125264 2002-12-31  Bruno Haible  <bruno@clisp.org>
125266         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125267         nonempty.
125269 2002-12-31  Bruno Haible  <bruno@clisp.org>
125271         * lib/memcoll.c (STRCOLL): New macro.
125272         (memcoll): Use it.
125274 2002-12-31  Bruno Haible  <bruno@clisp.org>
125276         * lib/localcharset.h: New file.
125277         * lib/localcharset.c: Include it.
125278         * lib/unicodeio.c: Likewise.
125280 2002-12-31  Bruno Haible  <bruno@clisp.org>
125282         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125283         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125285 2002-12-31  Bruno Haible  <bruno@clisp.org>
125287         * lib/getline.h: Include <stddef.h>, for size_t.
125289         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125290         * lib/unicodeio.c: Don't include <stddef.h>.
125292 2002-12-31  Bruno Haible  <bruno@clisp.org>
125294         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125295         HAVE_TM_ZONE.
125297 2002-12-24  Karl Berry  <karl@gnu.org>
125299         * config/config.guess: update from prep.
125301 2002-12-24  Bruno Haible  <bruno@clisp.org>
125303         General infrasructure.
125304         * m4/README: Rewritten.
125305         * m4/onceonly.m4: New file.
125306         * m4/onceonly_2_57.m4: New file.
125308         Module atexit.
125309         * m4/atexit.m4: New file.
125311         Module strtod.
125312         * m4/strtod.m4: New file.
125314         Module strtol.
125315         * m4/strtol.m4: New file.
125317         Module strtoul.
125318         * m4/strtoul.m4: New file.
125320         Module memchr.
125321         * m4/memchr.m4: New file.
125323         Module memcmp.
125324         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125325         (jm_FUNC_MEMCMP): Invoke it.
125327         Module memcpy.
125328         * m4/memcpy.m4: New file.
125330         Module memmove.
125331         * m4/memmove.m4: New file.
125333         Module memset.
125334         * m4/memset.m4: New file.
125336         Module strcspn.
125337         * m4/strcspn.m4: New file.
125339         Module strpbrk.
125340         * m4/strpbrk.m4: New file.
125342         Module strstr.
125343         * m4/strstr.m4: New file.
125345         Module strerror.
125346         * m4/strerror.m4: New file.
125348         Module mktime.
125349         * m4/mktime.m4: Renamed from jm-mktime.m4.
125350         (gl_PREREQ_MKTIME): New macro.
125351         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125353         Module malloc.
125354         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125355         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125356         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125358         Module realloc.
125359         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125360         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125361         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125363         Module strftime.
125364         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125365         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125366         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125367         gl_TM_GMTOFF.
125368         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125370         Module xalloc.
125371         * m4/xalloc.m4: New file.
125373         Module alloca.
125374         * m4/alloca.m4: New file.
125376         Module putenv.
125377         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125378         (jm_FUNC_PUTENV): Invoke it.
125380         Module setenv.
125381         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125382         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125383         when invoked twice.
125384         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125385         gt_FUNC_SETENV.
125387         Module memrchr.
125388         * m4/memrchr.m4: New file.
125390         Module stpcpy.
125391         * m4/stpcpy.m4: New file.
125393         Module strcase.
125394         * m4/strcase.m4: New file.
125396         Module strdup.
125397         * m4/strdup.m4: New file.
125399         Module strnlen.
125400         * m4/strnlen.m4: New file.
125402         Module strndup.
125403         * m4/strndup.m4: New file.
125405         Module xstrtod.
125406         * m4/xstrtod.m4: New file.
125408         Module xstrtol.
125409         * m4/xstrtol.m4: New file.
125411         Module getdate.
125412         * m4/getdate.m4: New file.
125414         Module unlocked-io.
125415         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125416         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125417         * m4/jm-glibc-io.m4n: Remove file.
125419         Module long-options.
125420         * m4/long-options.m4: New file.
125422         Module md5.
125423         * m4/md5.m4: New file.
125425         Module sha.
125426         * m4/sha.m4: New file.
125428         Module getstr.
125429         * m4/getstr.m4: New file.
125431         Module getline.
125432         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125433         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125434         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125435         simply getline. Infoke gl_PREREQ_GETLINE.
125437         Module obstack.
125438         * m4/obstack.m4: New file.
125440         Module hash.
125441         * m4/hash.m4: New file.
125443         Module readtokens.
125444         * m4/readtokens.m4: New file.
125446         Module strverscmp.
125447         * m4/strverscmp.m4: New file.
125449         Module stdbool.
125450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125451         OSF/1.
125453         Module strtoll.
125454         * m4/strtoll.m4: New file.
125456         Module strtoull.
125457         * m4/strtoull.m4: New file.
125459         Module strtoimax.
125460         * m4/strtoimax.m4: New file.
125462         Module strtoumax.
125463         * m4/strtoumax.m4: New file.
125465         Module xstrtoimax.
125466         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125467         jm_AC_PREREQ_XSTRTOIMAX.
125468         Moved the strtol prerequisites to strtol.m4.
125469         Moved the strtoll prerequisites to strtoll.m4.
125470         Moved the strtoimax prerequisites to strtoimax.m4.
125472         Module xstrtoumax.
125473         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125474         jm_AC_PREREQ_XSTRTOUMAX.
125475         Moved the strtoul prerequisites to strtoul.m4.
125476         Moved the strtoull prerequisites to strtoull.m4.
125477         Moved the strtoumax prerequisites to strtoumax.m4.
125479         Module chown.
125480         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125481         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125483         Module dup2.
125484         * m4/dup2.m4: New file.
125486         Module ftruncate.
125487         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125488         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125490         Module getgroups.
125491         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125492         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125494         Module gettimeofday.
125495         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125496         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125497         gl_PREREQ_GETTIMEOFDAY.
125499         Module mkdir.
125500         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125501         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125503         Module mkstemp.
125504         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125505         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125506         jm_AC_TYPE_UINTMAX_T.
125507         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125509         Module stat.
125510         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125511         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125513         Module lstat.
125514         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125515         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125517         Module timespec.
125518         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125519         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125520         * m4/st_mtim.m4: Indentation.
125522         Module nanosleep.
125523         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125524         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125525         gl_PREREQ_NANOSLEEP.
125527         Module regex.
125528         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125529         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125530         (gl_REGEX): New macro.
125532         Module rename.
125533         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125534         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125536         Module rmdir.
125537         * m4/rmdir.m4: New file.
125539         Module utime.
125540         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125541         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125542         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125544         Module dirname.
125545         * m4/dirname.m4: New file.
125547         Module getopt.
125548         * m4/getopt.m4: New file.
125550         Module unistd-safer.
125551         * m4/unistd-safer.m4: New file.
125553         Module fnmatch.
125554         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125555         declaration.
125556         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125557         (gl_FUNC_FNMATCH_POSIX): New macro.
125558         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125559         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125560         simply fnmatch.
125562         Module exclude.
125563         * m4/exclude.m4: New file.
125565         Module human.
125566         * m4/human.m4: New file.
125568         Module acl.
125569         * m4/acl.m4: Nop.
125571         Module backupfile.
125572         * m4/backupfile.m4: New file.
125573         * m4/d-ino.m4: Indentation.
125575         Module fsusage.
125576         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125577         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125578         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125580         Module dirfd.
125581         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125582         requirements.
125584         Module euidaccess.
125585         * m4/euidaccess.m4: New file.
125587         Module file-type.
125588         * m4/file-type.m4: New file.
125590         Module fileblocks.
125591         * m4/fileblocks.m4: New file.
125593         Module filemode.
125594         * m4/filemode.m4: New file.
125596         Module isdir.
125597         * m4/isdir.m4: New file.
125599         Module lchown.
125600         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125601         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125603         Module makepath.
125604         * m4/makepath.m4: New file.
125606         Module modechange.
125607         * m4/modechange.m4: New file.
125609         Module mountlist.
125610         * m4/mountlist.m4: New file.
125611         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125612         Indentation.
125614         Module path-concat.
125615         * m4/path-concat.m4: New file.
125617         Module pathmax.
125618         * m4/pathmax.m4: New file.
125620         Module same.
125621         * m4/same.m4: New file.
125623         Module save-cwd.
125624         * m4/save-cwd.m4: New file.
125626         Module savedir.
125627         * m4/savedir.m4: New file.
125629         Module xgetcwd.
125630         * m4/xgetcwd.m4: New file.
125631         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125633         Module xreadlink.
125634         * m4/xreadlink.m4: New file.
125636         Module safe-read.
125637         * m4/safe-read.m4: New file.
125639         Module safe-write.
125640         * m4/safe-write.m4: New file.
125642         Module closeout.
125643         * m4/closeout.m4: New file.
125645         Module stdio-safer.
125646         * m4/stdio-safer.m4: New file.
125648         Module getpass.
125649         * m4/getpass.m4: New file.
125651         Module getugroups.
125652         * m4/getugroups.m4: New file.
125654         Module group-member.
125655         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125656         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125658         Module idcache.
125659         * m4/idcache.m4: New file.
125661         Module userspec.
125662         * m4/userspec.m4: New file.
125664         Module gettime.
125665         * m4/clock_time.m4: New file.
125666         * m4/gettime.m4: New file.
125668         Module settime.
125669         * m4/settime.m4: New file.
125671         Module posixtm.
125672         * m4/posixtm.m4: New file.
125674         Module gethostname.
125675         * m4/gethostname.m4: New file.
125677         Module canon-host.
125678         * m4/canon-host.m4: New file.
125680         Module gettext.
125681         * m4/codeset.m4: New file, from gettext-0.11.5.
125682         * m4/gettext.m4: New file, from gettext-0.11.5.
125683         * m4/glibc21.m4: New file, from gettext-0.11.5.
125684         * m4/iconv.m4: New file, from gettext-0.11.5.
125685         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125686         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125687         * m4/inttypes.m4: New file, from gettext-0.11.5.
125688         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125689         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125690         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125691         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125692         * m4/lib-link.m4: New file, from gettext-0.11.5.
125693         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125694         * m4/progtest.m4: New file, from gettext-0.11.5.
125695         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125696         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125697         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125699         Module localcharset.
125700         * m4/localcharset.m4: New file.
125702         Module hard-locale.
125703         * m4/hard-locale.m4: New file.
125705         Module mbswidth.
125706         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125707         onceonly macros.
125708         * m4/mbrtowc.m4: Add comment.
125710         Module memcasecmp.
125711         * m4/memcasecmp.m4: New file.
125713         Module memcoll.
125714         * m4/memcoll.m4: New file.
125716         Module unicodeio.
125717         * m4/unicodeio.m4: New file.
125719         Module rpmatch.
125720         * m4/rpmatch.m4: New file.
125722         Module yesno.
125723         * m4/yesno.m4: New file.
125725         Module exitfail.
125726         * m4/exitfail.m4: New file.
125728         Module c-stack.
125729         * m4/c-stack.m4 (gl_C_STACK): New macro.
125730         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
125732         Module error.
125733         * m4/error.m4 (gl_ERROR): New macro.
125734         (jm_PREREQ_ERROR): Use onceonly macros.
125736         Module fatal.
125737         * m4/fatal.m4: New file.
125739         Module getloadavg.
125740         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
125741         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
125743         Module getpagesize.
125744         * m4/getpagesize.m4: New file.
125746         Module getusershell.
125747         * m4/getusershell.m4: New file.
125749         Module physmem.
125750         * m4/physmem.m4: New file.
125752         Module posixver.
125753         * m4/posixver.m4: New file.
125755         Module quotearg.
125756         * m4/quotearg.m4: New file.
125758         Module quote.
125759         * m4/quote.m4: New file.
125761         Module readutmp.
125762         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
125764         Module sig2str.
125765         * m4/sig2str.m4: New file.
125767         Other.
125768         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
125769         ulonglong.m4.
125770         * m4/intmax_t.m4: New file.
125771         * m4/d-type.m4: Indentation.
125772         * m4/jm-macros.m4: Update.
125773         * m4/prereq.m4 (jm_PREREQ): Update.
125774         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
125775         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
125776         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
125777         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
125778         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
125779         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
125780         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
125781         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
125782         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
125783         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
125784         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
125785         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
125786         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
125787         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
125788         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
125789         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
125790         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
125791         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
125792         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
125794 2002-12-24  Bruno Haible  <bruno@clisp.org>
125796         * MODULES.txt: Update according to m4/ changes.
125798         Module gettext.
125799         * config.rpath: New file, from gettext-0.11.5.
125801         * modules/*: New module descriptions.
125802         * gnulib-tool: New file.
125803         * MODULES.html.sh: New file.
125805 2002-12-21  Karl Berry  <karl@gnu.org>
125807         * doc/fdl.texi: update to version 1.2.
125809 2002-12-19  Karl Berry  <karl@gnu.org>
125811         * config/config.guess: update from prep.
125813 2002-12-18  Bruno Haible  <bruno@clisp.org>
125815         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
125816         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
125818 2002-12-17  Bruno Haible  <bruno@clisp.org>
125820         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
125821         stdlib.h, string.h.
125823 2002-12-17  Bruno Haible  <bruno@clisp.org>
125825         * lib/canon-host.c (strdup): Remove unused declaration.
125827         * lib/fsusage.c: Include full_read.h.
125828         (get_fs_usage): Use full_read instead of safe_read.
125830         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
125832 2002-12-12  Karl Berry  <karl@gnu.org>
125834         * config/config.guess: update from prep.
125836 2002-12-11  Bruno Haible  <bruno@clisp.org>
125838         * m4/setenv.m4: New file, from gettext-0.11.5.
125840 2002-12-11  Bruno Haible  <bruno@clisp.org>
125842         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
125843         not unsetenv().
125844         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
125845         modifications:
125847         2002-12-11  Bruno Haible  <bruno@clisp.org>
125849                 * setenv.c (alloca): Fall back to malloc.
125850                 (freea): New macro.
125851                 (setenv): Use freea() to free memory allocated with alloca().
125853         2002-11-13  Bruno Haible  <bruno@clisp.org>
125855                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
125856                 function declarations.
125857                 * unsetenv.c (unsetenv): Likewise.
125859         2002-03-04  Bruno Haible  <bruno@clisp.org>
125861                 Portability to AIX 4.3.3.
125862                 * unsetenv.c: New file, extracted from setenv.c.
125863                 * setenv.c: Move the unsetenv() function to unsetenv.c.
125865         2001-12-20  Bruno Haible  <bruno@clisp.org>
125867                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
125868                 use malloc instead. For SunOS 4.
125870         2001-12-11  Bruno Haible  <bruno@clisp.org>
125872                 * setenv.c: Declare alloca.
125873                 (compar_fn_t): New typedef.
125874                 (KNOWN_VALUE, STORE_VALUE): Use it.
125876         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
125877         setenv.h.
125879 2002-12-10  Paul Eggert  <eggert@twinsun.com>
125881         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
125882         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
125883         Choose values that are less likely to collide with system fnmatch
125884         options.
125885         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
125886         defined (e.g., a pure POSIX system).
125887         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
125888         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
125890 2002-12-06  Paul Eggert  <eggert@twinsun.com>
125892         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
125893         a pain in practice to deal with generated m4 files.  This change
125894         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
125896         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
125897         and jm-glibc-io.m4, as they are no longer a special case.
125898         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
125899         kludge and the auto-generation stuff.  Check only whether the
125900         functions are declared, not whether they exist, since older hosts
125901         that don't declare the functions can't use the optimization anyway.
125903 2002-12-06  Jim Meyering  <jim@meyering.net>
125905         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
125907         Merge in changes from libc's misc/error.c, in preparation
125908         for the merge of gnulib's changes back into libc.
125910         * lib/error.c (_): Define only if not already defined.
125911         Move definition to follow all #include directives.
125912         Include unlocked-io.h only if !_LIBC.
125913         [_LIBC]: Include <libio/libioP.h>.
125914         [USE_IN_LIBIO]: Include <libio/iolibio.h>
125915         (fflush): Tweak definition to use INTUSE.
125916         (putc): Define.
125918 2002-12-05  Paul Eggert  <eggert@twinsun.com>
125920         * lib/alloca.c [defined emacs]: Include "lisp.h".
125921         (xalloc_die) [defined emacs]: New macro.
125922         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
125923         [! defined emacs]: Include <xalloc.h>.
125924         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
125925         (pointer): Typedef to POINTER_TYPE *.
125926         (malloc): Remove decl; we now always use xmalloc.
125927         (alloca): Use old-style definition, since Emacs needs this.
125928         Check for arithmetic overflow when computing combined size.
125930 2002-12-04  Paul Eggert  <eggert@twinsun.com>
125932         Do not generate unlocked-io.h automatically, since it's easier to
125933         maintain it by hand.
125935         * lib/unlocked-io.h: New file, from GNU diffutils,
125936         but with proper copyright notice and attribution.
125937         * lib/gen-uio: Remove.
125938         * lib/Makefile.am: Add copyright notice.
125939         (libfetish_a_SOURCES): Add unlocked-io.h.
125940         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
125941         (DISTCLEANFILES, io_functions): Remove macros.
125942         (EXTRA_DIST): Remove gen_uio.
125943         (unlocked-io.h): Remove rule.
125945 2002-12-04  Jim Meyering  <jim@meyering.net>
125947         Reflect the fact that stat.c and lstat.c are no longer generated.
125948         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
125949         (DISTCLEANFILES): Likewise.
125950         (EXTRA_DIST): Likewise.
125951         (all_local): Don't depend on stat.c or lstat.c.
125952         (stat.c, lstat.c): Remove rules.
125953         (EXTRA_DIST): Remove xstat.in.
125955         * lib/xstat.in: Remove file.  Contents moved into stat.c.
125956         * lib/stat.c: New file.  Contents mostly from xstat.in.
125957         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
125958         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
125960         * lib/safe-read.c: Rework so that it may serve to define safe_write,
125961         too.
125962         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
125964 2002-12-03  Jim Meyering  <jim@meyering.net>
125966         * lib/safe-read.c, safe-write.c: Change variable names and comments,
125967         but not semantics, to minimize the differences between these two files.
125968         (safe_read): Change comment to mention SAFE_READ_ERROR.
125970         * lib/safe-read.c (IS_EINTR): Define.
125971         (safe_read): Use IS_EINTR in place of in-function cpp directives.
125973 2002-12-02  Jim Meyering  <jim@meyering.net>
125975         * lib/safe-read.c (EINTR): Define.
125976         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
125977         (INT_MAX): Provide fallback.
125978         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
125980         * lib/safe-read.h (SAFE_READ_ERROR): Define.
125982 2002-12-02  Bruno Haible  <bruno@clisp.org>
125984         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
125985         Define, taken from safe-read.c.
125986         (INT_MAX): Provide fallback.
125987         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
125988         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
125990         * lib/safe-read.c (EINTR): Remove definition.
125991         (safe_read): Don't use EINTR if it is absent.
125993 2002-12-01  Jim Meyering  <jim@meyering.net>
125995         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
125996         zero.
125997         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
125999 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126001         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126002         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126003         with `if (! (value < limit)) abort ();', for readability.
126005 2002-11-26  Karl Berry  <karl@gnu.org>
126007         * lib/strdup.c: copy from libc again, with jim's ok.
126008         * lib/.cppi-disable: re-add strdup.c
126010 2002-11-25  Karl Berry  <karl@gnu.org>
126012         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126013         instead of "strtol.c".
126015 2002-11-25  Karl Berry  <karl@gnu.org>
126017         * config/install-sh: update from automake for variable quoting, $0 in
126018         error msgs, etc.
126020         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126021         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126022         entry.
126024 2002-11-25  Jim Meyering  <jim@meyering.net>
126026         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126028 2002-11-24  Karl Berry  <karl@gnu.org>
126030         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126031         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126033 2002-11-24  Jim Meyering  <jim@meyering.net>
126035         Update from coreutils:
126037         * lib/mktime.c: Merge in changes from libc.
126039         Avoid a link-time failure on some Linux systems.
126040         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126041         (otherwise).
126042         (__mon_yday): Declare with the STATIC attribute.
126043         (__mktime_internal): Likewise.
126044         Based on a report from Greg Schafer.
126046 2002-11-23  Jim Meyering  <jim@meyering.net>
126048         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126049         Use `unsigned', not `int', as type of index.
126051         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126053         * lib/fsusage.c: Remove unneeded parentheses around operands of
126054         `defined'.
126056 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126058         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126059         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126060         so that we can be included first.
126061         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126062         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126063         No need to include stddef.h or sys/types.h any more.
126064         Surround local include files with "", not "<>".
126065         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126066         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126067         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126068         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126069         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126070         (ISPRINT): Remove; no longer needed now that we assume C89.
126072         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126073         Preserve errno.
126075         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126076         quotearg_char): Use SIZE_MAX rather than
126077         (size_t) -1 when we are talking about "infinity".
126079         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126081 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126083         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126084         hint that one should use `if (! x) abort ();' rather than `assert
126085         (x);', and anyway it's one less thing to worry about configuring.
126086         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126087         hash_rehash, hash_insert): Use abort rather than assert.
126089 2002-11-22  Bruno Haible  <bruno@clisp.org>
126091         * lib/safe-read.h: Assume C89. Add comments.
126092         (safe_read): Change return type to size_t.
126093         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126094         byte counts > SSIZE_MAX correctly.
126095         * lib/safe-write.h: New file.
126096         * lib/safe-write.c: New file.
126097         * lib/full-read.h: New file.
126098         * lib/full-read.c: New file.
126099         * lib/full-write.h: Assume C89. Add comments.
126100         * lib/full-write.c: Include safe-write.h.
126101         (full_write): Rewritten to use safe_write.
126102         Suggested by Jim Meyering and Paul Eggert.
126104 2002-11-21  Jim Meyering  <jim@meyering.net>
126106         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126108         Merge in changes from the coreutils.
126110         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126111         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126112         <stdint.h>.
126113         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126114         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126115         int.  Work more efficiently if X is the same width as uintmax_t.
126116         Do not compare X to -1, to avoid bogus compiler warning.
126117         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126118         Don't assume that f_frsize and f_bsize are the same type.
126120         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126121         warning on FreeBSD.
126123         * lib/makepath.c (make_path): Restore umask *before* creating the final
126124         component.
126125         (make_path): Minor reformatting.
126127         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126128         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126129         HAVE_MALLOC/HAVE_REALLOC.
126131         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126132         dummy ones.  At least on GNU/Linux systems, `auto' means something
126133         else.
126134         From Michael Stone.
126136 2002-11-21  Bruno Haible  <bruno@clisp.org>
126138         Remove case insensitive option matching.
126139         * lib/argmatch.h (argcasematch): Remove declaration.
126140         (ARGCASEMATCH): Remove macro.
126141         (__xargmatch_internal): Remove case_sensitive argument.
126142         (XARGMATCH): Update.
126143         (XARGCASEMATCH): Remove macro.
126144         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126145         case_sensitive argument.
126146         (argcasematch): Remove function.
126147         (__xargmatch_internal): Remove case_sensitive argument.
126148         (main): Use XARGMATCH instead of XARGCASEMATCH.
126150         * lib/xmalloc.c: Change compile-time error message. Add comment about
126151         required autoconf version.
126153 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126155         Merge argmatch cleanups from Bison.  Assume C89.
126157         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126158         Include stdlib.h, for EXIT_FAILURE.
126159         Always include <string.h>, since we assume C89.
126160         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126161         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126162         Include <stddef.h> instead, since it's all we need for size_t.
126163         (PARAMS): Remove.  All uses removed.
126164         (ARRAY_CARDINALITY): Do not bother to #undef.
126165         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126166         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126167         Remove unnecessary parentheses.
126168         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126169         Insert necessary parentheses.
126170         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126171         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126173 2002-11-19  Bruno Haible  <bruno@clisp.org>
126175         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126176         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126178         * lib/mbswidth.h (PARAMS): Remove macro.
126179         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126180         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126182         * lib/gcd.h (PARAMS): Remove macro.
126183         (gcd): Use ANSI C function declarations.
126184         * lib/gcd.c (gcd): Likewise.
126186 2002-11-15  Bruno Haible  <bruno@clisp.org>
126188         * lib/strcspn.c: Include <stddef.h>.
126189         (strcspn): Use ANSI C function declaration. Change return type to
126190         size_t. Use NULL.
126191         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126192         (strpbrk): Use NULL.
126193         * lib/strpbrk.h (PARAMS): Remove macro.
126194         (strpbrk): Use ANSI C function declaration.
126195         * lib/strstr.c: Don't include <sys/types.h>.
126196         * lib/strstr.h (PARAMS): Remove macro.
126197         (strstr): Use ANSI C function declarations.
126199 2002-11-14  Karl Berry  <karl@gnu.org>
126201         * config/mkinstalldirs: `do' on separate line, instead of
126202         `for var; do'.
126204 2002-11-06  Bruno Haible  <bruno@clisp.org>
126206         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126207         * lib/gcd.c (gcd): Likewise.
126209 2002-11-05  Bruno Haible  <bruno@clisp.org>
126211         * lib/gcd.h: New file, from gettext-0.11.5.
126212         * lib/gcd.c: New file, from gettext-0.11.5.
126214 2002-11-05  Bruno Haible  <bruno@clisp.org>
126216         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126217         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126218         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126219         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126221         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126222         <libintl.h>.
126223         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126224         <libintl.h>.
126226         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126227         * lib/human.c: Include gettext.h instead of <libintl.h>.
126228         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126229         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126230         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126231         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126232         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126233         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126234         (textdomain): Remove definition.
126235         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126237         * lib/long-options.c: Remove include of <libintl.h> and definition of
126238         _.
126239         * lib/same.c: Remove include of <libintl.h> and definition of _.
126241 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126243         * lib/config.charset: A few additions for Solaris.
126245 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126247         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126248         * lib/localcharset.c (locale_charset): Declare as extern "C".
126250 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126252         * lib/config.charset: msdos in uk_UA uses CP1125.
126254 2002-11-04  Bruno Haible  <bruno@clisp.org>
126256         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126257         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126258         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126259         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126260         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126262 2002-11-04  Bruno Haible  <bruno@clisp.org>
126264         * lib/localcharset.c (locale_charset): Don't return an empty string.
126266 2002-11-04  Bruno Haible  <bruno@clisp.org>
126268         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126269         aliases.
126271 2002-11-04  Bruno Haible  <bruno@clisp.org>
126273         * lib/config.charset: Update for newest glibc. Add canonical names
126274         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126276 2002-11-04  Bruno Haible  <bruno@clisp.org>
126278         * lib/config.charset: Add support for NetBSD.
126280 2002-11-04  Bruno Haible  <bruno@clisp.org>
126282         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126284 2002-11-01  Bruno Haible  <bruno@clisp.org>
126286         * configure.in: Add AC_CONFIG_AUX_DIR call.
126287         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126288         test/Makefile.
126289         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126291 2002-09-28  Karl Berry  <karl@gnu.org>
126293         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126294         installed automake until the next release, since changes have been
126295         made.
126297 2002-09-25  Karl Berry  <karl@gnu.org>
126299         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126300         * lib/getopt*: copy from libc/posix.
126301         * lib/gettext.h: copy from gettext.
126302         * lib/.cppi-disable: add strdup.c, gettext.h.
126304 2002-09-25  Karl Berry  <karl@gnu.org>
126306         * config/srclist.txt: enable gettext.h check.
126307         * config/config.{guess,sub}: update from prep.
126308         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126309                 from automake 1.6.3.
126310         See srclist*.
126312 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126314         * regex.c (PATFETCH): Remove the translating fetch.
126315         (PATFETCH_RAW): Rename to PATFETCH.
126316         (set_image_of_range): New fun.
126317         (SET_RANGE_TABLE_WORK_AREA): Use it.
126318         (regex_compile): Don't translate the pattern chars so eagerly.
126319         Only do it when inserting an `exactn' bytecode or when handling
126320         a char-range.
126321         (mutually_exclusive_p): Avoid empty statement.
126323 2002-07-06  Jim Meyering  <meyering@lucent.com>
126325         * m4/README: Don't mention Makefile.am.in.
126326         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126328 2002-07-01  Jim Meyering  <meyering@lucent.com>
126330         * lib/c-stack.c: Include sys/time.h.
126331         From Volker Borchert.
126333 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126337 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126339         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126340         New macro.  Use it uniformly instead of
126341         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126342         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126343         reported by Vin Shelton.
126345 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126347         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126348         Do not assume SA_SIGINFO behavior.
126349         Bug reported by Jim Meyering on NetBSD 1.5.2.
126351 2002-06-22  Jim Meyering  <meyering@lucent.com>
126353         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126357         now that configure.ac uses AC_GNU_SOURCE.
126358         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126359         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126361         Update to latest tools.  Suggestions from Paul Eggert.
126362         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126363         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126364         * m4/fnmatch.m4: Likewise.
126365         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126366         to AC_HEADER_STDBOOL
126368 2002-06-22  Jim Meyering  <meyering@lucent.com>
126370         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126371         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126373 2002-06-22  Jim Meyering  <meyering@lucent.com>
126375         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126377         * lib/exitfail.c, exitfail.h: Likewise.
126378         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126380         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126381         of fnmatch.h.
126382         (EXTRA_DIST): Add fnmatch_loop.c.
126383         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126385         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126386         * lib/fnmatch.c: Update from diffutils-2.8.2.
126387         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126388         * lib/fnmatch.h: Remove file.
126390 2002-06-21  Jim Meyering  <meyering@lucent.com>
126392         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126393         * m4/mbrtowc.m4: Likewise.
126395         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126396         * m4/mbswidth.m4: Reflect name change:
126397         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126398         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126400         * m4/lib-link.m4: Update from gettext-0.11.2.
126401         * m4/gettext.m4: Likewise.
126403         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126404         From Alfred M. Szmidt.
126406 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126408         * lib/file-type.h: Report an error if neither S_ISREG nor
126409         S_IFREG is defined, instead of using a test specific to glibc
126410         2.2.  This should be safe, since POSIX requires S_ISREG and
126411         Unix Version 7 had S_IFREG.  We don't need to check for
126412         <sys/types.h> since we don't use any symbols that it defines.
126414 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126416         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126417         $@-t, so that each temporary file name is unique and valid in the first
126418         8 characters, for operation under DOS.
126420 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126424 2002-06-15  Jim Meyering  <meyering@lucent.com>
126426         Work even with DJGPP 2.03, which lacks support for symlinks.
126427         From Richard Dawe.
126428         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126429         is defined.
126430         * lib/lchown.c (S_ISLNK): Likewise.
126432 2002-06-15  Jim Meyering  <meyering@lucent.com>
126434         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126435         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126436         have been included before this file.
126438 2002-06-14  Jim Meyering  <meyering@lucent.com>
126440         * lib/file-type.h: Use the version from diffutils-2.8.2.
126441         * lib/file-type.c: Likewise.
126443 2002-06-07  Jim Meyering  <meyering@lucent.com>
126445         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126446         They're needed at least for NetBSD 1.5.2.
126447         ($statxfs_includes): Include those same headers.
126448         ($statxfs_includes): Include sys/vfs.h if available.
126449         ($statxfs_includes): Likewise for sys/statvfs.h.
126450         Check for the following members in both structs statfs and statvfs:
126451         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126453 2002-06-01  Jim Meyering  <meyering@lucent.com>
126455         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126456         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126458 2002-05-28  Jim Meyering  <meyering@lucent.com>
126460         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126461         Reported by Volker Borchert.
126463 2002-05-27  Jim Meyering  <meyering@lucent.com>
126465         Fix a problem seen only on nonconforming systems whereby ls.c's
126466         use of localtime, and then of gettimeofday would cause trouble:
126467         the localtime call used to initialize rpl_gettimeofday's save
126468         mechanism would clobber ls's current local time information so
126469         that in any long listing the first file would always be listed
126470         with date 1970-01-01.  Analysis by Volker Borchert.
126472         * lib/gettimeofday.c (localtime): Undefine.
126473         (rpl_localtime): New function.
126475 2002-05-27  Jim Meyering  <meyering@lucent.com>
126477         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126478         localtime.
126480         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126481         use the replacement function; it wouldn't resolve at link time.
126482         Reported by Volker Borchert.
126484 2002-05-22  Jim Meyering  <meyering@lucent.com>
126486         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126487         file-type.h.
126488         * lib/file-type.h: New file.
126489         * lib/file-type.c (file_type): New file/function.  Extracted from
126490         diffutils.
126492 2002-04-30  Jim Meyering  <meyering@lucent.com>
126494         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126496 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126498         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126500 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126502         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126503         Do not check for alloca.h (no longer used) or stdbool.h (was never
126504         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126506 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126508         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126510 2002-04-29  Jim Meyering  <meyering@lucent.com>
126512         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126513         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126514         Use AC_FUNC_STRNLEN here instead.
126516         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126517         With autoconf-2.53a, it's part of AC_PROG_CC.
126519 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126521         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126524 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126526         * lib/sig2str.h, lib/sig2str.c: New files.
126527         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126529 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126531         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126532         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126533         of 127, since 64 is the largest conceivable number for ancient
126534         nonstandard hosts.
126535         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126537 2002-04-28  Jim Meyering  <meyering@lucent.com>
126539         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126541 2002-04-24  Jim Meyering  <meyering@lucent.com>
126543         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126544         (jm_PREREQ): Use it.
126546         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126547         mach/mach.h fcntl.h.
126548         Check for this function: setlocale.
126550 2002-04-24  Jim Meyering  <meyering@lucent.com>
126552         * lib/gettext.h: New file, from Gettext.
126553         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126554         (libfetish_a_SOURCES): Add gettext.h.
126556 2002-04-16  Jim Meyering  <meyering@lucent.com>
126558         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126559         ut_pid, ut_id, ut_exit.
126561 2002-04-16  Jim Meyering  <meyering@lucent.com>
126563         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126564         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126565         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126567 2002-04-12  Jim Meyering  <meyering@lucent.com>
126569         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126570         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126571         existence of the getmntinfo function.  Needed for Darwin 5.3.
126573         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126574         This is necessary at least on Darwin 5.3.
126576         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126577         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126578         strnlen.o in the library, and that makes some versions of ranlib
126579         object.
126581 2002-04-12  Jim Meyering  <meyering@lucent.com>
126583         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126585 2002-04-09  Jim Meyering  <meyering@lucent.com>
126587         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126588         to be more precise.  Rather than saying we're checking whether the
126589         function `works', say what we're testing.
126590         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126591         Reported by Bruno Haible.
126593 2002-03-10  Jim Meyering  <meyering@lucent.com>
126595         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126596         Suggestion from Santiago Vila.
126598 2002-03-08  Jim Meyering  <meyering@lucent.com>
126600         * lib/rename.c: Mention that this wrapper is needed also on
126601         mips-dec-ultrix4.4 systems.
126603 2002-03-02  Jim Meyering  <meyering@lucent.com>
126605         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126606         not HAVE_CLOCK_SETTIME.
126608 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126610         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126611         Check for clock_settime.
126613 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126615         * lib/nanosleep.h: Rename to....
126616         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126618         * lib/gettime.c: New file.
126619         * lib/settime.c: New file.
126620         * lib/stime.c: Remove.
126622         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126623         timespec.h.  Remove nanosleep.h.
126625 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126627         * m4/acl.m4: New file.
126628         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126629         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126631 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126633         * lib/acl.c, lib/acl.h: New files.
126634         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126636 2002-02-24  Jim Meyering  <meyering@lucent.com>
126638         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126639         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126640         cause trouble.  Reported by Nelson Beebe.
126642 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126644         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126645         compilers that don't know that xalloc_die never returns.
126647 2002-02-20  Jim Meyering  <meyering@lucent.com>
126649         * lib/getdate.c: Regenerate using bison-1.33.
126651 2002-02-17  Jim Meyering  <meyering@lucent.com>
126653         * config/config.guess (main): Don't use `head -1'; it's no longer
126654         portable. Use `sed 1q' instead.
126656 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126658         * m4/codeset.m4: Upgrade to gettext-0.11.
126659         * m4/gettext.m4: Upgrade to gettext-0.11.
126660         * m4/glibc21.m4: Upgrade to gettext-0.11.
126661         * m4/iconv.m4: Upgrade to gettext-0.11.
126662         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126663         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126664         * m4/lib-ld.m4: New file, from gettext-0.11.
126665         * m4/lib-link.m4: New file, from gettext-0.11.
126666         * m4/lib-prefix.m4: New file, from gettext-0.11.
126667         * m4/progtest.m4: Upgrade to gettext-0.11.
126669 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126671         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126672         (jm_PREREQ): Use it.
126674 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126676         * lib/posixver.c, lib/posixver.h: New files.
126677         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126679 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126680             Bruno Haible  <bruno@clisp.org>
126682         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126683         (fwrite_success_callback): New declaration.
126684         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126685         print_unicode_char. Call failure callback instead of error.
126686         (fwrite_success_callback): New function.
126687         (exit_failure_callback): New function.
126688         (fallback_failure_callback): New function.
126689         (print_unicode_char): Call unicode_to_mb.
126691 2002-01-26  Jim Meyering  <meyering@lucent.com>
126693         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126694         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126696 2002-01-26  Jim Meyering  <meyering@lucent.com>
126698         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126700 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126702         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126704 2002-01-22  Jim Meyering  <meyering@lucent.com>
126706         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126707         Otherwise, some versions of automake would omit the rule that makes
126708         Makefile from Makefile.in.
126710 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126712         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126713         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126714         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126715         (memcoll): Set errno to zero if there is no error.
126717         * lib/quotearg.c (quotearg_buffer_restyled):
126718         Fix bug with quoting buffers containing NUL when backslashing escapes.
126719         This bug was exposed by the other changes in this patch.
126720         (quotearg_n_options): New arg ARGSIZE.
126721         All callers changed.
126722         (quoting_options_from_style): New function.
126723         (quotearg_n_style): Use it.
126724         (quotearg_n_style_mem): New function.
126726         * lib/quotearg.h (quotearg_n_style_mem): New function.
126728 2002-01-19  Jim Meyering  <meyering@lucent.com>
126730         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
126731         Remove useless quotes: DF_PROG="df".
126732         * m4/strnlen.m4: New file.
126734 2002-01-16  Paul Eggert  <eggert@twinsun.com>
126736         * lib/backupfile.c (ISDIGIT): Comment fix.
126737         * lib/getdate.y (ISDIGIT): Likewise.
126738         * lib/posixtm.c (ISDIGIT, year): Likewise.
126739         * lib/strverscmp.c (ISDIGIT): Likewise.
126740         * lib/userspec.c (ISDIGIT): Likewise.
126742 2002-01-16  Jim Meyering  <meyering@lucent.com>
126744         * lib/getdate.y: Add three semicolons, each just before a closing
126745         brace. Bison (as of version 1.31) no longer papers over that mistake.
126747 2002-01-05  Jim Meyering  <meyering@lucent.com>
126749         * lib/version-etc.c (version_etc_copyright): Update copyright year.
126751 2001-12-19  Paul Eggert  <eggert@twinsun.com>
126753         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
126754         not silently exit merely because the output buffer happens to
126755         have nothing pending.
126757 2001-12-18  Paul Eggert  <eggert@twinsun.com>
126759         See the big note in ../ChangeLog.
126760         * lib/human.c (suffixes): Prefer K to k for 1024.
126761         (generate_suffix_backwards): New function.
126762         (human_readable_inexact): Use it.
126763         * lib/xstrtol.c (__xstrtol): If there is no number but there
126764         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
126765         Accept 'K' as well as 'k'.
126767 2001-12-15  Jim Meyering  <meyering@lucent.com>
126769         * lib/regex.h (__restrict_arr): Update from libc.
126771         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
126772         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
126773         (STREQ): Define.
126775 2001-12-14  Jim Meyering  <meyering@lucent.com>
126777         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
126778         Suggestion from Bruno Haible.
126780 2001-12-10  Jim Meyering  <meyering@lucent.com>
126782         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
126783         xrealloc, Instead, include "xalloc.h".
126784         (initbuffer): Don't cast xmalloc return value to char*.
126785         (readline): Reword comment.
126786         Don't cast xrealloc return value to char*
126787         Return NULL, not 0.
126789 2001-12-09  Jim Meyering  <meyering@lucent.com>
126791         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
126792         about `signed and unsigned type in conditional expression'.
126793         * lib/posixtm.c (posix_time_parse): Likewise.
126795         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
126797         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
126798         to avoid a pedantic warning.
126800         * lib/getstr.c: Don't include assert.h.
126801         (getstr): Remove warning-evoking assertions.
126802         Return -1 if offset parameter is out of bounds.
126803         Change the type of a local from int to size_t.
126805         * lib/strftime.c (my_strftime_localtime_r): Include this function
126806         definition in the `#if ! HAVE_TM_GMTOFF' block.
126808         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
126809         Include xalloc.h instead.
126811 2001-12-02  Jim Meyering  <meyering@lucent.com>
126813         * lib/tempname.c: Don't declare getenv, thus reverting the change of
126814         2001-11-18.  It's no longer necessary, now that stdlib.h is always
126815         included.
126817         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
126818         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
126820 2001-11-30  Akim Demaille  <akim@epita.fr>
126822         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
126823         before being defined.
126825 2001-11-27  Paul Eggert  <eggert@twinsun.com>
126827         * lib/quotearg.h (quotearg_n, quotearg_n_style):
126828         First arg is int, not unsigned.
126829         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
126830         (SIZE_MAX, UINT_MAX): New macros.
126831         (quotearg_n_options): Abort if N is negative.
126832         Avoid overflow check on hosts where size_t is 64 bits and int
126833         is 32 bits, as overflow is impossible there.
126834         Fix off-by-one typo that caused unnecessary reallocation.
126836 2001-11-27  Jim Meyering  <meyering@lucent.com>
126838         * lib/tempname.c: Merge with version from libc.
126839         * lib/regex.c: Likewise.
126841         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
126842         systems for which STDC_HEADERS is 0, it was not included, resulting in
126843         a warning about an integer-to-pointer conversion problem with getenv.
126844         Reported by Volker Borchert.
126846 2001-11-26  Jim Meyering  <meyering@lucent.com>
126848         * lib/gtod.h: Remove file.
126849         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
126850         * lib/gettimeofday.c: Don't include gtod.h.
126851         (GTOD_init): Remove function.
126852         (rpl_gettimeofday): Do its job here instead, rather than aborting.
126853         Suggestion from Volker Borchert.
126855 2001-11-23  Jim Meyering  <meyering@lucent.com>
126857         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
126858         it.
126859         * lib/hash.c (struct hash_table): Define it here instead.
126861 2001-11-22  Jim Meyering  <meyering@lucent.com>
126863         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
126865 2001-11-20  Jim Meyering  <meyering@lucent.com>
126867         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
126868         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
126870 2001-11-19  Jim Meyering  <meyering@lucent.com>
126872         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
126873         directory.  Use "conftestXXXXXX" as the template.
126874         Suggestion from Paul Eggert.
126876         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
126877         immediately, so the test doesn't mistakenly hit the max-open-files
126878         limit.
126880 2001-11-18  Paul Eggert  <eggert@twinsun.com>
126882         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
126883         (TEMPORARIES): New macro.
126884         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
126885         removes an artificial limitation (e.g. HP-UX 10.20, where
126886         TMP_MAX is 17576).
126888 2001-11-18  Jim Meyering  <meyering@lucent.com>
126890         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
126892 2001-11-18  Jim Meyering  <meyering@lucent.com>
126894         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
126895         on SunOS 4.
126897         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
126898         files will be created before anything else.
126900 2001-11-17  Paul Eggert  <eggert@twinsun.com>
126902         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
126903         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
126905 2001-11-17  Jim Meyering  <meyering@lucent.com>
126907         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
126908         Prompted by a report from Bob Proulx.
126910         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
126911         Instead, require UTILS_FUNC_MKSTEMP.
126913 2001-11-17  Jim Meyering  <meyering@lucent.com>
126915         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
126916         Now, that's done as part of AC_FUNC_STRTOD.
126918 2001-11-17  Jim Meyering  <meyering@lucent.com>
126920         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
126921         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
126922         rather than group writable.  Patch by Juan F. Codagnone.
126924         * lib/readtokens.c: Remove explicit declarations of xmalloc and
126925         xrealloc, Instead, include "xalloc.h".
126927         * lib/mountlist.c: Include unlocked-io.h after all system headers.
126928         Remove explicit declarations of xmalloc, xrealloc,
126929         and xstrdup.  Instead, include "xalloc.h".
126931         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
126932         unlocked-io.h.
126933         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
126934         Likewise.
126935         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
126937         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
126938         Reported by Padraig Brady.
126940         * lib/mkstemp.c: #undef mkstemp.
126941         Include config.h.
126942         (rpl_mkstemp): Rename from mkstemp.
126943         Protoize.
126945 2001-11-16  Jim Meyering  <meyering@lucent.com>
126947         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
126948         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
126949         determine the amount of total physical memory, use pstat_getstatic.
126950         HPUX-11 doesn't define _SC_PHYS_PAGES.
126951         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
126952         If sysconf couldn't be used to determine the amount of available
126953         physical memory, use both pstat_getstatic and pstat_getdynamic.
126954         Based on a patch from Bob Proulx.
126956 2001-11-10  Jim Meyering  <meyering@lucent.com>
126958         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
126959         (jm_PREREQ): Use it.
126961 2001-11-09  Jim Meyering  <meyering@lucent.com>
126963         * m4/jm-macros.m4: Require autoconf-2.52f.
126964         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
126965         Use these AC_-prefixed names, not the AM_-prefixed ones.
126967         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
126969 2001-11-05  Jim Meyering  <meyering@lucent.com>
126971         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
126973 2001-11-04  Jim Meyering  <meyering@lucent.com>
126975         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
126976         $DEFS.
126978 2001-11-03  Jim Meyering  <meyering@lucent.com>
126980         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
126981         of AC_DEFUN.
126983         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
126984         know the name of the variable in the macro definition.
126986 2001-11-03  Jim Meyering  <meyering@lucent.com>
126988         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
126989         in argmatch_to_argument call.
126991         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
126992         argument.
126994         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
126995         e.g., a fault due to an attempt to free a NULL pointer.
126997 2001-11-01  Jim Meyering  <meyering@lucent.com>
126999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127000         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127002 2001-11-01  Jim Meyering  <meyering@lucent.com>
127004         * lib/dirfd.c, lib/dirfd.h: New files.
127005         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127007         * lib/hash.c (hash_print) [TESTING]: Clean up.
127009 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127011         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127012         to avoid a warning if -Wall.
127014 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127016         * README: New file
127017         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127018         (per RMS's instructions, this is now the canonical source)
127019         * lgpl/, gpl/: New directories.
127021 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127023         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127025 2001-10-21  Jim Meyering  <meyering@lucent.com>
127027         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127028         this code would end up calling gettext even in packages built
127029         with --disable-nls.
127030         * lib/getopt.c (_): Likewise.
127031         * lib/regex.c (_): Likewise.
127033 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127035         * m4/error.m4 (jm_PREREQ_ERROR):
127036         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127037         AC_FUNC_STRERROR_R does that.
127038         Check for strerror declaration.
127040         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127041         are supposed to have them these days.
127042         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127043         Merge changes from latest Autoconf CVS.
127044         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127045         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127046         POSIX decided to standardize on the int flavor of strerror_r.
127048 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127050         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127051         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127052         Use strerror_r that is only a macro, even if it is not a function.
127053         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127054         (private_strerror): Use prototypes, not old-style function definition.
127055         (print_errno_message): New function.
127056         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127057         char*-flavored one.
127058         (error_tail, error, error_at_line): Use it.
127060 2001-10-11  Jim Meyering  <meyering@lucent.com>
127062         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127063         and quote_n (1, ... to avoid clobbering a buffer.
127065 2001-10-05  Jim Meyering  <meyering@lucent.com>
127067         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127068         hash-pjw.h.
127069         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127070         * lib/hash-pjw.h: New file.
127072 2001-09-30  Jim Meyering  <meyering@lucent.com>
127074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127075         `struct fsstat' has the `f_fstypename' member.
127076         Use that to define FS_TYPE, which is now used to make
127077         the getfsstat link test tighter.
127079 2001-09-30  Jim Meyering  <meyering@lucent.com>
127081         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127082         Include <sys/ucred.h>, for Apple Darwin.
127083         Include sys/mount.h and sys/fs_types.h only if available.
127084         (FS_TYPE): Define.
127085         (read_filesystem_list): Use FS_TYPE.
127087 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127089         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127090         a boolean context.
127092 2001-09-29  Jim Meyering  <meyering@lucent.com>
127094         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127095         [one-argument getmntent function]): Include stdio.h before mntent.h.
127096         SunOS 4.1.x needs it for the declaration of `FILE'.
127097         Patch by Volker Borchert.
127099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127100         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127101         sys/fs_types.h, and make the link-test for getfsstat guard #include
127102         directives with appropriate #if HAVE_*_H tests so that we can
127103         detect getfsstat on Apple Darwin1.3.7 systems.
127104         Reported by Nelson Beebe.
127105         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127107 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127109         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127110         #defines strtoimax.  Also treat the other strto* functions
127111         like strtoimax.
127113         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127114         Check for strtoul and strtoumax,
127115         as those declarations are made even in the signed case.
127116         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127117         Likewise, for strtol and strtoimax.
127119 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127121         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127122         #defines strtoimax.  Also treat the other strto* functions
127123         like strtoimax.
127125         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127126         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127127         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127129 2001-09-26  Jim Meyering  <meyering@lucent.com>
127131         Most macros in unlocked-io.h had the wrong number of arguments.
127132         * lib/gen-uio: New script.
127133         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127134         * lib/unlocked-io.hin: Remove file.
127135         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127136         rather than trying to embed it here.
127137         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127138         Reported by Padraig Brady.
127140 2001-09-25  Volker Borchert  <bt@teknon.de>
127142         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127143         `result'.
127145 2001-09-24  Jim Meyering  <meyering@lucent.com>
127147         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127149 2001-09-23  Jim Meyering  <meyering@lucent.com>
127151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127152         instead of the mere test for existence of mntent.h.  The latter
127153         would get a false-positive on AIX 3.4 systems.
127154         In the outer getmntent if-block, don't die if neither of the getmntent
127155         tests succeeds.  Instead, just fall through and continue with the
127156         remaining tests.
127158 2001-09-23  Jim Meyering  <meyering@lucent.com>
127160         * lib/mountlist.c: Remove useless parentheses in #if directives.
127161         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127162         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127164 2001-09-22  Jim Meyering  <meyering@lucent.com>
127166         * m4/gettext.m4: New file.  From gettext.
127167         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127168         * m4/progtest.m4: Likewise
127169         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127170         * m4/glibc21.m4: Likewise.
127172         * m4/libintl.m4: Remove.  No longer used.
127174 2001-09-22  Jim Meyering  <meyering@lucent.com>
127176         * lib/localcharset.c: Update from latest gettext.
127177         * lib/config.charset: Likewise.
127179 2001-09-20  Jim Meyering  <meyering@lucent.com>
127181         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127182         strtoimax.
127183         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127184         strtoumax.
127186 2001-09-20  Jim Meyering  <meyering@lucent.com>
127188         * lib/xstrtol.c (strtoimax): Guard declaration with
127189         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127190         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127191         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127192         (strtoumax): Likewise, for completeness (it wasn't necessary).
127194 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127196         * lib/strtoimax.c (HAVE_LONG_LONG):
127197         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127198         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127199         to work around bug in IBM C compiler.
127201 2001-09-17  Jim Meyering  <meyering@lucent.com>
127203         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127204         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127205         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127206         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127207         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127208         whenever the right hand side need not be expanded by the shell.
127210 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127212         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127213         library.  It's not correct, as some older glibcs are buggy.
127214         fnmatch wasn't fixed until glibc 2.2.
127216         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127217         special shell magic here.
127219 2001-09-16  Jim Meyering  <meyering@lucent.com>
127221         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127222         * m4/jm-macros.m4: Require it.
127224 2001-09-16  Jim Meyering  <meyering@lucent.com>
127226         * lib/mkdir.c: New file.
127228 2001-09-15  Jim Meyering  <meyering@lucent.com>
127230         * m4/jm-macros.m4: Check for help2man.
127232 2001-09-11  Jim Meyering  <meyering@lucent.com>
127234         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127235         The body, by Paul Eggert, was moved here from configure.in.
127236         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127238 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127240         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127241         (jm_PREREQ): Use it.
127243 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127245         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127246         Use ssize_t, not int, to store result of readlink.
127247         Check for ssize_t overflow as well as size_t overflow,
127248         as POSIX says the result of readlink is implementation-defined
127249         when ssize_t overflows.
127250         Remove unnecessary cast to char*.
127251         Use free+malloc instead of realloc, as the storage doesn't need
127252         to be preserved and it's clearer and can be more efficient that way.
127253         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127254         * lib/xreadlink.h (xreadlink): Update prototype.
127256 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127258         * lib/xgetcwd.c: Revert some of the previous change; intead,
127259         fix the HAVE_GETCWD_NULL code to behave more like the
127260         !HAVE_GETCWD_NULL code used to.
127262         Include "xalloc.h".
127263         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127264         invoke xalloc_die.
127266 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127268         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127269         sys/param.h, as pathmax.h includes them.
127271 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127273         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127274         (jm_PREREQ_XGETCWD): New macro.
127276         * m4/getcwd.m4: New file.
127278 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127280         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127281         like the HAVE_GETCWD_NULL code.
127282         Include pathmax.h if not HAVE_GETCWD.
127283         Do not include xalloc.h.
127284         (INITIAL_BUFFER_SIZE): New symbol.
127285         Do not use xmalloc / xrealloc, since the caller is responsible for
127286         handling errors.  Preserve errno around `free' during failure.
127287         Do not overrun buffer when using getwd.
127289 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127291         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127292         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127293         getcwd (NULL, 0).
127295 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127297         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127298         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127299         spotted by Jim Meyering.
127301 2001-09-03  Jim Meyering  <meyering@lucent.com>
127303         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127304         failure.
127306 2001-09-02  Jim Meyering  <meyering@lucent.com>
127308         * lib/error.c: Update from GNU libc.
127310 2001-09-01  Jim Meyering  <meyering@lucent.com>
127312         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127313         Used by df.
127315 2001-09-01  Jim Meyering  <meyering@lucent.com>
127317         * lib/xreadlink.c: New file.
127318         * lib/xreadlink.h: New file.
127319         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127320         xreadlink.h.
127322         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127323         doesn't conflict with sparc Solaris 7's definition in
127324         /usr/include/sys/int_types.h.
127326         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127327         files.
127328         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127329         and strncasecmp as r-values.  Unixware didn't have declarations.
127331 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127333         * lib/xstrtol.h: Add copyright notice.
127334         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127335         LONGINT_INVALID_SUFFIX_CHAR.
127337 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127339         * lib/xstrtol.c (strtoimax): New decl.
127341 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127343         * lib/xgetcwd.c: Don't include pathmax.h.
127344         Include stdlib.h and unistd.h if available.
127345         Include xalloc.h.
127346         (xmalloc, xstrdup, free): Remove decls.
127347         (xgetcwd): Don't assume sizes fit in unsigned.
127348         Check for overflow when computing sizes.
127349         Simplify reallocation code.
127351 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127353         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127354         a directory's st_size can have an arbitrary value, so the old
127355         usage could waste an arbitrary amount of memory.  All uses
127356         changed.
127357         * lib/savedir.h: Update prototype.
127359 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127361         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127363         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127364         old strtoimax.c.
127366         Also, make the following further changes to make this file's
127367         configuration more similar to that of strtol.c:
127368         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127369         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127370         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127371         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127372         changed to signed values.
127374         And make the following changes as well:
127375         Fix copyright notice, as 1999 was missing.
127376         (verify): New macro.
127377         (strtoimax): Check sizes at compile-time, not run-time.
127378         Prefer strtol to strtoll if both work.
127379         (main): Remove; it was not that useful and was a pain to maintain.
127381         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127383 2001-08-31  Jim Meyering  <meyering@lucent.com>
127385         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127386         Use an initial, malloc'd, buffer of length 128 rather than
127387         a statically allocated one of length 1024.
127389 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127391         Simplify code, partly by assuming autoconf 2.52 semantics.
127393         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127395         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127396         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127397         All uses removed.
127398         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127399         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127400         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127401         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127402         jm_AC_HEADER_INTTYPES_H.
127403         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127405         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127407         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127408         Quote first arg of AC_DEFUN.
127409         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127410         since they are needed to parse the include file even if we need
127411         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127412         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127413         but with opposite signedness.
127415 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127417         Merge 'exclude' changes from tar 1.13.22.
127418         This fixes one or two unlikely storage allocation overflow bugs,
127419         but doesn't change user-visible behavior otherwise.
127421 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127423         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127424         (jm_PREREQ_EXCLUDE): New macro.
127426 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127428         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127429         tm to be declared.
127431 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127433         * lib/hash.c: Remove '2001' from copyright notice.
127435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127437         * lib/full-write.h: New file.
127438         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127439         * lib/full-write.c: Correct credits, as cccp.c no longer
127440         exists and anyway it was so heavily changed from the old cccp
127441         code as to be unrecognizable.  Include full-write.h.
127442         (full_write): Return size_t, with short writes meaning failure.
127443         All callers changed.  This fixes a bug with large buffers
127444         on 64-bit hosts.
127445         * lib/utime.c: Include full-write.h.
127447 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127449         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127450         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127451         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127452         Include if available.
127453         (<xalloc.h>): Include
127454         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127455         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127456         collide with FNM macros.
127457         (struct patopts): New struct.
127458         (struct exclude): Use it, as exclude patterns now come with options.
127459         (new_exclude): Support above changes.
127460         (new_exclude, add_exclude_file):
127461         Initial size must now be a power of two to simplify overflow checking.
127462         (free_exclude, fnmatch_no_wildcards): New function.
127463         (excluded_filename): No longer requires options arg, as the options
127464         are determined by add_exclude.  Now returns bool, not int.
127465         (excluded_filename, add_exclude):
127466         Add support for the fancy new exclusion options.
127467         (add_exclude, add_exclude_file): Now takes int options arg.
127468         Check for arithmetic overflow when computing sizes.
127469         (add_exclude_file): xrealloc might modify errno, so don't
127470         realloc until after errno might be used.
127472         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127473         New macros.
127474         (free_exclude): New decl.
127475         (add_exclude, add_exclude_file): Now takes int options arg.
127476         (excluded_filename): No longer requires options arg, as the options
127477         are determined by add_exclude.  Now returns bool, not int.
127479 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127481         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127483 2001-08-27  Jim Meyering  <meyering@lucent.com>
127485         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127487         * lib/version-etc.c (N_): Remove definition.
127488         Revert most of last change.
127489         Instead, simply don't mark the `Copyright...' string for translation.
127490         Based on advice from Paul Eggert.
127492         * lib/strtoxmax.c: Tweak comment.
127494 2001-08-26  Jim Meyering  <meyering@lucent.com>
127496         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127498         * m4/xstrtoimax.m4: New file.
127499         * m4/xstrtoumax.m4: Add comments explaining why we
127500         AC_REPLACE_FUNCS(strtol).
127502 2001-08-26  Jim Meyering  <meyering@lucent.com>
127504         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127505         of copyright with `%s' so translators don't get an untranslated
127506         message in 2002.
127507         (COPYRIGHT_YEAR): Define.
127508         (version_etc): Use fprintf rather than fputs.
127509         Suggestion from Ulrich Drepper.
127511         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127513         * lib/strtoll.c: New file, from GNU libc.
127514         * lib/xstrtoimax.c: New file.
127516         * lib/xstrtol.h: Add xstrtoimax.
127517         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127518         * lib/strtoimax.c: New file.  Likewise, but first define
127519         STRTOUXMAX_SIGNED.
127521         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127522         ...
127523         * lib/strtoxmax.c: ... then renamed to this.
127525 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127527         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127528         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127529         (jm_AC_TYPE_INTMAX_T): New macro.
127530         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127532         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127534         * m4/longlong.m4: Renamed from ulonglong.m4.
127535         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127536         * m4/uintmax_t.m4: Removed.
127538 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127540         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127541         Port to Solaris 8, where 'sed' requires a space after the 'r'
127542         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127543         Redirect output to $tmp just once.
127545 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127547         * lib/addext.c (<errno.h>): Include.
127548         (errno): Declare if not defined.
127549         (addext): Work correctly when pathconf returns -1 and leaves
127550         errno alone because there is no limit.  Also, work even if
127551         pathconf returns a value greater than SIZE_MAX.
127553 2001-08-12  Jim Meyering  <meyering@lucent.com>
127555         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127556         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127557         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127558         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127559         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127560         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127561         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127562         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127563         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127564         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127565         utime.m4, utimes.m4, xstrtoumax.m4:
127566         Quote the first argument in each use of AC_DEFUN.
127568 2001-08-12  Jim Meyering  <meyering@lucent.com>
127570         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127571         Simply `return getcwd (NULL, 0);'.
127572         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127573         Use 1300 as initial value for length, not PATH_MAX.
127575         * lib/pathmax.h: Clean up cpp syntax.
127577 2001-08-12  Jim Meyering  <meyering@lucent.com>
127579         * lib/gettimeofday.c: New file.
127580         * lib/gtod.h: New file.
127581         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127583 2001-08-05  Jim Meyering  <meyering@lucent.com>
127585         * m4/jm-macros.m4: Require autoconf-2.52.
127587 2001-08-04  Jim Meyering  <meyering@lucent.com>
127589         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127590         stmt, to get in sync with glibc.
127592 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127594         The following changes are from gettext 0.10.39 as maintained by
127595         Bruno Haible.
127597         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127598         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127599         with inverted sense.  All uses changed.
127601         * lib/mbswidth.c: Don't include <limits.h>.
127602         Include <stdlib.h> and <string.h> unconditionally.
127603         (iswcntrl, mbsinit, ISCNTRL): New macros.
127604         (mbsnwidth): Use K&R style function declarations.
127605         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127606         can optimize it when MB_CUR_MAX == 1.
127607         The width of control characters is zero, not 1.
127609 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127611         The following changes are from gettext 0.10.39 as maintained by
127612         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127614         * m4/codeset.m4: Upgrade to serial AM1.
127615         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127616         all uses changed.  Quote first arg of AC_DEFUN.
127617         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127619         * m4/iconv.m4: Upgrade to serial AM2.
127620         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127621         Add --with-libconv-prefix.
127622         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127623         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127624         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127625         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127626         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127628         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127629         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127630         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127631         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127632         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127633         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127634         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127635         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127636         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127638         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127639         string.h any more.
127641         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127642         not the default value.
127644         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127645         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127646         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127647         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127648         Also check for iswcntrl, used for wcwidth fallback.
127649         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127650         to Autoconf 2.13.
127652 2001-08-03  Jim Meyering  <meyering@lucent.com>
127654         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127655         as it was in the original.  Reported by Paul Eggert.
127657 2001-07-16  Jim Meyering  <meyering@lucent.com>
127659         * m4/gettimeofday.m4: New file.
127660         Prompted by a report from Bernhard Baehr.
127662 2001-07-15  Jim Meyering  <meyering@lucent.com>
127664         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127665         stuff. Now it's in ../Makefile.cfg.
127667 2001-07-15  Jim Meyering  <meyering@lucent.com>
127669         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127670         (BUILT_SOURCES): Add unlocked-io.h.
127671         (io_functions): Define.
127672         (unlocked-io.h): New rule.
127673         (DISTCLEANFILES): Add unlocked-io.h.
127674         (all-local): Depend on unlocked-io.h, to ensure it is created.
127676         * lib/unlocked-io.hin: New file
127678         * lib/regex.c: Update from glibc.
127680 2001-07-05  Jim Meyering  <meyering@lucent.com>
127682         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127683         recommendation.
127684         (libfetish_a_SOURCES): Put all .h files here instead.
127685         Remove a thus-exposed (better checks in automake) duplicate and
127686         two unnecessary .h files.
127688 2001-07-04  Jim Meyering  <meyering@lucent.com>
127690         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127691         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127692         distcheck failure.
127694 2001-07-02  Jim Meyering  <meyering@lucent.com>
127696         The following changes were prompted by suggestions from Bruno Haible.
127698         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127699         is now generated.
127700         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127701         definition of EXTRA_DIST.
127702         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127703         ensure that the generated file is created/updated whenever the list
127704         of $(unlocked_functions) is changed.
127705         (jm-glibc-io.m4): New rule.
127706         (unlocked-io.h): New rule -- currently unused.
127708 2001-06-24  Jim Meyering  <meyering@lucent.com>
127710         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127711         unmatched right bracket, rather than kludging it with an extra,
127712         falsely-matching quote in a comment.  Patch by Akim Demaille.
127714 2001-06-11  Jim Meyering  <meyering@lucent.com>
127716         * lib/regex.c: Update from GNU libc.
127718 2001-05-27  Jim Meyering  <meyering@lucent.com>
127720         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
127721         Check for ut_type in struct utmp.
127723 2001-05-27  Jim Meyering  <meyering@lucent.com>
127725         * lib/readutmp.h (UT_TYPE): Define.
127727 2001-05-24  Jim Meyering  <meyering@lucent.com>
127729         * lib/argmatch.c: Include "quote.h".
127730         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
127731         quote function.  Reported by Göran Uddeborg.
127733 2001-05-22  Jim Meyering  <meyering@lucent.com>
127735         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
127736         now that we use the package-supplied version unconditionally.
127737         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
127739 2001-05-21  Jim Meyering  <meyering@lucent.com>
127741         * m4/regex.m4: Change a couple backticks to single quotes to avoid
127742         shell syntax errors.
127744 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127746         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
127748 2001-05-20  Paul Eggert  <eggert@twinsun.com>
127750         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
127751         Don't bother to check library strftime, since
127752         we'll be using our own my_strftime function anyway.
127753         Define my_strftime instead of strftime.
127755 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
127757         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
127758         which is not yet declared.
127760 2001-05-15  Jim Meyering  <meyering@lucent.com>
127762         * m4/regex.m4: Use proper quoting so brackets appear in the test
127763         program.
127764         Reported by, and with help from, Bruno Haible.
127766 2001-05-13  Jim Meyering  <meyering@lucent.com>
127768         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
127769         undefined.
127771 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127773         dirname code cleanup.  base_name now behaves more compatibly
127774         with POSIX basename when given file names that have trailing
127775         slashes, and similarly for dir_name.  Add new primitives
127776         base_len and dir_len.  Put the directory-name-related decls
127777         into dirname.h.
127779         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
127780         * lib/backupfile.c (base_name): Likewise.
127781         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
127782         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
127783         * lib/makepath.c (strip_trailing_slashes): Likewise.
127784         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
127785         ISSLASH): Likewise.
127786         * lib/rename.c (strip_trailing_slashes): Likewise.
127787         * lib/same.c (base_name): Likewise.
127788         * lib/stripslash.c (ISSLASH): Likewise.
127790         * lib/addext.c: Include <dirname.h> after size_t is defined.
127791         * lib/backupfile.c: Likewise.
127793         * lib/addext.c (addext): Use base_len to trim redundant
127794         trailing slashes instead of doing it ourselves.
127795         But do not trim the last slash if it is not redundant.
127797         * lib/backupfile.c (find_backup_file_name,
127798         max_backup_version): Use base_len instead of rolling it ourselves.
127799         Handle the case of "" and (on DOS) "C:" correctly.
127801         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
127802         needed. Include <string.h>, <dirname.h>.
127803         (base_name): Allow file names ending in slashes, other than names
127804         that are all slashes.  In this case, return the basename followed
127805         by the slashes.  This is more general, and can be used in places
127806         where the original base_name purposely had an assertion failure.
127807         (base_len): New function.
127809         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
127810         Do not include <assert.h>; no longer needed.
127811         Include xalloc.h.
127812         (memrchr): Remove decl.
127813         (dir_name_r): Remove.
127814         (dir_len): Renamed from dirlen.  All callers changed.
127815         Rewrite in terms of base_name, for simplicity and consistency.
127816         (dir_name): Never return NULL.  All callers changed.
127817         Do not include <stdlib.h> in test program; no longer needed.
127818         return 0; is fine for test program.
127820         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
127821         New macros.
127822         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
127824         * lib/path-concat.c (path_concat): Use base_len to compute
127825         base length, not strlen; this means we cannot rely on memcpy
127826         to null-terminate.
127828         * lib/same.c (STREQ): Remove.
127829         (same_name): Handle the case where the basename ends in trailing '/'.
127831         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
127832         a slash was stripped.  Do not strip the last slash after a
127833         file system prefix.
127835 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127837         * lib/Makefile.am (libfetish_a_SOURCES):
127838         Add strftime.c, since we now compile it on all hosts.
127840         * lib/strftime.c (my_strftime):
127841         Define to nstrftime if emacs, but only if my_strftime is not defined.
127842         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
127843         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
127844         Add one more extra argument: a nanoseconds value.
127845         All uses changed.
127846         (ns): New macro.
127847         (my_strftime function): Add %N format.
127848         (emacs_strftimeu): Renamed from emacs_strftime,
127849         with extra ut argument.
127851 2001-05-09  Paul Eggert  <eggert@twinsun.com>
127853         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
127855 2001-04-21  Jim Meyering  <meyering@lucent.com>
127857         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
127858         doesn't interfere.
127860 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127862         * m4/ftruncate.m4: Check for chsize.
127863         Link with ftruncate.o unconditionally if ftruncate is missing.
127864         This was required when cross-compiling to i586-mingw32msvc.
127866 2001-04-08  Jim Meyering  <meyering@lucent.com>
127868         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
127869         recomputed; that's necessary when the offset spans a DST transition.
127870         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
127872 2001-04-02  Jim Meyering  <meyering@lucent.com>
127874         * lib/regex.h, regex.c: Update from GNU libc.
127876 2001-03-24  Jim Meyering  <meyering@lucent.com>
127878         * m4/jm-macros.m4: Require autoconf-2.49d.
127880 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
127882         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
127884 2001-03-19  Paul Eggert  <eggert@twinsun.com>
127886         * lib/version-etc.c (version_etc_copyright): Update to 2001.
127888 2001-03-17  Jim Meyering  <meyering@lucent.com>
127890         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
127891         now that the version in autoconf is equivalent.
127892         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
127894         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
127895         Suggestion from Akim Demaille.
127897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
127898         (jm_PREREQ_TEMPNAME): New function.
127900 2001-03-16  Paul Eggert  <eggert@twinsun.com>
127902         * lib/tempname.c (uint64_t): Define to uintmax_t if
127903         not defined, and if UINT64_MAX is not defined.
127904         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
127905         Reported by John David Anglin.
127907 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
127909         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
127910         resolve alias if codeset is empty.
127911         * lib/config.charset (BeOS): Use wildcard syntax.
127913 2001-03-13  Jim Meyering  <meyering@lucent.com>
127915         * lib/path-concat.c (path_concat)
127916         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
127917         concatenating e.g., `C:' and `foo'.
127918         From Bruno Haible.
127920 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
127922         * lib/localcharset.c (locale_charset): Don't use
127923         setlocale(LC_CTYPE,NULL). Don't return NULL.
127924         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
127926 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
127928         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
127929         support for DOS/DJGPP.
127931 2001-03-01  Paul Eggert  <eggert@twinsun.com>
127933         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
127934         lacks mkstemp.  Compile our own tempname.c if we compile our own
127935         mkstemp.c, as mkstemp relies on tempname.
127937 2001-03-01  Jim Meyering  <meyering@lucent.com>
127939         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
127940         AH_VERBATIM really does output its argument verbatim.
127942 2001-02-28  Paul Eggert  <eggert@twinsun.com>
127944         * lib/Makefile.am (libfetish_a_SOURCES):
127945         Add dup-safer.c, fopen-safer.c.
127946         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
127948         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
127949         * lib/unistd-safer.h: New files.
127951 2001-02-25  Paul Eggert  <eggert@twinsun.com>
127953         The mkstemp replacement is taken from glibc 2.2.2, with some
127954         portability fixes for use outside glibc, as follows:
127956         * lib/tempname.c (struct_stat64): New macro.
127957         (direxists, __gen_tempname): Use it.
127958         This avoids a portability problem with Solaris 8.
127960         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
127961         (<stddef.h>, <stdint.h>, <string.h>):
127962         Include only if STDC_HEADERS || _LIBC.
127963         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
127964         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
127965         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
127966         (__set_errno): Define this macro if <errno.h> doesn't.
127967         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
127968         Define these macros if <stdio.h> doesn't.
127969         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
127970         Define these macros if <sys/stat.h>
127971         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
127972         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
127973         __xstat64): Define if not _LIBC.
127974         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
127975         (__gen_tempname): Invoke gettimeofday only if
127976         HAVE_GETTIMEOFDAY || _LIBC;
127977         otherwise, fall back on plain "time".
127978         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
127980         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
127982         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
127984 2001-02-18  Paul Eggert  <eggert@twinsun.com>
127986         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
127988 2001-02-17  Paul Eggert  <eggert@twinsun.com>
127990         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
127991         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
127992         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
127993         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127995 2001-02-17  Paul Eggert  <eggert@twinsun.com>
127997         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
127998         Remove workaround macros for hosts that have mbrtowc but not
127999         mbstate_t, as we now insist on proper declarations for both
128000         before using mbrtowc.
128002 2001-02-17  Jim Meyering  <meyering@lucent.com>
128004         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128005         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128006         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128007         UnixWare 7.1.1.
128009         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128010         rather than AC_CACHE_VAL.
128012 2001-02-17  Jim Meyering  <meyering@lucent.com>
128014         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128015         around included file name.
128017         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128019         * lib/strftime.c: Update from GNU libc (the only changes were to
128020         comments).
128022 2001-02-17  Jim Meyering  <meyering@lucent.com>
128024         * lib/regex.c: Update from libc.
128026 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128028         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128029         clash.
128031 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128033         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128034         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128035         Reported by Mark Hounschell via Paul Eggert.
128037 2001-02-07  Jim Meyering  <meyering@lucent.com>
128039         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128041 2001-02-05  Jim Meyering  <meyering@lucent.com>
128043         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128044         it includes the patch required for `large file' support with at least
128045         HP-UX's 10.20 /bin/cc.
128047 2001-02-03  Jim Meyering  <meyering@lucent.com>
128049         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128050         AS_IF, now that it works once again (mysteriously).
128051         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128053 2001-01-30  Jim Meyering  <meyering@lucent.com>
128055         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128056         * m4/chown.m4: Rename conftestchown to conftest.chown.
128057         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128058         s/conftestdir2/conftest.d2/.
128059         * m4/utimes.m4: s/conftestdata/conftest.data/
128060         Inspired by Pavel Roskin's change in autoconf.
128062 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128064         * lib/config.charset: Update for FreeBSD 4.2.
128066 2001-01-27  Jim Meyering  <meyering@lucent.com>
128068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128069         a use of AS_IF.
128070         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128072 2001-01-26  Jim Meyering  <meyering@lucent.com>
128074         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128075         quotearg.c includes it.
128077 2001-01-26  Jim Meyering  <meyering@lucent.com>
128079         * lib/quotearg.c: Include stddef.h.
128080         * lib/quote.c: Include stddef.h.
128081         Reported by Axel Kittenberger.
128083         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128084         line in double quotes so that it evokes a better diagnostic.
128085         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128086         Reported by Axel Kittenberger.
128088 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128090         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128091         as if it was a `charset'.
128093 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128095         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128096         has const.
128098 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128100         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128101         to avoid a warning.  Add back 'const' to inptr.
128103 2001-01-20  Jim Meyering  <meyering@lucent.com>
128105         Be sure that headers are checked before used in code compiled
128106         for the type checks.
128107         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128108         In place of that, invoke jm_CHECK_ALL_TYPES.
128109         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128110         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128111         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128112         The check for ssize_t was mistakenly run before the test for unistd.h.
128114         The configure-time check for stdbool.h was missing.
128115         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128116         (jm_PREREQ_HASH): New function.
128118 2001-01-17  Jim Meyering  <meyering@lucent.com>
128120         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128121         for autoconf-2.49c.
128122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128124 2001-01-16  Jim Meyering  <meyering@lucent.com>
128126         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128127         From Bruno Haible.
128129 2001-01-14  Jim Meyering  <meyering@lucent.com>
128131         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128132         foo and bar.  Create conftestdir/ in the script, not in the C code.
128133         Remove directories in the script, not in the C code.
128134         Remove conftestdir{,2} before trying to create the directory.
128135         Make the entire configure script fail if the mkdir fails.
128137 2001-01-14  Jim Meyering  <meyering@lucent.com>
128139         * lib/rename.c: New file.  From Volker Borchert.
128140         Include stdlib.h, string.h or strings.h, and xalloc.h.
128141         Use strip_trailing_slashes rather than open-coding it.
128143 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128145         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128147 2001-01-03  Jim Meyering  <meyering@lucent.com>
128149         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128150         of local `inptr' to avoid warning with some system declarations of
128151         iconv.
128153 2001-01-02  Volker Borchert  <bt@teknon.de>
128155         * m4/rename.m4: New file.
128156         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128158 2001-01-01  Jim Meyering  <meyering@lucent.com>
128160         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128161         even on systems with utmpx.h.  It's necessary for the declaration of
128162         utmp's ut_user member.  Reported by Andreas Jaeger.
128164         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128165         available. They are required for the declarations of getgrgid and
128166         getpwuid resp.
128167         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128168         Reported by Andreas Jaeger.
128170 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128172         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128173         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128174         so `make install' also works in VPATH builds.
128176 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128178         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128179         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128180         can be used in subdirectories.
128182 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128184         * lib/modechange.c: Do not assume that mode_t uses the
128185         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128186         the other-execute bit of FOO even if S_IXOTH != 1.
128188         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128189         WOTH, XOTH, ALLM): New macros.
128190         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128191          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128192         Use them.
128193         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128194         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128195         (mode_compile):
128196         No need to use uintmax_t; unsigned long is long enough.
128197         Don't bother to get suffix since we don't use it.
128199 2000-12-26  Jim Meyering  <meyering@lucent.com>
128201         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128202         better with autoheader.
128204 2000-12-24  Jim Meyering  <meyering@lucent.com>
128206         * lib/hash.c (is_prime): Return explicit boolean values.
128207         (hash_get_first): Return NULL to appease Irix5.6's 89.
128208         Reported by Nelson Beebe.
128210 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128212         * lib/localcharset.c (locale_charset): Add support for Win32.
128214 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128216         * lib/physmem.h, lib/physmem.c: New files.
128218         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128219         (noinst_HEADERS): Add physmem.h.
128221         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128222         't' for compatibility with Solaris 8 sort.
128224 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128226         * lib/config.charset: Add support for BeOS.
128228 2000-12-17  Jim Meyering  <meyering@lucent.com>
128230         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128231         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128233 2000-12-16  Jim Meyering  <meyering@lucent.com>
128235         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128236         N and M) would have treated it like `chown N:N FILE'.
128238         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128240 2000-12-16  Jim Meyering  <meyering@lucent.com>
128242         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128243         SHELLS_FILE to a file name that's useful on djgpp systems.
128244         Include stdlib.h.
128245         (ADDITIONAL_DEFAULT_SHELLS): Define.
128246         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128247         Based mostly on a patch from Prashant TR.
128249 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128251         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128252         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128253         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128255 2000-12-08  Andreas Schwab  <schwab@suse.de>
128257         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128258         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128260 2000-12-07  Jim Meyering  <meyering@lucent.com>
128262         * lib/stripslash.c (ISSLASH): Define.
128263         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128264         `/'.
128265         From Prashant TR.
128267         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128268         (dir_name_r): Declare this function as static.
128269         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128270         manifest itself on a name containing a mix of slashes and
128271         backslashes.
128272         Make this function work with names starting with a DOS-style
128273         drive letter and colon prefix.
128274         (dir_name): Append `.' if necessary.
128275         Based mostly on patches from Prashant TR and Eli Zaretskii.
128277         * lib/dirname.h (dir_name_r): Remove prototype.
128279 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128281         * m4/off_t-format.m4: Remove this file.
128282         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128284 2000-12-06  Jim Meyering  <meyering@lucent.com>
128286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128287         replacement strtoull, we may well need the replacement strtoul, too.
128288         Check for declarations of strtoul and strtoull.
128289         Check for strtol.  Mainly as a cue to cause automake to include
128290         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128291         Check for limits.h -- strtol.c needs it.
128293 2000-12-05  Jim Meyering  <meyering@lucent.com>
128295         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128297 2000-12-04  Jim Meyering  <meyering@lucent.com>
128299         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128300         Also include memory.h, stdlib.h, unistd.h if appropriate.
128301         Reported by Andreas Jaeger (conflicting declaration of malloc).
128303 2000-12-02  Jim Meyering  <meyering@lucent.com>
128305         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128306         * m4/jm-macros.m4 (jm_MACROS): require it.
128308 2000-12-02  Jim Meyering  <meyering@lucent.com>
128310         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128312 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128314         * lib/memrchr.c: Include <config.h> before any system include file.
128316 2000-11-30  Jim Meyering  <meyering@lucent.com>
128318         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128320 2000-11-30  Jim Meyering  <meyering@lucent.com>
128322         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128324 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128326         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128328 2000-11-26  Jim Meyering  <meyering@lucent.com>
128330         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128332 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128334         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128335         size of (size_t) -1; it's not portable.
128337 2000-11-17  Jim Meyering  <meyering@lucent.com>
128339         * lib/strstr.c: Update from GNU libc.
128341 2000-11-17  Akim Demaille  <akim@epita.fr>
128343         * lib/obstack.h: Formatting changes.
128344         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128345         prevent type checking.
128346         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128347         cast the value to (void *): assigning a `foo *' to a `void *'
128348         variable is valid.
128349         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128351 2000-11-16  Jim Meyering  <meyering@lucent.com>
128353         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128355 2000-11-11  Jim Meyering  <meyering@lucent.com>
128357         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128359 2000-11-10  Jim Meyering  <meyering@lucent.com>
128361         * lib/obstack.h: Update from GNU libc.
128362         * lib/obstack.c: Likewise.
128364 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128366         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128368 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128370         * lib/getusershell.c (setusershell): Use rewind rather than
128371         fseek/fseeko, to avoid configuration hassles with fseeko.
128372         Don't bother opening SHELLS_FILE if shellstream is NULL;
128373         it's not necessary.
128375 2000-11-05  Jim Meyering  <meyering@lucent.com>
128377         * lib/makepath.h (make_dir): Declare.
128378         * lib/makepath.c (make_dir): Remove `static' attribute.
128379         Tweak a comment.
128381 2000-11-04  Jim Meyering  <meyering@lucent.com>
128383         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128385 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128387         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128388         last one in a bucket, advance to the next bucket.
128390 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128392         * lib/fnmatch.c: Do not comment out all the code if we are using
128393         the GNU C library, because in some cases we are replacing buggy
128394         code in the GNU C library itself.
128396 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128398         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128399         (regex_compile): Catch bogus \(\1\).
128401 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128403         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128404         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128405         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128407 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128409         * lib/error.h, getline.h, modechange.h:
128410         Remove "2000" from Copyright line, as the file hasn't been
128411         changed this year other than in the copyright notice.
128413         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128414         was changed this year.
128416 2000-10-29  Jim Meyering  <meyering@lucent.com>
128418         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128419         renaming.
128420         * m4/ls-mntd-fs.m4: Likewise
128422 2000-10-29  Jim Meyering  <meyering@lucent.com>
128424         * lib/xstat.in: Fix grammar in comment.
128426 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128428         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128429         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128430         doesn't define __restrict_arr.
128432 2000-10-28  Jim Meyering  <meyering@lucent.com>
128434         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128435         (jm_PREREQ_MEMCHR): New function.
128437 2000-10-28  Jim Meyering  <meyering@lucent.com>
128439         * lib/memchr.c: Update from libc.
128440         Adjust for portability:
128441         [HAVE_STDLIB_H]: Include stdlib.h.
128442         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128443         Undef __memchr, too.
128444         [!weak_alias]: Define __memchr to memchr.
128446         * lib/regex.c: Update from libc.
128447         * lib/regex.h: Likewise.
128448         * lib/getopt1.c: Likewise.
128449         * lib/memcmp.c: Likewise.
128451         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128452         Avoid using fseek, when possible -- it's broken by design.
128453         Patch by Ulrich Drepper.
128455 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128457         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128458         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128459         Giving in to popular pressure to shut up the compiler with casts.
128461 2000-10-26  Jim Meyering  <meyering@lucent.com>
128463         * lib/strftime.c: Update from libc.
128465 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128467         * regex.c: More `unsigned char' -> `re_char' changes.
128468         Also change several `int' into `re_wchar_t'.
128469         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128470         (PUSH_FAILURE_POINTER): Don't cast any more.
128471         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128472         We want GCC to complain, since this piece of code makes
128473         re_match non-reentrant, which *should* be fixed.
128474         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128475         (EXTEND_BUFFER): Use RETALLOC.
128476         (SET_LIST_BIT): Don't cast.
128477         (re_wchar_t): New type.
128478         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128479         that those two functions will always properly return.
128480         (IMMEDIATE_QUIT_CHECK): Cast to void.
128481         (analyse_first): Use recursion rather than an explicit stack.
128482         (re_compile_fastmap): Can't fail anymore.
128483         (re_search_2): Don't check re_compile_fastmap for failure.
128484         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128485         Now also sets the new value (passed in a new argument).
128486         (re_match_2_internal): Use it.
128487         Also, use a new var `reg' of type size_t when looping through regs
128488         rather than reuse the inappropriate `mcnt'.
128490 2000-10-25  Jim Meyering  <meyering@lucent.com>
128492         * lib/obstack.c: Update from libc.
128494 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128496         * regex.c (regex_compile): Change the way of handling a range from
128497         a char less than 256 to a char not less than 256.
128499 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128501         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128502         NT-Emacs only.
128503         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128504         so that re_search functions only quit when callers expect them to.
128506 2000-10-23  Jim Meyering  <meyering@lucent.com>
128508         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128509         wrong.  That set_locale call must not have any side effects.
128510         From Paul Eggert.
128512 2000-10-22  Jim Meyering  <meyering@lucent.com>
128514         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128515         [CYCLIC]: Remove now-unused definition.
128517         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128518         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128519         Suggestion from Ulrich Drepper.
128521 2000-10-21  Jim Meyering  <meyering@lucent.com>
128523         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128524         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128527 2000-10-21  Jim Meyering  <meyering@lucent.com>
128529         * lib/dirname.c (memrchr): Declare if necessary.
128530         (dir_name): Remove the restriction that there be no
128531         trailing slashes.  Now, this code skips past them, effectively
128532         ignoring them.
128533         [TEST_DIRNAME] (main): New unit tests.
128535         * lib/memrchr.c: New file from GNU libc.
128536         Undef __memrchr, too.
128537         [!weak_alias]: Define __memrchr to memrchr.
128538         Guard weak_alias use with `#ifdef weak_alias'.
128540 2000-10-21  Jim Meyering  <meyering@lucent.com>
128542         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128543         (dir_name): Use dir_name_r.
128544         * lib/dirname.h (dir_name_r): Declare it.
128546 2000-10-17  Jim Meyering  <meyering@lucent.com>
128548         * lib/quote.h (PARAMS): Define and use.
128549         Reported by Akim Demaille.
128551         * lib/getopt.c: Update from libc.
128553 2000-10-16  Jim Meyering  <meyering@lucent.com>
128555         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128556         setlocale.
128557         From Jan Fedak.
128559 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128561         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128563 2000-09-25  Jim Meyering  <meyering@lucent.com>
128565         * lib/md5.h (rol): Define (from GnuPG).
128567         * lib/sha.c: Give credit (GnuPG) where due.
128568         (M): Use rol rather than open-coding it.
128569         Add a FIXME comment.
128571 2000-09-21  Jim Meyering  <meyering@lucent.com>
128573         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128574         Reported by Michael Stone.
128576 2000-09-20  Jim Meyering  <meyering@lucent.com>
128578         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128579         (noinst_HEADERS): Add sha.h.
128580         Based on code from Scott G. Miller and from GnuPG.
128582 2000-09-18  Jim Meyering  <meyering@lucent.com>
128584         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128585         LIBS. Otherwise, everyone ends up linking with -lelf for some
128586         configurations.
128587         Reported by Mike Stone.
128589 2000-09-15  Jim Meyering  <meyering@lucent.com>
128591         * lib/regex.c: Update from libc.
128593 2000-09-10  Jim Meyering  <meyering@lucent.com>
128595         * lib/getopt.c (_getopt_internal): Update from glibc.
128597 2000-09-09  Jim Meyering  <meyering@lucent.com>
128599         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128600         think it should be used as a general replacement for isascii.
128601         * lib/fnmatch.c: Likewise.
128602         * lib/mbswidth.c: Likewise
128603         * lib/regex.c: Likewise.
128605         Don't use atoi.
128606         * lib/userspec.c: Include sys/param.h and limits.h.
128607         Include xstrtol.h.
128608         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128609         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128610         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128611         UID, GID.  Check range.
128613 2000-09-06  Jim Meyering  <meyering@lucent.com>
128615         * lib/getopt.c (_getopt_internal): Update from glibc.
128617 2000-08-30  Jim Meyering  <meyering@lucent.com>
128619         * lib/strftime.c: Merge in changes from GNU libc.
128621 2000-08-26  Jim Meyering  <meyering@lucent.com>
128623         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128624         * m4/fpending.m4: New file.
128626 2000-08-26  Jim Meyering  <meyering@lucent.com>
128628         * lib/closeout.c: Include "__fpending.h".
128629         (close_stdout_status): Return right away if there's nothing to flush.
128631         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128632         * lib/__fpending.c: New file.
128633         * lib/__fpending.h: New file.
128635 2000-08-20  Jim Meyering  <meyering@lucent.com>
128637         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128638         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128639         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128641 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128643         Improve fileutils installation on systems where running
128644         programs (like install) can't be unlinked.
128645         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128646         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128648 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128650         Standardize on "memory exhausted" instead of "Memory exhausted"
128651         or "virtual memory exhausted".
128652         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128653         "virtual memory exhausted".
128654         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128655         our own message.
128656         * lib/userspec.c (parse_user_spec): Likewise.
128657         * lib/bumpalloc.h: comment fix
128658         * lib/same.c, userspec.c: Include xalloc.h.
128660         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128661         not char *const and pointing to a constant array.
128662         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128663         (xrealloc): Comment fix.
128665         * lib/userspec.c (parse_user_spec):
128666         Don't translate a message until just before returning,
128667         to avoid unnecessary translation.
128669 2000-08-07  Jim Meyering  <meyering@lucent.com>
128671         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128672         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128673         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128674         getgroups.c, gethostname.c, getopt.h, group-member.c,
128675         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128676         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128677         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128678         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128679         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128680         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128681         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128682         yesno.c: Back out Copyright date changes for each file with no change
128683         this year.  This eases coordination with other programs using the same
128684         source code modules.  From Paul Eggert.
128686 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128688         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128689         not char, for compatibility with glibc 2.1.3 strftime.c.
128691 2000-08-03  Greg McGary  <greg@mcgary.org>
128693         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128694         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128695         (EXTEND_BUFFER): Use them.
128697 2000-08-01  Jim Meyering  <meyering@lucent.com>
128699         * lib/dirname.c (ISSLASH): Define.
128700         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128701         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128702         both `\' and `/' may be use as path separators.
128703         Based on a patch from Prashant TR.
128705 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128707         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128708         slot vector a constant, since it might get modified.
128710 2000-07-31  Jim Meyering  <meyering@lucent.com>
128712         * lib/xmalloc.c: Use `virtual memory exhausted', not
128713         `Memory exhausted'.
128714         * lib/obstack.c (print_and_abort): Likewise.
128716 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128718         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128719         buffer, so that the caller can always quote one small
128720         component of a "memory exhausted" message in slot 0.
128721         From a suggestion by Jim Meyering.
128723 2000-07-30  Jim Meyering  <meyering@lucent.com>
128725         * lib/makepath.c (make_path): Quote the other instance, too.
128727         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
128728         (STATIC_BUF_SIZE): Define.
128729         (quotearg_n_options): Use only statically allocated storage when
128730         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
128731         than STATIC_BUF_SIZE.
128733 2000-07-29  Jim Meyering  <meyering@lucent.com>
128735         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
128736         * lib/dirname.c (dir_name): Likewise.
128738         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
128739         `/'.
128741         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
128742         (dir_name): Assert that there are no trailing slashes.
128744 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
128746         * lib/mbswidth.h (mbswidth): Add a flags argument.
128747         (mbswidth): New declaration.
128748         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
128749         * lib/mbswidth.c (mbswidth): Add a flags argument.
128750         (mbsnwidth): New function.
128752 2000-07-24  Jim Meyering  <meyering@lucent.com>
128754         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
128756 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128758         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
128760 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128762         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
128763         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
128764         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
128765         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
128766         invoke multibyte primitives.
128768 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128770         * lib/quotearg.c:
128771         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
128772         so that mbstate_t is always defined.
128774         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
128775         be 1 in at least one GCC installation, and this configuration
128776         error is likely to be common.  Ignoring MB_LEN_MAX hurts
128777         performance on hosts that have mbrtowc but have only unibyte
128778         locales, but I assume these hosts are rare.
128780 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128782         * lib/mbswidth.c (_XOPEN_SOURCE):
128783         Don't define; this causes problems on Solaris 7.
128784         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
128786 2000-07-23  Jim Meyering  <meyering@lucent.com>
128788         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
128789         too: getgrgid, getpwuid, getuid.
128791 2000-07-23  Jim Meyering  <meyering@lucent.com>
128793         * lib/basename.c (base_name): Add an assertion.
128795 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
128797         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
128798         shadow its mbsinit function.
128800 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128802         * lib/mbswidth.h: New file.
128803         * lib/mbswidth.c: New file.
128804         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
128805         (noinst_HEADERS): Add mbswidth.h.
128807 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128809         * lib/config.charset: Add support for FreeBSD. Improve support for
128810         HP-UX and IRIX 6.
128812 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
128814         * m4/mbswidth.m4: New file.
128815         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
128817 2000-07-15  Jim Meyering  <meyering@lucent.com>
128819         * lib/makepath.c: Include quote.h.
128820         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
128821         corresponding argument in a `quote (...)' call.
128822         Give better diagnostics.
128824         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
128825         (noinst_HEADERS): Add quote.h.
128827         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
128828         from tar's src/misc.c.
128829         * lib/quote.h: New file.  Prototypes for same.
128831 2000-07-14  Paul Eggert  <eggert@twinsun.com>
128833         From a suggestion by Bruno Haible.
128834         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
128835         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
128836         to decide whether to define the BeOS workaround macro;
128837         this adjusts to the change to AC_MBSTATE_T.
128839 2000-07-14  Jim Meyering  <meyering@lucent.com>
128841         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
128842         jm_AC_TYPE_UINTMAX_T.
128844 2000-07-13  Paul Eggert  <eggert@twinsun.com>
128846         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
128848         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
128849         quotearg_buffer_restyled): Add support for
128850         clocale_quoting_style.  Undo previous change to
128851         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
128852         and "{RIGHT QUOTATION MARK}" msgids.
128854 2000-07-10  Paul Eggert  <eggert@twinsun.com>
128856         From a suggestion by Bruno Haible.
128857         * m4/mbstate_t.m4 (AC_MBSTATE_T):
128858         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
128859         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
128860         and mbstate_t, to a single-part test that simply defines mbstate_t.
128861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
128862         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
128864 2000-07-10  Jim Meyering  <meyering@lucent.com>
128866         * m4/strerror_r.m4: Mirror the correction made in autoconf.
128868         * m4/gnu-source.m4: Output to confdefs.h directly.
128869         Suggestion from Akim Demaille.
128871 2000-07-09  Paul Eggert  <eggert@twinsun.com>
128873         The old behavior of quoting `like this' doesn't look good with
128874         newer, ISO-style fonts.  See:
128875         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
128877         Instead, quote "like this" by default.  Let the translator
128878         tailor the locale-specific quoting behavior by providing
128879         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
128881         * lib/quotearg.c (N_): New macro.
128882         (gettext_default): New function.
128883         (quotearg_buffer_restyled): Use
128884         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
128885         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
128887 2000-07-09  Jim Meyering  <meyering@lucent.com>
128889         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
128890         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
128892         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
128893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
128895 2000-07-09  Jim Meyering  <meyering@lucent.com>
128897         * lib/Most files: Update copyright dates to include 2000.
128899 2000-07-08  Jim Meyering  <meyering@lucent.com>
128901         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
128902         if not defined.
128903         (xgethostname): Remove now-unnecessary #ifdef.
128904         Move declaration of `err' into loop where it's used.
128906 2000-07-05  Paul Eggert  <eggert@twinsun.com>
128907         and Bruno Haible  <haible@clisp.cons.org>
128909         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
128910         only if the test for an object-type mbstate_t fails.  This
128911         prevents us from mistakenly reporting that mbstate_t is a
128912         system object type after we "#define mbstate_t int" to work
128913         around its lack.
128915 2000-07-05  Paul Eggert  <eggert@twinsun.com>
128916         and Bruno Haible  <haible@clisp.cons.org>
128918         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
128920 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128922         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
128923         to strerror_r.
128924         Include <ctype.h> for use of isalpha.
128926 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128928         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
128929         by allocating a larger buffer. Test the gethostname return value for
128930         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
128931         returns an error and ENAMETOOLONG isn't defined.
128933 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
128935         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
128936         dimension.
128938 2000-07-04  Jim Meyering  <meyering@lucent.com>
128940         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
128941         of the deprecated AC_CHECKING.
128943 2000-07-04  Jim Meyering  <meyering@lucent.com>
128945         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
128946         Reported by Bruno Haible.
128948 2000-07-04  Jim Meyering  <meyering@lucent.com>
128950         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
128951         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
128952         lacks mbrtowc.
128954 2000-07-03  Paul Eggert  <eggert@twinsun.com>
128956         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
128957         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
128959 2000-07-03  Paul Eggert  <eggert@twinsun.com>
128960         and Bruno Haible  <haible@clisp.cons.org>
128962         * lib/quotearg.c (mbrtowc):
128963         Assign to *pwc, and return 1 only if result is nonzero.
128964         (iswprint): Use ISPRINT when substituting our own mbrtowc.
128966 2000-07-03  Jim Meyering  <meyering@lucent.com>
128968         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
128970 2000-07-03  Jim Meyering  <meyering@lucent.com>
128972         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
128973         This is necessary to get a definition of e.g., UTMP_FILE on
128974         HP-UX 10.20.
128975         From Bob Proulx.
128977 2000-07-02  Jim Meyering  <meyering@lucent.com>
128979         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
128981         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
128982         AC_LIBOBJ(function_name).
128983         * m4/chown.m4: Likewise.
128984         * m4/fnmatch.m4: Likewise.
128985         * m4/ftruncate.m4: Likewise.
128986         * m4/getgroups.m4: Likewise.
128987         * m4/getline.m4: Likewise.
128988         * m4/group-member.m4: Likewise.
128989         * m4/jm-macros.m4: Likewise.
128990         * m4/lstat.m4: Likewise.
128991         * m4/malloc.m4: Likewise.
128992         * m4/memcmp.m4: Likewise.
128993         * m4/nanosleep.m4: Likewise.
128994         * m4/putenv.m4: Likewise.
128995         * m4/realloc.m4: Likewise.
128996         * m4/regex.m4: Likewise.
128997         * m4/stat.m4: Likewise.
128998         * m4/strftime.m4: Likewise.
129000 2000-07-02  Jim Meyering  <meyering@lucent.com>
129002         * lib/quotearg.c (mbstate_t): Don't define here.
129004 2000-07-02  Jim Meyering  <meyering@lucent.com>
129006         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129008 2000-07-01  Jim Meyering  <meyering@lucent.com>
129010         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129012 2000-07-01  Jim Meyering  <meyering@lucent.com>
129014         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129015         problem.
129017 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129019         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129020         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129022 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129024         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129025         per change in ../m4/ls-mntd-fs.m4.
129026         (read_filesystem_list): Ignore symbolic links.
129028 2000-06-29  Jim Meyering  <meyering@lucent.com>
129030         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129031         for declaration of strcmp.
129033         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129035         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129036         Avoid warning by casting result to `char *' to remove `const'.
129038 2000-06-28  Jim Meyering  <meyering@lucent.com>
129040         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129041         included by quotearg.c, for which we perform this test.  From
129042         Bruno Haible.
129044 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129046         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129047         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129048         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129050 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129052         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129054 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129056         savedir now sets errno on failure and invokes xmalloc to get memory.
129057         Fix a couple of other minor bugs while we're at it.
129059         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129060         (NAMLEN): Remove macro.
129061         (malloc, realloc): Remove decls.
129062         (stpcpy): Likewise.
129063         ("xalloc.h"): Include.
129064         (NAME_SIZE_DEFAULT): New macro.
129065         (savedir): Use xmalloc / xrealloc to allocate memory.
129066         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129067         Skip "" directory entries.
129068         Use strlen to calculate directory entry length, since the old method
129069         is rarely used these days and isn't worth supporting.
129070         Don't use a pointer after freeing it.
129071         Check for integer overflow when calculating allocation size.
129072         Use memcpy to copy entries, instead of stpcpy.
129073         Set errno properly when returning NULL.
129074         Check for readdir error.
129076 2000-06-26  Jim Meyering  <meyering@lucent.com>
129078         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129080 2000-06-25  Jim Meyering  <meyering@lucent.com>
129082         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129083         Linux header bug when _XOPEN_SOURCE is defined to 500.
129085 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129087         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129088         deficiency.
129090 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129092         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129093         Include xalloc.h.
129094         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129096 2000-06-24  Jim Meyering  <meyering@lucent.com>
129098         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129099         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129100         for which strerror does return char*, but which lacks a conveniently
129101         accessible declaration of the function.  If the compile-test says
129102         strerror_r doesn't work, then resort to a `run'-test that works on
129103         BeOS and segfaults on DEC Unix.
129105 2000-06-24  Jim Meyering  <meyering@lucent.com>
129107         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129109 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129111         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129112         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129114 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129116         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129117         (mbrtowc, mbstate_t): Define substitutes if
129118         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129119         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129120         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129122 2000-06-23  Jim Meyering  <meyering@lucent.com>
129124         * m4/afs.m4: Add missing AC_MSG_RESULT.
129125         Reported by Bruno Haible.
129127         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129128         Suggestion from Bruno Haible.
129130 2000-06-23  Jim Meyering  <meyering@lucent.com>
129132         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129134 2000-06-21  Jim Meyering  <meyering@lucent.com>
129136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129138 2000-06-21  Jim Meyering  <meyering@lucent.com>
129140         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129141         (noinst_HEADERS): Add getstr.h.
129143         * lib/getline.c (getstr): Move into a separate file.
129144         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129145         the following changes: new parameter, delim2; both delim[12]
129146         parameters have type `int', not `char'.  The latter would lose
129147         with 8-bit delimiters.
129148         * lib/getstr.h: New file.
129150 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129152         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129153         than 1024, return a memory chunk of least possible size, instead
129154         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129155         Use free/xmalloc instead of xrealloc to avoid copying for very long
129156         paths.
129158 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129160         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129161         the empty string.
129163 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129165         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129166         address, not strdup.  Include <stdlib.h> and don't declare free().
129168 2000-06-19  Jim Meyering  <meyering@lucent.com>
129170         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129172 2000-06-18  Jim Meyering  <meyering@lucent.com>
129174         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129176         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129177         `checking whether...' message to be consistent with that of the
129178         lstat test.
129180 2000-06-18  Jim Meyering  <meyering@lucent.com>
129182         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129183         Besides, these days every porting target provides a mkdir function.
129185         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129186         needed. (this snippet comes from src/system.h).
129188 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129190         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129192 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129194         * lib/human.c (adjust_value): New function.
129195         (human_readable_inexact): Apply rounding style even when
129196         printing approximate values.
129198 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129200         * lib/human.c (human_readable_inexact): Allow an input block
129201         size that is not a multiple of the output block size, and vice versa.
129202         Reported by Piergiorgio Sartor.
129204 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129206         * lib/getdate.y (get_date): Apply relative times after time
129207         zone indicator, not before.  Reported by Todd A. Jacobs.
129209 2000-06-13  Jim Meyering  <meyering@lucent.com>
129211         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129213         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129215 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129217         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129219 2000-06-12  Jim Meyering  <meyering@lucent.com>
129221         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129222         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129223         optional argument.
129224         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129225         the optional argument, `lib'.
129227 2000-06-08  Jim Meyering  <meyering@lucent.com>
129229         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129231 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129233         Rewrite largefile configuration so that we don't need to run
129234         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129235         AC_CANONICAL_HOST in configure.in -- jmm]
129237         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129238         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129239         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129240         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129241         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129242         All uses changed.
129243         Instead of inspecting the output of getconf, try to compile the
129244         test program without and with the macro definition.
129245         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129246         for getconf.  Instead, check for the needed flags by compiling
129247         test programs.
129249 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129251         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129253 2000-06-04  Jim Meyering  <meyering@lucent.com>
129255         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129256         SunOS 4.1.4 for which gid_t is an unsigned type.
129258 2000-06-03  Jim Meyering  <meyering@lucent.com>
129260         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129261         now that autoconf requires that.
129263         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129264         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129265         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129267 2000-06-03  Jim Meyering  <meyering@lucent.com>
129269         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129271 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129273         * m4/glibc21.m4: New file.
129274         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129276 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129278         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129279         newer, don't install charset.alias.
129280         * lib/config.charset: Change the Linux/glibc rules so they become empty
129281         on glibc-2.1 or newer.
129283 2000-06-02  Jim Meyering  <meyering@lucent.com>
129285         * lib/mountlist.c: Back out last change.  Instead, do this...
129286         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129287         me_dummy member using the same `ignore'-testing code.
129288         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129289         fs_type strings.
129290         From Mark D. Roth.
129292 2000-05-29  Jim Meyering  <meyering@lucent.com>
129294         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129295         mounts with the `ignore' attribute.  Based on a patch from
129296         Mark D. Roth.
129298 2000-05-28  Jim Meyering  <meyering@lucent.com>
129300         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129301         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129302         * m4/stat.m4: Likewise.
129303         * m4/lstat.m4: Likewise.
129304         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129306         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129307         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129309 2000-05-26  Jim Meyering  <meyering@lucent.com>
129311         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129313 2000-05-24  Jim Meyering  <meyering@lucent.com>
129315         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129316         autoconf requires that.
129317         * m4/lib-check.m4: Likewise.
129318         * m4/jm-macros.m4: Likewise.
129319         * m4/strftime.m4: Likewise.
129321         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129322         AC_CHECK_DECLS, now that autoconf requires that.
129324 2000-05-22  Jim Meyering  <meyering@lucent.com>
129326         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129327         * m4/lstat.m4: Likewise.
129329 2000-05-22  Jim Meyering  <meyering@lucent.com>
129331         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129333 2000-05-20  Jim Meyering  <meyering@lucent.com>
129335         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129336         (jm_PREREQ): Use it.
129338 2000-05-18  Jim Meyering  <meyering@lucent.com>
129340         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129341         back, too, since it may have been modified by allocate_entry.
129342         (hash_delete): Rewrite to use neither the assignment operator
129343         nor the comma operator in an if-expression.
129345 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129347         * lib/closeout.c:
129348         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129349         Remove; no longer needed.
129350         "quotearg.h": Add include.
129351         (file_name): Do not bother to explicitly initialize to NULL; it's less
129352         efficient on some hosts.
129353         (close_stdout_status): Remove test as to whether stdout was already
129354         closed; it breaks for the case "echo x | sort >&-".
129355         Quote file name colons.
129356         Do not assume that _("write error") lacks format strings.
129358 2000-05-15  Jim Meyering  <meyering@lucent.com>
129360         * lib/version-etc.c (version_etc_copyright): Update the copyright
129361         string used in all --version output.
129363 2000-05-14  Jim Meyering  <meyering@lucent.com>
129365         * lib/closeout.c (close_stdout_set_file_name): New function.
129366         (close_stdout_status): Use new file-scoped global.
129367         Return right away if fstat says the stdout file descriptor is invalid.
129368         * lib/closeout.h (close_stdout_set_file_name): Declare.
129370 2000-05-10  Jim Meyering  <meyering@lucent.com>
129372         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129373         (close_stdout_set_status): New function.
129374         * lib/closeout.h (close_stdout_set_status): Declare.
129376 2000-05-09  Jim Meyering  <meyering@lucent.com>
129378         * m4/gettext.m4: Rename this...
129379         * m4/libintl.m4: ...to this.
129381 2000-05-08  Jim Meyering  <meyering@lucent.com>
129383         * lib/long-options.c: Don't include closeout.h.
129384         (parse_long_options): Don't call close_stdout for --version.
129386 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129388         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129389         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129390         2.1.3 bug.  This avoids a clash when files like regex.c define
129391         _GNU_SOURCE.
129393 2000-05-06  Jim Meyering  <meyering@lucent.com>
129395         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129396         (AC_REPLACE_FUNCS): Add strnlen.
129398         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129399         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129401         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129402         AC_SEARCH_LIBS call for nanosleep.
129403         (LIB_NANOSLEEP): Set and AC_SUBST.
129405 2000-05-06  Jim Meyering  <meyering@lucent.com>
129407         * lib/strnlen.c: Undefine __strnlen and strnlen.
129408         [!weak_alias]: Define __strnlen to strnlen.
129410         * lib/atexit.c: New file, from libiberty.
129412 2000-05-06  Jim Meyering  <meyering@lucent.com>
129414         * lib/closeout.c (close_stdout_status): Also check for errors on the
129415         stderr stream.
129417 2000-05-05  Jim Meyering  <meyering@lucent.com>
129419         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129420         AC_SEARCH_LIBS call for clock_gettime.
129421         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129423         * m4/search-libs.m4: Update from autoconf.
129425         su doesn't work on Solaris 2.6.
129426         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129427         <shadow.h>.  Reported by Dragos Harabor.
129429 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129431         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129432         memcpy instead of xmalloc, xrealloc, path_concat.
129433         (locale_charset): Treat empty environment variables as absent.
129434         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129436 2000-05-04  Jim Meyering  <meyering@lucent.com>
129438         * lib/getopt.c: Update from glibc.
129439         * lib/obstack.c: Likewise.
129440         * lib/obstack.h: Likewise.
129441         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129442         file
129444         * lib/regex.h: Likewise.
129445         * lib/strndup.c: Likewise.
129446         * lib/strnlen.c: New file, from glibc.
129448 2000-05-03  Jim Meyering  <meyering@lucent.com>
129450         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129452 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129454         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129455         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129456         compile-time test, rather than inspecting host and OS, to
129457         decide whether to define _LARGEFILE_SOURCE.
129459 2000-05-01  Jim Meyering  <meyering@lucent.com>
129461         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129463         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129464         Based on a patch from Bruno Haible.
129466 2000-05-01  Jim Meyering  <meyering@lucent.com>
129468         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129470 2000-04-29  Jim Meyering  <meyering@lucent.com>
129472         * lib/path-concat.c: Declare strdup only if it's not defined.
129473         * lib/canon-host.c: Likewise.
129475 2000-04-28  Jim Meyering  <meyering@lucent.com>
129477         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129478         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129479         is included first, then limits.h is included by locale.h by libintl.h.
129480         From John David Anglin.
129482 2000-04-25  Jim Meyering  <meyering@lucent.com>
129484         * lib/makepath.c (S_IRWXUGO): Define.
129485         (make_path): Always perform explicit chmod if MODE specifies any
129486         of the `special' permission bits.  Prompted by a bug report against
129487         install from Mate Wierdl and Joost van Baal.
129489 2000-04-18  Jim Meyering  <meyering@lucent.com>
129491         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129492         (jm_PREREQ): Use it.
129494 2000-04-18  Jim Meyering  <meyering@lucent.com>
129496         * lib/README: New file.
129498         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129499         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129501 2000-04-17  Jim Meyering  <meyering@lucent.com>
129503         Get it right :-)
129504         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129505         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129506         Suggestion from Akim Demaille.
129508 2000-04-17  Jim Meyering  <meyering@lucent.com>
129510         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129511         the definition of it to rpl_strftime also defined-away the system's
129512         declaration.
129514 2000-04-15  Jim Meyering  <meyering@lucent.com>
129516         Use `C' to denote so-called `contiguous' files, the same way
129517         that tar does.
129518         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129519         (ftypelet): Use S_ISCTG.
129520         From Michael Deutschmann.
129522 2000-04-14  Jim Meyering  <meyering@lucent.com>
129524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129525         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129526         clobbered.
129528 2000-04-14  Jim Meyering  <meyering@lucent.com>
129530         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129532 2000-04-13  Jim Meyering  <meyering@lucent.com>
129534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129535         AH_VERBATIM to insert required #ifndef into config.h.in.
129536         Suggestion from Akim Demaille.
129538 2000-04-12  Jim Meyering  <meyering@lucent.com>
129540         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129541         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129542         Christian Krackowizer.
129544         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129545         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129546         (AC_SYS_LARGEFILE): Require.
129547         (AM_C_PROTOTYPES): Require.
129549 2000-04-08  Jim Meyering  <meyering@lucent.com>
129551         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129552         names don't conflict.  Reported by Eli Zaretskii.
129554 2000-04-07  Jim Meyering  <meyering@lucent.com>
129556         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129557         sys/types.h, to work around system header problems on AIX 3.2.5.
129558         From Bruno Haible.
129560 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129562         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129563         bug.  Deal with the different error behavior of Irix iconv.
129565 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129567         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129568         IRIX if the installer said otherwise.
129570 2000-04-05  Jim Meyering  <meyering@lucent.com>
129572         Portability tweaks required for ultrix4.3.
129573         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129574         (jm_CHECK_DECLS): Add getutent to the list of functions.
129575         (_jm_DECL_HEADERS): Add utmpx.h.
129576         From John David Anglin.
129578         * m4/strftime.m4: Back out the 2000-04-02 change.
129579         Instead of that change, simply undefine putenv in the test program.
129581 2000-04-05  Jim Meyering  <meyering@lucent.com>
129583         Portability tweaks required for ultrix4.3.
129584         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129585         getutent.
129586         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129587         * lib/canon-host.c: Declare strdup.
129588         * lib/path-concat.c: Likewise.
129589         From John David Anglin.
129591 2000-04-04  Jim Meyering  <meyering@lucent.com>
129593         Be more DOS 8.3-friendly.
129594         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129595         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129596         * lib/Makefile.am: Reflect renaming.
129597         Reported by Eli Zaretskii.
129599         Use a temporary file name that won't clash with `charset.alias'
129600         in the DOS 8.3 name space.
129601         * lib/Makefile.am (charset_tmp): Define.
129602         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129603         (uninstall-local): Likewise.
129604         Reported by Eli Zaretskii.
129606 2000-04-03  Jim Meyering  <meyering@lucent.com>
129608         * m4/gettext.m4: Fix typo in comment.
129610         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129611         textutils/configure.in).  Suggestion from Paul Eggert.
129612         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129614 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129616         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129617         variable in the shell rather than using putenv, which isn't
129618         portable.  This avoids the configure-time inter-test dependency
129619         on the potentially-renamed putenv function.
129621 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129624         before checking struct stat.st_blksize, so that
129625         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129627 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129629         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129630         since strftime.c uses HAVE_STRFTIME to decide whether to use
129631         the underlying strftime.
129633 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129635         * lib/time/strftime.c (my_strftime): Make sure we call the system
129636         strftime, not ourselves, when invoking the underlying strftime.
129638 2000-03-24  Jim Meyering  <meyering@lucent.com>
129640         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129641         (charset_alias): Define.
129642         (install-exec-local): Factor out common code.
129643         (uninstall-local): Split lines longer than 80.
129644         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129645         (SUFFIXES): Define.
129646         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129647         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129649 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129651         * lib/config.charset: Output a line containing "Packages using this
129652         file".
129653         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129654         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129655         ref-del.sed): New rules.
129657 2000-03-17  Jim Meyering  <meyering@lucent.com>
129659         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129660         Otherwise, include <strings.h>
129662 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129664         * lib/unicodeio.c (utf8_wctomb): New function.
129665         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129666         format instead of in UCS-4 with platform dependent endianness.
129668 2000-03-10  Jim Meyering  <meyering@lucent.com>
129670         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129671         From Marco Franzen.
129673 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129675         * lib/savedir.c (savedir): Work even if directory size is
129676         negative; this can happen with some screwy NFS configurations.
129678 2000-03-06  Jim Meyering  <meyering@lucent.com>
129680         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129681         if it's NULL (because we ran out of memory).  From Bruno Haible.
129683 2000-03-05  Jim Meyering  <meyering@lucent.com>
129685         * lib/localcharset.c ("path-concat.h"): Include.
129686         (get_charset_aliases): Use path_concat instead of ANSI string
129687         concatenation.
129689         * lib/unicodeio.h (PARAMS): Define.
129690         Use it to guard prototype.
129692 2000-03-04  Jim Meyering  <meyering@lucent.com>
129694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129695         for lib/localcharset.c.
129697 2000-03-04  Jim Meyering  <meyering@lucent.com>
129699         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129700         installing into it.
129701         (uninstall-local): Uncomment this rule so `make distcheck' works
129702         once again.
129704         * lib/unicodeio.c (<errno.h>): Include it.
129705         (errno): Declare if not defined.
129707         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129709         * lib/config.charset: New version, incorporating remarks from a linux
129710         i18n mailing list.  From Bruno Haible.
129712 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129714         * m4/codeset.m4: New file.
129715         * m4/iconv.m4: New file.
129716         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129718 2000-03-03  Jim Meyering  <meyering@lucent.com>
129720         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
129722 2000-03-02  Jim Meyering  <meyering@lucent.com>
129724         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
129725         the messages come out on separate lines.
129727         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
129728         rather than jm_CHECK_DECLARATIONS.
129729         * m4/decl.m4: Remove now-unused file.
129731         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
129732         geteuid.
129734 2000-03-02  Jim Meyering  <meyering@lucent.com>
129736         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
129738 2000-03-01  Jim Meyering  <meyering@lucent.com>
129740         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
129741         * lib/unicodeio.c: Likewise.
129743 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
129745         * lib/config.charset: New file.
129746         * lib/localcharset.c: New file.
129747         * lib/unicodeio.h, lib/unicodeio.c: New files.
129748         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
129749         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
129750         (noinst_HEADERS): Add unicodeio.h.
129751         (all-local, install-exec-local, charset.alias): New targets.
129753 2000-02-28  Paul Eggert  <eggert@twinsun.com>
129755         * lib/quotearg.c (ALERT_CHAR): New macro.
129756         (quotearg_buffer_restyled): Use it.
129758 2000-02-27  Jim Meyering  <meyering@lucent.com>
129760         * m4/check-decl.m4: Add getenv to the list.
129762 2000-02-27  Jim Meyering  <meyering@lucent.com>
129764         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
129765         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
129767         * lib/backupfile.c: Guard inclusion of stdlib.h with
129768         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
129769         Declare malloc if needed.
129771         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
129772         `#ifndef HAVE_DECL..'
129773         now that autoconf always defines the HAVE_DECL_ symbols.
129774         * lib/human.c: Likewise.
129775         * lib/same.c: Likewise.
129776         * lib/strtoumax.c: Likewise.
129778         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
129779         declaration check was not run.
129780         * lib/hash.c: Likewise.
129781         * lib/human.c: Likewise.
129782         * lib/same.c: Likewise.
129783         * lib/strtoumax.c: Likewise.
129785         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
129786         `.', then first look up the entire `.'-containing string as a login
129787         name.
129789 2000-02-23  Jim Meyering  <meyering@lucent.com>
129791         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
129792         in place of my hack.
129794 2000-02-18  Paul Eggert  <eggert@twinsun.com>
129796         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
129797         (textint): New typedef.
129798         (parser_control): Member year changed from int to textint.
129799         All uses changed.
129800         (YYSTYPE): Removed; replaced by %union with int and textint members.
129801         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
129802         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
129803         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
129804         (tSNUMBER, tUNUMBER): Now of type <textintval>.
129805         (date, number, to_year): Use width of number in digits, not its value,
129806         to determine whether it's a 2-digit year, or a 2-digit time.
129807         (yylex): Store number of digits of numeric tokens.
129808         Reported by John Kendall.
129810         (parser_control): Changed from struct parser_control to typedef (for
129811         consistency).  All uses changed.
129813         (tID): Removed; not used.
129814         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
129816 2000-02-14  Paul Eggert  <eggert@twinsun.com>
129818         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
129819         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
129821 2000-02-12  Jim Meyering  <meyering@lucent.com>
129823         * lib/userspec.c (ISDIGIT): Define it.
129824         (isdigit): Remove definition.
129825         (is_number): Use ISDIGIT, not isdigit.
129826         <libintl.h>: Include.
129827         (_ and N_): Define.
129828         (parse_user_spec): Mark translatable strings.
129830 2000-02-10  Jim Meyering  <meyering@lucent.com>
129832         With these changes, nanosleep.[ch] are finally enough like the other
129833         lib/* replacement files to compile on a few more losing systems.
129835         * lib/nanosleep.h: Don't include config.h.
129836         Remove prototype from declaration of nanosleep.
129837         (PARAMS): Remove now-unneeded definition.
129838         * lib/nanosleep.c: #undef nanosleep.
129839         (rpl_nanosleep): Rename from nanosleep.
129841 2000-02-10  Jim Meyering  <meyering@lucent.com>
129843         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
129844         gnu_nanosleep to rpl_nanosleep.
129846 2000-02-09  Jim Meyering  <meyering@lucent.com>
129848         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
129849         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
129851 2000-02-08  Akim Demaille  <akim@epita.fr>
129853         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
129854         `[' and `]' and remove uses of `changequote'.
129855         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
129856         (AC_SYS_LARGEFILE): Likewise.
129857         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
129858         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
129859         of changequote.
129860         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
129861         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
129862         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
129863         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
129865 2000-02-05  Jim Meyering  <meyering@lucent.com>
129867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
129868         Remove explicit use of AC_HEADER_TIME.  It is required by
129869         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
129870         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
129871         in autoconf whereby the expansion of the latter ended up preceding
129872         the expansion of its prerequisite, AC_HEADER_TIME.
129873         Reported by Volker Borchert.
129875 2000-02-03  Jim Meyering  <meyering@lucent.com>
129877         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
129879 2000-02-03  Jim Meyering  <meyering@lucent.com>
129881         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
129882         rather than with `#if HAVE_UTMPNAME'.
129884 2000-02-02  Jim Meyering  <meyering@lucent.com>
129886         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
129887         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
129888         Reported by Eli Zaretskii.
129890 2000-02-01  Jim Meyering  <meyering@lucent.com>
129892         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
129894 2000-01-31  Jim Meyering  <meyering@lucent.com>
129896         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
129897         functions.  Add the time.h and sys/time.h headers along with the
129898         AC_REQUIRE'ment of AC_HEADER_TIME.
129900 2000-01-31  Jim Meyering  <meyering@lucent.com>
129902         * lib/nanosleep.h (nanosleep): Guard declaration with
129903         `#if ! HAVE_DECL_NANOSLEEP'.
129904         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
129905         the declaration in that vendor's sys/timers.h.
129906         Reported by Christian Krackowizer.
129908         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
129909         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
129910         (ISPRINT): Likewise.
129911         Reported by Tom Tromey.
129913 2000-01-30  Jim Meyering  <meyering@lucent.com>
129915         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
129917         * m4/prereq.m4 (utmp_includes): Define.
129918         Check for ut_user and ut_name members in both struct utmpx
129919         and struct utmp.
129921 2000-01-30  Jim Meyering  <meyering@lucent.com>
129923         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
129924         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
129925         header files where only utmpx.ut_user is declared.
129927         * lib/readutmp.h (UT_USER): Define.
129929 2000-01-29  Jim Meyering  <meyering@lucent.com>
129931         * m4/lib-check.m4: New file containing library-related checks from
129932         fileutils and sh-utils (textutils had none).
129934 2000-01-28  Jim Meyering  <meyering@lucent.com>
129936         * m4/perl.m4: Change format of warning message to look more like that
129937         from the missing script.  Suggestion from François Pinard.
129939 2000-01-25  Jim Meyering  <meyering@lucent.com>
129941         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
129942         well as time.h in the compile check.
129943         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
129944         Fix typo in cross-compiling case: s/yes/no/.
129946 2000-01-23  Jim Meyering  <meyering@lucent.com>
129948         * m4/jm-macros.m4: Move df-related tests here from
129949         fileutils/configure.in
129951         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
129952         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
129954         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
129955         s/space/ac_fsusage_space/.
129956         (jm_FILE_SYSTEM_USAGE): Take two parameters.
129958         * m4/ftruncate.m4: New file (derived from part of
129959         fileutils/configure.in).
129960         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
129961         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
129963         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
129964         AC_SUBST these here, rather than just in sh-util/configure.in, so
129965         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
129966         all the same.
129967         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
129968         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
129969         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
129970         (AC_SUBST(POW_LIBM)): Likewise.
129971         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
129973 2000-01-23  Jim Meyering  <meyering@lucent.com>
129975         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
129976         obstack.c.
129978 2000-01-22  Jim Meyering  <meyering@lucent.com>
129980         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
129982         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
129984         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
129985         configure.in
129986         (AC_CHECK_HEADERS): Likewise for sh-utils.
129987         (AC_CHECK_HEADERS): Likewise for textutils.
129988         Merge the three lists of headers.
129990         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
129991         from fileutils' configure.in.
129993         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
129994         code. Moved tests into their own function (_jm_DECL_HEADERS) in
129995         check-decl.m4.
129997         * m4/check-decl.m4: Use #if rather than #ifdef.
129998         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
129999         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130000         (_jm_DECL_HEADERS): Define new function.
130001         (jm_CHECK_DECLARATIONS): Require it.
130003 2000-01-22  Jim Meyering  <meyering@lucent.com>
130005         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130006         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130007         Required for some AIX systems.  Reported by Christian Krackowizer.
130008         [TESTING] (main): New function.
130010         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130011         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130012         letters.
130014         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130015         iswprint.
130017         * lib/strverscmp.c (ISDIGIT): Define.
130018         (strverscmp): Use ISDIGIT, not isdigit.
130020 2000-01-19  Jim Meyering  <meyering@lucent.com>
130022         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130023         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130024         defines `struct timespec' in <sys/time.h>
130026         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130027         Thanks to Akim for explaining.
130029 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130031         * lib/nanosleep.c (nanosleep):
130032         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130033         POSIX.1 doesn't require SA_INTERRUPT and some systems
130034         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130035         it's been part of POSIX.1 since day 1 (in 1988).
130037 2000-01-17  Jim Meyering  <meyering@lucent.com>
130039         * lib/interlock: Remove unused file.  Reported by François Pinard.
130041 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130043         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130044         alert, backslash, formfeed, and vertical tab unnecessarily in
130045         shell quoting style.
130047 2000-01-16  Jim Meyering  <meyering@lucent.com>
130049         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130050         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130051         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130052         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130054 2000-01-16  Jim Meyering  <meyering@lucent.com>
130056         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130057         because the latter didn't work.
130059 2000-01-15  Jim Meyering  <meyering@lucent.com>
130061         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130062         (AC_REPLACE_FUNCS): Add memcpy and memset.
130063         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130064         Add strpbrk.
130065         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130067 2000-01-12  Jim Meyering  <meyering@lucent.com>
130069         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130070         (jm_PREREQ): Use it.
130071         (jm_PREREQ_READUTMP): New macro.
130072         (jm_PREREQ): Use it.
130074 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130076         Quote multibyte characters correctly.
130077         * m4/c-bs-a.m4: New file.
130078         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130079         (jm_PREREQ): Use it.
130081 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130083         * m4/uintmax_t.m4: Port to autoconf 2.13.
130085 2000-01-08  Jim Meyering  <meyering@ascend.com>
130087         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130088         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130090 2000-01-04  Jim Meyering  <meyering@ascend.com>
130092         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130093         jm_STRUCT_DIRENT_D_TYPE.
130094         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130095         jm_STRUCT_DIRENT_D_INO.
130096         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130097         jm_STRUCT_UTIMBUF.
130098         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130099         renamings.
130100         * m4/utime.m4: Likewise.
130102         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130103         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130105 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130107         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130108         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130110 2000-01-02  Jim Meyering  <meyering@ascend.com>
130112         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130113         remember if this is necessary.
130115 1999-12-26  Jim Meyering  <meyering@ascend.com>
130117         * m4/jm-macros.m4: Use it here.
130118         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130120 1999-12-23  Jim Meyering  <meyering@ascend.com>
130122         * m4/jm-macros.m4: Check for clock_gettime (moved from
130123         fileutils/configure.in)
130124         Check for gettimeofday.
130126 1999-12-20  Jim Meyering  <meyering@ascend.com>
130128         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130129         autoconf-2.14a-1999-12-20.
130131 1999-12-19  Jim Meyering  <meyering@ascend.com>
130133         * m4/lstat-slash.m4: New file.
130134         * m4/jm-macros.m4: Use the new macro:
130135         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130137 1999-12-07  Jim Meyering  <meyering@ascend.com>
130139         * m4/perl.m4: Require that File::Compare be available, too.
130140         Too many systems seem to lack it.
130142         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130143         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130145 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130147         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130148         problem with the QNX 4.25 shell, which doesn't propagate exit
130149         status of failed commands inside shell assignments.
130151 1999-11-17  Jim Meyering  <meyering@ascend.com>
130153         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130155 1999-11-07  Jim Meyering  <meyering@ascend.com>
130157         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130159 1999-11-06  Jim Meyering  <meyering@ascend.com>
130161         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130162         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130164 1999-11-05  Jim Meyering  <meyering@ascend.com>
130166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130167         configure.in of textutils, fileutils, and sh-utils into this one
130168         (shared between those packages) file.
130169         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130170         AC_STRUCT_ST_BLKSIZE.
130172 1999-11-03  Jim Meyering  <meyering@ascend.com>
130174         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130175         of AC_CHECK_TYPE checks includes unistd.h.
130176         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130177         Suggestion from Akim Demaille.
130179 1999-10-30  Jim Meyering  <meyering@ascend.com>
130181         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130182         m4-quoted string.
130183         * m4/ls-mntd-fs.m4: Likewise.
130184         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130185         * m4/jm-winsz1.m4: Likewise.
130187         * m4/const.m4: Remove file, since the fix made it into the experimental
130188         version of autoconf.
130189         * m4/mktime.m4: Likewise.
130191         * m4/check-type.m4: Remove file, now that the latest version of
130192         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130194         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130195         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130196         AC_CHECK_TYPE.
130198 1999-10-04  Jim Meyering  <meyering@ascend.com>
130200         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130202 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130204         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130205         2.95.1 bug with HP-UX 10.20.
130207 1999-09-17  Jim Meyering  <meyering@ascend.com>
130209         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130210         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130211         due to missing strdup (against sh-utils-2.0).
130213 1999-08-29  Jim Meyering  <meyering@ascend.com>
130215         * m4/jm-macros.m4: Require jm_BISON.
130216         * m4/bison.m4: New file.
130218 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130220         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130221         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130223 1999-08-05  Jim Meyering  <meyering@ascend.com>
130225         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130226         to avoid conflicts with `conftest' on 8+3 filesystems.
130227         Suggestion from Eli Zaretskii.
130229 1999-08-04  Jim Meyering  <meyering@ascend.com>
130231         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130232         fileutils and sh-utils (textutils's getline test was inadequate).
130233         (AM_FUNC_GETLINE): Run this test.
130234         (AC_CHECK_FUNCS): Check for getdelim.
130235         Reported by Bob Proulx.
130237 1999-08-02  Jim Meyering  <meyering@ascend.com>
130239         * m4/jm-macros.m4: Add a comment.
130241 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130243         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130244         <inttypes.h> defines strtoumax as a macro (and not as a
130245         function).
130247 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130249         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130250         that we can shift, multiply and divide unsigned long long
130251         values; Ultrix cc can't do it.
130253 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130255         * m4/mktime.m4: New file, which is a preview of what should appear
130256         in the next public autoconf release.
130258 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130260         * m4/lfs.m4: Remove this file.
130261         * m4/largefile.m4: New file.  It contains the old contents of
130262         lfs.m4, except that all names with prefix AC_LFS have been
130263         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130264         compatible with future autoconf versions.  Also, some minor m4
130265         quoting problems have been fixed.
130267 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130269         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130270         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130271         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130272         and simplify the shell code.
130274 1999-08-01  Jim Meyering  <meyering@ascend.com>
130276         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130277         m4.
130279 1999-07-20  Jim Meyering  <meyering@ascend.com>
130281         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130283 1999-07-15  Jim Meyering  <meyering@ascend.com>
130285         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130287 1999-05-22  Jim Meyering  <meyering@ascend.com>
130289         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130291 1999-05-20  Jim Meyering  <meyering@ascend.com>
130293         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130294         Add a colon after each `then' in case $4 is empty.
130296 1999-05-16  Jim Meyering  <meyering@ascend.com>
130298         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130300 1999-05-10  Jim Meyering  <meyering@ascend.com>
130302         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130304         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130305         AC_FUNC_MKTIME.
130307 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130309         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130311 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130313         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130314         not CPPFLAGS, so that linking works correctly in IRIX.
130316 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130320 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130322         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130323         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130325         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130326         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130328         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130330 1999-04-20  Jim Meyering  <meyering@ascend.com>
130332         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130333         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130334         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130336 1999-04-18  Jim Meyering  <meyering@ascend.com>
130338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130339         * m4/jm-macros.m4: Use it.
130341 1999-04-06  Jim Meyering  <meyering@ascend.com>
130343         * m4/strftime.m4: Remove test for %f.
130345 1999-03-29  Jim Meyering  <meyering@ascend.com>
130347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130348         superset of the AC_TYPE_* checks in the textutils, fileutils,
130349         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130350         AC_TYPE_PID_T.
130352 1999-03-28  Jim Meyering  <meyering@ascend.com>
130354         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130355         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130356         replaced e.g., in the *.sh files of the sh-utils.
130358 1999-03-20  Jim Meyering  <meyering@ascend.com>
130360         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130361         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130362         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130364 1999-03-19  Jim Meyering  <meyering@ascend.com>
130366         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130368 1999-03-12  Jim Meyering  <meyering@ascend.com>
130370         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130372 1999-03-07  Jim Meyering  <meyering@ascend.com>
130374         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130375         declared.
130377 1999-02-17  Jim Meyering  <meyering@ascend.com>
130379         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130380         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130382 1999-02-07  Jim Meyering  <meyering@ascend.com>
130384         * m4/group-member.m4: New file -- extracted from sh-utils'
130385         configure.in.
130387         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130388         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130390 1999-02-06  Jim Meyering  <meyering@ascend.com>
130392         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130393         * m4/fnmatch.m4: Likewise.
130394         * m4/getgroups.m4: Likewise.
130395         * m4/lstat.m4: Likewise.
130396         * m4/malloc.m4: Likewise.
130397         * m4/putenv.m4: Likewise.
130398         * m4/realloc.m4: Likewise.
130399         * m4/regex.m4: Likewise.
130400         * m4/stat.m4: Likewise.
130401         * m4/strftime.m4: Likewise.
130402         Suggestion from Alain Magloire.
130404         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130405         * m4/fnmatch.m4: Likewise.
130406         * m4/getgroups.m4: Likewise.
130407         * m4/getline.m4: Likewise.
130408         * m4/lstat.m4: Likewise.
130409         * m4/malloc.m4: Likewise.
130410         * m4/memcmp.m4: Likewise.
130411         * m4/putenv.m4: Likewise.
130412         * m4/realloc.m4: Likewise.
130413         * m4/regex.m4: Likewise.
130414         * m4/stat.m4: Likewise.
130415         * m4/strftime.m4: Likewise.
130416         Suggestion from Alain Magloire.
130418         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130419         an argument.
130421         * m4/regex.m4: Add a run-time Test for proper operation of
130422         re_compile_pattern.
130424 1999-01-31  Jim Meyering  <meyering@ascend.com>
130426         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130428 1999-01-30  Jim Meyering  <meyering@ascend.com>
130430         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130432         * m4/jm-mktime.m4: Make this a wrapper around the official
130433         AM_FUNC_MKTIME rather than my private copy, now that the official one
130434         is up to date.
130435         * m4/mktime.m4: Remove file.
130437         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130438         * m4/uptime.m4: Likewise.
130439         * m4/uintmax_t.m4: Likewise.
130441 1999-01-28  Jim Meyering  <meyering@ascend.com>
130443         * m4/jm-macros.m4: Use jm_AFS.
130444         * m4/afs.m4: New file (from fileutils' configure.in).
130446         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130447         * m4/chown.m4: Likewise.
130448         * m4/d-ino.m4: Likewise.
130449         * m4/d-type.m4: Likewise.
130450         * m4/fnmatch.m4: Likewise.
130451         * m4/getgroups.m4: Likewise.
130452         * m4/gettext.m4: Likewise.
130453         * m4/jm-mktime.m4: Likewise.
130454         * m4/jm-winsz2.m4: Likewise.
130455         * m4/lcmessage.m4: Likewise.
130456         * m4/ls-mntd-fs.m4: Likewise.
130457         * m4/malloc.m4: Likewise.
130458         * m4/memcmp.m4: Likewise.
130459         * m4/putenv.m4: Likewise.
130460         * m4/realloc.m4: Likewise.
130461         * m4/st_mtim.m4: Likewise.
130462         * m4/strftime.m4: Likewise.
130464 1999-01-16  Jim Meyering  <meyering@ascend.com>
130466         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130467         (ARGMATCH_DIE_DECL): Define.
130469 1999-01-12  Jim Meyering  <meyering@ascend.com>
130471         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130472         Reported by Lars Hecking.
130474 1999-01-10  Jim Meyering  <meyering@ascend.com>
130476         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130477         gross kludge.
130478         * m4/inttypes_h.m4: Likewise.
130479         * m4/lstat.m4: Likewise.
130480         * m4/malloc.m4: Likewise.
130481         * m4/readdir.m4: Likewise.
130482         * m4/realloc.m4: Likewise.
130483         * m4/st_dm_mode.m4: Likewise.
130484         * m4/stat.m4: Likewise.
130485         * m4/utimbuf.m4: Likewise.
130486         * m4/utimes.m4: Likewise.
130488         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130489         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130490         comments in config.h.in are meaningful.
130492         * m4/jm-macros.m4: Require autoconf-2.13 here.
130494         * m4/regex.m4: By default, don't use the included regex.c on systems
130495         with glibc 2.  Suggestion from Uli Drepper.
130497 1999-01-02  Jim Meyering  <meyering@ascend.com>
130499         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130501 1998-12-18  Jim Meyering  <meyering@ascend.com>
130503         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130504         Based on a suggestion from Lars Hecking.
130506 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130508         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130510 1998-11-16  Jim Meyering  <meyering@ascend.com>
130512         * m4/lfs.m4: Double-quote the `uname...` expression.
130514 1998-11-14  Jim Meyering  <meyering@ascend.com>
130516         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130517         * m4/stat.m4: Likewise.
130519 1998-11-03  Jim Meyering  <meyering@ascend.com>
130521         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130522         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130524 1998-10-18  Jim Meyering  <meyering@ascend.com>
130526         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130528 1998-10-17  Jim Meyering  <meyering@ascend.com>
130530         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130531         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130532         calls for those previously hard-coded headers.  Instead, take a new
130533         parameter.
130534         (jm_CHECK_DECLARATIONS): Reflect interface change.
130535         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130536         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130538         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130540 1998-10-14  Jim Meyering  <meyering@ascend.com>
130542         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130543         instead of "TZ=America/Vancouver".  From Paul Eggert.
130545 1998-10-11  Jim Meyering  <meyering@ascend.com>
130547         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130548         This adds a test for a recently added compatibility fix for mktime.c.
130549         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130551 1998-09-27  Jim Meyering  <meyering@ascend.com>
130553         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130555         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130556         ../configure.in, including a change from Gordon Matzigkeit to allow
130557         cross-compiling for the Hurd.
130559         * m4/glibc.m4: New file/macro to test for the GNU C Library
130560         versions 1 and 2.  From Gordon Matzigkeit.
130561         Indent.
130563 1998-09-21  Jim Meyering  <meyering@ascend.com>
130565         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130567 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130569         Port nanosecond-resolution times to UnixWare 2.1.2 and
130570         pedantic Solaris 2.6.
130572         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130573         AC_STRUCT_ST_MTIM.
130574         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130575         Generate name of ns member, instead of just 1 or undef.
130576         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130578 1998-08-15  Jim Meyering  <meyering@ascend.com>
130580         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130581         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130582         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130583         instead of jm_TYPE_SSIZE_T.
130585 1998-08-12  Jim Meyering  <meyering@ascend.com>
130587         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130589 1998-08-02  Jim Meyering  <meyering@ascend.com>
130591         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130592         in acconfig.h manually.
130594 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130596         * m4/st_mtim.m4: New file.
130598 1998-07-28  Jim Meyering  <meyering@ascend.com>
130600         * m4/utimes.m4: Undef stat.
130602 1998-07-25  Jim Meyering  <meyering@ascend.com>
130604         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130605         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130607 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130609         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130610         uid and gid actually remain unchanged.
130612 1998-07-07  Jim Meyering  <meyering@ascend.com>
130614         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130616 1998-07-04  Jim Meyering  <meyering@ascend.com>
130618         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130619         to prove that this macro can be used in packages without regex.c.
130621 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130623         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130624         is to be used.
130626 1998-07-03  Jim Meyering  <meyering@ascend.com>
130628         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130630         * m4/gettext.m4: New file -- from gettext-0.10.35.
130631         * m4/lcmessage.m4: Likewise.
130632         * m4/progtest.m4: Likewise.
130634         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130635         * m4/jm-macros.m4: Require the new macro.
130637 1998-06-29  Jim Meyering  <meyering@ascend.com>
130639         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130640         for the definition of NGROUPS (used in a system header included
130641         by sys/mount.h).
130643 1998-06-28  Jim Meyering  <meyering@ascend.com>
130645         * m4/ls-mntd-fs.m4: New file.
130646         * m4/fstypename.m4: New file.
130648         * m4/jm-macros.m4: Require the new macro.
130649         * m4/jm-glibc-io.m4: New file.
130651 1998-05-19  Jim Meyering  <meyering@ascend.com>
130653         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130654         * m4/lchown.m4: New file.
130656         * m4/Makefile.am.in: New file.
130657         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130659 1998-05-14  Jim Meyering  <meyering@ascend.com>
130661         * m4/Makefile.am (EXTRA_DIST): Add them.
130662         * m4/jm-macros.m4: New file.
130663         * m4/utimbuf.m4: New file.
130665 1998-05-12  Jim Meyering  <meyering@ascend.com>
130667         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130669 1998-05-11  Jim Meyering  <meyering@ascend.com>
130671         * m4/isc-posix.m4: New file.
130673 1998-05-10  Jim Meyering  <meyering@ascend.com>
130675         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130677 1998-05-09  Jim Meyering  <meyering@ascend.com>
130679         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130680         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130681         with automake.
130683         * m4/ssize_t.m4: New file.
130684         * m4/mktime.m4: Remove file -- the new automake has this now.
130686 1998-04-26  Jim Meyering  <meyering@ascend.com>
130688         * m4/assert.m4: New file.
130689         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130691 1998-04-05  Jim Meyering  <meyering@ascend.com>
130693         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130694         (jm_PREREQ): Use it here.
130696 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130698         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130699         in acconfig.h.
130701 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130703         * m4/prereq.m4: New file.
130704         * m4/error.m4: New file.
130705         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130707 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130709         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130710         cache-check for the same variable -- that defeated the purpose of
130711         the test; the test program was never run.  This was a problem only
130712         on systems with losing getline functions -- HP-UX 10.20 is one.
130713         Reported by Bjorn Helgaas.
130715 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130717         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130719 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
130721         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
130723         * m4/const.m4: New file.  Use an initializer in this declaration
130724         typedef int charset[2]; const charset x;
130725         Reported by Bob Glickstein.
130727 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
130729         * m4/chown.m4: Fix reversed types on -1 args to chown.
130730         From Kaveh Ghazi.
130732 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
130734         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
130735         Add lseek and memchr.
130737         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
130738         T.E.Dickey <dickey@clark.net> said that some older preprocessors
130739         have a 20-character limit on names.
130741 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
130743         * m4/inttypes_h.m4: New file.
130744         * m4/uintmax_t.m4: New file.
130745         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
130748         -----
130750         Local Variables:
130751         coding: utf-8
130752         End:
130754         Copyright (C) 1997-2020 Free Software Foundation, Inc.
130756         Copying and distribution of this file, with or without
130757         modification, are permitted provided the copyright notice
130758         and this notice are preserved.